@epa-wg/custom-element-dist 0.0.33 → 0.0.34

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 (175) hide show
  1. package/.claude/settings.local.json +18 -0
  2. package/.github/workflows/deploy.yml +59 -0
  3. package/.idea/copilot.data.migration.agent.xml +6 -0
  4. package/.idea/copilot.data.migration.ask.xml +6 -0
  5. package/.idea/copilot.data.migration.edit.xml +6 -0
  6. package/.idea/custom-element-dist.iml +2 -0
  7. package/.storybook/main.ts +20 -17
  8. package/.storybook/preview.ts +23 -23
  9. package/README.md +6 -4
  10. package/coverage/block-navigation.js +1 -1
  11. package/coverage/coverage-final.json +4 -3
  12. package/coverage/index.html +34 -19
  13. package/coverage/sorter.js +21 -7
  14. package/coverage/src/custom-element/coverage.svg +1 -1
  15. package/coverage/src/custom-element/custom-element.js/coverage.svg +1 -1
  16. package/coverage/src/custom-element/custom-element.js.html +435 -378
  17. package/coverage/src/custom-element/http-request.js/coverage.svg +1 -1
  18. package/coverage/src/custom-element/http-request.js.html +38 -17
  19. package/coverage/src/custom-element/index.html +26 -26
  20. package/coverage/src/custom-element/local-storage.js.html +1 -1
  21. package/coverage/src/custom-element/location-element.js.html +1 -1
  22. package/coverage/src/custom-element/module-url.js.html +1 -1
  23. package/coverage/src/index.html +1 -1
  24. package/coverage/src/material/theme/colors.js/coverage.svg +10 -0
  25. package/coverage/src/material/theme/colors.js.html +217 -0
  26. package/coverage/src/material/theme/coverage.svg +10 -0
  27. package/coverage/src/material/theme/index.html +116 -0
  28. package/coverage/src/mocks/handlers.ts.html +1 -1
  29. package/coverage/src/mocks/index.html +1 -1
  30. package/coverage/src/stories/frame.canvas.ts.html +1 -1
  31. package/coverage/src/stories/http-request.stories.ts.html +1 -1
  32. package/coverage/src/stories/index.html +1 -1
  33. package/coverage/src/stories/testStoryBook.ts.html +12 -12
  34. package/coverage/src/sum.ts.html +1 -1
  35. package/dist/{custom-element-WnOqmEOe.js → custom-element-BoYMoUtP.js} +193 -183
  36. package/dist/custom-element-BqtjrCRF.cjs +97 -0
  37. package/dist/custom-element-bundle.cjs +1 -1
  38. package/dist/custom-element-bundle.js +3 -3
  39. package/dist/demo/a.html +10 -3
  40. package/dist/demo/a.svg +26 -26
  41. package/dist/demo/html-template.html +4 -3
  42. package/dist/demo/s.xml +3856 -67
  43. package/dist/demo/s.xslt +13 -72
  44. package/dist/demo/s1.xml +3706 -0
  45. package/dist/http-request-DSaowcG1.cjs +1 -0
  46. package/dist/{http-request-BOvP4KTl.js → http-request-DTCzZ1gc.js} +15 -9
  47. package/package.json +2 -2
  48. package/public/demo/a.html +10 -3
  49. package/public/demo/a.svg +26 -26
  50. package/public/demo/html-template.html +4 -3
  51. package/public/demo/s.xml +3856 -67
  52. package/public/demo/s.xslt +13 -72
  53. package/public/demo/s1.xml +3706 -0
  54. package/src/custom-element/custom-element.js +28 -9
  55. package/src/custom-element/demo/a.html +10 -3
  56. package/src/custom-element/demo/a.svg +26 -26
  57. package/src/custom-element/demo/html-template.html +4 -3
  58. package/src/custom-element/demo/s.xml +3856 -67
  59. package/src/custom-element/demo/s.xslt +13 -72
  60. package/src/custom-element/demo/s1.xml +3706 -0
  61. package/src/custom-element/http-request.js +7 -0
  62. package/src/custom-element/ide/web-types-dce.json +1 -1
  63. package/src/custom-element/ide/web-types-xsl.json +1 -1
  64. package/src/material/angular.css +987 -987
  65. package/src/material/components/action.html +262 -0
  66. package/src/material/components/autocomplete.html +167 -239
  67. package/src/material/components/badge.html +238 -239
  68. package/src/material/components/dropdown.html +0 -1
  69. package/src/material/components/icon-link.html +160 -161
  70. package/src/material/components/icon.html +251 -252
  71. package/src/material/components/input.html +569 -570
  72. package/src/material/components/menu.html +235 -236
  73. package/src/material/components.html +157 -158
  74. package/src/material/demo.css +36 -36
  75. package/src/material/index.html +109 -110
  76. package/src/material/material.css +356 -356
  77. package/src/material/theme/Base-Principles.md +339 -0
  78. package/src/material/theme/README.md +298 -18
  79. package/src/material/theme/UI Domain Model in web applications.svg +1 -0
  80. package/src/material/theme/User Semantic Theme tokens.svg +1 -0
  81. package/src/material/theme/action-pending-poc.html +62 -0
  82. package/src/material/theme/actions-color.html +141 -0
  83. package/src/material/theme/colors-light.html +631 -0
  84. package/src/material/theme/colors-native.html +51 -0
  85. package/src/material/theme/colors-poc.html +66 -0
  86. package/src/material/theme/colors.html +297 -0
  87. package/src/material/theme/colors.js +44 -0
  88. package/src/material/theme/consumer-theme.css +745 -0
  89. package/src/material/theme/semantic.css +132 -132
  90. package/src/material/theme/style-bug.html +123 -0
  91. package/src/material/theme/theme-data.css +43 -0
  92. package/src/material/theme/theme-data.xhtml +2926 -0
  93. package/src/material/theme/todo.md +274 -0
  94. package/src/material/theme/tokens/action-colors.png +0 -0
  95. package/src/material/theme/tokens/cem-article-illustration-4x1-letterbox-2000x500.png +0 -0
  96. package/src/material/theme/tokens/cem-breakpoints.md +519 -0
  97. package/src/material/theme/tokens/cem-colors.md +715 -0
  98. package/src/material/theme/tokens/cem-consumerflow-typography-matrix.svg +198 -0
  99. package/src/material/theme/tokens/cem-coupling.md +372 -0
  100. package/src/material/theme/tokens/cem-data-vs-reading-numerals.svg +164 -0
  101. package/src/material/theme/tokens/cem-dimension.md +625 -0
  102. package/src/material/theme/tokens/cem-layering.md +562 -0
  103. package/src/material/theme/tokens/cem-m3-parity.md +343 -0
  104. package/src/material/theme/tokens/cem-responsive.md +238 -0
  105. package/src/material/theme/tokens/cem-shape.md +691 -0
  106. package/src/material/theme/tokens/cem-stroke-density-illustration-4to1-v3.svg +102 -0
  107. package/src/material/theme/tokens/cem-stroke.md +480 -0
  108. package/src/material/theme/tokens/cem-timing.md +198 -0
  109. package/src/material/theme/tokens/cem-typography-model-stack.svg +64 -0
  110. package/src/material/theme/tokens/cem-voice-fonts-typography.md +718 -0
  111. package/src/material/theme/tokens/cem-voice-ladder.svg +91 -0
  112. package/src/material/theme/tokens/chips.png +0 -0
  113. package/src/material/theme/tokens/columns-page.png +0 -0
  114. package/src/material/theme/tokens/initials.png +0 -0
  115. package/src/material/theme/tokens/nav-buttons.png +0 -0
  116. package/src/material/theme/tokens/script.png +0 -0
  117. package/src/material/theme/tokens/sufler.png +0 -0
  118. package/src/material/theme/tokens/typography-icons.png +0 -0
  119. package/src/mocks/versions.mock.ts +1 -1
  120. package/src/stories/__screenshots__/dom-merge.test.stories.ts/dom-merge-dom-merge-OrderPreservingOn2ndTransform-1.png +0 -0
  121. package/src/stories/__screenshots__/xslt-conditionals.test.stories.ts/xslt-conditionals-xslt-conditionals-MultipleIfOrderingWorkaround-1.png +0 -0
  122. package/src/stories/dom-merge.test.stories.ts +25 -1
  123. package/src/stories/xslt-conditionals.test.stories.ts +492 -0
  124. package/src/stories/xslt-if.test.stories.ts +89 -0
  125. package/storybook-static/assets/{Color-F6OSRLHC-Cbp293x2.js → Color-F6OSRLHC-CzTOSlqB.js} +1 -1
  126. package/storybook-static/assets/{Configure-BrFr4SLE.js → Configure-7GqRsAoJ.js} +1 -1
  127. package/storybook-static/assets/{DocsRenderer-CFRXHY34-DhHzJiIO.js → DocsRenderer-CFRXHY34-Duc5rSIm.js} +2 -2
  128. package/storybook-static/assets/{attributes.test.stories-Gg9LQTEK.js → attributes.test.stories-DYuxF8h1.js} +1 -1
  129. package/storybook-static/assets/{css.test.stories-B_3ltOrx.js → css.test.stories-LOmvINyb.js} +1 -1
  130. package/storybook-static/assets/{custom-element-CPnvJnn8.js → custom-element-Bwx7otrT.js} +6 -6
  131. package/storybook-static/assets/{dom-merge.test.stories-nQxcgLoM.js → dom-merge.test.stories-CEKhWjaS.js} +47 -6
  132. package/storybook-static/assets/entry-preview-BNCt9WBs.js +26 -0
  133. package/storybook-static/assets/{entry-preview-docs-Dwczwtsc.js → entry-preview-docs-CbF8-81D.js} +2 -2
  134. package/storybook-static/assets/{external-template.test.stories-DZ-rjnfd.js → external-template.test.stories-jHu0wsJ-.js} +1 -1
  135. package/storybook-static/assets/{form.test.stories-DQhPYtMj.js → form.test.stories-CUyUnmwP.js} +1 -1
  136. package/storybook-static/assets/{frame.canvas-ClTqYyMN.js → frame.canvas-E5n9h6j1.js} +1 -1
  137. package/storybook-static/assets/{handlers-CLkps6Nz.js → handlers-F7GUfMqr.js} +1 -1
  138. package/storybook-static/assets/http-request-BWeEEBkP.js +1 -0
  139. package/storybook-static/assets/{http-request.stories-jo0f73nw.js → http-request.stories-wyX5-QOv.js} +1 -1
  140. package/storybook-static/assets/{iframe-CZwRpnn9.js → iframe-BS_DPWl0.js} +11 -11
  141. package/storybook-static/assets/{index-Dr4PwNfd.js → index-CGuyH0k-.js} +87 -87
  142. package/storybook-static/assets/{index-CJQtnF9V.js → index-DB7LLObI.js} +1 -1
  143. package/storybook-static/assets/index-DO1nmyvI.js +11 -0
  144. package/storybook-static/assets/{index-B68YUdzy.js → index-V1EGs-wm.js} +3 -3
  145. package/storybook-static/assets/{local-storage.test.stories-uA5EKRPf.js → local-storage.test.stories-BxOhsf1k.js} +1 -1
  146. package/storybook-static/assets/{location-element.test.stories-Cu-6Elcg.js → location-element.test.stories-DqhvvUoa.js} +1 -1
  147. package/storybook-static/assets/{module-url.test.stories-CD_wusXQ.js → module-url.test.stories-C1gG9G7Y.js} +1 -1
  148. package/storybook-static/assets/{preview-BFlNN3Wj.js → preview-Bn8igYMp.js} +1 -1
  149. package/storybook-static/assets/{preview-CuCH40jj.js → preview-Cwy1XFu2.js} +2 -2
  150. package/storybook-static/assets/{preview-Cm4PPhHS.js → preview-D6sehqkw.js} +1 -1
  151. package/storybook-static/assets/{set-url.test.stories-CY7B9BVZ.js → set-url.test.stories-BKQNdknJ.js} +1 -1
  152. package/storybook-static/assets/{slice-events.test.stories-BVnPXm6e.js → slice-events.test.stories-ChqULCeA.js} +1 -1
  153. package/storybook-static/assets/{slots.test.stories-Dxsa9KdA.js → slots.test.stories-BlyLoCRe.js} +1 -1
  154. package/storybook-static/assets/{version-select.test.stories-Buga1PAa.js → version-select.test.stories-CPGSh1tR.js} +1 -1
  155. package/storybook-static/assets/xslt-conditionals.test.stories-YC6QPqWZ.js +633 -0
  156. package/storybook-static/assets/xslt-if.test.stories-BRSWy2-x.js +71 -0
  157. package/storybook-static/demo/a.html +10 -3
  158. package/storybook-static/demo/a.svg +26 -26
  159. package/storybook-static/demo/html-template.html +4 -3
  160. package/storybook-static/demo/s.xml +3856 -67
  161. package/storybook-static/demo/s.xslt +13 -72
  162. package/storybook-static/demo/s1.xml +3706 -0
  163. package/storybook-static/iframe.html +2 -2
  164. package/storybook-static/index.json +1 -1
  165. package/storybook-static/project.json +1 -1
  166. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +69 -66
  167. package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +62 -59
  168. package/dist/custom-element-6slVaFEs.cjs +0 -97
  169. package/dist/http-request-DPrY7mGh.cjs +0 -1
  170. package/storybook-static/assets/attributes.test.stories-CzWkKw0e.js +0 -1
  171. package/storybook-static/assets/entry-preview-DHVXbf3x.js +0 -26
  172. package/storybook-static/assets/external-template.test.stories-BivZqBTp.js +0 -1
  173. package/storybook-static/assets/http-request-DNq59pnj.js +0 -1
  174. package/storybook-static/assets/index-BwkS7JH_.js +0 -8
  175. package/storybook-static/assets/module-url.test.stories-CTjUAk3J.js +0 -1
@@ -0,0 +1,26 @@
1
+ import{d as at}from"./index-DrFu-skq.js";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const x=globalThis,L=x.ShadowRoot&&(x.ShadyCSS===void 0||x.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Q=Symbol(),z=new WeakMap;let lt=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Q)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(L&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=z.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&z.set(e,t))}return t}toString(){return this.cssText}};const ct=r=>new lt(typeof r=="string"?r:r+"",void 0,Q),dt=(r,t)=>{if(L)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=x.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},B=L?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return ct(e)})(r):r;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:pt,defineProperty:ut,getOwnPropertyDescriptor:$t,getOwnPropertyNames:_t,getOwnPropertySymbols:ft,getPrototypeOf:At}=Object,T=globalThis,I=T.trustedTypes,yt=I?I.emptyScript:"",mt=T.reactiveElementPolyfillSupport,S=(r,t)=>r,R={toAttribute(r,t){switch(t){case Boolean:r=r?yt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},X=(r,t)=>!pt(r,t),W={attribute:!0,type:String,converter:R,reflect:!1,useDefault:!1,hasChanged:X};Symbol.metadata??=Symbol("metadata"),T.litPropertyMetadata??=new WeakMap;let m=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=W){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&ut(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=$t(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const a=i?.call(this);o?.call(this,n),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??W}static _$Ei(){if(this.hasOwnProperty(S("elementProperties")))return;const t=At(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(S("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(S("properties"))){const e=this.properties,s=[..._t(e),...ft(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(B(i))}else t!==void 0&&e.push(B(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:R).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:R;this._$Em=i;const a=n.fromAttribute(e,o.type);this[i]=a??this._$Ej?.get(i)??a,this._$Em=null}}requestUpdate(t,e,s,i=!1,o){if(t!==void 0){const n=this.constructor;if(i===!1&&(o=this[t]),s??=n.getPropertyOptions(t),!((s.hasChanged??X)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[i,o]of s){const{wrapped:n}=o,a=this[i];n!==!0||this._$AL.has(i)||a===void 0||this.C(i,void 0,o,a)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};m.elementStyles=[],m.shadowRootOptions={mode:"open"},m[S("elementProperties")]=new Map,m[S("finalized")]=new Map,mt?.({ReactiveElement:m}),(T.reactiveElementVersions??=[]).push("2.1.2");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const D=globalThis,q=r=>r,M=D.trustedTypes,V=M?M.createPolicy("lit-html",{createHTML:r=>r}):void 0,tt="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,et="?"+_,gt=`<${et}>`,y=document,b=()=>y.createComment(""),w=r=>r===null||typeof r!="object"&&typeof r!="function",j=Array.isArray,vt=r=>j(r)||typeof r?.[Symbol.iterator]=="function",N=`[
14
+ \f\r]`,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Z=/>/g,f=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),J=/'/g,Y=/"/g,st=/^(?:script|style|textarea|title)$/i,g=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),F=new WeakMap,A=y.createTreeWalker(y,129);function it(r,t){if(!j(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return V!==void 0?V.createHTML(t):t}const Et=(r,t)=>{const e=r.length-1,s=[];let i,o=t===2?"<svg>":t===3?"<math>":"",n=E;for(let a=0;a<e;a++){const h=r[a];let c,p,l=-1,u=0;for(;u<h.length&&(n.lastIndex=u,p=n.exec(h),p!==null);)u=n.lastIndex,n===E?p[1]==="!--"?n=K:p[1]!==void 0?n=Z:p[2]!==void 0?(st.test(p[2])&&(i=RegExp("</"+p[2],"g")),n=f):p[3]!==void 0&&(n=f):n===f?p[0]===">"?(n=i??E,l=-1):p[1]===void 0?l=-2:(l=n.lastIndex-p[2].length,c=p[1],n=p[3]===void 0?f:p[3]==='"'?Y:J):n===Y||n===J?n=f:n===K||n===Z?n=E:(n=f,i=void 0);const $=n===f&&r[a+1].startsWith("/>")?" ":"";o+=n===E?h+gt:l>=0?(s.push(c),h.slice(0,l)+tt+h.slice(l)+_+$):h+_+(l===-2?a:$)}return[it(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};class C{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0;const a=t.length-1,h=this.parts,[c,p]=Et(t,e);if(this.el=C.createElement(c,s),A.currentNode=this.el.content,e===2||e===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(i=A.nextNode())!==null&&h.length<a;){if(i.nodeType===1){if(i.hasAttributes())for(const l of i.getAttributeNames())if(l.endsWith(tt)){const u=p[n++],$=i.getAttribute(l).split(_),O=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:O[2],strings:$,ctor:O[1]==="."?bt:O[1]==="?"?wt:O[1]==="@"?Ct:H}),i.removeAttribute(l)}else l.startsWith(_)&&(h.push({type:6,index:o}),i.removeAttribute(l));if(st.test(i.tagName)){const l=i.textContent.split(_),u=l.length-1;if(u>0){i.textContent=M?M.emptyScript:"";for(let $=0;$<u;$++)i.append(l[$],b()),A.nextNode(),h.push({type:2,index:++o});i.append(l[u],b())}}}else if(i.nodeType===8)if(i.data===et)h.push({type:2,index:o});else{let l=-1;for(;(l=i.data.indexOf(_,l+1))!==-1;)h.push({type:7,index:o}),l+=_.length-1}o++}}static createElement(t,e){const s=y.createElement("template");return s.innerHTML=t,s}}function v(r,t,e=r,s){if(t===g)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl;const o=w(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??=[])[s]=i:e._$Cl=i),i!==void 0&&(t=v(r,i._$AS(r,t.values),i,s)),t}class St{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??y).importNode(e,!0);A.currentNode=i;let o=A.nextNode(),n=0,a=0,h=s[0];for(;h!==void 0;){if(n===h.index){let c;h.type===2?c=new P(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new Pt(o,this,t)),this._$AV.push(c),h=s[++a]}n!==h?.index&&(o=A.nextNode(),n++)}return A.currentNode=y,i}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class P{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=v(this,t,e),w(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==g&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):vt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&w(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=C.createElement(it(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const o=new St(i,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o}}_$AC(t){let e=F.get(t.strings);return e===void 0&&F.set(t.strings,e=new C(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new P(this.O(b()),this.O(b()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const s=q(t).nextSibling;q(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class H{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,i){const o=this.strings;let n=!1;if(o===void 0)t=v(this,t,e,0),n=!w(t)||t!==this._$AH&&t!==g,n&&(this._$AH=t);else{const a=t;let h,c;for(t=o[0],h=0;h<o.length-1;h++)c=v(this,a[s+h],e,h),c===g&&(c=this._$AH[h]),n||=!w(c)||c!==this._$AH[h],c===d?t=d:t!==d&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}n&&!i&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends H{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class wt extends H{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Ct extends H{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=v(this,t,e,0)??d)===g)return;const s=this._$AH,i=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==d&&(s===d||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Pt{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const Ot=D.litHtmlPolyfillSupport;Ot?.(C,P),(D.litHtmlVersions??=[]).push("3.3.2");const rt=(r,t,e)=>{const s=e?.renderBefore??t;let i=s._$litPart$;if(i===void 0){const o=e?.renderBefore??null;s._$litPart$=i=new P(t.insertBefore(b(),o),o,void 0,e??{})}return i._$AI(r),i};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const k=globalThis;class U extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=rt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return g}}U._$litElement$=!0,U.finalized=!0,k.litElementHydrateSupport?.({LitElement:U});const xt=k.litElementPolyfillSupport;xt?.({LitElement:U});(k.litElementVersions??=[]).push("4.2.2");/**
20
+ * @license
21
+ * Copyright 2020 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const Ut=(r,t)=>t===void 0?r?._$litType$!==void 0:r?._$litType$===t,{simulatePageLoad:G,simulateDOMContentLoaded:Mt}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Tt}=__STORYBOOK_MODULE_GLOBAL__;var Ht=Object.defineProperty,Nt=(r,t)=>{for(var e in t)Ht(r,e,{get:t[e],enumerable:!0})},Rt={};Nt(Rt,{parameters:()=>ht,render:()=>ot,renderToCanvas:()=>nt});var{Node:Lt}=Tt,ot=(r,t)=>{let{id:e,component:s}=t;if(!s)throw new Error(`Unable to render story ${e} as the component annotation is missing from the default export`);let i=document.createElement(s);return Object.entries(r).forEach(([o,n])=>{i[o]=n}),i};function nt({storyFn:r,kind:t,name:e,showMain:s,showError:i,forceRemount:o},n){let a=r();if(s(),Ut(a)){(o||!n.querySelector('[id="root-inner"]'))&&(n.innerHTML='<div id="root-inner"></div>');let h=n.querySelector('[id="root-inner"]');rt(a,h),G(n)}else if(typeof a=="string")n.innerHTML=a,G(n);else if(a instanceof Lt){if(n.firstChild===a&&!o)return;n.innerHTML="",n.appendChild(a),Mt()}else i({title:`Expecting an HTML snippet or DOM node from the story: "${e}" of "${t}".`,description:at`
24
+ Did you forget to return the HTML snippet from the story?
25
+ Use "() => <your snippet or node>" or when defining the story.
26
+ `})}var ht={renderer:"web-components"};const zt=Object.freeze(Object.defineProperty({__proto__:null,parameters:ht,render:ot,renderToCanvas:nt},Symbol.toStringTag,{value:"Module"}));export{rt as D,zt as e};
@@ -1,2 +1,2 @@
1
- import{B as l}from"./entry-preview-DHVXbf3x.js";import{c as E,g as u,y}from"./index-BwkS7JH_.js";import{i as g}from"./tiny-invariant-CopsF_GD.js";import"./index-DrFu-skq.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__,{setDefaultProjectAnnotations:V,setProjectAnnotations:K}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:w}=i;w.STORYBOOK_ENV="web-components";function p(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function c(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
2
- See the readme of addon-docs for web components for more details.`)}function d(){return i.__STORYBOOK_CUSTOM_ELEMENTS__||i.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:S,EventSource:b}=i;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new b("__webpack_hmr").addEventListener("message",function(e){try{let{action:r}=JSON.parse(e.data);r==="built"&&S.location.reload()}catch{}}));const{logger:m}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{useEffect:v,addons:A}=__STORYBOOK_MODULE_PREVIEW_API__;function _(e,r){let t;switch(r){case"attributes":case"properties":t={name:e.type?.text||e.type};break;case"slots":t={name:"string"};break;default:t={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:t,table:{category:r,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function D(e){let r=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(t,n,a)=>a?a.toUpperCase():"").replace(/^([A-Z])/,t=>t.toLowerCase());return r=`on${r.charAt(0).toUpperCase()+r.substr(1)}`,[{name:r,action:{name:e.name},table:{disable:!0}},_(e,"events")]}function o(e,r){return e&&e.filter(t=>t&&t.name).reduce((t,n)=>{if(n.kind==="method")return t;switch(r){case"events":D(n).forEach(a=>{g(a.name),t[a.name]=a});break;default:t[n.name]=_(n,r);break}return t},{})}var C=(e,r)=>{if(!p(e)||!c(r))return null;let t=r.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return t||m.warn(`Component not found in custom-elements.json: ${e}`),t},h=(e,r)=>{if(!p(e)||!c(r))return null;let t;return r?.modules?.forEach(n=>{n?.declarations?.forEach(a=>{a.tagName===e&&(t=a)})}),t||m.warn(`Component not found in custom-elements.json: ${e}`),t},f=(e,r)=>r?.version==="experimental"?C(e,r):h(e,r),M=(e,r)=>{let t=f(e,r);return t&&{...o(t.members??[],"properties"),...o(t.properties??[],"properties"),...o(t.attributes??[],"attributes"),...o(t.events??[],"events"),...o(t.slots??[],"slots"),...o(t.cssProperties??[],"css custom properties"),...o(t.cssParts??[],"css shadow parts")}},T=e=>{let r=d();return M(e,r)},L=e=>{let r=f(e,d());return r&&r.description},P=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function R(e){let r=e?.parameters.docs?.source,t=e?.parameters.__isArgsStory;return r?.type===u.DYNAMIC?!1:!t||r?.code||r?.type===u.CODE}function I(e,r){let t=e(),n=r?.parameters.docs?.source?.excludeDecorators?r.originalStoryFn(r.args,r):t,a;if(v(()=>{let{id:s,unmappedArgs:O}=r;a&&A.getChannel().emit(y,{id:s,source:a,args:O})}),!R(r)){let s=window.document.createElement("div");n instanceof DocumentFragment?l(n.cloneNode(!0),s):l(n,s),a=s.innerHTML.replace(P,"")}return t}var $=[I],j={docs:{extractArgTypes:T,extractComponentDescription:L,story:{inline:!0},source:{type:u.DYNAMIC,language:"html"}}},N=[E];export{N as argTypesEnhancers,$ as decorators,j as parameters};
1
+ import{D as l}from"./entry-preview-BNCt9WBs.js";import{c as E,g as u,y}from"./index-DO1nmyvI.js";import{i as g}from"./tiny-invariant-CopsF_GD.js";import"./index-DrFu-skq.js";const{global:i}=__STORYBOOK_MODULE_GLOBAL__,{setDefaultProjectAnnotations:V,setProjectAnnotations:K}=__STORYBOOK_MODULE_PREVIEW_API__;var{window:w}=i;w.STORYBOOK_ENV="web-components";function p(e){if(!e)return!1;if(typeof e=="string")return!0;throw new Error('Provided component needs to be a string. e.g. component: "my-element"')}function c(e){if(!e)return!1;if(e.tags&&Array.isArray(e.tags)||e.modules&&Array.isArray(e.modules))return!0;throw new Error(`You need to setup valid meta data in your config.js via setCustomElements().
2
+ See the readme of addon-docs for web components for more details.`)}function d(){return i.__STORYBOOK_CUSTOM_ELEMENTS__||i.__STORYBOOK_CUSTOM_ELEMENTS_MANIFEST__}var{window:S,EventSource:D}=i;typeof module<"u"&&module?.hot?.decline&&(module.hot.decline(),new D("__webpack_hmr").addEventListener("message",function(e){try{let{action:r}=JSON.parse(e.data);r==="built"&&S.location.reload()}catch{}}));const{logger:m}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{useEffect:b,addons:v}=__STORYBOOK_MODULE_PREVIEW_API__;function _(e,r){let t;switch(r){case"attributes":case"properties":t={name:e.type?.text||e.type};break;case"slots":t={name:"string"};break;default:t={name:"void"};break}return{name:e.name,required:!1,description:e.description,type:t,table:{category:r,type:{summary:e.type?.text||e.type},defaultValue:{summary:e.default!==void 0?e.default:e.defaultValue}}}}function A(e){let r=e.name.replace(/(-|_|:|\.|\s)+(.)?/g,(t,n,a)=>a?a.toUpperCase():"").replace(/^([A-Z])/,t=>t.toLowerCase());return r=`on${r.charAt(0).toUpperCase()+r.substr(1)}`,[{name:r,action:{name:e.name},table:{disable:!0}},_(e,"events")]}function o(e,r){return e&&e.filter(t=>t&&t.name).reduce((t,n)=>{if(n.kind==="method")return t;switch(r){case"events":A(n).forEach(a=>{g(a.name),t[a.name]=a});break;default:t[n.name]=_(n,r);break}return t},{})}var C=(e,r)=>{if(!p(e)||!c(r))return null;let t=r.tags.find(n=>n.name.toUpperCase()===e.toUpperCase());return t||m.warn(`Component not found in custom-elements.json: ${e}`),t},h=(e,r)=>{if(!p(e)||!c(r))return null;let t;return r?.modules?.forEach(n=>{n?.declarations?.forEach(a=>{a.tagName===e&&(t=a)})}),t||m.warn(`Component not found in custom-elements.json: ${e}`),t},f=(e,r)=>r?.version==="experimental"?C(e,r):h(e,r),M=(e,r)=>{let t=f(e,r);return t&&{...o(t.members??[],"properties"),...o(t.properties??[],"properties"),...o(t.attributes??[],"attributes"),...o(t.events??[],"events"),...o(t.slots??[],"slots"),...o(t.cssProperties??[],"css custom properties"),...o(t.cssParts??[],"css shadow parts")}},T=e=>{let r=d();return M(e,r)},L=e=>{let r=f(e,d());return r&&r.description},P=/<!--\?lit\$[0-9]+\$-->|<!--\??-->/g;function R(e){let r=e?.parameters.docs?.source,t=e?.parameters.__isArgsStory;return r?.type===u.DYNAMIC?!1:!t||r?.code||r?.type===u.CODE}function I(e,r){let t=e(),n=r?.parameters.docs?.source?.excludeDecorators?r.originalStoryFn(r.args,r):t,a;if(b(()=>{let{id:s,unmappedArgs:O}=r;a&&v.getChannel().emit(y,{id:s,source:a,args:O})}),!R(r)){let s=window.document.createElement("div");n instanceof DocumentFragment?l(n.cloneNode(!0),s):l(n,s),a=s.innerHTML.replace(P,"")}return t}var $=[I],j={docs:{extractArgTypes:T,extractComponentDescription:L,story:{inline:!0},source:{type:u.DYNAMIC,language:"html"}}},N=[E];export{N as argTypesEnhancers,$ as decorators,j as parameters};
@@ -1,4 +1,4 @@
1
- import{w as l,e as a}from"./index-Dr4PwNfd.js";import"./custom-element-CPnvJnn8.js";import{f as T}from"./frame.canvas-ClTqYyMN.js";function v(t){return new Promise(e=>setTimeout(e,t))}function h(t){const{title:e,body:n}=t;return`
1
+ import{w as l,e as a}from"./index-CGuyH0k-.js";import"./custom-element-Bwx7otrT.js";import{f as T}from"./frame.canvas-E5n9h6j1.js";function v(t){return new Promise(e=>setTimeout(e,t))}function h(t){const{title:e,body:n}=t;return`
2
2
  <fieldset>
3
3
  <legend>${e}</legend>
4
4
  ${n}
@@ -1,4 +1,4 @@
1
- import{w as i,e as n,u as e}from"./index-Dr4PwNfd.js";import"./custom-element-CPnvJnn8.js";function l(a){const{title:t,body:s}=a;return`
1
+ import{w as i,e as n,u as e}from"./index-CGuyH0k-.js";import"./custom-element-Bwx7otrT.js";function l(a){const{title:t,body:s}=a;return`
2
2
  <fieldset>
3
3
  <legend>${t}</legend>
4
4
  ${s}
@@ -1 +1 @@
1
- import{w as a}from"./index-Dr4PwNfd.js";async function r(t,e){const n=await e.findByTestId(t);return new Promise(o=>n.addEventListener("load",()=>{o(a(n.contentWindow?.document.documentElement))}))}export{r as f};
1
+ import{w as a}from"./index-CGuyH0k-.js";async function r(t,e){const n=await e.findByTestId(t);return new Promise(o=>n.addEventListener("load",()=>{o(a(n.contentWindow?.document.documentElement))}))}export{r as f};
@@ -234,7 +234,7 @@ tough-cookie/lib/cookie.js:
234
234
  * POSSIBILITY OF SUCH DAMAGE.
235
235
  *)
236
236
  */const{Cookie:Xo,CookieJar:ei,Store:ai,MemoryCookieStore:oi,domainMatch:ii,pathMatch:ti}=Ko;class si extends ai{storage;storageKey;constructor(){super(),Re(typeof localStorage<"u","Failed to create a WebStorageCookieStore: `localStorage` is not available in this environment. This is likely an issue with MSW. Please report it on GitHub: https://github.com/mswjs/msw/issues"),this.synchronous=!0,this.storage=localStorage,this.storageKey="__msw-cookie-store__"}findCookie(e,o,i,s){try{const u=this.getStore(),m=this.filterCookiesFromList(u,{domain:e,path:o,key:i});s(null,m[0]||null)}catch(u){u instanceof Error&&s(u,null)}}findCookies(e,o,i,s){if(!e){s(null,[]);return}try{const u=this.getStore(),m=this.filterCookiesFromList(u,{domain:e,path:o});s(null,m)}catch(u){u instanceof Error&&s(u,[])}}putCookie(e,o){try{if(e.maxAge===0)return;const i=this.getStore();i.push(e),this.updateStore(i)}catch(i){i instanceof Error&&o(i)}}updateCookie(e,o,i){if(o.maxAge===0){this.removeCookie(o.domain||"",o.path||"",o.key,i);return}this.putCookie(o,i)}removeCookie(e,o,i,s){try{const u=this.getStore(),m=this.deleteCookiesFromList(u,{domain:e,path:o,key:i});this.updateStore(m),s(null)}catch(u){u instanceof Error&&s(u)}}removeCookies(e,o,i){try{const s=this.getStore(),u=this.deleteCookiesFromList(s,{domain:e,path:o});this.updateStore(u),i(null)}catch(s){s instanceof Error&&i(s)}}getAllCookies(e){try{e(null,this.getStore())}catch(o){o instanceof Error&&e(o,[])}}getStore(){try{const e=this.storage.getItem(this.storageKey);if(e==null)return[];const o=JSON.parse(e),i=[];for(const s of o){const u=Xo.fromJSON(s);u!=null&&i.push(u)}return i}catch{return[]}}updateStore(e){this.storage.setItem(this.storageKey,JSON.stringify(e.map(o=>o.toJSON())))}filterCookiesFromList(e,o){const i=[];for(const s of e)o.domain&&!ii(o.domain,s.domain||"")||o.path&&!ti(o.path,s.path||"")||o.key&&s.key!==o.key||i.push(s);return i}deleteCookiesFromList(e,o){const i=this.filterCookiesFromList(e,o);return e.filter(s=>!i.includes(s))}}const ni=oa()?new oi:new si,ri=new ei(ni);function ka(a){const e=na.parse(a),o={};for(const i in e)typeof e[i]<"u"&&(o[i]=e[i]);return o}function Ue(){return ka(document.cookie)}function ui(a){if(typeof document>"u"||typeof location>"u")return{};switch(a.credentials){case"same-origin":{const e=new URL(a.url);return location.origin===e.origin?Ue():{}}case"include":return Ue();default:return{}}}function mi(a){const e=a.headers.get("cookie"),o=e?ka(e):{},i=ui(a);for(const m in i)a.headers.append("cookie",na.serialize(m,i[m]));const s=ri.getCookiesSync(a.url),u=Object.fromEntries(s.map(m=>[m.key,m.value]));for(const m of s)a.headers.append("cookie",m.toString());return{...i,...u,...o}}var he=(a=>(a.HEAD="HEAD",a.GET="GET",a.POST="POST",a.PUT="PUT",a.PATCH="PATCH",a.OPTIONS="OPTIONS",a.DELETE="DELETE",a))(he||{});class ci extends Ae{constructor(e,o,i,s){super({info:{header:`${e} ${o}`,path:o,method:e},resolver:i,options:s}),this.checkRedundantQueryParameters()}checkRedundantQueryParameters(){const{method:e,path:o}=this.info;if(o instanceof RegExp||ia(o)===o)return;jo(o).forEach((u,m)=>{}),Te.warn(`Found a redundant usage of query parameters in the request handler URL for "${e} ${o}". Please match against a path instead and access query parameters using "new URL(request.url).searchParams" instead. Learn more: https://mswjs.io/docs/recipes/query-parameters`)}async parse(e){const o=new URL(e.request.url),i=zo(o,this.info.path,e.resolutionContext?.baseUrl),s=mi(e.request);return{match:i,cookies:s}}predicate(e){const o=this.matchMethod(e.request.method),i=e.parsedResult.match.matches;return o&&i}matchMethod(e){return this.info.method instanceof RegExp?this.info.method.test(e):La(this.info.method,e)}extendResolverArgs(e){return{params:e.parsedResult.match?.params||{},cookies:e.parsedResult.cookies}}async log(e){const o=Eo(e.request.url),i=await qa(e.request),s=await Ya(e.response),u=Pa(s.status);console.groupCollapsed(Te.formatMessage(`${Ra()} ${e.request.method} ${o} (%c${s.status} ${s.statusText}%c)`),`color:${u}`,"color:inherit"),console.log("Request",i),console.log("Handler:",this),console.log("Response",s),console.groupEnd()}}function pe(a){return(e,o,i={})=>new ci(a,e,o,i)}const xe={all:pe(/.+/),head:pe(he.HEAD),get:pe(he.GET),post:pe(he.POST),put:pe(he.PUT),delete:pe(he.DELETE),patch:pe(he.PATCH),options:pe(he.OPTIONS)};var li=Object.create,fa=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ba=Object.getOwnPropertyNames,hi=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,gi=(a,e)=>function(){return e||(0,a[ba(a)[0]])((e={exports:{}}).exports,e),e.exports},ki=(a,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ba(e))!di.call(a,s)&&s!==o&&fa(a,s,{get:()=>e[s],enumerable:!(i=pi(e,s))||i.enumerable});return a},fi=(a,e,o)=>(o=a!=null?li(hi(a)):{},ki(!a||!a.__esModule?fa(o,"default",{value:a,enumerable:!0}):o,a)),bi=gi({"node_modules/set-cookie-parser/lib/set-cookie.js"(a,e){var o={decodeValues:!0,map:!1,silent:!1};function i(l){return typeof l=="string"&&!!l.trim()}function s(l,x){var v=l.split(";").filter(i),p=v.shift(),z=u(p),f=z.name,j=z.value;x=x?Object.assign({},o,x):o;try{j=x.decodeValues?decodeURIComponent(j):j}catch(E){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+j+"'. Set options.decodeValues to false to disable this feature.",E)}var C={name:f,value:j};return v.forEach(function(E){var A=E.split("="),R=A.shift().trimLeft().toLowerCase(),F=A.join("=");R==="expires"?C.expires=new Date(F):R==="max-age"?C.maxAge=parseInt(F,10):R==="secure"?C.secure=!0:R==="httponly"?C.httpOnly=!0:R==="samesite"?C.sameSite=F:C[R]=F}),C}function u(l){var x="",v="",p=l.split("=");return p.length>1?(x=p.shift(),v=p.join("=")):v=l,{name:x,value:v}}function m(l,x){if(x=x?Object.assign({},o,x):o,!l)return x.map?{}:[];if(l.headers)if(typeof l.headers.getSetCookie=="function")l=l.headers.getSetCookie();else if(l.headers["set-cookie"])l=l.headers["set-cookie"];else{var v=l.headers[Object.keys(l.headers).find(function(z){return z.toLowerCase()==="set-cookie"})];!v&&l.headers.cookie&&!x.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),l=v}if(Array.isArray(l)||(l=[l]),x=x?Object.assign({},o,x):o,x.map){var p={};return l.filter(i).reduce(function(z,f){var j=s(f,x);return z[j.name]=j,z},p)}else return l.filter(i).map(function(z){return s(z,x)})}function r(l){if(Array.isArray(l))return l;if(typeof l!="string")return[];var x=[],v=0,p,z,f,j,C;function E(){for(;v<l.length&&/\s/.test(l.charAt(v));)v+=1;return v<l.length}function A(){return z=l.charAt(v),z!=="="&&z!==";"&&z!==","}for(;v<l.length;){for(p=v,C=!1;E();)if(z=l.charAt(v),z===","){for(f=v,v+=1,E(),j=v;v<l.length&&A();)v+=1;v<l.length&&l.charAt(v)==="="?(C=!0,v=j,x.push(l.substring(p,f)),p=v):v=f+1}else v+=1;(!C||v>=l.length)&&x.push(l.substring(p,l.length))}return x}e.exports=m,e.exports.parse=m,e.exports.parseString=s,e.exports.splitCookiesString=r}}),ji=fi(bi()),yi=/[^a-z0-9\-#$%&'*+.^_`|~]/i;function ve(a){if(yi.test(a)||a.trim()==="")throw new TypeError("Invalid character in header field name");return a.trim().toLowerCase()}var Me=[`
237
- `,"\r"," "," "],vi=new RegExp(`(^[${Me.join("")}]|$[${Me.join("")}])`,"g");function De(a){return a.replace(vi,"")}function we(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!wi(o))return!1}return!0}function wi(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function We(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var fe=Symbol("normalizedHeaders"),Oe=Symbol("rawHeaderNames"),$e=", ",He,Ge,Ve,xi=class ja{constructor(e){this[He]={},this[Ge]=new Map,this[Ve]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ja||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join($e):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join($e):i)})}[(He=fe,Ge=Oe,Ve=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[fe]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!we(e))throw new TypeError(`Invalid header name "${e}"`);return this[fe].hasOwnProperty(ve(e))}get(e){if(!we(e))throw TypeError(`Invalid header name "${e}"`);return this[fe][ve(e)]??null}set(e,o){if(!we(e)||!We(o))return;const i=ve(e),s=De(o);this[fe][i]=De(s),this[Oe].set(i,e)}append(e,o){if(!we(e)||!We(o))return;const i=ve(e),s=De(o);let u=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,u)}delete(e){if(!we(e)||!this.has(e))return;const o=ve(e);delete this[fe][o],this[Oe].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,ji.splitCookiesString)(e)}};const{message:zi}=Ke,Ei=Symbol("kSetCookie");function ge(a={}){const e=a?.status||200,o=a?.statusText||zi[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function Ci(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,Ei,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=xi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=ge(o);super(e,i),Ci(this,i)}static text(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=ge(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","application/octet-stream"),e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,ge(o))}}async function Si(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}Aa();const Ie={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},Ai={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.33"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
237
+ `,"\r"," "," "],vi=new RegExp(`(^[${Me.join("")}]|$[${Me.join("")}])`,"g");function De(a){return a.replace(vi,"")}function we(a){if(typeof a!="string"||a.length===0)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o>127||!wi(o))return!1}return!0}function wi(a){return![127,32,"(",")","<",">","@",",",";",":","\\",'"',"/","[","]","?","=","{","}"].includes(a)}function We(a){if(typeof a!="string"||a.trim()!==a)return!1;for(let e=0;e<a.length;e++){const o=a.charCodeAt(e);if(o===0||o===10||o===13)return!1}return!0}var fe=Symbol("normalizedHeaders"),Oe=Symbol("rawHeaderNames"),$e=", ",He,Ge,Ve,xi=class ja{constructor(e){this[He]={},this[Ge]=new Map,this[Ve]="Headers",["Headers","HeadersPolyfill"].includes(e?.constructor.name)||e instanceof ja||typeof globalThis.Headers<"u"&&e instanceof globalThis.Headers?e.forEach((i,s)=>{this.append(s,i)},this):Array.isArray(e)?e.forEach(([o,i])=>{this.append(o,Array.isArray(i)?i.join($e):i)}):e&&Object.getOwnPropertyNames(e).forEach(o=>{const i=e[o];this.append(o,Array.isArray(i)?i.join($e):i)})}[(He=fe,Ge=Oe,Ve=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*keys(){for(const[e]of this.entries())yield e}*values(){for(const[,e]of this.entries())yield e}*entries(){let e=Object.keys(this[fe]).sort((o,i)=>o.localeCompare(i));for(const o of e)if(o==="set-cookie")for(const i of this.getSetCookie())yield[o,i];else yield[o,this.get(o)]}has(e){if(!we(e))throw new TypeError(`Invalid header name "${e}"`);return this[fe].hasOwnProperty(ve(e))}get(e){if(!we(e))throw TypeError(`Invalid header name "${e}"`);return this[fe][ve(e)]??null}set(e,o){if(!we(e)||!We(o))return;const i=ve(e),s=De(o);this[fe][i]=De(s),this[Oe].set(i,e)}append(e,o){if(!we(e)||!We(o))return;const i=ve(e),s=De(o);let u=this.has(i)?`${this.get(i)}, ${s}`:s;this.set(e,u)}delete(e){if(!we(e)||!this.has(e))return;const o=ve(e);delete this[fe][o],this[Oe].delete(o)}forEach(e,o){for(const[i,s]of this.entries())e.call(o,s,i,this)}getSetCookie(){const e=this.get("set-cookie");return e===null?[]:e===""?[""]:(0,ji.splitCookiesString)(e)}};const{message:zi}=Ke,Ei=Symbol("kSetCookie");function ge(a={}){const e=a?.status||200,o=a?.statusText||zi[e]||"",i=new Headers(a?.headers);return{...a,headers:i,status:e,statusText:o}}function Ci(a,e){e.type&&Object.defineProperty(a,"type",{value:e.type,enumerable:!0,writable:!1});const o=e.headers.get("set-cookie");if(o&&(Object.defineProperty(a,Ei,{value:o,enumerable:!1,writable:!1}),typeof document<"u")){const i=xi.prototype.getSetCookie.call(e.headers);for(const s of i)document.cookie=s}return a}class oe extends Response{constructor(e,o){const i=ge(o);super(e,i),Ci(this,i)}static text(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/plain"),i.headers.has("Content-Length")||i.headers.set("Content-Length",e?new Blob([e]).size.toString():"0"),new oe(e,i)}static json(e,o){const i=ge(o);i.headers.has("Content-Type")||i.headers.set("Content-Type","application/json");const s=JSON.stringify(e);return i.headers.has("Content-Length")||i.headers.set("Content-Length",s?new Blob([s]).size.toString():"0"),new oe(s,i)}static xml(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/xml"),new oe(e,i)}static html(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","text/html"),new oe(e,i)}static arrayBuffer(e,o){const i=ge(o);return i.headers.has("Content-Type")||i.headers.set("Content-Type","application/octet-stream"),e&&!i.headers.has("Content-Length")&&i.headers.set("Content-Length",e.byteLength.toString()),new oe(e,i)}static formData(e,o){return new oe(e,ge(o))}}async function Si(a){let e;return e=a,new Promise(o=>setTimeout(o,e))}Aa();const Ie={count:1279,next:"https://pokeapi.co/api/v2/pokemon?offset=6&limit=6",previous:null,results:[{name:"bulbasaur",url:"https://pokeapi.co/api/v2/pokemon/1/"},{name:"ivysaur",url:"https://pokeapi.co/api/v2/pokemon/2/"},{name:"venusaur",url:"https://pokeapi.co/api/v2/pokemon/3/"},{name:"charmander",url:"https://pokeapi.co/api/v2/pokemon/4/"},{name:"charmeleon",url:"https://pokeapi.co/api/v2/pokemon/5/"},{name:"charizard",url:"https://pokeapi.co/api/v2/pokemon/6/"}]},Ai={_id:"@epa-wg/custom-element-dist",_rev:"5-df363ab4a2b9c478c01e021bde4fbafe",name:"@epa-wg/custom-element-dist","dist-tags":{latest:"0.0.34"},versions:{"0.0.1":{name:"@epa-wg/custom-element-dist",version:"0.0.1",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.1",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"161127f2bf1542178566db48bbb1a027ba7f7934",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.1.tgz",fileCount:284,integrity:"sha512-jTBBjhQClcRgF5GqI8+uYkNW6gkTjEjrolMU2JHQGplZI0Kwie3WrYeVuJA4uLuPWl8+Wl1o4YzhNP+sAJ31hw==",signatures:[{sig:"MEYCIQD492KdwBTQ5oKCJujOfPhUYeK6RgU8Kz08LIq0WwMZcQIhANM9RsGaJxzuRQ/B37c7M38u8UTKYbUFGNDC8AtKqGZu",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914279},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"85c02d4d1615a6290c4c17ba941d8847249f2a73",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.20"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.1_1715578030506_0.27588957883085974",host:"s3://npm-registry-packages"}},"0.0.21":{name:"@epa-wg/custom-element-dist",version:"0.0.21",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.21",maintainers:[{name:"sasha-firsov",email:"suns@simulationworks.com"}],homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"ae369434d0d1e91d75cdf7058dc11bea06948b0b",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.21.tgz",fileCount:284,integrity:"sha512-D8QHHebPInF54cdPt/iodLvj9jJ0x0ymQAiixozJEF6F+RpYfB2pP0Th7a7MYtmiNz7ZwVvFt3gPKYOHJr0Zbw==",signatures:[{sig:"MEUCIQCm0p45iVWRKqgrbRIWxSMWriqPQWyD+put0xpa2HNa1QIgTNiSZ8D/FkeRR+qSBmBmZZcCZPy/eUqAu54v2Y/dNtQ=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:8914288},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"4dacc9d66e328bebac2aac96c7671f0dca5d33ac",scripts:{t:"vitest --no-file-parallelism --watch=false src/stories/location-element.test.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.21"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.2.0",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.21_1715580074337_0.4062954016656166",host:"s3://npm-registry-packages"}},"0.0.22":{name:"@epa-wg/custom-element-dist",version:"0.0.22",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.22",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"5654ef0e06c4a2f4bc8657f9bf68becd96658185",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.22.tgz",fileCount:297,integrity:"sha512-GZCpXqUpw0em3cJQBFzslNMZ2NT+4iE7qTGTMuSQbYpv64O2sYD7Ako2NLfaxqV5CvpG9+wuUZBz61bhsV3Icw==",signatures:[{sig:"MEUCIQDxUQZIiLj+edd8dAvZxLQPD0CheOWyhq8ualBZYlSBeAIgOJ8jOcuW15+576FWBcP4Ocm6mTza8Q1j4LKyigIdLAY=",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9922734},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},gitHead:"98694b5a42508e316bf35a8bbdbddf66a8daaff9",scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/slots.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"git+https://github.com/EPA-WG/custom-element-dist.git",type:"git"},_npmVersion:"10.1.0",description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},_nodeVersion:"20.8.1",dependencies:{"@epa-wg/custom-element":"0.0.22"},_hasShrinkwrap:!1,devDependencies:{lit:"^3.1.3",msw:"^2.2.14",vite:"^5.3.1",vitest:"^1.6.0",storybook:"^8.0.10",playwright:"^1.43.1",typescript:"^5.2.2",webdriverio:"^8.36.1","coverage-svg":"^0.0.3","@storybook/test":"^8.0.10","@vitest/browser":"^1.6.0","@storybook/blocks":"^8.0.10","msw-storybook-addon":"^2.0.0","@storybook/addon-links":"^8.0.10","@storybook/test-runner":"^0.17.0","@chromatic-com/storybook":"^1.3.3","@storybook/addon-mdx-gfm":"8.0.10","@storybook/web-components":"^8.0.10","@vitest/coverage-istanbul":"^1.6.0","@storybook/addon-essentials":"^8.0.10","@storybook/addon-interactions":"^8.0.10","@storybook/web-components-vite":"^8.0.10"},_npmOperationalInternal:{tmp:"tmp/custom-element-dist_0.0.22_1719287752206_0.5878013133540891",host:"s3://npm-registry-packages"}},"0.0.23":{name:"@epa-wg/custom-element-dist",version:"0.0.23",keywords:["WebComponent","Declarative Custom Element","XSLT","JS","javascript"],author:{url:"https://blog.firsov.net/",name:"Sasha Firsov",email:"suns@simulationworks.com"},license:"Apache-2.0",_id:"@epa-wg/custom-element-dist@0.0.23",homepage:"https://github.com/EPA-WG/custom-element#readme",bugs:{url:"https://github.com/EPA-WG/custom-element/issues"},msw:{workerDirectory:["public"]},dist:{shasum:"e54f3f38d8f709d03ae03f34fd57afd1af30aa4d",tarball:"https://registry.npmjs.org/@epa-wg/custom-element-dist/-/custom-element-dist-0.0.23.tgz",fileCount:347,integrity:"sha512-YyCgqZ1qsOgMB80zW0GJSFoWLJQnrzcCCf71mITP5a0iS/jJdvS8Itd9TVfATVqiDSyl7n8ZPWD2DVcwYYC8AA==",signatures:[{sig:"MEQCIEeSlXnm5Mqwjste803lQPC7klLeaHMF2QL4H9oNuTkuAiBhnith5X/GNhwe2NjFRKZ3frip+UnoImD35YA4oHr3UA==",keyid:"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],unpackedSize:9805859},type:"module",exports:{".":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"},"./package.json":"./package.json","./custom-element":{import:"./dist/assets/custom-element-bundle.js",require:"./dist/assets/custom-element-bundle.cjs"}},funding:{url:"https://www.patreon.com/sashafirsov",type:"patreon"},scripts:{t:"vitest --no-file-parallelism --watch --browser.headless=false src/stories/attributes.test.stories.ts",sb:"yarn storybook",dev:"vite",test:"vitest --coverage.enabled --coverage.all --no-file-parallelism --watch=false",build:"tsc && vite build",preview:"vite preview",storybook:"storybook dev -p 6006","test:watch":"vitest --inspect-brk --no-file-parallelism --browser.headless=false --test-timeout=0",postinstall:"bash bin/postinstall.sh",prepublishOnly:"bash bin/build.sh","test:storybook":"test-storybook","build-storybook":"storybook build"},_npmUser:{name:"sasha-firsov",email:"suns@simulationworks.com"},"web-types":["./src/custom-element/ide/web-types-dce.json","./src/custom-element/ide/web-types-xsl.json"],repository:{url:"https://github.com/EPA-WG/custom-element-dist.git",type:"git"},description:"Binary distribution for [@epa-wg/custom-element][git-url] with StoryBook and test coverage",directories:{},licenseText:` Apache License
238
238
  Version 2.0, January 2004
239
239
  http://www.apache.org/licenses/
240
240
 
@@ -0,0 +1 @@
1
+ const o=(l,e)=>l.getAttribute(e);class u extends HTMLElement{static observedAttributes=["value","slice","url","method","header-accept"];get requestHeaders(){const e={};return[...this.attributes].filter(t=>t.name.startsWith("header-")).map(t=>e[t.name.substring(7)]=t.value),e}get requestProps(){const e={};return[...this.attributes].filter(t=>!t.name.startsWith("header-")).filter(t=>!t.name.startsWith("slice")).map(t=>e[t.name]=t.value),e}disconnectedCallback(){this.#t?.()}connectedCallback(){setTimeout(()=>this.fetch(),0)}#e="";#t=()=>{};async fetch(){if(!this.closest("body"))return;const e=o(this,"url")||"";if(!e)return this.#t?.(),this.value={};if(this.#e===e)return;this.#e=e;const t=new AbortController;this.#t=()=>{t.abort(this.localName+" disconnected"),this.#e=""};const a={...this.requestProps,headers:this.requestHeaders},i={request:a},n=()=>this.dispatchEvent(new Event("change"));this.value=i,n();const c=await fetch(e,{...this.requestProps,signal:t.signal,headers:this.requestHeaders}),r={headers:{}};if([...c.headers].map(([s,h])=>r.headers[s]=h),"ok,status,statusText,type,url,redirected".split(",").map(s=>r[s]=c[s]),i.response=r,n(),r.headers["content-type"]?.includes("json"))try{i.data=await c.json(),n()}catch{}if(r.headers["content-type"]?.includes("xml"))try{const s=await c.text(),h=new DOMParser;i.data=h.parseFromString(s,"application/xml")?.documentElement,n()}catch{}}attributeChangedCallback(e,t,a){e==="url"&&t!==a&&(t&&this.#t?.(),a?setTimeout(()=>this.fetch(),10):(this.value={},setTimeout(()=>this.dispatchEvent(new Event("change")),10)))}}window.customElements.define("http-request",u);
@@ -1,4 +1,4 @@
1
- import{w as m,e as t}from"./index-Dr4PwNfd.js";import"./custom-element-CPnvJnn8.js";import"./http-request-DNq59pnj.js";import{h as p}from"./handlers-CLkps6Nz.js";const v={title:"",slice:"page",url:"/pokemon?limit=6"};function r(a){return new Promise(e=>setTimeout(e,a))}function f({title:a,slice:e,url:n}){return`
1
+ import{w as m,e as t}from"./index-CGuyH0k-.js";import"./custom-element-Bwx7otrT.js";import"./http-request-BWeEEBkP.js";import{h as p}from"./handlers-F7GUfMqr.js";const v={title:"",slice:"page",url:"/pokemon?limit=6"};function r(a){return new Promise(e=>setTimeout(e,a))}function f({title:a,slice:e,url:n}){return`
2
2
  <fieldset>
3
3
  <legend>${a}</legend>
4
4
  <custom-element>