@cas-smartdesign/radio-button-group 4.4.0 → 5.0.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.
package/dist/docs/doc.mjs CHANGED
@@ -1,7 +1,22 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const t of document.querySelectorAll('link[rel="modulepreload"]'))r(t);new MutationObserver(t=>{for(const c of t)if(c.type==="childList")for(const l of c.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function i(t){const c={};return t.integrity&&(c.integrity=t.integrity),t.referrerPolicy&&(c.referrerPolicy=t.referrerPolicy),t.crossOrigin==="use-credentials"?c.credentials="include":t.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(t){if(t.ep)return;t.ep=!0;const c=i(t);fetch(t.href,c)}})();const zr=`<!-- Load element with all dependencies directly -->
2
- <script src="./radio-button-group-with-externals.js"><\/script>
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=`div {
2
+ margin-top: 8px;
3
+ }
4
+
5
+ sd-radio-button-group {
6
+ --sd-radio-button-group-gap: 16px;
7
+ }
8
+
9
+ sd-radio-button-group.colorful {
10
+ --sd-radio-button-group-gap: 10px;
11
+ }
3
12
 
4
- <div class="example-root">
13
+ sd-radio-button-group.colorful sd-radio-button {
14
+ --sd-radio-button-padding: 0;
15
+ --sd-radio-button-checked-color: #ff6b11;
16
+ --sd-radio-button-highlight-color: #cc0017;
17
+ --sd-radio-button-unchecked-color: #8abd0c;
18
+ }
19
+ `,d=`<div class="example-root">
5
20
  <div>
6
21
  <b>Horizontal</b>
7
22
  <sd-radio-button-group tabindex="0" validationlevel="warn" validationMessage="Don't forget to fill this">
@@ -21,29 +36,16 @@
21
36
  </sd-radio-button-group>
22
37
  </div>
23
38
  </div>
24
- `,Ur=`<h3 id="declarative-example">Declarative example</h3>
25
- `,qr=`div {
39
+ `,f=`<h3 id="declarative-example">Declarative example</h3>
40
+ `,p=s({default:()=>m}),m={mainContent:d,description:f,css:u},h=`b {
41
+ display: block;
26
42
  margin-top: 8px;
27
43
  }
28
44
 
29
- sd-radio-button-group {
30
- --sd-radio-button-group-gap: 16px;
31
- }
32
-
33
- sd-radio-button-group.colorful {
34
- --sd-radio-button-group-gap: 10px;
35
- }
36
-
37
- sd-radio-button-group.colorful sd-radio-button {
38
- --sd-radio-button-padding: 0;
39
- --sd-radio-button-checked-color: #ff6b11;
40
- --sd-radio-button-highlight-color: #cc0017;
41
- --sd-radio-button-unchecked-color: #8abd0c;
45
+ sd-radio-button {
46
+ margin-right: 16px;
42
47
  }
43
- `,Hr={mainContent:zr,description:Ur,css:qr},Fr=Object.freeze(Object.defineProperty({__proto__:null,default:Hr},Symbol.toStringTag,{value:"Module"})),Wr=`<!-- Load element with all dependencies directly -->
44
- <script src="./radio-button-group-with-externals.js"><\/script>
45
-
46
- <div class="example-root">
48
+ `,g=`<div class="example-root">
47
49
  <b>All disabled</b>
48
50
  <sd-radio-button-group disabled tabindex="0">
49
51
  <sd-radio-button value="britta" label="Britta"></sd-radio-button>
@@ -68,38 +70,39 @@ sd-radio-button-group.colorful sd-radio-button {
68
70
  <sd-radio-button value="robert" label="Robert"></sd-radio-button>
69
71
  </sd-radio-button-group>
70
72
  </div>
71
- `,Gr=`<h3 id="disabled-example">Disabled example</h3>
72
- `,Vr=`b {
73
- display: block;
74
- margin-top: 8px;
75
- }
76
-
77
- sd-radio-button {
78
- margin-right: 16px;
79
- }
80
- `,Zr={mainContent:Wr,description:Gr,css:Vr},Kr=Object.freeze(Object.defineProperty({__proto__:null,default:Zr},Symbol.toStringTag,{value:"Module"})),Jr=`<!-- Load element with all dependencies directly -->
81
- <script src="./radio-button-group-with-externals.js"><\/script>
82
-
83
- <div class="example-root">
73
+ `,_=`<h3 id="disabled-example">Disabled example</h3>
74
+ `,v=s({default:()=>y}),y={mainContent:g,description:_,css:h},b=`<div class="example-root">
84
75
  <sd-radio-button-group tabindex="0" layout="vertical">
85
76
  <sd-radio-button
86
77
  checked
87
78
  value="value-1"
88
- label="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Velit euismod in pellentesque massa placerat duis ultricies lacus sed. Dictumst quisque sagittis purus sit amet volutpat. Consectetur adipiscing elit pellentesque habitant morbi tristique senectus et. Facilisi morbi tempus iaculis urna id volutpat lacus laoreet non. Nulla facilisi morbi tempus iaculis urna id. Quam nulla porttitor massa id neque. Tortor pretium viverra suspendisse potenti nullam ac tortor. Sagittis aliquam malesuada bibendum arcu. Volutpat ac tincidunt vitae semper quis. Augue interdum velit euismod in. Sit amet mattis vulputate enim nulla aliquet. Proin nibh nisl condimentum id venenatis a condimentum vitae. Nulla at volutpat diam ut venenatis tellus in metus vulputate. Euismod nisi porta lorem mollis aliquam ut."></sd-radio-button>
79
+ label="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Velit euismod in pellentesque massa placerat duis ultricies lacus sed. Dictumst quisque sagittis purus sit amet volutpat. Consectetur adipiscing elit pellentesque habitant morbi tristique senectus et. Facilisi morbi tempus iaculis urna id volutpat lacus laoreet non. Nulla facilisi morbi tempus iaculis urna id. Quam nulla porttitor massa id neque. Tortor pretium viverra suspendisse potenti nullam ac tortor. Sagittis aliquam malesuada bibendum arcu. Volutpat ac tincidunt vitae semper quis. Augue interdum velit euismod in. Sit amet mattis vulputate enim nulla aliquet. Proin nibh nisl condimentum id venenatis a condimentum vitae. Nulla at volutpat diam ut venenatis tellus in metus vulputate. Euismod nisi porta lorem mollis aliquam ut."
80
+ ></sd-radio-button>
89
81
  <sd-radio-button
90
82
  value="value-2"
91
- label="Mattis aliquam faucibus purus in massa tempor nec feugiat nisl. Mauris vitae ultricies leo integer malesuada. Vel quam elementum pulvinar etiam non quam lacus. Odio eu feugiat pretium nibh ipsum consequat nisl. Feugiat nisl pretium fusce id velit ut tortor pretium. Velit ut tortor pretium viverra suspendisse potenti. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Ac placerat vestibulum lectus mauris ultrices eros in cursus turpis. Diam vulputate ut pharetra sit amet aliquam id. Ipsum suspendisse ultrices gravida dictum fusce ut. Amet risus nullam eget felis eget. In fermentum et sollicitudin ac. Cursus sit amet dictum sit. Imperdiet proin fermentum leo vel orci porta non pulvinar neque."></sd-radio-button>
83
+ label="Mattis aliquam faucibus purus in massa tempor nec feugiat nisl. Mauris vitae ultricies leo integer malesuada. Vel quam elementum pulvinar etiam non quam lacus. Odio eu feugiat pretium nibh ipsum consequat nisl. Feugiat nisl pretium fusce id velit ut tortor pretium. Velit ut tortor pretium viverra suspendisse potenti. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Ac placerat vestibulum lectus mauris ultrices eros in cursus turpis. Diam vulputate ut pharetra sit amet aliquam id. Ipsum suspendisse ultrices gravida dictum fusce ut. Amet risus nullam eget felis eget. In fermentum et sollicitudin ac. Cursus sit amet dictum sit. Imperdiet proin fermentum leo vel orci porta non pulvinar neque."
84
+ ></sd-radio-button>
92
85
  <sd-radio-button
93
86
  value="value-3"
94
- label="Aliquam vestibulum morbi blandit cursus risus at ultrices mi. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Aliquet bibendum enim facilisis gravida neque. Duis convallis convallis tellus id. Nunc congue nisi vitae suscipit tellus mauris. Sit amet purus gravida quis blandit turpis cursus. Mauris cursus mattis molestie a iaculis at erat. Justo nec ultrices dui sapien eget mi. Pellentesque habitant morbi tristique senectus et. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Suspendisse sed nisi lacus sed viverra. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. Risus sed vulputate odio ut enim. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae."></sd-radio-button>
87
+ label="Aliquam vestibulum morbi blandit cursus risus at ultrices mi. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Aliquet bibendum enim facilisis gravida neque. Duis convallis convallis tellus id. Nunc congue nisi vitae suscipit tellus mauris. Sit amet purus gravida quis blandit turpis cursus. Mauris cursus mattis molestie a iaculis at erat. Justo nec ultrices dui sapien eget mi. Pellentesque habitant morbi tristique senectus et. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Suspendisse sed nisi lacus sed viverra. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. Risus sed vulputate odio ut enim. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae."
88
+ ></sd-radio-button>
95
89
  <sd-radio-button
96
90
  oneline
97
91
  value="value-3"
98
- label="[oneline] Aliquam vestibulum morbi blandit cursus risus at ultrices mi. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Aliquet bibendum enim facilisis gravida neque. Duis convallis convallis tellus id. Nunc congue nisi vitae suscipit tellus mauris. Sit amet purus gravida quis blandit turpis cursus. Mauris cursus mattis molestie a iaculis at erat. Justo nec ultrices dui sapien eget mi. Pellentesque habitant morbi tristique senectus et. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Suspendisse sed nisi lacus sed viverra. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. Risus sed vulputate odio ut enim. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae."></sd-radio-button>
92
+ label="[oneline] Aliquam vestibulum morbi blandit cursus risus at ultrices mi. Viverra mauris in aliquam sem fringilla ut morbi tincidunt. Aliquet bibendum enim facilisis gravida neque. Duis convallis convallis tellus id. Nunc congue nisi vitae suscipit tellus mauris. Sit amet purus gravida quis blandit turpis cursus. Mauris cursus mattis molestie a iaculis at erat. Justo nec ultrices dui sapien eget mi. Pellentesque habitant morbi tristique senectus et. Interdum posuere lorem ipsum dolor sit amet consectetur adipiscing elit. Suspendisse sed nisi lacus sed viverra. Aenean vel elit scelerisque mauris pellentesque pulvinar pellentesque habitant morbi. Risus sed vulputate odio ut enim. Pulvinar elementum integer enim neque volutpat ac tincidunt vitae."
93
+ ></sd-radio-button>
99
94
  </sd-radio-button-group>
100
95
  </div>
101
- `,Xr=`<h3 id="vertical-group-with-long-text">Vertical group with long text</h3>
102
- `,Qr={mainContent:Jr,description:Xr},Yr=Object.freeze(Object.defineProperty({__proto__:null,default:Qr},Symbol.toStringTag,{value:"Module"})),es="modulepreload",ts=function(n,e){return new URL(n,e).href},Zi={},Ln=function(e,i,r){let t=Promise.resolve();if(i&&i.length>0){let d=function(s){return Promise.all(s.map(u=>Promise.resolve(u).then(a=>({status:"fulfilled",value:a}),a=>({status:"rejected",reason:a}))))};const l=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),b=p?.nonce||p?.getAttribute("nonce");t=d(i.map(s=>{if(s=ts(s,r),s in Zi)return;Zi[s]=!0;const u=s.endsWith(".css"),a=u?'[rel="stylesheet"]':"";if(r)for(let f=l.length-1;f>=0;f--){const g=l[f];if(g.href===s&&(!u||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const o=document.createElement("link");if(o.rel=u?"stylesheet":es,u||(o.as="script"),o.crossOrigin="",o.href=s,b&&o.setAttribute("nonce",b),document.head.appendChild(o),u)return new Promise((f,g)=>{o.addEventListener("load",f),o.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})}))}function c(l){const p=new Event("vite:preloadError",{cancelable:!0});if(p.payload=l,window.dispatchEvent(p),!p.defaultPrevented)throw l}return t.then(l=>{for(const p of l||[])p.status==="rejected"&&c(p.reason);return e().catch(c)})},is=`<div id="validation-example-root">
96
+ `,x=`<h3 id="vertical-group-with-long-text">Vertical group with long text</h3>
97
+ `,S=s({default:()=>C}),C={mainContent:b,description:x},w=`sd-radio-button-group {
98
+ display: block;
99
+ min-height: 64px; /* Have space for the validation message */
100
+ }
101
+
102
+ sd-radio-button {
103
+ margin-right: 16px;
104
+ }
105
+ `,T=`<div id="validation-example-root">
103
106
  <b>Error</b>
104
107
  <sd-radio-button-group tabindex="0" validationlevel="error">
105
108
  <sd-radio-button value="britta" label="Britta"></sd-radio-button>
@@ -122,43 +125,30 @@ sd-radio-button {
122
125
  <sd-radio-button value="robert" label="Robert"></sd-radio-button>
123
126
  </sd-radio-button-group>
124
127
  </div>
125
- `,ns=`<h3 id="validation-example">Validation example</h3>
126
- `,rs=`sd-radio-button-group {
127
- display: block;
128
- min-height: 64px; /* Have space for the validation message */
129
- }
130
-
131
- sd-radio-button {
132
- margin-right: 16px;
133
- }
134
- `,ss=`import "@cas-smartdesign/radio-button-group";
135
- import { IValueChangeEvent, RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
128
+ `,E=`<h3 id="validation-example">Validation example</h3>
129
+ `,D=`import "@cas-smartdesign/radio-button-group";
130
+ import { type IValueChangeEvent, RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
136
131
 
137
132
  document
138
- .querySelectorAll("#validation-example-root sd-radio-button-group")
139
- .forEach((radioButtonGroup: RadioButtonGroup) => {
133
+ .querySelectorAll<RadioButtonGroup>("#validation-example-root sd-radio-button-group")
134
+ .forEach((radioButtonGroup) => {
140
135
  radioButtonGroup.layout = "horizontal";
141
- radioButtonGroup.addEventListener("value-change", (event: CustomEvent<IValueChangeEvent>) =>
142
- onValueChange(event.detail.value, event.detail.selectedIndex),
136
+ radioButtonGroup.addEventListener(
137
+ "sd-radio-button-group-value-change",
138
+ (event: CustomEvent<IValueChangeEvent>) => onValueChange(event.detail.value, event.detail.selectedIndex),
143
139
  );
144
140
 
145
141
  onValueChange(radioButtonGroup.value, -1);
146
142
 
147
- function onValueChange(value: string, selectedIndex: number) {
148
- let validationMessage: string;
143
+ function onValueChange(_value: string | undefined, selectedIndex: number) {
144
+ let validationMessage: string | undefined = "";
149
145
  if (selectedIndex == -1) {
150
146
  validationMessage = "An option must be selected";
151
147
  }
152
148
  radioButtonGroup.validationMessage = validationMessage;
153
149
  }
154
150
  });
155
- `,os={mainContent:is,description:ns,css:rs,initializer:{content:ss,type:"typescript",initialize:()=>Ln(()=>import("./4_validation.js"),[],import.meta.url)}},as=Object.freeze(Object.defineProperty({__proto__:null,default:os},Symbol.toStringTag,{value:"Module"})),ls=`<div id="segmented-button-example-root">
156
- <sd-radio-button-group tabindex="0" uncheck-allowed validationlevel="error"> </sd-radio-button-group>
157
- <div><span>Selected value: </span><span id="selected-value"></span></div>
158
- <div><span>Selected index: </span><span id="selected-index"></span></div>
159
- </div>
160
- `,cs=`<h3 id="segmented-button">Segmented button</h3>
161
- `,us=`sd-radio-button-group {
151
+ `,O=`modulepreload`,k=function(e,t){return new URL(e,t).href},A={},j=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=k(t,n),t in A)return;A[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:O,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},M=s({default:()=>N}),N={mainContent:T,description:E,css:w,initializer:{content:D,type:`typescript`,initialize:()=>j(()=>import(`./4_validation.js`),[],import.meta.url)}},P=`sd-radio-button-group {
162
152
  display: block;
163
153
  min-height: 64px; /* Have space for the validation message */
164
154
  }
@@ -179,10 +169,16 @@ sd-button[checked] .indicator {
179
169
  border-radius: 8px;
180
170
  border: 1px solid transparent;
181
171
  }
182
- `,ds=`import "@cas-smartdesign/button";
172
+ `,F=`<div id="segmented-button-example-root">
173
+ <sd-radio-button-group tabindex="0" uncheck-allowed validationlevel="error"> </sd-radio-button-group>
174
+ <div><span>Selected value: </span><span id="selected-value"></span></div>
175
+ <div><span>Selected index: </span><span id="selected-index"></span></div>
176
+ </div>
177
+ `,I=`<h3 id="segmented-button">Segmented button</h3>
178
+ `,L=`import "@cas-smartdesign/button";
183
179
  import "@cas-smartdesign/radio-button-group";
184
180
  import { Button } from "@cas-smartdesign/button";
185
- import { IValueChangeEvent, RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
181
+ import { RadioButtonGroup } from "@cas-smartdesign/radio-button-group";
186
182
 
187
183
  type Option = {
188
184
  value: string;
@@ -214,7 +210,7 @@ const options: Option[] = [
214
210
  },
215
211
  ];
216
212
 
217
- const container = document.querySelector("#segmented-button-example-root");
213
+ const container = document.querySelector("#segmented-button-example-root")!;
218
214
  const valueElement = container.querySelector("#selected-value") as HTMLSpanElement;
219
215
  const indexElement = container.querySelector("#selected-index") as HTMLSpanElement;
220
216
  const radioButtonGroup = container.querySelector("sd-radio-button-group") as RadioButtonGroup;
@@ -237,14 +233,18 @@ options.forEach((option) => {
237
233
  });
238
234
 
239
235
  radioButtonGroup.layout = "horizontal";
240
- radioButtonGroup.addEventListener("value-change", (event: CustomEvent<IValueChangeEvent>) =>
236
+ radioButtonGroup.addEventListener("sd-radio-button-group-value-change", (event) =>
241
237
  onValueChange(event.detail.value, event.detail.selectedIndex),
242
238
  );
243
239
  onValueChange(radioButtonGroup.value, -1);
244
240
 
245
- function onValueChange(value: string, selectedIndex: number) {
246
- options.forEach((option, index) => (option.button.primary = index == selectedIndex));
247
- let validationMessage: string;
241
+ function onValueChange(value: string | undefined, selectedIndex: number) {
242
+ options.forEach((option, index) => {
243
+ if (option.button) {
244
+ option.button.primary = index == selectedIndex;
245
+ }
246
+ });
247
+ let validationMessage: string | undefined = undefined;
248
248
  if (selectedIndex == -1) {
249
249
  validationMessage = "An option must be selected";
250
250
  }
@@ -252,11 +252,12 @@ function onValueChange(value: string, selectedIndex: number) {
252
252
  valueElement.innerText = value || "<unselected>";
253
253
  indexElement.innerText = selectedIndex?.toString();
254
254
  }
255
- `,hs={mainContent:ls,description:cs,css:us,initializer:{content:ds,type:"typescript",initialize:()=>Ln(()=>import("./5_segmented_button.js"),[],import.meta.url)}},fs=Object.freeze(Object.defineProperty({__proto__:null,default:hs},Symbol.toStringTag,{value:"Module"}));const pt=globalThis,bi=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yi=Symbol(),Ki=new WeakMap;let jn=class{constructor(e,i,r){if(this._$cssResult$=!0,r!==yi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=i}get styleSheet(){let e=this.o;const i=this.t;if(bi&&e===void 0){const r=i!==void 0&&i.length===1;r&&(e=Ki.get(i)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&Ki.set(i,e))}return e}toString(){return this.cssText}};const wt=n=>new jn(typeof n=="string"?n:n+"",void 0,yi),vi=(n,...e)=>{const i=n.length===1?n[0]:e.reduce(((r,t,c)=>r+(l=>{if(l._$cssResult$===!0)return l.cssText;if(typeof l=="number")return l;throw Error("Value passed to 'css' function must be a 'css' function result: "+l+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(t)+n[c+1]),n[0]);return new jn(i,n,yi)},ps=(n,e)=>{if(bi)n.adoptedStyleSheets=e.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of e){const r=document.createElement("style"),t=pt.litNonce;t!==void 0&&r.setAttribute("nonce",t),r.textContent=i.cssText,n.appendChild(r)}},Ji=bi?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let i="";for(const r of e.cssRules)i+=r.cssText;return wt(i)})(n):n;const{is:gs,defineProperty:ms,getOwnPropertyDescriptor:bs,getOwnPropertyNames:ys,getOwnPropertySymbols:vs,getPrototypeOf:ws}=Object,xt=globalThis,Xi=xt.trustedTypes,xs=Xi?Xi.emptyScript:"",_s=xt.reactiveElementPolyfillSupport,Ze=(n,e)=>n,mt={toAttribute(n,e){switch(e){case Boolean:n=n?xs:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let i=n;switch(e){case Boolean:i=n!==null;break;case Number:i=n===null?null:Number(n);break;case Object:case Array:try{i=JSON.parse(n)}catch{i=null}}return i}},wi=(n,e)=>!gs(n,e),Qi={attribute:!0,type:String,converter:mt,reflect:!1,useDefault:!1,hasChanged:wi};Symbol.metadata??=Symbol("metadata"),xt.litPropertyMetadata??=new WeakMap;let De=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,i=Qi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(e,i),!i.noAccessor){const r=Symbol(),t=this.getPropertyDescriptor(e,r,i);t!==void 0&&ms(this.prototype,e,t)}}static getPropertyDescriptor(e,i,r){const{get:t,set:c}=bs(this.prototype,e)??{get(){return this[i]},set(l){this[i]=l}};return{get:t,set(l){const p=t?.call(this);c?.call(this,l),this.requestUpdate(e,p,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qi}static _$Ei(){if(this.hasOwnProperty(Ze("elementProperties")))return;const e=ws(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ze("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ze("properties"))){const i=this.properties,r=[...ys(i),...vs(i)];for(const t of r)this.createProperty(t,i[t])}const e=this[Symbol.metadata];if(e!==null){const i=litPropertyMetadata.get(e);if(i!==void 0)for(const[r,t]of i)this.elementProperties.set(r,t)}this._$Eh=new Map;for(const[i,r]of this.elementProperties){const t=this._$Eu(i,r);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const i=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const t of r)i.unshift(Ji(t))}else e!==void 0&&i.push(Ji(e));return i}static _$Eu(e,i){const r=i.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.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((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,i=this.constructor.elementProperties;for(const r of i.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ps(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,i,r){this._$AK(e,r)}_$ET(e,i){const r=this.constructor.elementProperties.get(e),t=this.constructor._$Eu(e,r);if(t!==void 0&&r.reflect===!0){const c=(r.converter?.toAttribute!==void 0?r.converter:mt).toAttribute(i,r.type);this._$Em=e,c==null?this.removeAttribute(t):this.setAttribute(t,c),this._$Em=null}}_$AK(e,i){const r=this.constructor,t=r._$Eh.get(e);if(t!==void 0&&this._$Em!==t){const c=r.getPropertyOptions(t),l=typeof c.converter=="function"?{fromAttribute:c.converter}:c.converter?.fromAttribute!==void 0?c.converter:mt;this._$Em=t;const p=l.fromAttribute(i,c.type);this[t]=p??this._$Ej?.get(t)??p,this._$Em=null}}requestUpdate(e,i,r){if(e!==void 0){const t=this.constructor,c=this[e];if(r??=t.getPropertyOptions(e),!((r.hasChanged??wi)(c,i)||r.useDefault&&r.reflect&&c===this._$Ej?.get(e)&&!this.hasAttribute(t._$Eu(e,r))))return;this.C(e,i,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,i,{useDefault:r,reflect:t,wrapped:c},l){r&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,l??i??this[e]),c!==!0||l!==void 0)||(this._$AL.has(e)||(this.hasUpdated||r||(i=void 0),this._$AL.set(e,i)),t===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,c]of this._$Ep)this[t]=c;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[t,c]of r){const{wrapped:l}=c,p=this[t];l!==!0||this._$AL.has(t)||p===void 0||this.C(t,void 0,c,p)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),this._$EO?.forEach((r=>r.hostUpdate?.())),this.update(i)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(i)}willUpdate(e){}_$AE(e){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(e){}firstUpdated(e){}};De.elementStyles=[],De.shadowRootOptions={mode:"open"},De[Ze("elementProperties")]=new Map,De[Ze("finalized")]=new Map,_s?.({ReactiveElement:De}),(xt.reactiveElementVersions??=[]).push("2.1.1");const xi=globalThis,bt=xi.trustedTypes,Yi=bt?bt.createPolicy("lit-html",{createHTML:n=>n}):void 0,Bn="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,Dn="?"+xe,Es=`<${Dn}>`,$e=document,Je=()=>$e.createComment(""),Xe=n=>n===null||typeof n!="object"&&typeof n!="function",_i=Array.isArray,Ss=n=>_i(n)||typeof n?.[Symbol.iterator]=="function",zt=`[
256
- \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,en=/-->/g,tn=/>/g,Ce=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
257
- \f\r"'\`<>=]|("|')|))|$)`,"g"),nn=/'/g,rn=/"/g,zn=/^(?:script|style|textarea|title)$/i,As=n=>(e,...i)=>({_$litType$:n,strings:e,values:i}),Qe=As(1),ze=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),sn=new WeakMap,Oe=$e.createTreeWalker($e,129);function Un(n,e){if(!_i(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(e):e}const ks=(n,e)=>{const i=n.length-1,r=[];let t,c=e===2?"<svg>":e===3?"<math>":"",l=Ge;for(let p=0;p<i;p++){const b=n[p];let d,s,u=-1,a=0;for(;a<b.length&&(l.lastIndex=a,s=l.exec(b),s!==null);)a=l.lastIndex,l===Ge?s[1]==="!--"?l=en:s[1]!==void 0?l=tn:s[2]!==void 0?(zn.test(s[2])&&(t=RegExp("</"+s[2],"g")),l=Ce):s[3]!==void 0&&(l=Ce):l===Ce?s[0]===">"?(l=t??Ge,u=-1):s[1]===void 0?u=-2:(u=l.lastIndex-s[2].length,d=s[1],l=s[3]===void 0?Ce:s[3]==='"'?rn:nn):l===rn||l===nn?l=Ce:l===en||l===tn?l=Ge:(l=Ce,t=void 0);const o=l===Ce&&n[p+1].startsWith("/>")?" ":"";c+=l===Ge?b+Es:u>=0?(r.push(d),b.slice(0,u)+Bn+b.slice(u)+xe+o):b+xe+(u===-2?p:o)}return[Un(n,c+(n[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Ye{constructor({strings:e,_$litType$:i},r){let t;this.parts=[];let c=0,l=0;const p=e.length-1,b=this.parts,[d,s]=ks(e,i);if(this.el=Ye.createElement(d,r),Oe.currentNode=this.el.content,i===2||i===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(t=Oe.nextNode())!==null&&b.length<p;){if(t.nodeType===1){if(t.hasAttributes())for(const u of t.getAttributeNames())if(u.endsWith(Bn)){const a=s[l++],o=t.getAttribute(u).split(xe),f=/([.?@])?(.*)/.exec(a);b.push({type:1,index:c,name:f[2],strings:o,ctor:f[1]==="."?Os:f[1]==="?"?Rs:f[1]==="@"?$s:_t}),t.removeAttribute(u)}else u.startsWith(xe)&&(b.push({type:6,index:c}),t.removeAttribute(u));if(zn.test(t.tagName)){const u=t.textContent.split(xe),a=u.length-1;if(a>0){t.textContent=bt?bt.emptyScript:"";for(let o=0;o<a;o++)t.append(u[o],Je()),Oe.nextNode(),b.push({type:2,index:++c});t.append(u[a],Je())}}}else if(t.nodeType===8)if(t.data===Dn)b.push({type:2,index:c});else{let u=-1;for(;(u=t.data.indexOf(xe,u+1))!==-1;)b.push({type:7,index:c}),u+=xe.length-1}c++}}static createElement(e,i){const r=$e.createElement("template");return r.innerHTML=e,r}}function Ue(n,e,i=n,r){if(e===ze)return e;let t=r!==void 0?i._$Co?.[r]:i._$Cl;const c=Xe(e)?void 0:e._$litDirective$;return t?.constructor!==c&&(t?._$AO?.(!1),c===void 0?t=void 0:(t=new c(n),t._$AT(n,i,r)),r!==void 0?(i._$Co??=[])[r]=t:i._$Cl=t),t!==void 0&&(e=Ue(n,t._$AS(n,e.values),t,r)),e}class Cs{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:i},parts:r}=this._$AD,t=(e?.creationScope??$e).importNode(i,!0);Oe.currentNode=t;let c=Oe.nextNode(),l=0,p=0,b=r[0];for(;b!==void 0;){if(l===b.index){let d;b.type===2?d=new tt(c,c.nextSibling,this,e):b.type===1?d=new b.ctor(c,b.name,b.strings,this,e):b.type===6&&(d=new Ms(c,this,e)),this._$AV.push(d),b=r[++p]}l!==b?.index&&(c=Oe.nextNode(),l++)}return Oe.currentNode=$e,t}p(e){let i=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}}class tt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,t){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Ue(this,e,i),Xe(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==ze&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ss(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==te&&Xe(this._$AH)?this._$AA.nextSibling.data=e:this.T($e.createTextNode(e)),this._$AH=e}$(e){const{values:i,_$litType$:r}=e,t=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=Ye.createElement(Un(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===t)this._$AH.p(i);else{const c=new Cs(t,this),l=c.u(this.options);c.p(i),this.T(l),this._$AH=c}}_$AC(e){let i=sn.get(e.strings);return i===void 0&&sn.set(e.strings,i=new Ye(e)),i}k(e){_i(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let r,t=0;for(const c of e)t===i.length?i.push(r=new tt(this.O(Je()),this.O(Je()),this,this.options)):r=i[t],r._$AI(c),t++;t<i.length&&(this._$AR(r&&r._$AB.nextSibling,t),i.length=t)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){const r=e.nextSibling;e.remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,t,c){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=i,this._$AM=t,this.options=c,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=te}_$AI(e,i=this,r,t){const c=this.strings;let l=!1;if(c===void 0)e=Ue(this,e,i,0),l=!Xe(e)||e!==this._$AH&&e!==ze,l&&(this._$AH=e);else{const p=e;let b,d;for(e=c[0],b=0;b<c.length-1;b++)d=Ue(this,p[r+b],i,b),d===ze&&(d=this._$AH[b]),l||=!Xe(d)||d!==this._$AH[b],d===te?e=te:e!==te&&(e+=(d??"")+c[b+1]),this._$AH[b]=d}l&&!t&&this.j(e)}j(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Os extends _t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===te?void 0:e}}class Rs extends _t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==te)}}class $s extends _t{constructor(e,i,r,t,c){super(e,i,r,t,c),this.type=5}_$AI(e,i=this){if((e=Ue(this,e,i,0)??te)===ze)return;const r=this._$AH,t=e===te&&r!==te||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,c=e!==te&&(r===te||t);t&&this.element.removeEventListener(this.name,this,r),c&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}let Ms=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ue(this,e)}};const Ps=xi.litHtmlPolyfillSupport;Ps?.(Ye,tt),(xi.litHtmlVersions??=[]).push("3.3.1");const Ns=(n,e,i)=>{const r=i?.renderBefore??e;let t=r._$litPart$;if(t===void 0){const c=i?.renderBefore??null;r._$litPart$=t=new tt(e.insertBefore(Je(),c),c,void 0,i??{})}return t._$AI(n),t};const Ei=globalThis;class Re extends De{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ns(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ze}}Re._$litElement$=!0,Re.finalized=!0,Ei.litElementHydrateSupport?.({LitElement:Re});const Is=Ei.litElementPolyfillSupport;Is?.({LitElement:Re});(Ei.litElementVersions??=[]).push("4.2.1");const Ts={attribute:!0,type:String,converter:mt,reflect:!1,hasChanged:wi},Ls=(n=Ts,e,i)=>{const{kind:r,metadata:t}=i;let c=globalThis.litPropertyMetadata.get(t);if(c===void 0&&globalThis.litPropertyMetadata.set(t,c=new Map),r==="setter"&&((n=Object.create(n)).wrapped=!0),c.set(i.name,n),r==="accessor"){const{name:l}=i;return{set(p){const b=e.get.call(this);e.set.call(this,p),this.requestUpdate(l,b,n)},init(p){return p!==void 0&&this.C(l,void 0,n,p),p}}}if(r==="setter"){const{name:l}=i;return function(p){const b=this[l];e.call(this,p),this.requestUpdate(l,b,n)}}throw Error("Unsupported decorator location: "+r)};function ae(n){return(e,i)=>typeof i=="object"?Ls(n,e,i):((r,t,c)=>{const l=t.hasOwnProperty(c);return t.constructor.createProperty(c,r),l?Object.getOwnPropertyDescriptor(t,c):void 0})(n,e,i)}const js=n=>n??te,Bs=':host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale(100%)}:host(:not([disabled])[focused]) .highlight{display:block!important}:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color, #1467ba)!important}:host([oneline]) .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.root{display:inline-flex;align-items:center;vertical-align:middle;width:100%;padding:var(--sd-radio-button-padding, 6px 0px)}.root .radio-button-container{position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box;cursor:pointer;margin-right:5px;flex-shrink:0}.root .radio-button-container input{position:absolute;top:0;left:0;opacity:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color, rgba(20, 103, 186, .3))}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color, #1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color, #767676)}.root .label{font-family:var(--sd-radio-button-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);text-overflow:ellipsis;overflow-x:hidden;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px}';var Ds=Object.defineProperty,Et=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,l;c>=0;c--)(l=n[c])&&(t=l(e,i,t)||t);return t&&Ds(e,i,t),t};let zs=0;var ue;const it=(ue=class extends Re{constructor(){super(),this.checked=!1,this.value="",this.disabled=!1,this.label="",this.handleClick=e=>{e.preventDefault()},this.a11yID=ue.ID+"_"+zs++}static get styles(){return[vi`
258
- ${wt(Bs)}
259
- `]}render(){return Qe`
255
+ `,R=s({default:()=>z}),z={mainContent:F,description:I,css:P,initializer:{content:L,type:`typescript`,initialize:()=>j(()=>import(`./5_segmented_button.js`),[],import.meta.url)}},B=globalThis,ee=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,te=Symbol(),ne=new WeakMap,re=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==te)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(ee&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=ne.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ne.set(t,e))}return e}toString(){return this.cssText}},ie=e=>new re(typeof e==`string`?e:e+``,void 0,te),ae=(e,...t)=>new re(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,te),oe=(e,t)=>{if(ee)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=B.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},se=ee?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ie(t)})(e):e,{is:ce,defineProperty:le,getOwnPropertyDescriptor:ue,getOwnPropertyNames:de,getOwnPropertySymbols:fe,getPrototypeOf:pe}=Object,me=globalThis,he=me.trustedTypes,ge=he?he.emptyScript:``,_e=me.reactiveElementPolyfillSupport,ve=(e,t)=>e,ye={toAttribute(e,t){switch(t){case Boolean:e=e?ge:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},V=(e,t)=>!ce(e,t),be={attribute:!0,type:String,converter:ye,reflect:!1,useDefault:!1,hasChanged:V};Symbol.metadata??=Symbol(`metadata`),me.litPropertyMetadata??=new WeakMap;var H=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=be){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&le(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=ue(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??be}static _$Ei(){if(this.hasOwnProperty(ve(`elementProperties`)))return;let e=pe(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ve(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ve(`properties`))){let e=this.properties,t=[...de(e),...fe(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(se(e))}else e!==void 0&&t.push(se(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return oe(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?ye:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?ye:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??V)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};H.elementStyles=[],H.shadowRootOptions={mode:`open`},H[ve(`elementProperties`)]=new Map,H[ve(`finalized`)]=new Map,_e?.({ReactiveElement:H}),(me.reactiveElementVersions??=[]).push(`2.1.2`);var xe=globalThis,Se=e=>e,Ce=xe.trustedTypes,we=Ce?Ce.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Te=`$lit$`,U=`lit$${Math.random().toFixed(9).slice(2)}$`,Ee=`?`+U,De=`<${Ee}>`,W=document,Oe=()=>W.createComment(``),ke=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Ae=Array.isArray,je=e=>Ae(e)||typeof e?.[Symbol.iterator]==`function`,Me=`[
256
+ \f\r]`,Ne=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pe=/-->/g,G=/>/g,K=RegExp(`>|${Me}(?:([^\\s"'>=/]+)(${Me}*=${Me}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Fe=/'/g,Ie=/"/g,Le=/^(?:script|style|textarea|title)$/i,Re=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),ze=Symbol.for(`lit-noChange`),q=Symbol.for(`lit-nothing`),Be=new WeakMap,Ve=W.createTreeWalker(W,129);function He(e,t){if(!Ae(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return we===void 0?t:we.createHTML(t)}var Ue=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=Ne;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===Ne?c[1]===`!--`?o=Pe:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=K):(Le.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=K):o=G:o===K?c[0]===`>`?(o=i??Ne,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?K:c[3]===`"`?Ie:Fe):o===Ie||o===Fe?o=K:o===Pe||o===G?o=Ne:(o=K,i=void 0);let d=o===K&&e[t+1].startsWith(`/>`)?` `:``;a+=o===Ne?n+De:l>=0?(r.push(s),n.slice(0,l)+Te+n.slice(l)+U+d):n+U+(l===-2?t:d)}return[He(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},We=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Ue(t,n);if(this.el=e.createElement(l,r),Ve.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=Ve.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(Te)){let t=u[o++],n=i.getAttribute(e).split(U),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Ye:r[1]===`?`?Xe:r[1]===`@`?Ze:Je}),i.removeAttribute(e)}else e.startsWith(U)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Le.test(i.tagName)){let e=i.textContent.split(U),t=e.length-1;if(t>0){i.textContent=Ce?Ce.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],Oe()),Ve.nextNode(),c.push({type:2,index:++a});i.append(e[t],Oe())}}}else if(i.nodeType===8)if(i.data===Ee)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(U,e+1))!==-1;)c.push({type:7,index:a}),e+=U.length-1}a++}}static createElement(e,t){let n=W.createElement(`template`);return n.innerHTML=e,n}};function Ge(e,t,n=e,r){if(t===ze)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=ke(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=Ge(e,i._$AS(e,t.values),i,r)),t}var Ke=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??W).importNode(t,!0);Ve.currentNode=r;let i=Ve.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new qe(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Qe(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=Ve.nextNode(),a++)}return Ve.currentNode=W,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},qe=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),ke(e)?e===q||e==null||e===``?(this._$AH!==q&&this._$AR(),this._$AH=q):e!==this._$AH&&e!==ze&&this._(e):e._$litType$===void 0?e.nodeType===void 0?je(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==q&&ke(this._$AH)?this._$AA.nextSibling.data=e:this.T(W.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=We.createElement(He(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Ke(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Be.get(e.strings);return t===void 0&&Be.set(e.strings,t=new We(e)),t}k(t){Ae(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(Oe()),this.O(Oe()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=Se(e).nextSibling;Se(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=q,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=q}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=Ge(this,e,t,0),a=!ke(e)||e!==this._$AH&&e!==ze,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=Ge(this,r[n+o],t,o),s===ze&&(s=this._$AH[o]),a||=!ke(s)||s!==this._$AH[o],s===q?e=q:e!==q&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Ye=class extends Je{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===q?void 0:e}},Xe=class extends Je{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==q)}},Ze=class extends Je{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=Ge(this,e,t,0)??q)===ze)return;let n=this._$AH,r=e===q&&n!==q||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==q&&(n===q||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Qe=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}},$e=xe.litHtmlPolyfillSupport;$e?.(We,qe),(xe.litHtmlVersions??=[]).push(`3.3.2`);var et=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new qe(t.insertBefore(Oe(),e),e,void 0,n??{})}return i._$AI(e),i},tt=globalThis,nt=class extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=et(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ze}};nt._$litElement$=!0,nt.finalized=!0,tt.litElementHydrateSupport?.({LitElement:nt});var rt=tt.litElementPolyfillSupport;rt?.({LitElement:nt}),(tt.litElementVersions??=[]).push(`4.2.2`);var it={attribute:!0,type:String,converter:ye,reflect:!1,hasChanged:V},at=(e=it,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function J(e){return(t,n)=>typeof n==`object`?at(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}var ot=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e`,st=`:host{font-size:var(--sd-field-validation-message-font-size,13px);line-height:var(--sd-field-validation-message-line-height,20px);font-family:var(--sd-field-validation-message-font-family,"Segoe UI", "Lucida Sans", Arial, sans-serif);color:var(--sd-field-validation-message-color,#111);contain:content;display:inline-block}:host([hidden]){display:none!important}:host([level=warn i]){color:var(--sd-field-validation-message-warn-color,#555)}:host([level=suggest i]){color:var(--sd-field-validation-message-suggest-color,#bf8800)}:host([level=error i]){color:var(--sd-field-validation-message-error-color,#cc0017)}.icon{width:12px;height:12px;margin-bottom:-1px;padding-right:4px}`,ct=`data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e`,lt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e`;function ut(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function dt(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var ft={Warn:`warn`,Suggest:`suggest`,Error:`error`},pt=class e extends nt{static{this.ID=`sd-field-validation-message`}static{this.ensureDefined=()=>{customElements.get(e.ID)||customElements.define(e.ID,e)}}static parseLevel(e){if(e==null)return;let t=e.toLowerCase();return Object.values(ft).find(e=>e===t)}static{this.levelConverter={fromAttribute(t){return e.parseLevel(t)},toAttribute(e){return e?.toLowerCase()}}}static get styles(){return[ae`
257
+ ${ie(st)}
258
+ `]}render(){return Re`${this.iconToUse&&Re`<img class="icon" src="${this.iconToUse}" />`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(e){return e.has(`level`)&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(e)}get iconForLevel(){switch(e.parseLevel(this.level)){case ft.Warn:return lt;case ft.Suggest:return ct;case ft.Error:return ot;default:return}}};dt([J({type:String,attribute:!0}),ut(`design:type`,Object)],pt.prototype,`message`,void 0),dt([J({type:String,attribute:!0}),ut(`design:type`,Object)],pt.prototype,`icon`,void 0),dt([J({converter:pt.levelConverter,reflect:!0}),ut(`design:type`,Object)],pt.prototype,`level`,void 0),pt.ensureDefined();var mt=e=>e??q,ht=`:host{display:block}:host,.label,.checkbox{outline:none}:host([disabled]){pointer-events:none}:host([disabled]) .root{opacity:.6;cursor:default;filter:grayscale()}:host(:not([disabled])[focused]) .highlight,:host([checked]) circle.inner{display:block!important}:host([checked]) circle.outer{stroke:var(--sd-radio-button-checked-color,#1467ba)!important}:host([oneline]) .label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.root{vertical-align:middle;width:100%;padding:var(--sd-radio-button-padding,6px 0px);align-items:center;display:inline-flex}.root .radio-button-container{box-sizing:border-box;cursor:pointer;flex-shrink:0;width:28px;height:28px;margin-right:5px;display:inline-block;position:relative}.root .radio-button-container input{opacity:0;position:absolute;top:0;left:0}.root .radio-button-container circle.highlight{stroke:var(--sd-radio-button-highlight-color,#1467ba4d)}.root .radio-button-container circle.inner{fill:var(--sd-radio-button-checked-color,#1467ba)}.root .radio-button-container circle.outer{stroke:var(--sd-radio-button-unchecked-color,#767676)}.root .label{font-family:var(--sd-radio-button-font-family,"Segoe UI", "Lucida Sans", Arial, sans-serif);text-overflow:ellipsis;-webkit-user-select:none;user-select:none;cursor:pointer;padding-top:2px;padding-bottom:2px;overflow-x:hidden}`;function Y(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)}function X(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var gt=0,_t=class e extends nt{static{this.ID=`sd-radio-button`}static{this.ensureDefined=()=>{customElements.get(e.ID)||customElements.define(e.ID,e)}}constructor(){super(),this.checked=!1,this.value=``,this.disabled=!1,this.label=``,this.handleClick=e=>{e.preventDefault()},this.a11yID=e.ID+`_`+ gt++}static get styles(){return[ae`
259
+ ${ie(ht)}
260
+ `]}render(){return Re`
260
261
  <div class="root">
261
262
  <div class="radio-button-container">
262
263
  <input
@@ -281,18 +282,16 @@ function onValueChange(value: string, selectedIndex: number) {
281
282
  </div>
282
283
  <label class="label" for="${this.a11yID}" @click="${this.handleClick}">${this.label}</label>
283
284
  </div>
284
- `}},ue.ID="sd-radio-button",ue.ensureDefined=()=>{customElements.get(ue.ID)||customElements.define(ue.ID,ue)},ue);Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"checked");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"value");Et([ae({type:Boolean,reflect:!0,attribute:!0})],it.prototype,"disabled");Et([ae({type:String,reflect:!0,attribute:!0})],it.prototype,"label");let Us=it;const qs=':host{display:inline-block;font-size:var(--sd-field-validation-message-font-size, 13px);line-height:var(--sd-field-validation-message-line-height, 20px);font-family:var(--sd-field-validation-message-font-family, "Segoe UI", "Lucida Sans", Arial, sans-serif);color:var(--sd-field-validation-message-color, #111);contain:content}:host([hidden]){display:none!important}:host([level=warn i]){color:var(--sd-field-validation-message-warn-color, #555555)}:host([level=suggest i]){color:var(--sd-field-validation-message-suggest-color, #bf8800)}:host([level=error i]){color:var(--sd-field-validation-message-error-color, #cc0017)}.icon{height:12px;width:12px;padding-right:4px;margin-bottom:-1px}',Hs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cstyle%20id='style3'%3e%20.st0{fill:%23fff}.st1{fill:%23c00}%20%3c/style%3e%3cg%20id='g5'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20id='path9'/%3e%3c/g%3e%3cg%20id='g11'%3e%3cpath%20class='st0'%20id='rect13'%20d='M5.5%202.5h1v4h-1z'/%3e%3cpath%20class='st1'%20d='M6%203v3-3m1-1H5v5h2V2z'%20id='path15'/%3e%3c/g%3e%3cg%20id='g17'%3e%3cpath%20class='st0'%20id='rect19'%20d='M5.5%208.5h1v1h-1z'/%3e%3cpath%20class='st1'%20id='polygon21'%20d='M7%208H5v2h2V8z'/%3e%3c/g%3e%3c/svg%3e",Fs="data:image/svg+xml,%3csvg%20id='Ebene_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cstyle%3e%20.st0{fill:%23bf8800}%20%3c/style%3e%3cpath%20class='st0'%20d='M12%20.8l11%2019.8v1.3H1v-1.3L12%20.8zm.8-.6h-1.6L0%2020v3h24v-3L12.8.2z'/%3e%3cpath%20class='st0'%20d='M11%208h2v8h-2zm0%2010h2v2h-2z'/%3e%3c/svg%3e",Ws="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%2012'%3e%3cpath%20class='st1'%20d='M6%20.9c2.8%200%205.1%202.3%205.1%205.1S8.8%2011.1%206%2011.1.9%208.8.9%206%203.2.9%206%20.9m0-1C2.7-.1-.1%202.7-.1%206s2.7%206.1%206.1%206.1%206.1-2.7%206.1-6.1S9.3-.1%206-.1z'%20fill='%23555'/%3e%3cpath%20d='M6%209V6v3m-1%201h2V5H5v5zm2-8H5v2h2z'%20class='st1'%20fill='%23555'/%3e%3c/svg%3e";var Gs=Object.defineProperty,Si=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,l;c>=0;c--)(l=n[c])&&(t=l(e,i,t)||t);return t&&Gs(e,i,t),t},Be;const et=(Be=class extends Re{static parseLevel(n){if(n){const e=Object.keys(yt).find(i=>i.toLowerCase()===n.toLowerCase());return e&&yt[e]}}static get styles(){return[vi`
285
- ${wt(qs)}
286
- `]}render(){return Qe`${this.iconToUse&&Qe`<img class="icon" src="${this.iconToUse}">`}${this.message}`}get iconToUse(){return this.icon||this._defaultIconPath}shouldUpdate(n){return n.has("level")&&(this._defaultIconPath=this.iconForLevel,!this.icon)?!0:super.shouldUpdate(n)}get iconForLevel(){switch(Be.parseLevel(this.level)){case"warn":return Ws;case"suggest":return Fs;case"error":return Hs;default:return null}}},Be.ID="sd-field-validation-message",Be.levelConverter={fromAttribute(n){return Be.parseLevel(n)},toAttribute(n){return n&&n.toLowerCase()}},Be);Si([ae({type:String,attribute:!0})],et.prototype,"message");Si([ae({type:String,attribute:!0})],et.prototype,"icon");Si([ae({converter:et.levelConverter,reflect:!0})],et.prototype,"level");let Ut=et;var yt=(n=>(n.Warn="warn",n.Suggest="suggest",n.Error="error",n))(yt||{});customElements.get(Ut.ID)||customElements.define(Ut.ID,Ut);const Vs=":host(:focus){outline:none}.buttons-container{display:flex;gap:var(--sd-radio-button-group-gap, 0)}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}";var Zs=Object.defineProperty,Me=(n,e,i,r)=>{for(var t=void 0,c=n.length-1,l;c>=0;c--)(l=n[c])&&(t=l(e,i,t)||t);return t&&Zs(e,i,t),t},ge;const _e=(ge=class extends Re{constructor(){super(...arguments),this.layout="horizontal",this.value="",this.uncheckAllowed=!1,this.disabled=!1,this._focusIndex=-1,this._checkedButton=null,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(e=>{!e.hasAttribute("disabled")&&this.disabled&&e.setAttribute("disabled",""),e.setAttribute("tabIndex","-1"),this.updateCheckedButton(e)})},this.handleFocusIn=e=>{const i=e.target,r=this._buttons.findIndex(t=>t==i);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(r!==-1?r:0),this.updateFocused(null,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=e=>{this.focus();const i=this._buttons.find(t=>t.contains(e.target)),r=this._buttons.findIndex(t=>t==i);r>=0&&(this.focusIndex=r,this.updateChecked())},this.handleKeyDown=e=>{let i=!0;switch(e.key){case"Down":case"ArrowDown":case"Right":case"ArrowRight":{this.focusNext();break}case"Up":case"ArrowUp":case"Left":case"ArrowLeft":{this.focusPrevious();break}case"Enter":{this.updateChecked();break}default:i=!1}i&&(e.preventDefault(),e.stopPropagation())}}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.childElementCount){const i=this._focusIndex;if(this._focusIndex=e,i!==e){const r=this._buttons[i],t=this._buttons[this.focusIndex];this.updateFocused(r,t)}}}firstUpdated(e){super.firstUpdated(e),this.buttonsSlot.addEventListener("slotchange",this.handleSlotChange),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),this.addEventListener("keydown",this.handleKeyDown)}updated(e){super.updated(e),e.has("disabled")&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[vi`
287
- ${wt(Vs)}
288
- `]}render(){return Qe`
285
+ `}};X([J({type:Boolean,reflect:!0,attribute:!0}),Y(`design:type`,Object)],_t.prototype,`checked`,void 0),X([J({type:String,reflect:!0,attribute:!0}),Y(`design:type`,Object)],_t.prototype,`value`,void 0),X([J({type:Boolean,reflect:!0,attribute:!0}),Y(`design:type`,Object)],_t.prototype,`disabled`,void 0),X([J({type:String,reflect:!0,attribute:!0}),Y(`design:type`,Object)],_t.prototype,`label`,void 0);var vt=`:host(:focus){outline:none}.buttons-container{gap:var(--sd-radio-button-group-gap,0);display:flex}.buttons-container.vertical{flex-direction:column}.validation-message{margin-left:5px}`,Z=class e extends nt{constructor(...e){super(...e),this.layout=`horizontal`,this.value=``,this.uncheckAllowed=!1,this.disabled=!1,this._buttons=[],this._focusIndex=-1,this._checkedButton=void 0,this.handleSlotChange=()=>{this._buttons=this.buttonsSlot.assignedElements(),this._buttons.forEach(e=>{!e.hasAttribute(`disabled`)&&this.disabled&&e.setAttribute(`disabled`,``),e.setAttribute(`tabIndex`,`-1`),this.updateCheckedButton(e)})},this.handleFocusIn=e=>{let t=e.target,n=this._buttons.findIndex(e=>e==t);this.focusIndex=this.focusIndex>=0?this.focusIndex:this.getNextFocusIndex(n===-1?0:n),this.updateFocused(void 0,this._buttons[this.focusIndex])},this.handleFocusOut=()=>{this.updateFocused(this._buttons[this.focusIndex])},this.handleButtonClick=e=>{this.focus();let t=this._buttons.find(t=>t.contains(e.target)),n=this._buttons.findIndex(e=>e==t);n>=0&&(this.focusIndex=n,this.updateChecked())},this.handleKeyDown=e=>{let t=!0;switch(e.key){case`Down`:case`ArrowDown`:case`Right`:case`ArrowRight`:this.focusNext();break;case`Up`:case`ArrowUp`:case`Left`:case`ArrowLeft`:this.focusPrevious();break;case`Enter`:this.updateChecked();break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}}static{this.ID=`sd-radio-button-group`}static{this.ensureDefined=()=>{_t.ensureDefined(),customElements.get(e.ID)||customElements.define(e.ID,e)}}get focusIndex(){return this._focusIndex}set focusIndex(e){if(e>=-1&&e<this.childElementCount){let t=this._focusIndex;if(this._focusIndex=e,t!==e){let e=this._buttons[t],n=this._buttons[this.focusIndex];this.updateFocused(e,n)}}}firstUpdated(e){super.firstUpdated(e),this.buttonsSlot.addEventListener(`slotchange`,this.handleSlotChange),this.addEventListener(`focusin`,this.handleFocusIn),this.addEventListener(`focusout`,this.handleFocusOut),this.addEventListener(`keydown`,this.handleKeyDown)}updated(e){super.updated(e),e.has(`disabled`)&&(this.disabled?this.disableButtons():this.enableButtons())}static get styles(){return[ae`
286
+ ${ie(vt)}
287
+ `]}render(){return Re`
289
288
  <div
290
- class="buttons-container ${this.layout==="vertical"?"vertical":"horizontal"}"
291
- @click="${js(this.disabled?void 0:this.handleButtonClick)}"
289
+ class="buttons-container ${this.layout===`vertical`?`vertical`:`horizontal`}"
290
+ @click="${mt(this.disabled?void 0:this.handleButtonClick)}"
292
291
  >
293
292
  <slot></slot>
294
293
  </div>
295
- ${this.validationMessage&&Qe`
294
+ ${this.validationMessage&&Re`
296
295
  <sd-field-validation-message
297
296
  class="validation-message"
298
297
  .message=${this.validationMessage}
@@ -301,7 +300,7 @@ function onValueChange(value: string, selectedIndex: number) {
301
300
  >
302
301
  </sd-field-validation-message>
303
302
  `}
304
- `}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute("checked")){this._checkedButton=e;const i=e.getAttribute("value");this.updateValue(i)}}disableButtons(){this._buttons?.forEach(e=>{e.setAttribute("disabled","")})}enableButtons(){this._buttons?.forEach(e=>{e.removeAttribute("disabled")})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent("value-change",{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}focusNext(){const e=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=e!==-1?e:this.getNextFocusIndex(0),this.uncheckAllowed||this.updateChecked()}focusPrevious(){const e=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=e!==-1?e:this.getPreviousFocusIndex(this.childElementCount-1),this.uncheckAllowed||this.updateChecked()}getNextFocusIndex(e){for(let i=e;i<this.childElementCount;i++){const r=this._buttons[i];if(this.isFocusable(r))return i}return-1}getPreviousFocusIndex(e){for(let i=e;i>=0;i--){const r=this._buttons[i];if(this.isFocusable(r))return i}return-1}isFocusable(e){return!e.hasAttribute("disabled")}updateChecked(){const e=this._checkedButton,i=this._buttons[this.focusIndex];this._checkedButton=i,e&&e!==i&&this.uncheckButton(e),i&&this.toggleButton(i)}toggleButton(e){e.hasAttribute("checked")?this.uncheckAllowed&&(this.uncheckButton(e),this._checkedButton=null,this.updateValue("")):(this.checkButton(e),this.updateValue(e.getAttribute("value")))}updateValue(e){this.value=e,this.fireValueChangeEvent()}updateFocused(e,i){e?.removeAttribute?.("focused"),i?.setAttribute?.("focused","")}checkButton(e){e.setAttribute("checked","")}uncheckButton(e){e.removeAttribute("checked")}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector("slot")),this._buttonsSlot}get selectedIndex(){return this._buttons.indexOf(this._checkedButton)}},ge.ID="sd-radio-button-group",ge.ensureDefined=()=>{Us.ensureDefined(),customElements.get(ge.ID)||customElements.define(ge.ID,ge)},ge);Me([ae({type:String,reflect:!0,attribute:!0})],_e.prototype,"layout");Me([ae({type:String})],_e.prototype,"value");Me([ae({type:Boolean,reflect:!0,attribute:"uncheck-allowed"})],_e.prototype,"uncheckAllowed");Me([ae({type:Boolean,reflect:!0,attribute:!0})],_e.prototype,"disabled");Me([ae({type:String})],_e.prototype,"validationMessage");Me([ae({type:String})],_e.prototype,"validationIconSrc");Me([ae({type:{fromAttribute(n){return n&&yt[n.toLowerCase()]},toAttribute(n){return n&&n.toLowerCase()}},reflect:!0})],_e.prototype,"validationLevel");let Ks=_e;Ks.ensureDefined();const qn=class gt extends HTMLElement{memoizedTemplate(){const e=this.is();if(gt.TEMPLATE_CACHE[e])return gt.TEMPLATE_CACHE[e];const i=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(i,this.is()),gt.TEMPLATE_CACHE[e]=i,i}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};qn.TEMPLATE_CACHE={};let Js=qn;const Xs=`<style>
303
+ `}updateCheckedButton(e){if(this._checkedButton&&this._checkedButton!==e)this.uncheckButton(e);else if(e.hasAttribute(`checked`)){this._checkedButton=e;let t=e.getAttribute(`value`);this.updateValue(t)}}disableButtons(){this._buttons?.forEach(e=>{e.setAttribute(`disabled`,``)})}enableButtons(){this._buttons?.forEach(e=>{e.removeAttribute(`disabled`)})}fireValueChangeEvent(){this.dispatchEvent(new CustomEvent(`sd-radio-button-group-value-change`,{detail:{value:this.value,selectedIndex:this.selectedIndex}}))}focusNext(){let e=this.getNextFocusIndex(this.focusIndex+1);this.focusIndex=e===-1?this.getNextFocusIndex(0):e,this.uncheckAllowed||this.updateChecked()}focusPrevious(){let e=this.getPreviousFocusIndex(this.focusIndex-1);this.focusIndex=e===-1?this.getPreviousFocusIndex(this.childElementCount-1):e,this.uncheckAllowed||this.updateChecked()}getNextFocusIndex(e){for(let t=e;t<this.childElementCount;t++){let e=this._buttons[t];if(e!=null&&this.isFocusable(e))return t}return-1}getPreviousFocusIndex(e){for(let t=e;t>=0;t--){let e=this._buttons[t];if(e!=null&&this.isFocusable(e))return t}return-1}isFocusable(e){return!e.hasAttribute(`disabled`)}updateChecked(){let e=this._checkedButton,t=this._buttons[this.focusIndex];this._checkedButton=t,e&&e!==t&&this.uncheckButton(e),t&&this.toggleButton(t)}toggleButton(e){e.hasAttribute(`checked`)?this.uncheckAllowed&&(this.uncheckButton(e),this._checkedButton=void 0,this.updateValue(``)):(this.checkButton(e),this.updateValue(e.getAttribute(`value`)))}updateValue(e){this.value=e??void 0,this.fireValueChangeEvent()}updateFocused(e,t){e?.removeAttribute?.(`focused`),t?.setAttribute?.(`focused`,``)}checkButton(e){e.setAttribute(`checked`,``)}uncheckButton(e){e.removeAttribute(`checked`)}get buttonsSlot(){return this.shadowRoot&&!this._buttonsSlot&&(this._buttonsSlot=this.shadowRoot.querySelector(`slot`)??void 0),this._buttonsSlot}get selectedIndex(){return this._buttons==null||this._checkedButton==null?-1:this._buttons.indexOf(this._checkedButton)}};X([J({type:String,reflect:!0,attribute:!0}),Y(`design:type`,Object)],Z.prototype,`layout`,void 0),X([J({type:String}),Y(`design:type`,Object)],Z.prototype,`value`,void 0),X([J({type:Boolean,reflect:!0,attribute:`uncheck-allowed`}),Y(`design:type`,Object)],Z.prototype,`uncheckAllowed`,void 0),X([J({type:Boolean,reflect:!0,attribute:!0}),Y(`design:type`,Object)],Z.prototype,`disabled`,void 0),X([J({type:String}),Y(`design:type`,Object)],Z.prototype,`validationMessage`,void 0),X([J({type:String}),Y(`design:type`,Object)],Z.prototype,`validationIconSrc`,void 0),X([J({type:{fromAttribute(e){return pt.parseLevel(e)},toAttribute(e){return e?.toLowerCase()}},reflect:!0}),Y(`design:type`,Object)],Z.prototype,`validationLevel`,void 0),Z.ensureDefined();var yt=class e extends HTMLElement{static{this.TEMPLATE_CACHE={}}memoizedTemplate(){let t=this.is();if(e.TEMPLATE_CACHE[t])return e.TEMPLATE_CACHE[t];let n=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,this.is()),e.TEMPLATE_CACHE[t]=n,n}connectedCallback(){let e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:`open`}).appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent(`sd-element-ready`))))}disconnectedCallback(){}attributeChangedCallback(e,t,n){}adoptedCallback(){}connectedMoveCallback(){}whenReady(e){this.shadowRoot?e():this.addEventListener(`sd-element-ready`,()=>e())}},bt=`<style>
305
304
  :host {
306
305
  contain: content;
307
306
  background: rgba(20, 103, 186, 0);
@@ -407,38 +406,39 @@ function onValueChange(value: string, selectedIndex: number) {
407
406
  <div class="content">
408
407
  <slot></slot>
409
408
  </div>
410
- `,Hn=class Fn extends Js{constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener("keydown",e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener("keyup",e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==!0&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener("click",e=>{if(this.disabled||this.hasAttribute("disabled")){e.stopImmediatePropagation();return}const i=this.getAttribute("type")?.toLowerCase()?.trim();if(i!=="submit"&&i!=="reset")return;const r=this.closest("form");r&&i==="submit"&&r.requestSubmit(),r&&i==="reset"&&r.reset()},{capture:!0})}get imageElement(){return this._image}get icon(){return this.getAttribute("icon")}set icon(e){this.icon!==e&&(e?this.setAttribute("icon",e):this.removeAttribute("icon"),this.updateIcon())}get primary(){return this.hasAttribute("primary")}set primary(e){e?this.setAttribute("primary",""):this.removeAttribute("primary")}get disabled(){return this.getAttribute("aria-disabled")=="true"}set disabled(e){this.setAttribute("aria-disabled",e.toString())}static get observedAttributes(){return["icon"]}is(){return Fn.ID}template(){const e=document.createElement("template");return e.innerHTML=Xs,e}isSpaceOrEnter(e){switch(e.key){case" ":case"Space":case"Enter":return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute("disabled")&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabIndex")||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(".icon"),this.updateIcon(),this.hasAttribute("role")||this.setAttribute("role","button")}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){const e=this.getAttribute("icon");e&&(this._image.src=e)}}};Hn.ID="sd-button";let qt=Hn;customElements.get(qt.ID)||customElements.define(qt.ID,qt);function Wn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Qs(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var i=function r(){var t=!1;try{t=this instanceof r}catch{}return t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var t=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,t.get?t:{enumerable:!0,get:function(){return n[r]}})}),i}var dt={exports:{}},on;function Ys(){if(on)return dt.exports;on=1;var n=String,e=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};return dt.exports=e(),dt.exports.createColors=e,dt.exports}const eo={},to=Object.freeze(Object.defineProperty({__proto__:null,default:eo},Symbol.toStringTag,{value:"Module"})),de=Qs(to);var Ht,an;function Ai(){if(an)return Ht;an=1;let n=Ys(),e=de;class i extends Error{constructor(t,c,l,p,b,d){super(t),this.name="CssSyntaxError",this.reason=t,b&&(this.file=b),p&&(this.source=p),d&&(this.plugin=d),typeof c<"u"&&typeof l<"u"&&(typeof c=="number"?(this.line=c,this.column=l):(this.line=c.line,this.column=c.column,this.endLine=l.line,this.endColumn=l.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(t){if(!this.source)return"";let c=this.source;t==null&&(t=n.isColorSupported);let l=o=>o,p=o=>o,b=o=>o;if(t){let{bold:o,gray:f,red:g}=n.createColors(!0);p=m=>o(g(m)),l=m=>f(m),e&&(b=m=>e(m))}let d=c.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,d.length),a=String(u).length;return d.slice(s,u).map((o,f)=>{let g=s+1+f,m=" "+(" "+g).slice(-a)+" | ";if(g===this.line){if(o.length>160){let E=20,w=Math.max(0,this.column-E),v=Math.max(this.column+E,this.endColumn+E),y=o.slice(w,v),S=l(m.replace(/\d/g," "))+o.slice(0,Math.min(this.column-1,E-1)).replace(/[^\t]/g," ");return p(">")+l(m)+b(y)+`
411
- `+S+p("^")}let _=l(m.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return p(">")+l(m)+b(o)+`
412
- `+_+p("^")}return" "+l(m)+b(o)}).join(`
413
- `)}toString(){let t=this.showSourceCode();return t&&(t=`
409
+ `,xt=class e extends yt{static{this.ID=`sd-button`}static{this.ensureDefined=()=>{customElements.get(e.ID)||customElements.define(e.ID,e)}}get imageElement(){return this._image}get icon(){return this.getAttribute(`icon`)}set icon(e){this.icon!==e&&(e?this.setAttribute(`icon`,e):this.removeAttribute(`icon`),this.updateIcon())}get primary(){return this.hasAttribute(`primary`)}set primary(e){e?this.setAttribute(`primary`,``):this.removeAttribute(`primary`)}get disabled(){return this.getAttribute(`aria-disabled`)==`true`}set disabled(e){this.setAttribute(`aria-disabled`,e.toString())}static get observedAttributes(){return[`icon`]}is(){return e.ID}template(){let e=document.createElement(`template`);return e.innerHTML=bt,e}constructor(){super(),this._isSpaceOrEnterKeyDown=!1,this.addEventListener(`keydown`,e=>{this.isSpaceOrEnter(e)&&(this._isSpaceOrEnterKeyDown=!0,e.preventDefault())}),this.addEventListener(`keyup`,e=>{this.isSpaceOrEnter(e)&&this._isSpaceOrEnterKeyDown==1&&(this._isSpaceOrEnterKeyDown=!1,this.click())}),this.addEventListener(`click`,e=>{if(this.disabled||this.hasAttribute(`disabled`)){e.stopImmediatePropagation();return}let t=this.getAttribute(`type`)?.toLowerCase()?.trim();if(t!==`submit`&&t!==`reset`)return;let n=this.closest(`form`);n&&t===`submit`&&n.requestSubmit(),n&&t===`reset`&&n.reset()},{capture:!0})}isSpaceOrEnter(e){switch(e.key){case` `:case`Space`:case`Enter`:return!0;default:return!1}}click(){!this.disabled&&!this.hasAttribute(`disabled`)&&super.click()}connectedCallback(){super.connectedCallback(),this.hasAttribute(`tabIndex`)||(this.tabIndex=0),this._image=this.shadowRoot.querySelector(`.icon`),this.updateIcon(),this.hasAttribute(`role`)||this.setAttribute(`role`,`button`)}attributeChangedCallback(){this.updateIcon()}updateIcon(){if(this._image){let e=this.getAttribute(`icon`);e&&(this._image.src=e)}}};xt.ensureDefined();var St=o(((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};t.exports=r(),t.exports.createColors=r})),Q=o(((e,t)=>{t.exports={}})),Ct=o(((e,t)=>{var n=St(),r=Q(),i=class e extends Error{constructor(t,n,r,i,a,o){super(t),this.name=`CssSyntaxError`,this.reason=t,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),n!==void 0&&r!==void 0&&(typeof n==`number`?(this.line=n,this.column=r):(this.line=n.line,this.column=n.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(e){if(!this.source)return``;let t=this.source;e??=n.isColorSupported;let i=e=>e,a=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:s}=n.createColors(!0);a=t=>e(s(t)),i=e=>t(e),r&&(o=e=>r(e))}let s=t.split(/\r?\n/),c=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),u=String(l).length;return s.slice(c,l).map((e,t)=>{let n=c+1+t,r=` `+(` `+n).slice(-u)+` | `;if(n===this.line){if(e.length>160){let t=Math.max(0,this.column-20),n=Math.max(this.column+20,this.endColumn+20),s=e.slice(t,n),c=i(r.replace(/\d/g,` `))+e.slice(0,Math.min(this.column-1,19)).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(s)+`
410
+ `+c+a(`^`)}let t=i(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return a(`>`)+i(r)+o(e)+`
411
+ `+t+a(`^`)}return` `+i(r)+o(e)}).join(`
412
+ `)}toString(){let e=this.showSourceCode();return e&&=`
414
413
 
415
- `+t+`
416
- `),this.name+": "+this.message+t}}return Ht=i,i.default=i,Ht}var Ft,ln;function Gn(){if(ln)return Ft;ln=1;const n={after:`
414
+ `+e+`
415
+ `,this.name+`: `+this.message+e}};t.exports=i,i.default=i})),wt=o(((e,t)=>{var n={after:`
417
416
  `,beforeClose:`
418
417
  `,beforeComment:`
419
418
  `,beforeDecl:`
420
- `,beforeOpen:" ",beforeRule:`
421
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function e(r){return r[0].toUpperCase()+r.slice(1)}class i{constructor(t){this.builder=t}atrule(t,c){let l="@"+t.name,p=t.params?this.rawValue(t,"params"):"";if(typeof t.raws.afterName<"u"?l+=t.raws.afterName:p&&(l+=" "),t.nodes)this.block(t,l+p);else{let b=(t.raws.between||"")+(c?";":"");this.builder(l+p+b,t)}}beforeAfter(t,c){let l;t.type==="decl"?l=this.raw(t,null,"beforeDecl"):t.type==="comment"?l=this.raw(t,null,"beforeComment"):c==="before"?l=this.raw(t,null,"beforeRule"):l=this.raw(t,null,"beforeClose");let p=t.parent,b=0;for(;p&&p.type!=="root";)b+=1,p=p.parent;if(l.includes(`
422
- `)){let d=this.raw(t,null,"indent");if(d.length)for(let s=0;s<b;s++)l+=d}return l}block(t,c){let l=this.raw(t,"between","beforeOpen");this.builder(c+l+"{",t,"start");let p;t.nodes&&t.nodes.length?(this.body(t),p=this.raw(t,"after")):p=this.raw(t,"after","emptyBody"),p&&this.builder(p),this.builder("}",t,"end")}body(t){let c=t.nodes.length-1;for(;c>0&&t.nodes[c].type==="comment";)c-=1;let l=this.raw(t,"semicolon");for(let p=0;p<t.nodes.length;p++){let b=t.nodes[p],d=this.raw(b,"before");d&&this.builder(d),this.stringify(b,c!==p||l)}}comment(t){let c=this.raw(t,"left","commentLeft"),l=this.raw(t,"right","commentRight");this.builder("/*"+c+t.text+l+"*/",t)}decl(t,c){let l=this.raw(t,"between","colon"),p=t.prop+l+this.rawValue(t,"value");t.important&&(p+=t.raws.important||" !important"),c&&(p+=";"),this.builder(p,t)}document(t){this.body(t)}raw(t,c,l){let p;if(l||(l=c),c&&(p=t.raws[c],typeof p<"u"))return p;let b=t.parent;if(l==="before"&&(!b||b.type==="root"&&b.first===t||b&&b.type==="document"))return"";if(!b)return n[l];let d=t.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[l]<"u")return d.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(t,l);{let s="raw"+e(l);this[s]?p=this[s](d,t):d.walk(u=>{if(p=u.raws[c],typeof p<"u")return!1})}return typeof p>"u"&&(p=n[l]),d.rawCache[l]=p,p}rawBeforeClose(t){let c;return t.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return c=l.raws.after,c.includes(`
423
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawBeforeComment(t,c){let l;return t.walkComments(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
424
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(c,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(t,c){let l;return t.walkDecls(p=>{if(typeof p.raws.before<"u")return l=p.raws.before,l.includes(`
425
- `)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(c,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(t){let c;return t.walk(l=>{if(l.type!=="decl"&&(c=l.raws.between,typeof c<"u"))return!1}),c}rawBeforeRule(t){let c;return t.walk(l=>{if(l.nodes&&(l.parent!==t||t.first!==l)&&typeof l.raws.before<"u")return c=l.raws.before,c.includes(`
426
- `)&&(c=c.replace(/[^\n]+$/,"")),!1}),c&&(c=c.replace(/\S/g,"")),c}rawColon(t){let c;return t.walkDecls(l=>{if(typeof l.raws.between<"u")return c=l.raws.between.replace(/[^\s:]/g,""),!1}),c}rawEmptyBody(t){let c;return t.walk(l=>{if(l.nodes&&l.nodes.length===0&&(c=l.raws.after,typeof c<"u"))return!1}),c}rawIndent(t){if(t.raws.indent)return t.raws.indent;let c;return t.walk(l=>{let p=l.parent;if(p&&p!==t&&p.parent&&p.parent===t&&typeof l.raws.before<"u"){let b=l.raws.before.split(`
427
- `);return c=b[b.length-1],c=c.replace(/\S/g,""),!1}}),c}rawSemicolon(t){let c;return t.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(c=l.raws.semicolon,typeof c<"u"))return!1}),c}rawValue(t,c){let l=t[c],p=t.raws[c];return p&&p.value===l?p.raw:l}root(t){this.body(t),t.raws.after&&this.builder(t.raws.after)}rule(t){this.block(t,this.rawValue(t,"selector")),t.raws.ownSemicolon&&this.builder(t.raws.ownSemicolon,t,"end")}stringify(t,c){if(!this[t.type])throw new Error("Unknown AST node type "+t.type+". Maybe you need to change PostCSS stringifier.");this[t.type](t,c)}}return Ft=i,i.default=i,Ft}var Wt,cn;function St(){if(cn)return Wt;cn=1;let n=Gn();function e(i,r){new n(r).stringify(i)}return Wt=e,e.default=e,Wt}var ht={},un;function ki(){return un||(un=1,ht.isClean=Symbol("isClean"),ht.my=Symbol("my")),ht}var Gt,dn;function At(){if(dn)return Gt;dn=1;let n=Ai(),e=Gn(),i=St(),{isClean:r,my:t}=ki();function c(b,d){let s=new b.constructor;for(let u in b){if(!Object.prototype.hasOwnProperty.call(b,u)||u==="proxyCache")continue;let a=b[u],o=typeof a;u==="parent"&&o==="object"?d&&(s[u]=d):u==="source"?s[u]=a:Array.isArray(a)?s[u]=a.map(f=>c(f,s)):(o==="object"&&a!==null&&(a=c(a)),s[u]=a)}return s}function l(b,d){if(d&&typeof d.offset<"u")return d.offset;let s=1,u=1,a=0;for(let o=0;o<b.length;o++){if(u===d.line&&s===d.column){a=o;break}b[o]===`
428
- `?(s=1,u+=1):s+=1}return a}class p{get proxyOf(){return this}constructor(d={}){this.raws={},this[r]=!1,this[t]=!0;for(let s in d)if(s==="nodes"){this.nodes=[];for(let u of d[s])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[s]=d[s]}addToError(d){if(d.postcssNode=this,d.stack&&this.source&&/\n\s{4}at /.test(d.stack)){let s=this.source;d.stack=d.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return d}after(d){return this.parent.insertAfter(this,d),this}assign(d={}){for(let s in d)this[s]=d[s];return this}before(d){return this.parent.insertBefore(this,d),this}cleanRaws(d){delete this.raws.before,delete this.raws.after,d||delete this.raws.between}clone(d={}){let s=c(this);for(let u in d)s[u]=d[u];return s}cloneAfter(d={}){let s=this.clone(d);return this.parent.insertAfter(this,s),s}cloneBefore(d={}){let s=this.clone(d);return this.parent.insertBefore(this,s),s}error(d,s={}){if(this.source){let{end:u,start:a}=this.rangeBy(s);return this.source.input.error(d,{column:a.column,line:a.line},{column:u.column,line:u.line},s)}return new n(d)}getProxyProcessor(){return{get(d,s){return s==="proxyOf"?d:s==="root"?()=>d.root().toProxy():d[s]},set(d,s,u){return d[s]===u||(d[s]=u,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&d.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let d=this;for(;d=d.parent;)d[r]=!1}}next(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d+1]}positionBy(d={}){let s=this.source.start;if(d.index)s=this.positionInside(d.index);else if(d.word){let u="document"in this.source.input?this.source.input.document:this.source.input.css,o=u.slice(l(u,this.source.start),l(u,this.source.end)).indexOf(d.word);o!==-1&&(s=this.positionInside(o))}return s}positionInside(d){let s=this.source.start.column,u=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,o=l(a,this.source.start),f=o+d;for(let g=o;g<f;g++)a[g]===`
429
- `?(s=1,u+=1):s+=1;return{column:s,line:u,offset:f}}prev(){if(!this.parent)return;let d=this.parent.index(this);return this.parent.nodes[d-1]}rangeBy(d={}){let s="document"in this.source.input?this.source.input.document:this.source.input.css,u={column:this.source.start.column,line:this.source.start.line,offset:l(s,this.source.start)},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:l(s,this.source.end)+1}:{column:u.column+1,line:u.line,offset:u.offset+1};if(d.word){let f=s.slice(l(s,this.source.start),l(s,this.source.end)).indexOf(d.word);f!==-1&&(u=this.positionInside(f),a=this.positionInside(f+d.word.length))}else d.start?u={column:d.start.column,line:d.start.line,offset:l(s,d.start)}:d.index&&(u=this.positionInside(d.index)),d.end?a={column:d.end.column,line:d.end.line,offset:l(s,d.end)}:typeof d.endIndex=="number"?a=this.positionInside(d.endIndex):d.index&&(a=this.positionInside(d.index+1));return(a.line<u.line||a.line===u.line&&a.column<=u.column)&&(a={column:u.column+1,line:u.line,offset:u.offset+1}),{end:a,start:u}}raw(d,s){return new e().raw(this,d,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...d){if(this.parent){let s=this,u=!1;for(let a of d)a===this?u=!0:u?(this.parent.insertAfter(s,a),s=a):this.parent.insertBefore(s,a);u||this.remove()}return this}root(){let d=this;for(;d.parent&&d.parent.type!=="document";)d=d.parent;return d}toJSON(d,s){let u={},a=s==null;s=s||new Map;let o=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let g=this[f];if(Array.isArray(g))u[f]=g.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,s):m);else if(typeof g=="object"&&g.toJSON)u[f]=g.toJSON(null,s);else if(f==="source"){if(g==null)continue;let m=s.get(g.input);m==null&&(m=o,s.set(g.input,o),o++),u[f]={end:g.end,inputId:m,start:g.start}}else u[f]=g}return a&&(u.inputs=[...s.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(d=i){d.stringify&&(d=d.stringify);let s="";return d(this,u=>{s+=u}),s}warn(d,s,u={}){let a={node:this};for(let o in u)a[o]=u[o];return d.warn(s,a)}}return Gt=p,p.default=p,Gt}var Vt,hn;function kt(){if(hn)return Vt;hn=1;let n=At();class e extends n{constructor(r){super(r),this.type="comment"}}return Vt=e,e.default=e,Vt}var Zt,fn;function Ct(){if(fn)return Zt;fn=1;let n=At();class e extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Zt=e,e.default=e,Zt}var Kt,pn;function Pe(){if(pn)return Kt;pn=1;let n=kt(),e=Ct(),i=At(),{isClean:r,my:t}=ki(),c,l,p,b;function d(a){return a.map(o=>(o.nodes&&(o.nodes=d(o.nodes)),delete o.source,o))}function s(a){if(a[r]=!1,a.proxyOf.nodes)for(let o of a.proxyOf.nodes)s(o)}class u extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...o){for(let f of o){let g=this.normalize(f,this.last);for(let m of g)this.proxyOf.nodes.push(m)}return this.markDirty(),this}cleanRaws(o){if(super.cleanRaws(o),this.nodes)for(let f of this.nodes)f.cleanRaws(o)}each(o){if(!this.proxyOf.nodes)return;let f=this.getIterator(),g,m;for(;this.indexes[f]<this.proxyOf.nodes.length&&(g=this.indexes[f],m=o(this.proxyOf.nodes[g],g),m!==!1);)this.indexes[f]+=1;return delete this.indexes[f],m}every(o){return this.nodes.every(o)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let o=this.lastEach;return this.indexes[o]=0,o}getProxyProcessor(){return{get(o,f){return f==="proxyOf"?o:o[f]?f==="each"||typeof f=="string"&&f.startsWith("walk")?(...g)=>o[f](...g.map(m=>typeof m=="function"?(_,E)=>m(_.toProxy(),E):m)):f==="every"||f==="some"?g=>o[f]((m,..._)=>g(m.toProxy(),..._)):f==="root"?()=>o.root().toProxy():f==="nodes"?o.nodes.map(g=>g.toProxy()):f==="first"||f==="last"?o[f].toProxy():o[f]:o[f]},set(o,f,g){return o[f]===g||(o[f]=g,(f==="name"||f==="params"||f==="selector")&&o.markDirty()),!0}}}index(o){return typeof o=="number"?o:(o.proxyOf&&(o=o.proxyOf),this.proxyOf.nodes.indexOf(o))}insertAfter(o,f){let g=this.index(o),m=this.normalize(f,this.proxyOf.nodes[g]).reverse();g=this.index(o);for(let E of m)this.proxyOf.nodes.splice(g+1,0,E);let _;for(let E in this.indexes)_=this.indexes[E],g<_&&(this.indexes[E]=_+m.length);return this.markDirty(),this}insertBefore(o,f){let g=this.index(o),m=g===0?"prepend":!1,_=this.normalize(f,this.proxyOf.nodes[g],m).reverse();g=this.index(o);for(let w of _)this.proxyOf.nodes.splice(g,0,w);let E;for(let w in this.indexes)E=this.indexes[w],g<=E&&(this.indexes[w]=E+_.length);return this.markDirty(),this}normalize(o,f){if(typeof o=="string")o=d(l(o).nodes);else if(typeof o>"u")o=[];else if(Array.isArray(o)){o=o.slice(0);for(let m of o)m.parent&&m.parent.removeChild(m,"ignore")}else if(o.type==="root"&&this.type!=="document"){o=o.nodes.slice(0);for(let m of o)m.parent&&m.parent.removeChild(m,"ignore")}else if(o.type)o=[o];else if(o.prop){if(typeof o.value>"u")throw new Error("Value field is missed in node creation");typeof o.value!="string"&&(o.value=String(o.value)),o=[new e(o)]}else if(o.selector||o.selectors)o=[new b(o)];else if(o.name)o=[new c(o)];else if(o.text)o=[new n(o)];else throw new Error("Unknown node type in node creation");return o.map(m=>(m[t]||u.rebuild(m),m=m.proxyOf,m.parent&&m.parent.removeChild(m),m[r]&&s(m),m.raws||(m.raws={}),typeof m.raws.before>"u"&&f&&typeof f.raws.before<"u"&&(m.raws.before=f.raws.before.replace(/\S/g,"")),m.parent=this.proxyOf,m))}prepend(...o){o=o.reverse();for(let f of o){let g=this.normalize(f,this.first,"prepend").reverse();for(let m of g)this.proxyOf.nodes.unshift(m);for(let m in this.indexes)this.indexes[m]=this.indexes[m]+g.length}return this.markDirty(),this}push(o){return o.parent=this,this.proxyOf.nodes.push(o),this}removeAll(){for(let o of this.proxyOf.nodes)o.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(o){o=this.index(o),this.proxyOf.nodes[o].parent=void 0,this.proxyOf.nodes.splice(o,1);let f;for(let g in this.indexes)f=this.indexes[g],f>=o&&(this.indexes[g]=f-1);return this.markDirty(),this}replaceValues(o,f,g){return g||(g=f,f={}),this.walkDecls(m=>{f.props&&!f.props.includes(m.prop)||f.fast&&!m.value.includes(f.fast)||(m.value=m.value.replace(o,g))}),this.markDirty(),this}some(o){return this.nodes.some(o)}walk(o){return this.each((f,g)=>{let m;try{m=o(f,g)}catch(_){throw f.addToError(_)}return m!==!1&&f.walk&&(m=f.walk(o)),m})}walkAtRules(o,f){return f?o instanceof RegExp?this.walk((g,m)=>{if(g.type==="atrule"&&o.test(g.name))return f(g,m)}):this.walk((g,m)=>{if(g.type==="atrule"&&g.name===o)return f(g,m)}):(f=o,this.walk((g,m)=>{if(g.type==="atrule")return f(g,m)}))}walkComments(o){return this.walk((f,g)=>{if(f.type==="comment")return o(f,g)})}walkDecls(o,f){return f?o instanceof RegExp?this.walk((g,m)=>{if(g.type==="decl"&&o.test(g.prop))return f(g,m)}):this.walk((g,m)=>{if(g.type==="decl"&&g.prop===o)return f(g,m)}):(f=o,this.walk((g,m)=>{if(g.type==="decl")return f(g,m)}))}walkRules(o,f){return f?o instanceof RegExp?this.walk((g,m)=>{if(g.type==="rule"&&o.test(g.selector))return f(g,m)}):this.walk((g,m)=>{if(g.type==="rule"&&g.selector===o)return f(g,m)}):(f=o,this.walk((g,m)=>{if(g.type==="rule")return f(g,m)}))}}return u.registerParse=a=>{l=a},u.registerRule=a=>{b=a},u.registerAtRule=a=>{c=a},u.registerRoot=a=>{p=a},Kt=u,u.default=u,u.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,c.prototype):a.type==="rule"?Object.setPrototypeOf(a,b.prototype):a.type==="decl"?Object.setPrototypeOf(a,e.prototype):a.type==="comment"?Object.setPrototypeOf(a,n.prototype):a.type==="root"&&Object.setPrototypeOf(a,p.prototype),a[t]=!0,a.nodes&&a.nodes.forEach(o=>{u.rebuild(o)})},Kt}var Jt,gn;function Ci(){if(gn)return Jt;gn=1;let n=Pe();class e extends n{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Jt=e,e.default=e,n.registerAtRule(e),Jt}var Xt,mn;function Oi(){if(mn)return Xt;mn=1;let n=Pe(),e,i;class r extends n{constructor(c){super({type:"document",...c}),this.nodes||(this.nodes=[])}toResult(c={}){return new e(new i,this,c).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},Xt=r,r.default=r,Xt}var Qt,bn;function io(){if(bn)return Qt;bn=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Qt={nanoid:(r=21)=>{let t="",c=r|0;for(;c--;)t+=n[Math.random()*64|0];return t},customAlphabet:(r,t=21)=>(c=t)=>{let l="",p=c|0;for(;p--;)l+=r[Math.random()*r.length|0];return l}},Qt}var Yt,yn;function Vn(){if(yn)return Yt;yn=1;let{existsSync:n,readFileSync:e}=de,{dirname:i,join:r}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de;function l(b){return Buffer?Buffer.from(b,"base64").toString():window.atob(b)}class p{constructor(d,s){if(s.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let u=s.map?s.map.prev:void 0,a=this.loadMap(s.from,u);!this.mapFile&&s.from&&(this.mapFile=s.from),this.mapFile&&(this.root=i(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new t(this.text)),this.consumerCache}decodeInline(d){let s=/^data:application\/json;charset=utf-?8;base64,/,u=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,f=d.match(a)||d.match(o);if(f)return decodeURIComponent(d.substr(f[0].length));let g=d.match(s)||d.match(u);if(g)return l(d.substr(g[0].length));let m=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+m)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let s=d.match(/\/\*\s*# sourceMappingURL=/g);if(!s)return;let u=d.lastIndexOf(s.pop()),a=d.indexOf("*/",u);u>-1&&a>-1&&(this.annotation=this.getAnnotationURL(d.substring(u,a)))}loadFile(d){if(this.root=i(d),n(d))return this.mapFile=d,e(d,"utf-8").toString().trim()}loadMap(d,s){if(s===!1)return!1;if(s){if(typeof s=="string")return s;if(typeof s=="function"){let u=s(d);if(u){let a=this.loadFile(u);if(!a)throw new Error("Unable to load previous source map: "+u.toString());return a}}else{if(s instanceof t)return c.fromSourceMap(s).toString();if(s instanceof c)return s.toString();if(this.isMap(s))return JSON.stringify(s);throw new Error("Unsupported previous source map format: "+s.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let u=this.annotation;return d&&(u=r(i(d),u)),this.loadFile(u)}}}startWith(d,s){return d?d.substr(0,s.length)===s:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Yt=p,p.default=p,Yt}var ei,vn;function Ot(){if(vn)return ei;vn=1;let{nanoid:n}=io(),{isAbsolute:e,resolve:i}=de,{SourceMapConsumer:r,SourceMapGenerator:t}=de,{fileURLToPath:c,pathToFileURL:l}=de,p=Ai(),b=Vn(),d=de,s=Symbol("lineToIndexCache"),u=!!(r&&t),a=!!(i&&e);function o(g){if(g[s])return g[s];let m=g.css.split(`
430
- `),_=new Array(m.length),E=0;for(let w=0,v=m.length;w<v;w++)_[w]=E,E+=m[w].length+1;return g[s]=_,_}class f{get from(){return this.file||this.id}constructor(m,_={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,_.document&&(this.document=_.document.toString()),_.from&&(!a||/^\w+:\/\//.test(_.from)||e(_.from)?this.file=_.from:this.file=i(_.from)),a&&u){let E=new b(this.css,_);if(E.text){this.map=E;let w=E.consumer().file;!this.file&&w&&(this.file=this.mapResolve(w))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(m,_,E,w={}){let v,y,S,O,T;if(_&&typeof _=="object"){let N=_,K=E;if(typeof N.offset=="number"){O=N.offset;let H=this.fromOffset(O);_=H.line,E=H.col}else _=N.line,E=N.column,O=this.fromLineAndColumn(_,E);if(typeof K.offset=="number"){S=K.offset;let H=this.fromOffset(S);y=H.line,v=H.col}else y=K.line,v=K.column,S=this.fromLineAndColumn(K.line,K.column)}else if(E)O=this.fromLineAndColumn(_,E);else{O=_;let N=this.fromOffset(O);_=N.line,E=N.col}let z=this.origin(_,E,y,v);return z?T=new p(m,z.endLine===void 0?z.line:{column:z.column,line:z.line},z.endLine===void 0?z.column:{column:z.endColumn,line:z.endLine},z.source,z.file,w.plugin):T=new p(m,y===void 0?_:{column:E,line:_},y===void 0?E:{column:v,line:y},this.css,this.file,w.plugin),T.input={column:E,endColumn:v,endLine:y,endOffset:S,line:_,offset:O,source:this.css},this.file&&(l&&(T.input.url=l(this.file).toString()),T.input.file=this.file),T}fromLineAndColumn(m,_){return o(this)[m-1]+_-1}fromOffset(m){let _=o(this),E=_[_.length-1],w=0;if(m>=E)w=_.length-1;else{let v=_.length-2,y;for(;w<v;)if(y=w+(v-w>>1),m<_[y])v=y-1;else if(m>=_[y+1])w=y+1;else{w=y;break}}return{col:m-_[w]+1,line:w+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:i(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,_,E,w){if(!this.map)return!1;let v=this.map.consumer(),y=v.originalPositionFor({column:_,line:m});if(!y.source)return!1;let S;typeof E=="number"&&(S=v.originalPositionFor({column:w,line:E}));let O;e(y.source)?O=l(y.source):O=new URL(y.source,this.map.consumer().sourceRoot||l(this.map.mapFile));let T={column:y.column,endColumn:S&&S.column,endLine:S&&S.line,line:y.line,url:O.toString()};if(O.protocol==="file:")if(c)T.file=c(O);else throw new Error("file: protocol is not available in this PostCSS build");let z=v.sourceContentFor(y.source);return z&&(T.source=z),T}toJSON(){let m={};for(let _ of["hasBOM","css","file","id"])this[_]!=null&&(m[_]=this[_]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}}return ei=f,f.default=f,d&&d.registerInput&&d.registerInput(f),ei}var ti,wn;function nt(){if(wn)return ti;wn=1;let n=Pe(),e,i;class r extends n{constructor(c){super(c),this.type="root",this.nodes||(this.nodes=[])}normalize(c,l,p){let b=super.normalize(c);if(l){if(p==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let d of b)d.raws.before=l.raws.before}return b}removeChild(c,l){let p=this.index(c);return!l&&p===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[p].raws.before),super.removeChild(c)}toResult(c={}){return new e(new i,this,c).stringify()}}return r.registerLazyResult=t=>{e=t},r.registerProcessor=t=>{i=t},ti=r,r.default=r,n.registerRoot(r),ti}var ii,xn;function Zn(){if(xn)return ii;xn=1;let n={comma(e){return n.split(e,[","],!0)},space(e){let i=[" ",`
431
- `," "];return n.split(e,i)},split(e,i,r){let t=[],c="",l=!1,p=0,b=!1,d="",s=!1;for(let u of e)s?s=!1:u==="\\"?s=!0:b?u===d&&(b=!1):u==='"'||u==="'"?(b=!0,d=u):u==="("?p+=1:u===")"?p>0&&(p-=1):p===0&&i.includes(u)&&(l=!0),l?(c!==""&&t.push(c.trim()),c="",l=!1):c+=u;return(r||c!=="")&&t.push(c.trim()),t}};return ii=n,n.default=n,ii}var ni,_n;function Ri(){if(_n)return ni;_n=1;let n=Pe(),e=Zn();class i extends n{get selectors(){return e.comma(this.selector)}set selectors(t){let c=this.selector?this.selector.match(/,\s*/):null,l=c?c[0]:","+this.raw("between","beforeOpen");this.selector=t.join(l)}constructor(t){super(t),this.type="rule",this.nodes||(this.nodes=[])}}return ni=i,i.default=i,n.registerRule(i),ni}var ri,En;function no(){if(En)return ri;En=1;let n=Ci(),e=kt(),i=Ct(),r=Ot(),t=Vn(),c=nt(),l=Ri();function p(b,d){if(Array.isArray(b))return b.map(a=>p(a));let{inputs:s,...u}=b;if(s){d=[];for(let a of s){let o={...a,__proto__:r.prototype};o.map&&(o.map={...o.map,__proto__:t.prototype}),d.push(o)}}if(u.nodes&&(u.nodes=b.nodes.map(a=>p(a,d))),u.source){let{inputId:a,...o}=u.source;u.source=o,a!=null&&(u.source.input=d[a])}if(u.type==="root")return new c(u);if(u.type==="decl")return new i(u);if(u.type==="rule")return new l(u);if(u.type==="comment")return new e(u);if(u.type==="atrule")return new n(u);throw new Error("Unknown node type: "+b.type)}return ri=p,p.default=p,ri}var si,Sn;function Kn(){if(Sn)return si;Sn=1;let{dirname:n,relative:e,resolve:i,sep:r}=de,{SourceMapConsumer:t,SourceMapGenerator:c}=de,{pathToFileURL:l}=de,p=Ot(),b=!!(t&&c),d=!!(n&&i&&e&&r);class s{constructor(a,o,f,g){this.stringify=a,this.mapOpts=f.map||{},this.root=o,this.opts=f,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let o=`
419
+ `,beforeOpen:` `,beforeRule:`
420
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function r(e){return e[0].toUpperCase()+e.slice(1)}var i=class{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
421
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(e,t,i){let a;if(i||=t,t&&(a=e.raws[t],a!==void 0))return a;let o=e.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===e||o&&o.type===`document`))return``;if(!o)return n[i];let s=e.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(e,i);{let n=`raw`+r(i);this[n]?a=this[n](s,e):s.walk(e=>{if(a=e.raws[t],a!==void 0)return!1})}return a===void 0&&(a=n[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
422
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
423
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
424
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
425
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
426
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}};t.exports=i,i.default=i})),Tt=o(((e,t)=>{var n=wt();function r(e,t){new n(t).stringify(e)}t.exports=r,r.default=r})),Et=o(((e,t)=>{t.exports.isClean=Symbol(`isClean`),t.exports.my=Symbol(`my`)})),Dt=o(((e,t)=>{var n=Ct(),r=wt(),i=Tt(),{isClean:a,my:o}=Et();function s(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],a=typeof i;r===`parent`&&a===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>s(e,n)):(a===`object`&&i!==null&&(i=s(i)),n[r]=i)}return n}function c(e,t){if(t&&t.offset!==void 0)return t.offset;let n=1,r=1,i=0;for(let a=0;a<e.length;a++){if(r===t.line&&n===t.column){i=a;break}e[a]===`
427
+ `?(n=1,r+=1):n+=1}return i}var l=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[a]=!1,this[o]=!0;for(let t in e)if(t===`nodes`){this.nodes=[];for(let n of e[t])typeof n.clone==`function`?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=s(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markClean(){this[a]=!0}markDirty(){if(this[a]){this[a]=!1;let e=this;for(;e=e.parent;)e[a]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=`document`in this.source.input?this.source.input.document:this.source.input.css,r=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);r!==-1&&(t=this.positionInside(r))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,r=`document`in this.source.input?this.source.input.document:this.source.input.css,i=c(r,this.source.start),a=i+e;for(let e=i;e<a;e++)r[e]===`
428
+ `?(t=1,n+=1):t+=1;return{column:t,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t=`document`in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset==`number`?this.source.end.offset:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),r=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:typeof e.endIndex==`number`?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<n.line||r.line===n.line&&r.column<=n.column)&&(r={column:n.column+1,line:n.line,offset:n.offset+1}),{end:r,start:n}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){if(r==null)continue;let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n={}){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}};t.exports=l,l.default=l})),Ot=o(((e,t)=>{var n=Dt(),r=class extends n{constructor(e){super(e),this.type=`comment`}};t.exports=r,r.default=r})),kt=o(((e,t)=>{var n=Dt(),r=class extends n{get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}};t.exports=r,r.default=r})),At=o(((e,t)=>{var n=Ot(),r=kt(),i=Dt(),{isClean:a,my:o}=Et(),s,c,l,u;function d(e){return e.map(e=>(e.nodes&&=d(e.nodes),delete e.source,e))}function f(e){if(e[a]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)f(t)}var p=class e extends i{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n?!0:(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0?`prepend`:!1,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(t,i){if(typeof t==`string`)t=d(c(t).nodes);else if(t===void 0)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type===`root`&&this.type!==`document`){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,`ignore`)}else if(t.type)t=[t];else if(t.prop){if(t.value===void 0)throw Error(`Value field is missed in node creation`);typeof t.value!=`string`&&(t.value=String(t.value)),t=[new r(t)]}else if(t.selector||t.selectors)t=[new u(t)];else if(t.name)t=[new s(t)];else if(t.text)t=[new n(t)];else throw Error(`Unknown node type in node creation`);return t.map(t=>(t[o]||e.rebuild(t),t=t.proxyOf,t.parent&&t.parent.removeChild(t),t[a]&&f(t),t.raws||={},t.raws.before===void 0&&i&&i.raws.before!==void 0&&(t.raws.before=i.raws.before.replace(/\S/g,``)),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{t.props&&!t.props.includes(r.prop)||t.fast&&!r.value.includes(t.fast)||(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}};p.registerParse=e=>{c=e},p.registerRule=e=>{u=e},p.registerAtRule=e=>{s=e},p.registerRoot=e=>{l=e},t.exports=p,p.default=p,p.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,u.prototype):e.type===`decl`?Object.setPrototypeOf(e,r.prototype):e.type===`comment`?Object.setPrototypeOf(e,n.prototype):e.type===`root`&&Object.setPrototypeOf(e,l.prototype),e[o]=!0,e.nodes&&e.nodes.forEach(e=>{p.rebuild(e)})}})),jt=o(((e,t)=>{var n=At(),r=class extends n{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=r,r.default=r,n.registerAtRule(r)})),Mt=o(((e,t)=>{var n=At(),r,i,a=class extends n{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a})),Nt=o(((e,t)=>{var n=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;t.exports={nanoid:(e=21)=>{let t=``,r=e|0;for(;r--;)t+=n[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r}}})),Pt=o(((e,t)=>{var{existsSync:n,readFileSync:r}=Q(),{dirname:i,join:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q();function c(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}var l=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new o(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,r=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(r)return decodeURIComponent(e.substr(r[0].length));let i=e.match(t)||e.match(n);if(i)return c(e.substr(i[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t==`string`)return t;if(typeof t==`function`){let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw Error(`Unable to load previous source map: `+n.toString());return e}}else if(t instanceof o)return s.fromSourceMap(t).toString();else if(t instanceof s)return t.toString();else if(this.isMap(t))return JSON.stringify(t);else throw Error(`Unsupported previous source map format: `+t.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let t=this.annotation;return e&&(t=a(i(e),t)),this.loadFile(t)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=l,l.default=l})),Ft=o(((e,t)=>{var{nanoid:n}=Nt(),{isAbsolute:r,resolve:i}=Q(),{SourceMapConsumer:a,SourceMapGenerator:o}=Q(),{fileURLToPath:s,pathToFileURL:c}=Q(),l=Ct(),u=Pt(),d=Q(),f=Symbol(`lineToIndexCache`),p=!!(a&&o),m=!!(i&&r);function h(e){if(e[f])return e[f];let t=e.css.split(`
429
+ `),n=Array(t.length),r=0;for(let e=0,i=t.length;e<i;e++)n[e]=r,r+=t[e].length+1;return e[f]=n,n}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!m||/^\w+:\/\//.test(t.from)||r(t.from)?this.file=t.from:this.file=i(t.from)),m&&p){let e=new u(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+n(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,r={}){let i,a,o,s,u;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){s=e.offset;let r=this.fromOffset(s);t=r.line,n=r.col}else t=e.line,n=e.column,s=this.fromLineAndColumn(t,n);if(typeof r.offset==`number`){o=r.offset;let e=this.fromOffset(o);a=e.line,i=e.col}else a=r.line,i=r.column,o=this.fromLineAndColumn(r.line,r.column)}else if(n)s=this.fromLineAndColumn(t,n);else{s=t;let e=this.fromOffset(s);t=e.line,n=e.col}let d=this.origin(t,n,a,i);return u=d?new l(e,d.endLine===void 0?d.line:{column:d.column,line:d.line},d.endLine===void 0?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,r.plugin):new l(e,a===void 0?t:{column:n,line:t},a===void 0?n:{column:i,line:a},this.css,this.file,r.plugin),u.input={column:n,endColumn:i,endLine:a,endOffset:o,line:t,offset:s,source:this.css},this.file&&(c&&(u.input.url=c(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return h(this)[e-1]+t-1}fromOffset(e){let t=h(this),n=t[t.length-1],r=0;if(e>=n)r=t.length-1;else{let n=t.length-2,i;for(;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}}return{col:e-t[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,n,i){if(!this.map)return!1;let a=this.map.consumer(),o=a.originalPositionFor({column:t,line:e});if(!o.source)return!1;let l;typeof n==`number`&&(l=a.originalPositionFor({column:i,line:n}));let u;u=r(o.source)?c(o.source):new URL(o.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:o.column,endColumn:l&&l.column,endLine:l&&l.line,line:o.line,url:u.toString()};if(u.protocol===`file:`)if(s)d.file=s(u);else throw Error(`file: protocol is not available in this PostCSS build`);let f=a.sourceContentFor(o.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)})),It=o(((e,t)=>{var n=At(),r,i,a=class extends n{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new r(new i,this,e).stringify()}};a.registerLazyResult=e=>{r=e},a.registerProcessor=e=>{i=e},t.exports=a,a.default=a,n.registerRoot(a)})),Lt=o(((e,t)=>{var n={comma(e){return n.split(e,[`,`],!0)},space(e){return n.split(e,[` `,`
430
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};t.exports=n,n.default=n})),Rt=o(((e,t)=>{var n=At(),r=Lt(),i=class extends n{get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}constructor(e){super(e),this.type=`rule`,this.nodes||=[]}};t.exports=i,i.default=i,n.registerRule(i)})),zt=o(((e,t)=>{var n=jt(),r=Ot(),i=kt(),a=Ft(),o=Pt(),s=It(),c=Rt();function l(e,t){if(Array.isArray(e))return e.map(e=>l(e));let{inputs:u,...d}=e;if(u){t=[];for(let e of u){let n={...e,__proto__:a.prototype};n.map&&={...n.map,__proto__:o.prototype},t.push(n)}}if(d.nodes&&=e.nodes.map(e=>l(e,t)),d.source){let{inputId:e,...n}=d.source;d.source=n,e!=null&&(d.source.input=t[e])}if(d.type===`root`)return new s(d);if(d.type===`decl`)return new i(d);if(d.type===`rule`)return new c(d);if(d.type===`comment`)return new r(d);if(d.type===`atrule`)return new n(d);throw Error(`Unknown node type: `+e.type)}t.exports=l,l.default=l})),Bt=o(((e,t)=>{var{dirname:n,relative:r,resolve:i,sep:a}=Q(),{SourceMapConsumer:o,SourceMapGenerator:s}=Q(),{pathToFileURL:c}=Q(),l=Ft(),u=!!(o&&s),d=!!(n&&i&&r&&a);t.exports=class{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
432
431
  `;this.css.includes(`\r
433
- `)&&(o=`\r
434
- `),this.css+=o+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let o=this.toUrl(this.path(a.file)),f=a.root||n(a.file),g;this.mapOpts.sourcesContent===!1?(g=new t(a.text),g.sourcesContent&&(g.sourcesContent=null)):g=a.consumer(),this.map.applySourceMap(g,o,this.toUrl(this.path(f)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let o=this.root.nodes.length-1;o>=0;o--)a=this.root.nodes[o],a.type==="comment"&&a.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&b&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,o=>{a+=o}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=c.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new c({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,o=1,f="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},m,_;this.stringify(this.root,(E,w,v)=>{if(this.css+=E,w&&v!=="end"&&(g.generated.line=a,g.generated.column=o-1,w.source&&w.source.start?(g.source=this.sourcePath(w),g.original.line=w.source.start.line,g.original.column=w.source.start.column-1,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,this.map.addMapping(g))),_=E.match(/\n/g),_?(a+=_.length,m=E.lastIndexOf(`
435
- `),o=E.length-m):o+=E.length,w&&v!=="start"){let y=w.parent||{raws:{}};(!(w.type==="decl"||w.type==="atrule"&&!w.nodes)||w!==y.last||y.raws.semicolon)&&(w.source&&w.source.end?(g.source=this.sourcePath(w),g.original.line=w.source.end.line,g.original.column=w.source.end.column-1,g.generated.line=a,g.generated.column=o-2,this.map.addMapping(g)):(g.source=f,g.original.line=1,g.original.column=0,g.generated.line=a,g.generated.column=o-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(o=>o.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let o=this.memoizedPaths.get(a);if(o)return o;let f=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(f=n(i(f,this.mapOpts.annotation)));let g=e(f,a);return this.memoizedPaths.set(a,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let o=a.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let a=new p(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(o=>{if(o.source){let f=o.source.input.from;if(f&&!a[f]){a[f]=!0;let g=this.usesFileUrls?this.toFileUrl(f):this.toUrl(this.path(f));this.map.setSourceContent(g,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let o=this.memoizedFileURLs.get(a);if(o)return o;if(l){let f=l(a).toString();return this.memoizedFileURLs.set(a,f),f}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let o=this.memoizedURLs.get(a);if(o)return o;r==="\\"&&(a=a.replace(/\\/g,"/"));let f=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,f),f}}return si=s,si}var oi,An;function ro(){if(An)return oi;An=1;const n=39,e=34,i=92,r=47,t=10,c=32,l=12,p=9,b=13,d=91,s=93,u=40,a=41,o=123,f=125,g=59,m=42,_=58,E=64,w=/[\t\n\f\r "#'()/;[\\\]{}]/g,v=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,S=/[\da-f]/i;return oi=function(T,z={}){let N=T.css.valueOf(),K=z.ignoreErrors,H,Ee,ce,$,Ne,W,Q,se,oe,be,Se=N.length,j=0,qe=[],Ie=[];function $t(){return j}function He(ye){throw T.error("Unclosed "+ye,j)}function Mt(){return Ie.length===0&&j>=Se}function Te(ye){if(Ie.length)return Ie.pop();if(j>=Se)return;let Fe=ye?ye.ignoreUnclosed:!1;switch(H=N.charCodeAt(j),H){case t:case c:case p:case b:case l:{$=j;do $+=1,H=N.charCodeAt($);while(H===c||H===t||H===p||H===b||H===l);W=["space",N.slice(j,$)],j=$-1;break}case d:case s:case o:case f:case _:case g:case a:{let rt=String.fromCharCode(H);W=[rt,rt,j];break}case u:{if(be=qe.length?qe.pop()[1]:"",oe=N.charCodeAt(j+1),be==="url"&&oe!==n&&oe!==e&&oe!==c&&oe!==t&&oe!==p&&oe!==l&&oe!==b){$=j;do{if(Q=!1,$=N.indexOf(")",$+1),$===-1)if(K||Fe){$=j;break}else He("bracket");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["brackets",N.slice(j,$+1),j,$],j=$}else $=N.indexOf(")",j+1),Ee=N.slice(j,$+1),$===-1||y.test(Ee)?W=["(","(",j]:(W=["brackets",Ee,j,$],j=$);break}case n:case e:{Ne=H===n?"'":'"',$=j;do{if(Q=!1,$=N.indexOf(Ne,$+1),$===-1)if(K||Fe){$=j+1;break}else He("string");for(se=$;N.charCodeAt(se-1)===i;)se-=1,Q=!Q}while(Q);W=["string",N.slice(j,$+1),j,$],j=$;break}case E:{w.lastIndex=j+1,w.test(N),w.lastIndex===0?$=N.length-1:$=w.lastIndex-2,W=["at-word",N.slice(j,$+1),j,$],j=$;break}case i:{for($=j,ce=!0;N.charCodeAt($+1)===i;)$+=1,ce=!ce;if(H=N.charCodeAt($+1),ce&&H!==r&&H!==c&&H!==t&&H!==p&&H!==b&&H!==l&&($+=1,S.test(N.charAt($)))){for(;S.test(N.charAt($+1));)$+=1;N.charCodeAt($+1)===c&&($+=1)}W=["word",N.slice(j,$+1),j,$],j=$;break}default:{H===r&&N.charCodeAt(j+1)===m?($=N.indexOf("*/",j+2)+1,$===0&&(K||Fe?$=N.length:He("comment")),W=["comment",N.slice(j,$+1),j,$],j=$):(v.lastIndex=j+1,v.test(N),v.lastIndex===0?$=N.length-1:$=v.lastIndex-2,W=["word",N.slice(j,$+1),j,$],qe.push(W),j=$);break}}return j++,W}function Pt(ye){Ie.push(ye)}return{back:Pt,endOfFile:Mt,nextToken:Te,position:$t}},oi}var ai,kn;function so(){if(kn)return ai;kn=1;let n=Ci(),e=kt(),i=Ct(),r=nt(),t=Ri(),c=ro();const l={empty:!0,space:!0};function p(d){for(let s=d.length-1;s>=0;s--){let u=d[s],a=u[3]||u[2];if(a)return a}}class b{constructor(s){this.input=s,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:s,start:{column:1,line:1,offset:0}}}atrule(s){let u=new n;u.name=s[1].slice(1),u.name===""&&this.unnamedAtrule(u,s),this.init(u,s[2]);let a,o,f,g=!1,m=!1,_=[],E=[];for(;!this.tokenizer.endOfFile();){if(s=this.tokenizer.nextToken(),a=s[0],a==="("||a==="["?E.push(a==="("?")":"]"):a==="{"&&E.length>0?E.push("}"):a===E[E.length-1]&&E.pop(),E.length===0)if(a===";"){u.source.end=this.getPosition(s[2]),u.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){m=!0;break}else if(a==="}"){if(_.length>0){for(f=_.length-1,o=_[f];o&&o[0]==="space";)o=_[--f];o&&(u.source.end=this.getPosition(o[3]||o[2]),u.source.end.offset++)}this.end(s);break}else _.push(s);else _.push(s);if(this.tokenizer.endOfFile()){g=!0;break}}u.raws.between=this.spacesAndCommentsFromEnd(_),_.length?(u.raws.afterName=this.spacesAndCommentsFromStart(_),this.raw(u,"params",_),g&&(s=_[_.length-1],u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++,this.spaces=u.raws.between,u.raws.between="")):(u.raws.afterName="",u.params=""),m&&(u.nodes=[],this.current=u)}checkMissedSemicolon(s){let u=this.colon(s);if(u===!1)return;let a=0,o;for(let f=u-1;f>=0&&(o=s[f],!(o[0]!=="space"&&(a+=1,a===2)));f--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(s){let u=0,a,o,f;for(let[g,m]of s.entries()){if(o=m,f=o[0],f==="("&&(u+=1),f===")"&&(u-=1),u===0&&f===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return g}a=o}return!1}comment(s){let u=new e;this.init(u,s[2]),u.source.end=this.getPosition(s[3]||s[2]),u.source.end.offset++;let a=s[1].slice(2,-2);if(/^\s*$/.test(a))u.text="",u.raws.left=a,u.raws.right="";else{let o=a.match(/^(\s*)([^]*\S)(\s*)$/);u.text=o[2],u.raws.left=o[1],u.raws.right=o[3]}}createTokenizer(){this.tokenizer=c(this.input)}decl(s,u){let a=new i;this.init(a,s[0][2]);let o=s[s.length-1];for(o[0]===";"&&(this.semicolon=!0,s.pop()),a.source.end=this.getPosition(o[3]||o[2]||p(s)),a.source.end.offset++;s[0][0]!=="word";)s.length===1&&this.unknownWord(s),a.raws.before+=s.shift()[1];for(a.source.start=this.getPosition(s[0][2]),a.prop="";s.length;){let E=s[0][0];if(E===":"||E==="space"||E==="comment")break;a.prop+=s.shift()[1]}a.raws.between="";let f;for(;s.length;)if(f=s.shift(),f[0]===":"){a.raws.between+=f[1];break}else f[0]==="word"&&/\w/.test(f[1])&&this.unknownWord([f]),a.raws.between+=f[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let g=[],m;for(;s.length&&(m=s[0][0],!(m!=="space"&&m!=="comment"));)g.push(s.shift());this.precheckMissedSemicolon(s);for(let E=s.length-1;E>=0;E--){if(f=s[E],f[1].toLowerCase()==="!important"){a.important=!0;let w=this.stringFrom(s,E);w=this.spacesFromEnd(s)+w,w!==" !important"&&(a.raws.important=w);break}else if(f[1].toLowerCase()==="important"){let w=s.slice(0),v="";for(let y=E;y>0;y--){let S=w[y][0];if(v.trim().startsWith("!")&&S!=="space")break;v=w.pop()[1]+v}v.trim().startsWith("!")&&(a.important=!0,a.raws.important=v,s=w)}if(f[0]!=="space"&&f[0]!=="comment")break}s.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(a.raws.between+=g.map(E=>E[1]).join(""),g=[]),this.raw(a,"value",g.concat(s),u),a.value.includes(":")&&!u&&this.checkMissedSemicolon(s)}doubleColon(s){throw this.input.error("Double colon",{offset:s[2]},{offset:s[2]+s[1].length})}emptyRule(s){let u=new t;this.init(u,s[2]),u.selector="",u.raws.between="",this.current=u}end(s){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(s[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(s)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(s){if(this.spaces+=s[1],this.current.nodes){let u=this.current.nodes[this.current.nodes.length-1];u&&u.type==="rule"&&!u.raws.ownSemicolon&&(u.raws.ownSemicolon=this.spaces,this.spaces="",u.source.end=this.getPosition(s[2]),u.source.end.offset+=u.raws.ownSemicolon.length)}}getPosition(s){let u=this.input.fromOffset(s);return{column:u.col,line:u.line,offset:s}}init(s,u){this.current.push(s),s.source={input:this.input,start:this.getPosition(u)},s.raws.before=this.spaces,this.spaces="",s.type!=="comment"&&(this.semicolon=!1)}other(s){let u=!1,a=null,o=!1,f=null,g=[],m=s[1].startsWith("--"),_=[],E=s;for(;E;){if(a=E[0],_.push(E),a==="("||a==="[")f||(f=E),g.push(a==="("?")":"]");else if(m&&o&&a==="{")f||(f=E),g.push("}");else if(g.length===0)if(a===";")if(o){this.decl(_,m);return}else break;else if(a==="{"){this.rule(_);return}else if(a==="}"){this.tokenizer.back(_.pop()),u=!0;break}else a===":"&&(o=!0);else a===g[g.length-1]&&(g.pop(),g.length===0&&(f=null));E=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(u=!0),g.length>0&&this.unclosedBracket(f),u&&o){if(!m)for(;_.length&&(E=_[_.length-1][0],!(E!=="space"&&E!=="comment"));)this.tokenizer.back(_.pop());this.decl(_,m)}else this.unknownWord(_)}parse(){let s;for(;!this.tokenizer.endOfFile();)switch(s=this.tokenizer.nextToken(),s[0]){case"space":this.spaces+=s[1];break;case";":this.freeSemicolon(s);break;case"}":this.end(s);break;case"comment":this.comment(s);break;case"at-word":this.atrule(s);break;case"{":this.emptyRule(s);break;default:this.other(s);break}this.endFile()}precheckMissedSemicolon(){}raw(s,u,a,o){let f,g,m=a.length,_="",E=!0,w,v;for(let y=0;y<m;y+=1)f=a[y],g=f[0],g==="space"&&y===m-1&&!o?E=!1:g==="comment"?(v=a[y-1]?a[y-1][0]:"empty",w=a[y+1]?a[y+1][0]:"empty",!l[v]&&!l[w]?_.slice(-1)===","?E=!1:_+=f[1]:E=!1):_+=f[1];if(!E){let y=a.reduce((S,O)=>S+O[1],"");s.raws[u]={raw:y,value:_}}s[u]=_}rule(s){s.pop();let u=new t;this.init(u,s[0][2]),u.raws.between=this.spacesAndCommentsFromEnd(s),this.raw(u,"selector",s),this.current=u}spacesAndCommentsFromEnd(s){let u,a="";for(;s.length&&(u=s[s.length-1][0],!(u!=="space"&&u!=="comment"));)a=s.pop()[1]+a;return a}spacesAndCommentsFromStart(s){let u,a="";for(;s.length&&(u=s[0][0],!(u!=="space"&&u!=="comment"));)a+=s.shift()[1];return a}spacesFromEnd(s){let u,a="";for(;s.length&&(u=s[s.length-1][0],u==="space");)a=s.pop()[1]+a;return a}stringFrom(s,u){let a="";for(let o=u;o<s.length;o++)a+=s[o][1];return s.splice(u,s.length-u),a}unclosedBlock(){let s=this.current.source.start;throw this.input.error("Unclosed block",s.line,s.column)}unclosedBracket(s){throw this.input.error("Unclosed bracket",{offset:s[2]},{offset:s[2]+1})}unexpectedClose(s){throw this.input.error("Unexpected }",{offset:s[2]},{offset:s[2]+1})}unknownWord(s){throw this.input.error("Unknown word "+s[0][1],{offset:s[0][2]},{offset:s[0][2]+s[0][1].length})}unnamedAtrule(s,u){throw this.input.error("At-rule without name",{offset:u[2]},{offset:u[2]+u[1].length})}}return ai=b,ai}var li,Cn;function $i(){if(Cn)return li;Cn=1;let n=Pe(),e=Ot(),i=so();function r(t,c){let l=new e(t,c),p=new i(l);try{p.parse()}catch(b){throw b}return p.root}return li=r,r.default=r,n.registerParse(r),li}var ci,On;function Jn(){if(On)return ci;On=1;class n{constructor(i,r={}){if(this.type="warning",this.text=i,r.node&&r.node.source){let t=r.node.rangeBy(r);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in r)this[t]=r[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return ci=n,n.default=n,ci}var ui,Rn;function Mi(){if(Rn)return ui;Rn=1;let n=Jn();class e{get content(){return this.css}constructor(r,t,c){this.processor=r,this.messages=[],this.root=t,this.opts=c,this.css="",this.map=void 0}toString(){return this.css}warn(r,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let c=new n(r,t);return this.messages.push(c),c}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ui=e,e.default=e,ui}var di,$n;function Xn(){if($n)return di;$n=1;let n=Pe(),e=Oi(),i=Kn(),r=$i(),t=Mi(),c=nt(),l=St(),{isClean:p,my:b}=ki();const d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},s={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},u={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function o(w){return typeof w=="object"&&typeof w.then=="function"}function f(w){let v=!1,y=d[w.type];return w.type==="decl"?v=w.prop.toLowerCase():w.type==="atrule"&&(v=w.name.toLowerCase()),v&&w.append?[y,y+"-"+v,a,y+"Exit",y+"Exit-"+v]:v?[y,y+"-"+v,y+"Exit",y+"Exit-"+v]:w.append?[y,a,y+"Exit"]:[y,y+"Exit"]}function g(w){let v;return w.type==="document"?v=["Document",a,"DocumentExit"]:w.type==="root"?v=["Root",a,"RootExit"]:v=f(w),{eventIndex:0,events:v,iterator:0,node:w,visitorIndex:0,visitors:[]}}function m(w){return w[p]=!1,w.nodes&&w.nodes.forEach(v=>m(v)),w}let _={};class E{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(v,y,S){this.stringified=!1,this.processed=!1;let O;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))O=m(y);else if(y instanceof E||y instanceof t)O=m(y.root),y.map&&(typeof S.map>"u"&&(S.map={}),S.map.inline||(S.map.inline=!1),S.map.prev=y.map);else{let T=r;S.syntax&&(T=S.syntax.parse),S.parser&&(T=S.parser),T.parse&&(T=T.parse);try{O=T(y,S)}catch(z){this.processed=!0,this.error=z}O&&!O[b]&&n.rebuild(O)}this.result=new t(v,O,S),this.helpers={..._,postcss:_,result:this.result},this.plugins=this.processor.plugins.map(T=>typeof T=="object"&&T.prepare?{...T,...T.prepare(this.result)}:T)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(v){return this.async().catch(v)}finally(v){return this.async().then(v,v)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(v,y){let S=this.result.lastPlugin;try{y&&y.addToError(v),this.error=v,v.name==="CssSyntaxError"&&!v.plugin?(v.plugin=S.postcssPlugin,v.setMessage()):S.postcssVersion}catch(O){console&&console.error&&console.error(O)}return v}prepareVisitors(){this.listeners={};let v=(y,S,O)=>{this.listeners[S]||(this.listeners[S]=[]),this.listeners[S].push([y,O])};for(let y of this.plugins)if(typeof y=="object")for(let S in y){if(!s[S]&&/^[A-Z]/.test(S))throw new Error(`Unknown event ${S} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[S])if(typeof y[S]=="object")for(let O in y[S])O==="*"?v(y,S,y[S][O]):v(y,S+"-"+O.toLowerCase(),y[S][O]);else typeof y[S]=="function"&&v(y,S,y[S])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let v=0;v<this.plugins.length;v++){let y=this.plugins[v],S=this.runOnRoot(y);if(o(S))try{await S}catch(O){throw this.handleError(O)}}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];){v[p]=!0;let y=[g(v)];for(;y.length>0;){let S=this.visitTick(y);if(o(S))try{await S}catch(O){let T=y[y.length-1].node;throw this.handleError(O,T)}}}if(this.listeners.OnceExit)for(let[y,S]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(v.type==="document"){let O=v.nodes.map(T=>S(T,this.helpers));await Promise.all(O)}else await S(v,this.helpers)}catch(O){throw this.handleError(O)}}}return this.processed=!0,this.stringify()}runOnRoot(v){this.result.lastPlugin=v;try{if(typeof v=="object"&&v.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(S=>v.Once(S,this.helpers));return o(y[0])?Promise.all(y):y}return v.Once(this.result.root,this.helpers)}else if(typeof v=="function")return v(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let v=this.result.opts,y=l;v.syntax&&(y=v.syntax.stringify),v.stringifier&&(y=v.stringifier),y.stringify&&(y=y.stringify);let O=new i(y,this.result.root,this.result.opts).generate();return this.result.css=O[0],this.result.map=O[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let v of this.plugins){let y=this.runOnRoot(v);if(o(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let v=this.result.root;for(;!v[p];)v[p]=!0,this.walkSync(v);if(this.listeners.OnceExit)if(v.type==="document")for(let y of v.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,v)}return this.result}then(v,y){return this.async().then(v,y)}toString(){return this.css}visitSync(v,y){for(let[S,O]of v){this.result.lastPlugin=S;let T;try{T=O(y,this.helpers)}catch(z){throw this.handleError(z,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(o(T))throw this.getAsyncError()}}visitTick(v){let y=v[v.length-1],{node:S,visitors:O}=y;if(S.type!=="root"&&S.type!=="document"&&!S.parent){v.pop();return}if(O.length>0&&y.visitorIndex<O.length){let[z,N]=O[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===O.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=z;try{return N(S.toProxy(),this.helpers)}catch(K){throw this.handleError(K,S)}}if(y.iterator!==0){let z=y.iterator,N;for(;N=S.nodes[S.indexes[z]];)if(S.indexes[z]+=1,!N[p]){N[p]=!0,v.push(g(N));return}y.iterator=0,delete S.indexes[z]}let T=y.events;for(;y.eventIndex<T.length;){let z=T[y.eventIndex];if(y.eventIndex+=1,z===a){S.nodes&&S.nodes.length&&(S[p]=!0,y.iterator=S.getIterator());return}else if(this.listeners[z]){y.visitors=this.listeners[z];return}}v.pop()}walkSync(v){v[p]=!0;let y=f(v);for(let S of y)if(S===a)v.nodes&&v.each(O=>{O[p]||this.walkSync(O)});else{let O=this.listeners[S];if(O&&this.visitSync(O,v.toProxy()))return}}warnings(){return this.sync().warnings()}}return E.registerPostcss=w=>{_=w},di=E,E.default=E,c.registerLazyResult(E),e.registerLazyResult(E),di}var hi,Mn;function oo(){if(Mn)return hi;Mn=1;let n=Kn(),e=$i();const i=Mi();let r=St();class t{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,p=e;try{l=p(this._css,this._opts)}catch(b){this.error=b}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,p,b){p=p.toString(),this.stringified=!1,this._processor=l,this._css=p,this._opts=b,this._map=void 0;let d,s=r;this.result=new i(this._processor,d,this._opts),this.result.css=p;let u=this;Object.defineProperty(this.result,"root",{get(){return u.root}});let a=new n(s,d,this._opts,p);if(a.isMap()){let[o,f]=a.generate();o&&(this.result.css=o),f&&(this.result.map=f)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,p){return this.async().then(l,p)}toString(){return this._css}warnings(){return[]}}return hi=t,t.default=t,hi}var fi,Pn;function ao(){if(Pn)return fi;Pn=1;let n=Oi(),e=Xn(),i=oo(),r=nt();class t{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let p=[];for(let b of l)if(b.postcss===!0?b=b():b.postcss&&(b=b.postcss),typeof b=="object"&&Array.isArray(b.plugins))p=p.concat(b.plugins);else if(typeof b=="object"&&b.postcssPlugin)p.push(b);else if(typeof b=="function")p.push(b);else if(!(typeof b=="object"&&(b.parse||b.stringify)))throw new Error(b+" is not a PostCSS plugin");return p}process(l,p={}){return!this.plugins.length&&!p.parser&&!p.stringifier&&!p.syntax?new i(this,l,p):new e(this,l,p)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}}return fi=t,t.default=t,r.registerProcessor(t),n.registerProcessor(t),fi}var pi,Nn;function lo(){if(Nn)return pi;Nn=1;var n={};let e=Ci(),i=kt(),r=Pe(),t=Ai(),c=Ct(),l=Oi(),p=no(),b=Ot(),d=Xn(),s=Zn(),u=At(),a=$i(),o=ao(),f=Mi(),g=nt(),m=Ri(),_=St(),E=Jn();function w(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new o(v)}return w.plugin=function(y,S){let O=!1;function T(...N){console&&console.warn&&!O&&(O=!0,console.warn(y+`: postcss.plugin was deprecated. Migration guide:
436
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),n.LANG&&n.LANG.startsWith("cn")&&console.warn(y+`: 里面 postcss.plugin 被弃用. 迁移指南:
437
- https://www.w3ctech.com/topic/2226`));let K=S(...N);return K.postcssPlugin=y,K.postcssVersion=new o().version,K}let z;return Object.defineProperty(T,"postcss",{get(){return z||(z=T()),z}}),T.process=function(N,K,H){return w([T(H)]).process(N,K)},T},w.stringify=_,w.parse=a,w.fromJSON=p,w.list=s,w.comment=v=>new i(v),w.atRule=v=>new e(v),w.decl=v=>new c(v),w.rule=v=>new m(v),w.root=v=>new g(v),w.document=v=>new l(v),w.CssSyntaxError=t,w.Declaration=c,w.Container=r,w.Processor=o,w.Document=l,w.Comment=i,w.Warning=E,w.AtRule=e,w.Result=f,w.Input=b,w.Rule=m,w.Root=g,w.Node=u,d.registerPostcss(w),pi=w,w.default=w,pi}var co=lo();const Z=Wn(co);Z.stringify;Z.fromJSON;Z.plugin;Z.parse;Z.list;Z.document;Z.comment;Z.atRule;Z.rule;Z.decl;Z.root;Z.CssSyntaxError;Z.Declaration;Z.Container;Z.Processor;Z.Document;Z.Comment;Z.Warning;Z.AtRule;Z.Result;Z.Input;Z.Rule;Z.Root;Z.Node;var gi,In;function uo(){if(In)return gi;In=1;const n=(r={})=>{const t=r.prefix,c=/\s+$/.test(t)?t:`${t} `,l=r.ignoreFiles?[].concat(r.ignoreFiles):[],p=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(b){const d=b.root,s=d.source.input.file;if(!(l.length&&s&&e(s,l))&&!(p.length&&s&&!e(s,p)))return{Rule(u,{result:a}){const o=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];u.parent&&o.includes(u.parent.name)||(u.selectors=u.selectors.map(f=>r.exclude&&i(f,r.exclude)?f:r.transform?r.transform(t,f,c+f,d.source.input.file,u):[":root","body","html"].some(g=>f.startsWith(g))?r.skipGlobalSelectors?f:f.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):c+f))}}}}};function e(r,t){return t.some(c=>c instanceof RegExp?c.test(r):r.includes(c))}function i(r,t){return t.some(c=>c instanceof RegExp?c.test(r):r===c)}return n.postcss=!0,gi=n,gi}var ho=uo();const fo=Wn(ho),po="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",go="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function mo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mi,Tn;function bo(){if(Tn)return mi;Tn=1;function n(h){return h instanceof Map?h.clear=h.delete=h.set=function(){throw new Error("map is read-only")}:h instanceof Set&&(h.add=h.clear=h.delete=function(){throw new Error("set is read-only")}),Object.freeze(h),Object.getOwnPropertyNames(h).forEach(x=>{const C=h[x],D=typeof C;(D==="object"||D==="function")&&!Object.isFrozen(C)&&n(C)}),h}class e{constructor(x){x.data===void 0&&(x.data={}),this.data=x.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(h){return h.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(h,...x){const C=Object.create(null);for(const D in h)C[D]=h[D];return x.forEach(function(D){for(const J in D)C[J]=D[J]}),C}const t="</span>",c=h=>!!h.scope,l=(h,{prefix:x})=>{if(h.startsWith("language:"))return h.replace("language:","language-");if(h.includes(".")){const C=h.split(".");return[`${x}${C.shift()}`,...C.map((D,J)=>`${D}${"_".repeat(J+1)}`)].join(" ")}return`${x}${h}`};class p{constructor(x,C){this.buffer="",this.classPrefix=C.classPrefix,x.walk(this)}addText(x){this.buffer+=i(x)}openNode(x){if(!c(x))return;const C=l(x.scope,{prefix:this.classPrefix});this.span(C)}closeNode(x){c(x)&&(this.buffer+=t)}value(){return this.buffer}span(x){this.buffer+=`<span class="${x}">`}}const b=(h={})=>{const x={children:[]};return Object.assign(x,h),x};class d{constructor(){this.rootNode=b(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(x){this.top.children.push(x)}openNode(x){const C=b({scope:x});this.add(C),this.stack.push(C)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(x){return this.constructor._walk(x,this.rootNode)}static _walk(x,C){return typeof C=="string"?x.addText(C):C.children&&(x.openNode(C),C.children.forEach(D=>this._walk(x,D)),x.closeNode(C)),x}static _collapse(x){typeof x!="string"&&x.children&&(x.children.every(C=>typeof C=="string")?x.children=[x.children.join("")]:x.children.forEach(C=>{d._collapse(C)}))}}class s extends d{constructor(x){super(),this.options=x}addText(x){x!==""&&this.add(x)}startScope(x){this.openNode(x)}endScope(){this.closeNode()}__addSublanguage(x,C){const D=x.root;C&&(D.scope=`language:${C}`),this.add(D)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(h){return h?typeof h=="string"?h:h.source:null}function a(h){return g("(?=",h,")")}function o(h){return g("(?:",h,")*")}function f(h){return g("(?:",h,")?")}function g(...h){return h.map(x=>u(x)).join("")}function m(h){const x=h[h.length-1];return typeof x=="object"&&x.constructor===Object?(h.splice(h.length-1,1),x):{}}function _(...h){return"("+(m(h).capture?"":"?:")+h.map(x=>u(x)).join("|")+")"}function E(h){return new RegExp(h.toString()+"|").exec("").length-1}function w(h,x){const C=h&&h.exec(x);return C&&C.index===0}const v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(h,{joinWith:x}){let C=0;return h.map(D=>{C+=1;const J=C;let X=u(D),M="";for(;X.length>0;){const R=v.exec(X);if(!R){M+=X;break}M+=X.substring(0,R.index),X=X.substring(R.index+R[0].length),R[0][0]==="\\"&&R[1]?M+="\\"+String(Number(R[1])+J):(M+=R[0],R[0]==="("&&C++)}return M}).map(D=>`(${D})`).join(x)}const S=/\b\B/,O="[a-zA-Z]\\w*",T="[a-zA-Z_]\\w*",z="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K="\\b(0b[01]+)",H="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ee=(h={})=>{const x=/^#![ ]*\//;return h.binary&&(h.begin=g(x,/.*\b/,h.binary,/\b.*/)),r({scope:"meta",begin:x,end:/$/,relevance:0,"on:begin":(C,D)=>{C.index!==0&&D.ignoreMatch()}},h)},ce={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ce]},Ne={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ce]},W={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Q=function(h,x,C={}){const D=r({scope:"comment",begin:h,end:x,contains:[]},C);D.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const J=_("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return D.contains.push({begin:g(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),D},se=Q("//","$"),oe=Q("/\\*","\\*/"),be=Q("#","$"),Se={scope:"number",begin:z,relevance:0},j={scope:"number",begin:N,relevance:0},qe={scope:"number",begin:K,relevance:0},Ie={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[ce,{begin:/\[/,end:/\]/,relevance:0,contains:[ce]}]},$t={scope:"title",begin:O,relevance:0},He={scope:"title",begin:T,relevance:0},Mt={begin:"\\.\\s*"+T,relevance:0};var Te=Object.freeze({__proto__:null,APOS_STRING_MODE:$,BACKSLASH_ESCAPE:ce,BINARY_NUMBER_MODE:qe,BINARY_NUMBER_RE:K,COMMENT:Q,C_BLOCK_COMMENT_MODE:oe,C_LINE_COMMENT_MODE:se,C_NUMBER_MODE:j,C_NUMBER_RE:N,END_SAME_AS_BEGIN:function(h){return Object.assign(h,{"on:begin":(x,C)=>{C.data._beginMatch=x[1]},"on:end":(x,C)=>{C.data._beginMatch!==x[1]&&C.ignoreMatch()}})},HASH_COMMENT_MODE:be,IDENT_RE:O,MATCH_NOTHING_RE:S,METHOD_GUARD:Mt,NUMBER_MODE:Se,NUMBER_RE:z,PHRASAL_WORDS_MODE:W,QUOTE_STRING_MODE:Ne,REGEXP_MODE:Ie,RE_STARTERS_RE:H,SHEBANG:Ee,TITLE_MODE:$t,UNDERSCORE_IDENT_RE:T,UNDERSCORE_TITLE_MODE:He});function Pt(h,x){h.input[h.index-1]==="."&&x.ignoreMatch()}function ye(h,x){h.className!==void 0&&(h.scope=h.className,delete h.className)}function Fe(h,x){x&&h.beginKeywords&&(h.begin="\\b("+h.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",h.__beforeBegin=Pt,h.keywords=h.keywords||h.beginKeywords,delete h.beginKeywords,h.relevance===void 0&&(h.relevance=0))}function rt(h,x){Array.isArray(h.illegal)&&(h.illegal=_(...h.illegal))}function or(h,x){if(h.match){if(h.begin||h.end)throw new Error("begin & end are not supported with match");h.begin=h.match,delete h.match}}function ar(h,x){h.relevance===void 0&&(h.relevance=1)}const lr=(h,x)=>{if(!h.beforeMatch)return;if(h.starts)throw new Error("beforeMatch cannot be used with starts");const C=Object.assign({},h);Object.keys(h).forEach(D=>{delete h[D]}),h.keywords=C.keywords,h.begin=g(C.beforeMatch,a(C.begin)),h.starts={relevance:0,contains:[Object.assign(C,{endsParent:!0})]},h.relevance=0,delete C.beforeMatch},cr=["of","and","for","in","not","or","if","then","parent","list","value"],ur="keyword";function Pi(h,x,C=ur){const D=Object.create(null);return typeof h=="string"?J(C,h.split(" ")):Array.isArray(h)?J(C,h):Object.keys(h).forEach(function(X){Object.assign(D,Pi(h[X],x,X))}),D;function J(X,M){x&&(M=M.map(R=>R.toLowerCase())),M.forEach(function(R){const L=R.split("|");D[L[0]]=[X,dr(L[0],L[1])]})}}function dr(h,x){return x?Number(x):hr(h)?0:1}function hr(h){return cr.includes(h.toLowerCase())}const Ni={},Ae=h=>{console.error(h)},Ii=(h,...x)=>{console.log(`WARN: ${h}`,...x)},Le=(h,x)=>{Ni[`${h}/${x}`]||(console.log(`Deprecated as of ${h}. ${x}`),Ni[`${h}/${x}`]=!0)},st=new Error;function Ti(h,x,{key:C}){let D=0;const J=h[C],X={},M={};for(let R=1;R<=x.length;R++)M[R+D]=J[R],X[R+D]=!0,D+=E(x[R-1]);h[C]=M,h[C]._emit=X,h[C]._multi=!0}function fr(h){if(Array.isArray(h.begin)){if(h.skip||h.excludeBegin||h.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),st;if(typeof h.beginScope!="object"||h.beginScope===null)throw Ae("beginScope must be object"),st;Ti(h,h.begin,{key:"beginScope"}),h.begin=y(h.begin,{joinWith:""})}}function pr(h){if(Array.isArray(h.end)){if(h.skip||h.excludeEnd||h.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),st;if(typeof h.endScope!="object"||h.endScope===null)throw Ae("endScope must be object"),st;Ti(h,h.end,{key:"endScope"}),h.end=y(h.end,{joinWith:""})}}function gr(h){h.scope&&typeof h.scope=="object"&&h.scope!==null&&(h.beginScope=h.scope,delete h.scope)}function mr(h){gr(h),typeof h.beginScope=="string"&&(h.beginScope={_wrap:h.beginScope}),typeof h.endScope=="string"&&(h.endScope={_wrap:h.endScope}),fr(h),pr(h)}function br(h){function x(M,R){return new RegExp(u(M),"m"+(h.case_insensitive?"i":"")+(h.unicodeRegex?"u":"")+(R?"g":""))}class C{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(R,L){L.position=this.position++,this.matchIndexes[this.matchAt]=L,this.regexes.push([L,R]),this.matchAt+=E(R)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const R=this.regexes.map(L=>L[1]);this.matcherRe=x(y(R,{joinWith:"|"}),!0),this.lastIndex=0}exec(R){this.matcherRe.lastIndex=this.lastIndex;const L=this.matcherRe.exec(R);if(!L)return null;const ie=L.findIndex((We,It)=>It>0&&We!==void 0),Y=this.matchIndexes[ie];return L.splice(0,ie),Object.assign(L,Y)}}class D{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(R){if(this.multiRegexes[R])return this.multiRegexes[R];const L=new C;return this.rules.slice(R).forEach(([ie,Y])=>L.addRule(ie,Y)),L.compile(),this.multiRegexes[R]=L,L}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(R,L){this.rules.push([R,L]),L.type==="begin"&&this.count++}exec(R){const L=this.getMatcher(this.regexIndex);L.lastIndex=this.lastIndex;let ie=L.exec(R);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const Y=this.getMatcher(0);Y.lastIndex=this.lastIndex+1,ie=Y.exec(R)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function J(M){const R=new D;return M.contains.forEach(L=>R.addRule(L.begin,{rule:L,type:"begin"})),M.terminatorEnd&&R.addRule(M.terminatorEnd,{type:"end"}),M.illegal&&R.addRule(M.illegal,{type:"illegal"}),R}function X(M,R){const L=M;if(M.isCompiled)return L;[ye,or,mr,lr].forEach(Y=>Y(M,R)),h.compilerExtensions.forEach(Y=>Y(M,R)),M.__beforeBegin=null,[Fe,rt,ar].forEach(Y=>Y(M,R)),M.isCompiled=!0;let ie=null;return typeof M.keywords=="object"&&M.keywords.$pattern&&(M.keywords=Object.assign({},M.keywords),ie=M.keywords.$pattern,delete M.keywords.$pattern),ie=ie||/\w+/,M.keywords&&(M.keywords=Pi(M.keywords,h.case_insensitive)),L.keywordPatternRe=x(ie,!0),R&&(M.begin||(M.begin=/\B|\b/),L.beginRe=x(L.begin),!M.end&&!M.endsWithParent&&(M.end=/\B|\b/),M.end&&(L.endRe=x(L.end)),L.terminatorEnd=u(L.end)||"",M.endsWithParent&&R.terminatorEnd&&(L.terminatorEnd+=(M.end?"|":"")+R.terminatorEnd)),M.illegal&&(L.illegalRe=x(M.illegal)),M.contains||(M.contains=[]),M.contains=[].concat(...M.contains.map(function(Y){return yr(Y==="self"?M:Y)})),M.contains.forEach(function(Y){X(Y,L)}),M.starts&&X(M.starts,R),L.matcher=J(L),L}if(h.compilerExtensions||(h.compilerExtensions=[]),h.contains&&h.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return h.classNameAliases=r(h.classNameAliases||{}),X(h)}function Li(h){return h?h.endsWithParent||Li(h.starts):!1}function yr(h){return h.variants&&!h.cachedVariants&&(h.cachedVariants=h.variants.map(function(x){return r(h,{variants:null},x)})),h.cachedVariants?h.cachedVariants:Li(h)?r(h,{starts:h.starts?r(h.starts):null}):Object.isFrozen(h)?r(h):h}var vr="11.11.1";class wr extends Error{constructor(x,C){super(x),this.name="HTMLInjectionError",this.html=C}}const Nt=i,ji=r,Bi=Symbol("nomatch"),xr=7,Di=function(h){const x=Object.create(null),C=Object.create(null),D=[];let J=!0;const X="Could not find the language '{}', did you forget to load/include a language module?",M={disableAutodetect:!0,name:"Plain text",contains:[]};let R={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s};function L(A){return R.noHighlightRe.test(A)}function ie(A){let I=A.className+" ";I+=A.parentNode?A.parentNode.className:"";const q=R.languageDetectRe.exec(I);if(q){const G=ve(q[1]);return G||(Ii(X.replace("{}",q[1])),Ii("Falling back to no-highlight mode for this block.",A)),G?q[1]:"no-highlight"}return I.split(/\s+/).find(G=>L(G)||ve(G))}function Y(A,I,q){let G="",ee="";typeof I=="object"?(G=A,q=I.ignoreIllegals,ee=I.language):(Le("10.7.0","highlight(lang, code, ...args) has been deprecated."),Le("10.7.0",`Please use highlight(code, options) instead.
438
- https://github.com/highlightjs/highlight.js/issues/2277`),ee=A,G=I),q===void 0&&(q=!0);const he={code:G,language:ee};at("before:highlight",he);const we=he.result?he.result:We(he.language,he.code,q);return we.code=he.code,at("after:highlight",we),we}function We(A,I,q,G){const ee=Object.create(null);function he(k,P){return k.keywords[P]}function we(){if(!B.keywords){ne.addText(V);return}let k=0;B.keywordPatternRe.lastIndex=0;let P=B.keywordPatternRe.exec(V),U="";for(;P;){U+=V.substring(k,P.index);const F=pe.case_insensitive?P[0].toLowerCase():P[0],re=he(B,F);if(re){const[me,Br]=re;if(ne.addText(U),U="",ee[F]=(ee[F]||0)+1,ee[F]<=xr&&(ut+=Br),me.startsWith("_"))U+=P[0];else{const Dr=pe.classNameAliases[me]||me;fe(P[0],Dr)}}else U+=P[0];k=B.keywordPatternRe.lastIndex,P=B.keywordPatternRe.exec(V)}U+=V.substring(k),ne.addText(U)}function lt(){if(V==="")return;let k=null;if(typeof B.subLanguage=="string"){if(!x[B.subLanguage]){ne.addText(V);return}k=We(B.subLanguage,V,!0,Vi[B.subLanguage]),Vi[B.subLanguage]=k._top}else k=Tt(V,B.subLanguage.length?B.subLanguage:null);B.relevance>0&&(ut+=k.relevance),ne.__addSublanguage(k._emitter,k.language)}function le(){B.subLanguage!=null?lt():we(),V=""}function fe(k,P){k!==""&&(ne.startScope(P),ne.addText(k),ne.endScope())}function Hi(k,P){let U=1;const F=P.length-1;for(;U<=F;){if(!k._emit[U]){U++;continue}const re=pe.classNameAliases[k[U]]||k[U],me=P[U];re?fe(me,re):(V=me,we(),V=""),U++}}function Fi(k,P){return k.scope&&typeof k.scope=="string"&&ne.openNode(pe.classNameAliases[k.scope]||k.scope),k.beginScope&&(k.beginScope._wrap?(fe(V,pe.classNameAliases[k.beginScope._wrap]||k.beginScope._wrap),V=""):k.beginScope._multi&&(Hi(k.beginScope,P),V="")),B=Object.create(k,{parent:{value:B}}),B}function Wi(k,P,U){let F=w(k.endRe,U);if(F){if(k["on:end"]){const re=new e(k);k["on:end"](P,re),re.isMatchIgnored&&(F=!1)}if(F){for(;k.endsParent&&k.parent;)k=k.parent;return k}}if(k.endsWithParent)return Wi(k.parent,P,U)}function Nr(k){return B.matcher.regexIndex===0?(V+=k[0],1):(Dt=!0,0)}function Ir(k){const P=k[0],U=k.rule,F=new e(U),re=[U.__beforeBegin,U["on:begin"]];for(const me of re)if(me&&(me(k,F),F.isMatchIgnored))return Nr(P);return U.skip?V+=P:(U.excludeBegin&&(V+=P),le(),!U.returnBegin&&!U.excludeBegin&&(V=P)),Fi(U,k),U.returnBegin?0:P.length}function Tr(k){const P=k[0],U=I.substring(k.index),F=Wi(B,k,U);if(!F)return Bi;const re=B;B.endScope&&B.endScope._wrap?(le(),fe(P,B.endScope._wrap)):B.endScope&&B.endScope._multi?(le(),Hi(B.endScope,k)):re.skip?V+=P:(re.returnEnd||re.excludeEnd||(V+=P),le(),re.excludeEnd&&(V=P));do B.scope&&ne.closeNode(),!B.skip&&!B.subLanguage&&(ut+=B.relevance),B=B.parent;while(B!==F.parent);return F.starts&&Fi(F.starts,k),re.returnEnd?0:P.length}function Lr(){const k=[];for(let P=B;P!==pe;P=P.parent)P.scope&&k.unshift(P.scope);k.forEach(P=>ne.openNode(P))}let ct={};function Gi(k,P){const U=P&&P[0];if(V+=k,U==null)return le(),0;if(ct.type==="begin"&&P.type==="end"&&ct.index===P.index&&U===""){if(V+=I.slice(P.index,P.index+1),!J){const F=new Error(`0 width match regex (${A})`);throw F.languageName=A,F.badRule=ct.rule,F}return 1}if(ct=P,P.type==="begin")return Ir(P);if(P.type==="illegal"&&!q){const F=new Error('Illegal lexeme "'+U+'" for mode "'+(B.scope||"<unnamed>")+'"');throw F.mode=B,F}else if(P.type==="end"){const F=Tr(P);if(F!==Bi)return F}if(P.type==="illegal"&&U==="")return V+=`
439
- `,1;if(Bt>1e5&&Bt>P.index*3)throw new Error("potential infinite loop, way more iterations than matches");return V+=U,U.length}const pe=ve(A);if(!pe)throw Ae(X.replace("{}",A)),new Error('Unknown language: "'+A+'"');const jr=br(pe);let jt="",B=G||jr;const Vi={},ne=new R.__emitter(R);Lr();let V="",ut=0,ke=0,Bt=0,Dt=!1;try{if(pe.__emitTokens)pe.__emitTokens(I,ne);else{for(B.matcher.considerAll();;){Bt++,Dt?Dt=!1:B.matcher.considerAll(),B.matcher.lastIndex=ke;const k=B.matcher.exec(I);if(!k)break;const P=I.substring(ke,k.index),U=Gi(P,k);ke=k.index+U}Gi(I.substring(ke))}return ne.finalize(),jt=ne.toHTML(),{language:A,value:jt,relevance:ut,illegal:!1,_emitter:ne,_top:B}}catch(k){if(k.message&&k.message.includes("Illegal"))return{language:A,value:Nt(I),illegal:!0,relevance:0,_illegalBy:{message:k.message,index:ke,context:I.slice(ke-100,ke+100),mode:k.mode,resultSoFar:jt},_emitter:ne};if(J)return{language:A,value:Nt(I),illegal:!1,relevance:0,errorRaised:k,_emitter:ne,_top:B};throw k}}function It(A){const I={value:Nt(A),illegal:!1,relevance:0,_top:M,_emitter:new R.__emitter(R)};return I._emitter.addText(A),I}function Tt(A,I){I=I||R.languages||Object.keys(x);const q=It(A),G=I.filter(ve).filter(qi).map(le=>We(le,A,!1));G.unshift(q);const ee=G.sort((le,fe)=>{if(le.relevance!==fe.relevance)return fe.relevance-le.relevance;if(le.language&&fe.language){if(ve(le.language).supersetOf===fe.language)return 1;if(ve(fe.language).supersetOf===le.language)return-1}return 0}),[he,we]=ee,lt=he;return lt.secondBest=we,lt}function _r(A,I,q){const G=I&&C[I]||q;A.classList.add("hljs"),A.classList.add(`language-${G}`)}function Lt(A){let I=null;const q=ie(A);if(L(q))return;if(at("before:highlightElement",{el:A,language:q}),A.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",A);return}if(A.children.length>0&&(R.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(A)),R.throwUnescapedHTML))throw new wr("One of your code blocks includes unescaped HTML.",A.innerHTML);I=A;const G=I.textContent,ee=q?Y(G,{language:q,ignoreIllegals:!0}):Tt(G);A.innerHTML=ee.value,A.dataset.highlighted="yes",_r(A,q,ee.language),A.result={language:ee.language,re:ee.relevance,relevance:ee.relevance},ee.secondBest&&(A.secondBest={language:ee.secondBest.language,relevance:ee.secondBest.relevance}),at("after:highlightElement",{el:A,result:ee,text:G})}function Er(A){R=ji(R,A)}const Sr=()=>{ot(),Le("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ar(){ot(),Le("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let zi=!1;function ot(){function A(){ot()}if(document.readyState==="loading"){zi||window.addEventListener("DOMContentLoaded",A,!1),zi=!0;return}document.querySelectorAll(R.cssSelector).forEach(Lt)}function kr(A,I){let q=null;try{q=I(h)}catch(G){if(Ae("Language definition for '{}' could not be registered.".replace("{}",A)),J)Ae(G);else throw G;q=M}q.name||(q.name=A),x[A]=q,q.rawDefinition=I.bind(null,h),q.aliases&&Ui(q.aliases,{languageName:A})}function Cr(A){delete x[A];for(const I of Object.keys(C))C[I]===A&&delete C[I]}function Or(){return Object.keys(x)}function ve(A){return A=(A||"").toLowerCase(),x[A]||x[C[A]]}function Ui(A,{languageName:I}){typeof A=="string"&&(A=[A]),A.forEach(q=>{C[q.toLowerCase()]=I})}function qi(A){const I=ve(A);return I&&!I.disableAutodetect}function Rr(A){A["before:highlightBlock"]&&!A["before:highlightElement"]&&(A["before:highlightElement"]=I=>{A["before:highlightBlock"](Object.assign({block:I.el},I))}),A["after:highlightBlock"]&&!A["after:highlightElement"]&&(A["after:highlightElement"]=I=>{A["after:highlightBlock"](Object.assign({block:I.el},I))})}function $r(A){Rr(A),D.push(A)}function Mr(A){const I=D.indexOf(A);I!==-1&&D.splice(I,1)}function at(A,I){const q=A;D.forEach(function(G){G[q]&&G[q](I)})}function Pr(A){return Le("10.7.0","highlightBlock will be removed entirely in v12.0"),Le("10.7.0","Please use highlightElement now."),Lt(A)}Object.assign(h,{highlight:Y,highlightAuto:Tt,highlightAll:ot,highlightElement:Lt,highlightBlock:Pr,configure:Er,initHighlighting:Sr,initHighlightingOnLoad:Ar,registerLanguage:kr,unregisterLanguage:Cr,listLanguages:Or,getLanguage:ve,registerAliases:Ui,autoDetection:qi,inherit:ji,addPlugin:$r,removePlugin:Mr}),h.debugMode=function(){J=!1},h.safeMode=function(){J=!0},h.versionString=vr,h.regex={concat:g,lookahead:a,either:_,optional:f,anyNumberOfTimes:o};for(const A in Te)typeof Te[A]=="object"&&n(Te[A]);return Object.assign(h,Te),h},je=Di({});return je.newInstance=()=>Di({}),mi=je,je.HighlightJS=je,je.default=je,mi}var yo=bo();const Rt=mo(yo),vt="[A-Za-z$_][0-9A-Za-z$_]*",Qn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Yn=["true","false","null","undefined","NaN","Infinity"],er=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],tr=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ir=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],nr=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],rr=[].concat(ir,er,tr);function vo(n){const e=n.regex,i=(W,{after:Q})=>{const se="</"+W[0].slice(1);return W.input.indexOf(se,Q)!==-1},r=vt,t={begin:"<>",end:"</>"},c=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(W,Q)=>{const se=W[0].length+W.index,oe=W.input[se];if(oe==="<"||oe===","){Q.ignoreMatch();return}oe===">"&&(i(W,{after:se})||Q.ignoreMatch());let be;const Se=W.input.substring(se);if(be=Se.match(/^\s*=/)){Q.ignoreMatch();return}if((be=Se.match(/^\s+extends\s+/))&&be.index===0){Q.ignoreMatch();return}}},p={$pattern:vt,keyword:Qn,literal:Yn,built_in:rr,"variable.language":nr},b="[0-9](_?[0-9])*",d=`\\.(${b})`,s="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",u={className:"number",variants:[{begin:`(\\b(${s})((${d})|\\.)?|(${d}))[eE][+-]?(${b})\\b`},{begin:`\\b(${s})\\b((${d})\\b|\\.)?|(${d})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},o={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"xml"}},f={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,a]},_={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},E=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,o,f,g,m,{match:/\$\d+/},u];a.contains=E.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(E)});const w=[].concat(_,a.contains),v=w.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat(w)}]),y={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:v},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...er,...tr]}},T={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},z={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},N={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(W){return e.concat("(?!",W.join("|"),")")}const H={match:e.concat(/\b/,K([...ir,"super","import"].map(W=>`${W}\\s*\\(`)),r,e.lookahead(/\s*\(/)),className:"title.function",relevance:0},Ee={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},ce={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",Ne={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:v,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),T,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,o,f,g,m,_,{match:/\$\d+/},u,O,{scope:"attr",match:r+e.lookahead(":"),relevance:0},Ne,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:v}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:t.begin,end:t.end},{match:c},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},z,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Ee,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},H,N,S,ce,{match:/\$[(.]/}]}}function wo(n){const e=n.regex,i=vo(n),r=vt,t=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],c={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:t},contains:[i.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},b=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],d={$pattern:vt,keyword:Qn.concat(b),literal:Yn,built_in:rr.concat(t),"variable.language":nr},s={className:"meta",begin:"@"+r},u=(g,m,_)=>{const E=g.contains.findIndex(w=>w.label===m);if(E===-1)throw new Error("can not find mode to replace");g.contains.splice(E,1,_)};Object.assign(i.keywords,d),i.exports.PARAMS_CONTAINS.push(s);const a=i.contains.find(g=>g.scope==="attr"),o=Object.assign({},a,{match:e.concat(r,e.lookahead(/\s*\?:/))});i.exports.PARAMS_CONTAINS.push([i.exports.CLASS_REFERENCE,a,o]),i.contains=i.contains.concat([s,c,l,o]),u(i,"shebang",n.SHEBANG()),u(i,"use_strict",p);const f=i.contains.find(g=>g.label==="func.def");return f.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),i}function xo(n){const e=n.regex,i=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,t={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=n.inherit(c,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),b=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[t]},{begin:/'/,end:/'/,contains:[t]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,b,p,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,l,b,p]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},t,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[b]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(i,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:i,relevance:0,starts:d}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(i,/>/))),contains:[{className:"name",begin:i,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const _o=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Eo=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],So=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Ao=[...Eo,...So],ko=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Co=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Oo=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Ro=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function $o(n){const e=n.regex,i=_o(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},t="and or not only",c=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",p=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[i.BLOCK_COMMENT,r,i.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},i.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Co.join("|")+")"},{begin:":(:)?("+Oo.join("|")+")"}]},i.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ro.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[i.BLOCK_COMMENT,i.HEXCOLOR,i.IMPORTANT,i.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},i.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:c},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:ko.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,i.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Ao.join("|")+")\\b"}]}}const sr=document.createElement("style");sr.innerText=[po,go].join(`
440
- `);document.head.appendChild(sr);Rt.registerLanguage("typescript",wo);Rt.registerLanguage("html",xo);Rt.registerLanguage("css",$o);function Mo(...n){const e=document.createElement("div"),i=document.createElement("div");i.classList.add("tab-control");const r=document.createElement("div");return n.forEach(t=>{e.appendChild(t),t.addEventListener("click",()=>{n.forEach(c=>c.removeAttribute("selected")),t.setAttribute("selected",""),r.innerHTML="",r.appendChild(t.content),r.className=t.className,r.classList.add("tab-content")})}),i.appendChild(e),i.appendChild(r),r.classList.add("tab-content"),n[0].setAttribute("selected",""),r.appendChild(n[0].content),i}function Ve(n,e){const i=document.createElement("div");return i.role="tab",i.tabIndex=0,i.innerText=n,i.content=e,e.tagName=="PRE"&&i.classList.add("code"),i}function Ke(n,e){const i=document.createElement(n);return typeof e=="string"?i.innerHTML=e:e.forEach(r=>{i.appendChild(r)}),i}async function Po(n,e,i){const r=e.mainContent,t=Ke("div",r);t.id=`example-preview-${i}`;const c=typeof e.css=="string"?void 0:e.css?.label,l=typeof e.css=="string"?e.css:e.css?.content,p=Mo(Ve("Preview",t),Ve("HTML",ft("html",r)),...l?[Ve(c??"CSS",ft("css",l))]:[],...e.initializer&&e.initializer.content?[Ve(e.initializer.label??"TS",ft("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>Ve(d.label,ft(d.language,d.content))));e.description&&n.appendChild(Ke("div",e.description));const b=Ke("div",[p]);b.classList.add("example"),n.appendChild(b),l&&No(`#${t.id}`,l),e.initializer?.initialize&&await e.initializer.initialize(t)}function ft(n,e){let i=e.split(/\r?\n/).map(r=>{const t=r.indexOf("///");if(t>-1){const c=r.substring(t+3).trimStart();return c?r.replace(/^(\s*)([^\s].*)$/,`$1${c}`):void 0}return r}).filter(r=>typeof r<"u").join(`
441
- `).trim();return n&&n!="raw"&&(i=Rt.highlight(i,{language:n}).value),Ke("pre",[Ke("code",i)])}function No(n,e){const i=document.createElement("style");i.innerHTML=Z().use(fo({prefix:n})).process(e).css,document.head.appendChild(i)}async function Io(n,e=document.body){const i=Lo(e);let r=0;Object.keys(n).sort().forEach(async t=>{const c=document.createElement("div");c.className="example-container",i.appendChild(c);const l=n[t].default;Po(c,l,r++)})}function To(n){const e=document.createElement("div");e.id="examples-container";const i=n.querySelector("#examples");return i?i.after(e):n.appendChild(e),e}function Lo(n){return n.children?To(n):n}const jo=`<h1 id="@cas-smartdesign/radio-button-group">@cas-smartdesign/radio-button-group</h1>
432
+ `)&&(t=`\r
433
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||n(e.file),i;this.mapOpts.sourcesContent===!1?(i=new o(e.text),i.sourcesContent&&=null):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.startsWith(`# sourceMappingURL=`)&&this.root.removeChild(t)}else if(this.css){let e;for(;(e=this.css.lastIndexOf(`/*#`))!==-1;){let t=this.css.indexOf(`*/`,e+3);if(t===-1)break;for(;e>0&&this.css[e-1]===`
434
+ `;)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}}generate(){if(this.clearAnnotation(),d&&u&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=s.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new s({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css=``,this.map=new s({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,n=`<no source>`,r={generated:{column:0,line:0},original:{column:0,line:0},source:``},i,a;this.stringify(this.root,(o,s,c)=>{if(this.css+=o,s&&c!==`end`&&(r.generated.line=e,r.generated.column=t-1,s.source&&s.source.start?(r.source=this.sourcePath(s),r.original.line=s.source.start.line,r.original.column=s.source.start.column-1,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,this.map.addMapping(r))),a=o.match(/\n/g),a?(e+=a.length,i=o.lastIndexOf(`
435
+ `),t=o.length-i):t+=o.length,s&&c!==`start`){let i=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==i.last||i.raws.semicolon)&&(s.source&&s.source.end?(r.source=this.sourcePath(s),r.original.line=s.source.end.line,r.original.column=s.source.end.column-1,r.generated.line=e,r.generated.column=t-2,this.map.addMapping(r)):(r.source=n,r.original.line=1,r.original.column=0,r.generated.line=e,r.generated.column=t-1,this.map.addMapping(r)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?this.previous().length?this.previous().some(e=>e.annotation):!0:this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:this.previous().length?this.previous().some(e=>e.inline):!0}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?this.previous().length?this.previous().some(e=>e.withContent()):!0:this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new l(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}else throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}})),Vt=o(((e,t)=>{var n=39,r=34,i=92,a=47,o=10,s=32,c=12,l=9,u=13,d=91,f=93,p=40,m=41,h=123,g=125,_=59,v=42,y=58,b=64,x=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\r\n"'(/\\]/,w=/[\da-f]/i;t.exports=function(e,t={}){let T=e.css.valueOf(),E=t.ignoreErrors,D,O,k,A,j,M,N,P,F,I,L=T.length,R=0,z=[],B=[];function ee(){return R}function te(t){throw e.error(`Unclosed `+t,R)}function ne(){return B.length===0&&R>=L}function re(e){if(B.length)return B.pop();if(R>=L)return;let t=e?e.ignoreUnclosed:!1;switch(D=T.charCodeAt(R),D){case o:case s:case l:case u:case c:A=R;do A+=1,D=T.charCodeAt(A);while(D===s||D===o||D===l||D===u||D===c);M=[`space`,T.slice(R,A)],R=A-1;break;case d:case f:case h:case g:case y:case _:case m:{let e=String.fromCharCode(D);M=[e,e,R];break}case p:if(I=z.length?z.pop()[1]:``,F=T.charCodeAt(R+1),I===`url`&&F!==n&&F!==r&&F!==s&&F!==o&&F!==l&&F!==c&&F!==u){A=R;do{if(N=!1,A=T.indexOf(`)`,A+1),A===-1)if(E||t){A=R;break}else te(`bracket`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`brackets`,T.slice(R,A+1),R,A],R=A}else A=T.indexOf(`)`,R+1),O=T.slice(R,A+1),A===-1||C.test(O)?M=[`(`,`(`,R]:(M=[`brackets`,O,R,A],R=A);break;case n:case r:j=D===n?`'`:`"`,A=R;do{if(N=!1,A=T.indexOf(j,A+1),A===-1)if(E||t){A=R+1;break}else te(`string`);for(P=A;T.charCodeAt(P-1)===i;)--P,N=!N}while(N);M=[`string`,T.slice(R,A+1),R,A],R=A;break;case b:x.lastIndex=R+1,x.test(T),A=x.lastIndex===0?T.length-1:x.lastIndex-2,M=[`at-word`,T.slice(R,A+1),R,A],R=A;break;case i:for(A=R,k=!0;T.charCodeAt(A+1)===i;)A+=1,k=!k;if(D=T.charCodeAt(A+1),k&&D!==a&&D!==s&&D!==o&&D!==l&&D!==u&&D!==c&&(A+=1,w.test(T.charAt(A)))){for(;w.test(T.charAt(A+1));)A+=1;T.charCodeAt(A+1)===s&&(A+=1)}M=[`word`,T.slice(R,A+1),R,A],R=A;break;default:D===a&&T.charCodeAt(R+1)===v?(A=T.indexOf(`*/`,R+2)+1,A===0&&(E||t?A=T.length:te(`comment`)),M=[`comment`,T.slice(R,A+1),R,A],R=A):(S.lastIndex=R+1,S.test(T),A=S.lastIndex===0?T.length-1:S.lastIndex-2,M=[`word`,T.slice(R,A+1),R,A],z.push(M),R=A);break}return R++,M}function ie(e){B.push(e)}return{back:ie,endOfFile:ne,nextToken:re,position:ee}}})),Ht=o(((e,t)=>{var n=jt(),r=Ot(),i=kt(),a=It(),o=Rt(),s=Vt(),c={empty:!0,space:!0};function l(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}t.exports=class{constructor(e){this.input=e,this.root=new a,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new n;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r===`(`||r===`[`?l.push(r===`(`?`)`:`]`):r===`{`&&l.length>0?l.push(`}`):r===l[l.length-1]&&l.pop(),l.length===0)if(r===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r===`{`){s=!0;break}else if(r===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else c.push(e);else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(r=o,i=r[0],i===`(`&&(t+=1),i===`)`&&--t,t===0&&i===`:`)if(!n)this.doubleColon(r);else if(n[0]===`word`&&n[1]===`progid`)continue;else return a;n=r}return!1}comment(e){let t=new r;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(!n.trim())t.text=``,t.raws.left=n,t.raws.right=``;else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let r=e[e.length-1];for(r[0]===`;`&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(r[3]||r[2]||l(e)),n.source.end.offset++;e[0][0]!==`word`;)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop=``;e.length;){let t=e[0][0];if(t===`:`||t===`space`||t===`comment`)break;n.prop+=e.shift()[1]}n.raws.between=``;let a;for(;e.length;)if(a=e.shift(),a[0]===`:`){n.raws.between+=a[1];break}else a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]===`_`||n.prop[0]===`*`)&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],s;for(;e.length&&(s=e[0][0],!(s!==`space`&&s!==`comment`));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(a=e[t],a[1].toLowerCase()===`!important`){n.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r,r!==` !important`&&(n.raws.important=r);break}else if(a[1].toLowerCase()===`important`){let r=e.slice(0),i=``;for(let e=t;e>0;e--){let t=r[e][0];if(i.trim().startsWith(`!`)&&t!==`space`)break;i=r.pop()[1]+i}i.trim().startsWith(`!`)&&(n.important=!0,n.raws.important=i,e=r)}if(a[0]!==`space`&&a[0]!==`comment`)break}e.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(n.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(n,`value`,o.concat(e),t),n.value.includes(`:`)&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.spaces=``,this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||``)+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type===`rule`&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces=``,t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0)if(n===`;`)if(r){this.decl(s,o);return}else break;else if(n===`{`){this.rule(s);return}else if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}else n===`:`&&(r=!0);else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],!(c!==`space`&&c!==`comment`));)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,o=n.length,s=``,l=!0,u,d;for(let e=0;e<o;e+=1)i=n[e],a=i[0],a===`space`&&e===o-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!c[d]&&!c[u]?s.slice(-1)===`,`?l=!1:s+=i[1]:l=!1):s+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:s}}e[t]=s}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],!(t!==`space`&&t!==`comment`));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],!(t!==`space`&&t!==`comment`));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word `+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}})),Ut=o(((e,t)=>{var n=At(),r=Ft(),i=Ht();function a(e,t){let n=new i(new r(e,t));try{n.parse()}catch(e){throw e}return n.root}t.exports=a,a.default=a,n.registerParse(a)})),Wt=o(((e,t)=>{var n=class{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+`: `+this.text:this.text}};t.exports=n,n.default=n})),Gt=o(((e,t)=>{var n=Wt(),r=class{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=``,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new n(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}};t.exports=r,r.default=r})),Kt=o(((e,t)=>{var n={};t.exports=function(e){n[e]||(n[e]=!0,typeof console<`u`&&console.warn&&console.warn(e))}})),qt=o(((e,t)=>{var n=At(),r=Mt(),i=Bt(),a=Ut(),o=Gt(),s=It(),c=Tt(),{isClean:l,my:u}=Et();Kt();var d={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},p={Once:!0,postcssPlugin:!0,prepare:!0},m=0;function h(e){return typeof e==`object`&&typeof e.then==`function`}function g(e){let t=!1,n=d[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,m,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,m,n+`Exit`]:[n,n+`Exit`]}function _(e){let t;return t=e.type===`document`?[`Document`,m,`DocumentExit`]:e.type===`root`?[`Root`,m,`RootExit`]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[l]=!1,e.nodes&&e.nodes.forEach(e=>v(e)),e}var y={},b=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return`LazyResult`}constructor(t,r,i){this.stringified=!1,this.processed=!1;let s;if(typeof r==`object`&&r&&(r.type===`root`||r.type===`document`))s=v(r);else if(r instanceof e||r instanceof o)s=v(r.root),r.map&&(i.map===void 0&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=r.map);else{let e=a;i.syntax&&(e=i.syntax.parse),i.parser&&(e=i.parser),e.parse&&(e=e.parse);try{s=e(r,i)}catch(e){this.processed=!0,this.error=e}s&&!s[u]&&n.rebuild(s)}this.result=new o(t,s,i),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!f[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!p[n])if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];){e[l]=!0;let t=[_(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type===`document`){let t=e.nodes.map(e=>n(e,this.helpers));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new i(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(h(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[l];)e[l]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type===`document`)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:r}=t;if(n.type!==`root`&&n.type!==`document`&&!n.parent){e.pop();return}if(r.length>0&&t.visitorIndex<r.length){let[e,i]=r[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===r.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(t.iterator!==0){let r=t.iterator,i;for(;i=n.nodes[n.indexes[r]];)if(n.indexes[r]+=1,!i[l]){i[l]=!0,e.push(_(i));return}t.iterator=0,delete n.indexes[r]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,e===m){n.nodes&&n.nodes.length&&(n[l]=!0,t.iterator=n.getIterator());return}else if(this.listeners[e]){t.visitors=this.listeners[e];return}}e.pop()}walkSync(e){e[l]=!0;let t=g(e);for(let n of t)if(n===m)e.nodes&&e.each(e=>{e[l]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}};b.registerPostcss=e=>{y=e},t.exports=b,b.default=b,s.registerLazyResult(b),r.registerLazyResult(b)})),Jt=o(((e,t)=>{var n=Bt(),r=Ut(),i=Gt(),a=Tt();Kt();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=r;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let o=a;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,`root`,{get(){return s.root}});let c=new n(o,void 0,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o})),Yt=o(((e,t)=>{var n=Mt(),r=qt(),i=Jt(),a=It(),o=class{constructor(e=[]){this.version=`8.5.8`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(!(typeof n==`object`&&(n.parse||n.stringify)))throw Error(n+` is not a PostCSS plugin`);return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new i(this,e,t):new r(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,a.registerProcessor(o),n.registerProcessor(o)})),$=l(o(((e,t)=>{var n=jt(),r=Ot(),i=At(),a=Ct(),o=kt(),s=Mt(),c=zt(),l=Ft(),u=qt(),d=Lt(),f=Dt(),p=Ut(),m=Yt(),h=Gt(),g=It(),_=Rt(),v=Tt(),y=Wt();function b(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new m(e)}b.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
436
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),{}.LANG&&{}.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
437
+ https://www.w3ctech.com/topic/2226`));let i=t(...r);return i.postcssPlugin=e,i.postcssVersion=new m().version,i}let i;return Object.defineProperty(r,`postcss`,{get(){return i||=r(),i}}),r.process=function(e,t,n){return b([r(n)]).process(e,t)},r},b.stringify=v,b.parse=p,b.fromJSON=c,b.list=d,b.comment=e=>new r(e),b.atRule=e=>new n(e),b.decl=e=>new o(e),b.rule=e=>new _(e),b.root=e=>new g(e),b.document=e=>new s(e),b.CssSyntaxError=a,b.Declaration=o,b.Container=i,b.Processor=m,b.Document=s,b.Comment=r,b.Warning=y,b.AtRule=n,b.Result=h,b.Input=l,b.Rule=_,b.Root=g,b.Node=f,u.registerPostcss(b),t.exports=b,b.default=b}))(),1),Xt=$.default;$.default.stringify,$.default.fromJSON,$.default.plugin,$.default.parse,$.default.list,$.default.document,$.default.comment,$.default.atRule,$.default.rule,$.default.decl,$.default.root,$.default.CssSyntaxError,$.default.Declaration,$.default.Container,$.default.Processor,$.default.Document,$.default.Comment,$.default.Warning,$.default.AtRule,$.default.Result,$.default.Input,$.default.Rule,$.default.Root,$.default.Node;var Zt=l(o(((e,t)=>{var n=(e={})=>{let t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,a=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return{postcssPlugin:`postcss-prefix-selector`,prepare(s){let c=s.root,l=c.source.input.file;if(!(a.length&&l&&r(l,a))&&!(o.length&&l&&!r(l,o)))return{Rule(r,{result:a}){r.parent&&[`keyframes`,`-webkit-keyframes`,`-moz-keyframes`,`-o-keyframes`,`-ms-keyframes`].includes(r.parent.name)||(r.selectors=r.selectors.map(a=>e.exclude&&i(a,e.exclude)?a:e.transform?e.transform(t,a,n+a,c.source.input.file,r):[`:root`,`body`,`html`].some(e=>a.startsWith(e))?e.skipGlobalSelectors?a:a.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,t):n+a))}}}}};function r(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e.includes(t))}function i(e,t){return t.some(t=>t instanceof RegExp?t.test(e):e===t)}n.postcss=!0,t.exports=n}))(),1),Qt=Object.create,$t=Object.defineProperty,en=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyNames,nn=Object.getPrototypeOf,rn=Object.prototype.hasOwnProperty,an=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),on=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=tn(t),a=0,o=i.length,s;a<o;a++)s=i[a],!rn.call(e,s)&&s!==n&&$t(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=en(t,s))||r.enumerable});return e},sn=(e,t,n)=>(n=e==null?{}:Qt(nn(e)),on(t||!e||!e.__esModule?$t(n,`default`,{value:e,enumerable:!0}):n,e)),cn=`pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}`,ln=`code{white-space:pre}.example{flex-flow:wrap;align-items:center;gap:16px;display:flex}.example>*{flex:500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;-webkit-user-select:none;user-select:none;background-clip:padding-box;border-bottom:2px solid #0000;padding:8px 16px;font-size:16px;display:inline-block}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}`,un=sn(an(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{let r=e[t],i=typeof r;(i===`object`||i===`function`)&&!Object.isFrozen(r)&&n(r)}),e}var r=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function i(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`)}function a(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var o=`</span>`,s=e=>!!e.scope,c=(e,{prefix:t})=>{if(e.startsWith(`language:`))return e.replace(`language:`,`language-`);if(e.includes(`.`)){let n=e.split(`.`);return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${`_`.repeat(t+1)}`)].join(` `)}return`${t}${e}`},l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=i(e)}openNode(e){if(!s(e))return;let t=c(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){s(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=(e={})=>{let t={children:[]};return Object.assign(t,e),t},d=class e{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t=u({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},f=class extends d{constructor(e){super(),this.options=e}addText(e){e!==``&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){let n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function p(e){return e?typeof e==`string`?e:e.source:null}function m(e){return _(`(?=`,e,`)`)}function h(e){return _(`(?:`,e,`)*`)}function g(e){return _(`(?:`,e,`)?`)}function _(...e){return e.map(e=>p(e)).join(``)}function v(e){let t=e[e.length-1];return typeof t==`object`&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function y(...e){return`(`+(v(e).capture?``:`?:`)+e.map(e=>p(e)).join(`|`)+`)`}function b(e){return RegExp(e.toString()+`|`).exec(``).length-1}function x(e,t){let n=e&&e.exec(t);return n&&n.index===0}var S=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function C(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=S.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var w=/\b\B/,T=`[a-zA-Z]\\w*`,E=`[a-zA-Z_]\\w*`,D=`\\b\\d+(\\.\\d+)?`,O=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,k=`\\b(0b[01]+)`,A=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,j=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),a({scope:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},M={begin:`\\\\[\\s\\S]`,relevance:0},N={scope:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[M]},P={scope:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[M]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},I=function(e,t,n={}){let r=a({scope:`comment`,begin:e,end:t,contains:[]},n);r.contains.push({scope:`doctag`,begin:`[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)`,end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let i=y(`I`,`a`,`is`,`so`,`us`,`to`,`at`,`if`,`in`,`it`,`on`,/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,`(`,i,/[.]?[:]?([.][ ]|[ ])/,`){3}`)}),r},L=I(`//`,`$`),R=I(`/\\*`,`\\*/`),z=I(`#`,`$`),B={scope:`number`,begin:D,relevance:0},ee={scope:`number`,begin:O,relevance:0},te={scope:`number`,begin:k,relevance:0},ne={scope:`regexp`,begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[M,{begin:/\[/,end:/\]/,relevance:0,contains:[M]}]},re={scope:`title`,begin:T,relevance:0},ie={scope:`title`,begin:E,relevance:0},ae={begin:`\\.\\s*`+E,relevance:0},oe=Object.freeze({__proto__:null,APOS_STRING_MODE:N,BACKSLASH_ESCAPE:M,BINARY_NUMBER_MODE:te,BINARY_NUMBER_RE:k,COMMENT:I,C_BLOCK_COMMENT_MODE:R,C_LINE_COMMENT_MODE:L,C_NUMBER_MODE:ee,C_NUMBER_RE:O,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:z,IDENT_RE:T,MATCH_NOTHING_RE:w,METHOD_GUARD:ae,NUMBER_MODE:B,NUMBER_RE:D,PHRASAL_WORDS_MODE:F,QUOTE_STRING_MODE:P,REGEXP_MODE:ne,RE_STARTERS_RE:A,SHEBANG:j,TITLE_MODE:re,UNDERSCORE_IDENT_RE:E,UNDERSCORE_TITLE_MODE:ie});function se(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ce(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function le(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=se,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function ue(e,t){Array.isArray(e.illegal)&&(e.illegal=y(...e.illegal))}function de(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function fe(e,t){e.relevance===void 0&&(e.relevance=1)}var pe=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error(`beforeMatch cannot be used with starts`);let n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,m(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},me=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],he=`keyword`;function ge(e,t,n=he){let r=Object.create(null);return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ge(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,_e(n[0],n[1])]})}}function _e(e,t){return t?Number(t):ve(e)?0:1}function ve(e){return me.includes(e.toLowerCase())}var ye={},V=e=>{console.error(e)},be=(e,...t)=>{console.log(`WARN: ${e}`,...t)},H=(e,t)=>{ye[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),ye[`${e}/${t}`]=!0)},xe=Error();function Se(e,t,{key:n}){let r=0,i=e[n],a={},o={};for(let e=1;e<=t.length;e++)o[e+r]=i[e],a[e+r]=!0,r+=b(t[e-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function Ce(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw V(`skip, excludeBegin, returnBegin not compatible with beginScope: {}`),xe;if(typeof e.beginScope!=`object`||e.beginScope===null)throw V(`beginScope must be object`),xe;Se(e,e.begin,{key:`beginScope`}),e.begin=C(e.begin,{joinWith:``})}}function we(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw V(`skip, excludeEnd, returnEnd not compatible with endScope: {}`),xe;if(typeof e.endScope!=`object`||e.endScope===null)throw V(`endScope must be object`),xe;Se(e,e.end,{key:`endScope`}),e.end=C(e.end,{joinWith:``})}}function Te(e){e.scope&&typeof e.scope==`object`&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function U(e){Te(e),typeof e.beginScope==`string`&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope==`string`&&(e.endScope={_wrap:e.endScope}),Ce(e),we(e)}function Ee(e){function t(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(e.unicodeRegex?`u`:``)+(n?`g`:``))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=b(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null),this.matcherRe=t(C(this.regexes.map(e=>e[1]),{joinWith:`|`}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){let t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function o(n,r){let a=n;if(n.isCompiled)return a;[ce,de,U,pe].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[le,ue,fe].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return typeof n.keywords==`object`&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s||=/\w+/,n.keywords&&=ge(n.keywords,e.case_insensitive),a.keywordPatternRe=t(s,!0),r&&(n.begin||=/\B|\b/,a.beginRe=t(a.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(a.endRe=t(a.end)),a.terminatorEnd=p(a.end)||``,n.endsWithParent&&r.terminatorEnd&&(a.terminatorEnd+=(n.end?`|`:``)+r.terminatorEnd)),n.illegal&&(a.illegalRe=t(n.illegal)),n.contains||=[],n.contains=[].concat(...n.contains.map(function(e){return W(e===`self`?n:e)})),n.contains.forEach(function(e){o(e,a)}),n.starts&&o(n.starts,r),a.matcher=i(a),a}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=a(e.classNameAliases||{}),o(e)}function De(e){return e?e.endsWithParent||De(e.starts):!1}function W(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return a(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:De(e)?a(e,{starts:e.starts?a(e.starts):null}):Object.isFrozen(e)?a(e):e}var Oe=`11.11.1`,ke=class extends Error{constructor(e,t){super(e),this.name=`HTMLInjectionError`,this.html=t}},Ae=i,je=a,Me=Symbol(`nomatch`),Ne=7,Pe=function(e){let t=Object.create(null),i=Object.create(null),a=[],o=!0,s=`Could not find the language '{}', did you forget to load/include a language module?`,c={disableAutodetect:!0,name:`Plain text`,contains:[]},l={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,cssSelector:`pre code`,languages:null,__emitter:f};function u(e){return l.noHighlightRe.test(e)}function d(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=l.languageDetectRe.exec(t);if(n){let t=N(n[1]);return t||(be(s.replace(`{}`,n[1])),be(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>u(e)||N(e))}function p(e,t,n){let r=``,i=``;typeof t==`object`?(r=e,n=t.ignoreIllegals,i=t.language):(H(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),H(`10.7.0`,`Please use highlight(code, options) instead.
438
+ https://github.com/highlightjs/highlight.js/issues/2277`),i=e,r=t),n===void 0&&(n=!0);let a={code:r,language:i};z(`before:highlight`,a);let o=a.result?a.result:v(a.language,a.code,n);return o.code=a.code,z(`after:highlight`,o),o}function v(e,n,i,a){let c=Object.create(null);function u(e,t){return e.keywords[t]}function d(){if(!A.keywords){M.addText(P);return}let e=0;A.keywordPatternRe.lastIndex=0;let t=A.keywordPatternRe.exec(P),n=``;for(;t;){n+=P.substring(e,t.index);let r=D.case_insensitive?t[0].toLowerCase():t[0],i=u(A,r);if(i){let[e,a]=i;if(M.addText(n),n=``,c[r]=(c[r]||0)+1,c[r]<=Ne&&(F+=a),e.startsWith(`_`))n+=t[0];else{let n=D.classNameAliases[e]||e;m(t[0],n)}}else n+=t[0];e=A.keywordPatternRe.lastIndex,t=A.keywordPatternRe.exec(P)}n+=P.substring(e),M.addText(n)}function f(){if(P===``)return;let e=null;if(typeof A.subLanguage==`string`){if(!t[A.subLanguage]){M.addText(P);return}e=v(A.subLanguage,P,!0,j[A.subLanguage]),j[A.subLanguage]=e._top}else e=S(P,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(F+=e.relevance),M.__addSublanguage(e._emitter,e.language)}function p(){A.subLanguage==null?d():f(),P=``}function m(e,t){e!==``&&(M.startScope(t),M.addText(e),M.endScope())}function h(e,t){let n=1,r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}let r=D.classNameAliases[e[n]]||e[n],i=t[n];r?m(i,r):(P=i,d(),P=``),n++}}function g(e,t){return e.scope&&typeof e.scope==`string`&&M.openNode(D.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(m(P,D.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),P=``):e.beginScope._multi&&(h(e.beginScope,t),P=``)),A=Object.create(e,{parent:{value:A}}),A}function _(e,t,n){let i=x(e.endRe,n);if(i){if(e[`on:end`]){let n=new r(e);e[`on:end`](t,n),n.isMatchIgnored&&(i=!1)}if(i){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return _(e.parent,t,n)}function y(e){return A.matcher.regexIndex===0?(P+=e[0],1):(R=!0,0)}function b(e){let t=e[0],n=e.rule,i=new r(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,i),i.isMatchIgnored))return y(t);return n.skip?P+=t:(n.excludeBegin&&(P+=t),p(),!n.returnBegin&&!n.excludeBegin&&(P=t)),g(n,e),n.returnBegin?0:t.length}function C(e){let t=e[0],r=n.substring(e.index),i=_(A,e,r);if(!i)return Me;let a=A;A.endScope&&A.endScope._wrap?(p(),m(t,A.endScope._wrap)):A.endScope&&A.endScope._multi?(p(),h(A.endScope,e)):a.skip?P+=t:(a.returnEnd||a.excludeEnd||(P+=t),p(),a.excludeEnd&&(P=t));do A.scope&&M.closeNode(),!A.skip&&!A.subLanguage&&(F+=A.relevance),A=A.parent;while(A!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function w(){let e=[];for(let t=A;t!==D;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>M.openNode(e))}let T={};function E(t,r){let a=r&&r[0];if(P+=t,a==null)return p(),0;if(T.type===`begin`&&r.type===`end`&&T.index===r.index&&a===``){if(P+=n.slice(r.index,r.index+1),!o){let t=Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=T.rule,t}return 1}if(T=r,r.type===`begin`)return b(r);if(r.type===`illegal`&&!i){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(A.scope||`<unnamed>`)+`"`);throw e.mode=A,e}else if(r.type===`end`){let e=C(r);if(e!==Me)return e}if(r.type===`illegal`&&a===``)return P+=`
439
+ `,1;if(L>1e5&&L>r.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return P+=a,a.length}let D=N(e);if(!D)throw V(s.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let O=Ee(D),k=``,A=a||O,j={},M=new l.__emitter(l);w();let P=``,F=0,I=0,L=0,R=!1;try{if(D.__emitTokens)D.__emitTokens(n,M);else{for(A.matcher.considerAll();;){L++,R?R=!1:A.matcher.considerAll(),A.matcher.lastIndex=I;let e=A.matcher.exec(n);if(!e)break;let t=E(n.substring(I,e.index),e);I=e.index+t}E(n.substring(I))}return M.finalize(),k=M.toHTML(),{language:e,value:k,relevance:F,illegal:!1,_emitter:M,_top:A}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{language:e,value:Ae(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:k},_emitter:M};if(o)return{language:e,value:Ae(n),illegal:!1,relevance:0,errorRaised:t,_emitter:M,_top:A};throw t}}function b(e){let t={value:Ae(e),illegal:!1,relevance:0,_top:c,_emitter:new l.__emitter(l)};return t._emitter.addText(e),t}function S(e,n){n=n||l.languages||Object.keys(t);let r=b(e),i=n.filter(N).filter(F).map(t=>v(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(N(e.language).supersetOf===t.language)return 1;if(N(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.secondBest=o,s}function C(e,t,n){let r=t&&i[t]||n;e.classList.add(`hljs`),e.classList.add(`language-${r}`)}function w(e){let t=null,n=d(e);if(u(n))return;if(z(`before:highlightElement`,{el:e,language:n}),e.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e);return}if(e.children.length>0&&(l.ignoreUnescapedHTML||(console.warn(`One of your code blocks includes unescaped HTML. This is a potentially serious security risk.`),console.warn(`https://github.com/highlightjs/highlight.js/wiki/security`),console.warn(`The element with unescaped HTML:`),console.warn(e)),l.throwUnescapedHTML))throw new ke(`One of your code blocks includes unescaped HTML.`,e.innerHTML);t=e;let r=t.textContent,i=n?p(r,{language:n,ignoreIllegals:!0}):S(r);e.innerHTML=i.value,e.dataset.highlighted=`yes`,C(e,n,i.language),e.result={language:i.language,re:i.relevance,relevance:i.relevance},i.secondBest&&(e.secondBest={language:i.secondBest.language,relevance:i.secondBest.relevance}),z(`after:highlightElement`,{el:e,result:i,text:r})}function T(e){l=je(l,e)}let E=()=>{k(),H(`10.6.0`,`initHighlighting() deprecated. Use highlightAll() now.`)};function D(){k(),H(`10.6.0`,`initHighlightingOnLoad() deprecated. Use highlightAll() now.`)}let O=!1;function k(){function e(){k()}if(document.readyState===`loading`){O||window.addEventListener(`DOMContentLoaded`,e,!1),O=!0;return}document.querySelectorAll(l.cssSelector).forEach(w)}function A(n,r){let i=null;try{i=r(e)}catch(e){if(V(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)V(e);else throw e;i=c}i.name||=n,t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&P(i.aliases,{languageName:n})}function j(e){delete t[e];for(let t of Object.keys(i))i[t]===e&&delete i[t]}function M(){return Object.keys(t)}function N(e){return e=(e||``).toLowerCase(),t[e]||t[i[e]]}function P(e,{languageName:t}){typeof e==`string`&&(e=[e]),e.forEach(e=>{i[e.toLowerCase()]=t})}function F(e){let t=N(e);return t&&!t.disableAutodetect}function I(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function L(e){I(e),a.push(e)}function R(e){let t=a.indexOf(e);t!==-1&&a.splice(t,1)}function z(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function B(e){return H(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),H(`10.7.0`,`Please use highlightElement now.`),w(e)}Object.assign(e,{highlight:p,highlightAuto:S,highlightAll:k,highlightElement:w,highlightBlock:B,configure:T,initHighlighting:E,initHighlightingOnLoad:D,registerLanguage:A,unregisterLanguage:j,listLanguages:M,getLanguage:N,registerAliases:P,autoDetection:F,inherit:je,addPlugin:L,removePlugin:R}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=Oe,e.regex={concat:_,lookahead:m,either:y,optional:g,anyNumberOfTimes:h};for(let e in oe)typeof oe[e]==`object`&&n(oe[e]);return Object.assign(e,oe),e},G=Pe({});G.newInstance=()=>Pe({}),t.exports=G,G.HighlightJS=G,G.default=G}))()).default,dn=e=>({IMPORTANT:{scope:`meta`,begin:`!important`},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:`number`,begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:`built_in`,begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:`selector-attr`,begin:/\[/,end:/\]/,illegal:`$`,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:`number`,begin:e.NUMBER_RE+`(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?`,relevance:0},CSS_VARIABLE:{className:`attr`,begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),fn=`a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video`.split(`.`),pn=`defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath`.split(`.`),mn=[...fn,...pn],hn=`any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height`.split(`.`).sort().reverse(),gn=`active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where`.split(`.`).sort().reverse(),_n=[`after`,`backdrop`,`before`,`cue`,`cue-region`,`first-letter`,`first-line`,`grammar-error`,`marker`,`part`,`placeholder`,`selection`,`slotted`,`spelling-error`].sort().reverse(),vn=`accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom`.split(`.`).sort().reverse();function yn(e){let t=e.regex,n=dn(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i=/@-?\w[\w]*(-\w+)*/,a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:`CSS`,case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:`from to`},classNameAliases:{keyframePosition:`selector-tag`},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:`selector-id`,begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:`selector-class`,begin:`\\.[a-zA-Z-][a-zA-Z0-9_-]*`,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:`selector-pseudo`,variants:[{begin:`:(`+gn.join(`|`)+`)`},{begin:`:(:)?(`+_n.join(`|`)+`)`}]},n.CSS_VARIABLE,{className:`attribute`,begin:`\\b(`+vn.join(`|`)+`)\\b`},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:`url data-uri`},contains:[...a,{className:`string`,begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:`[{;]`,relevance:0,illegal:/:/,contains:[{className:`keyword`,begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:`and or not only`,attribute:hn.join(` `)},contains:[{begin:/[a-z-]+(?=:)/,className:`attribute`},...a,n.CSS_NUMBER_MODE]}]},{className:`selector-tag`,begin:`\\b(`+mn.join(`|`)+`)\\b`}]}}var bn=`[A-Za-z$_][0-9A-Za-z$_]*`,xn=`as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using`.split(`.`),Sn=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],Cn=`Object.Function.Boolean.Symbol.Math.Date.Number.BigInt.String.RegExp.Array.Float32Array.Float64Array.Int8Array.Uint8Array.Uint8ClampedArray.Int16Array.Int32Array.Uint16Array.Uint32Array.BigInt64Array.BigUint64Array.Set.Map.WeakSet.WeakMap.ArrayBuffer.SharedArrayBuffer.Atomics.DataView.JSON.Promise.Generator.GeneratorFunction.AsyncFunction.Reflect.Proxy.Intl.WebAssembly`.split(`.`),wn=[`Error`,`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],Tn=[`setInterval`,`setTimeout`,`clearInterval`,`clearTimeout`,`require`,`exports`,`eval`,`isFinite`,`isNaN`,`parseFloat`,`parseInt`,`decodeURI`,`decodeURIComponent`,`encodeURI`,`encodeURIComponent`,`escape`,`unescape`],En=[`arguments`,`this`,`super`,`console`,`window`,`document`,`localStorage`,`sessionStorage`,`module`,`global`],Dn=[].concat(Tn,Cn,wn);function On(e){let t=e.regex,n=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},r=bn,i={begin:`<>`,end:`</>`},a=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`||i===`,`){t.ignoreMatch();return}i===`>`&&(n(e,{after:r})||t.ignoreMatch());let a,o=e.input.substring(r);if(a=o.match(/^\s*=/)){t.ignoreMatch();return}if((a=o.match(/^\s+extends\s+/))&&a.index===0){t.ignoreMatch();return}}},s={$pattern:bn,keyword:xn,literal:Sn,built_in:Dn,"variable.language":En},c=`[0-9](_?[0-9])*`,l=`\\.(${c})`,u=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,d={className:`number`,variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${c})\\b`},{begin:`\\b(${u})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:`\\b(0|[1-9](_?[0-9])*)n\\b`},{begin:`\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b`},{begin:`\\b0[bB][0-1](_?[0-1])*n?\\b`},{begin:`\\b0[oO][0-7](_?[0-7])*n?\\b`},{begin:`\\b0[0-7]+n?\\b`}],relevance:0},f={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:s,contains:[]},p={begin:".?html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`xml`}},m={begin:".?css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`css`}},h={begin:".?gql`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:`graphql`}},g={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},_={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{begin:`(?=@[A-Za-z]+)`,relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`},{className:`type`,begin:`\\{`,end:`\\}`,excludeEnd:!0,excludeBegin:!0,relevance:0},{className:`variable`,begin:r+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,{match:/\$\d+/},d];f.contains=v.concat({begin:/\{/,end:/\}/,keywords:s,contains:[`self`].concat(v)});let y=[].concat(_,f.contains),b=y.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:[`self`].concat(y)}]),x={className:`params`,begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b},S={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,`(`,t.concat(/\./,r),`)*`)],scope:{1:`keyword`,3:`title.class`,5:`keyword`,7:`title.class.inherited`}},{match:[/class/,/\s+/,r],scope:{1:`keyword`,3:`title.class`}}]},C={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:`title.class`,keywords:{_:[...Cn,...wn]}},w={label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},T={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:`keyword`,3:`title.function`},label:`func.def`,contains:[x],illegal:/%/},E={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:`variable.constant`};function D(e){return t.concat(`(?!`,e.join(`|`),`)`)}let O={match:t.concat(/\b/,D([...Tn,`super`,`import`].map(e=>`${e}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:`title.function`,relevance:0},k={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:`prototype`,className:`property`,relevance:0},A={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:`keyword`,3:`title.function`},contains:[{begin:/\(\)/},x]},j=`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,M={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(j)],keywords:`async`,className:{1:`keyword`,3:`title.function`},contains:[x]};return{name:`JavaScript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:s,exports:{PARAMS_CONTAINS:b,CLASS_REFERENCE:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),w,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,p,m,h,g,_,{match:/\$\d+/},d,C,{scope:`attr`,match:r+t.lookahead(`:`),relevance:0},M,{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,relevance:0,contains:[_,e.REGEXP_MODE,{className:`function`,begin:j,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:b}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:a},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:`xml`,contains:[{begin:o.begin,end:o.end,skip:!0,contains:[`self`]}]}]},T,{beginKeywords:`while if switch catch for`},{begin:`\\b(?!function)`+e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,label:`func.def`,contains:[x,e.inherit(e.TITLE_MODE,{begin:r,className:`title.function`})]},{match:/\.\.\./,relevance:0},k,{match:`\\$`+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:`title.function`},contains:[x]},O,E,S,A,{match:/\$[(.]/}]}}function kn(e){let t=e.regex,n=On(e),r=bn,i=[`any`,`void`,`number`,`boolean`,`string`,`object`,`never`,`symbol`,`bigint`,`unknown`],a={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:`keyword`,3:`title.class`}},o={beginKeywords:`interface`,end:/\{/,excludeEnd:!0,keywords:{keyword:`interface extends`,built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:`meta`,relevance:10,begin:/^\s*['"]use strict['"]/},c={$pattern:bn,keyword:xn.concat([`type`,`interface`,`public`,`private`,`protected`,`implements`,`declare`,`abstract`,`readonly`,`enum`,`override`,`satisfies`]),literal:Sn,built_in:Dn.concat(i),"variable.language":En},l={className:`meta`,begin:`@`+r},u=(e,t,n)=>{let r=e.contains.findIndex(e=>e.label===t);if(r===-1)throw Error(`can not find mode to replace`);e.contains.splice(r,1,n)};Object.assign(n.keywords,c),n.exports.PARAMS_CONTAINS.push(l);let d=n.contains.find(e=>e.scope===`attr`),f=Object.assign({},d,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,d,f]),n.contains=n.contains.concat([l,a,o,f]),u(n,`shebang`,e.SHEBANG()),u(n,`use_strict`,s);let p=n.contains.find(e=>e.label===`func.def`);return p.relevance=0,Object.assign(n,{name:`TypeScript`,aliases:[`ts`,`tsx`,`mts`,`cts`]}),n}function An(e){let t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:`keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:`string`}),c=e.inherit(e.QUOTE_STRING_MODE,{className:`string`}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,unicodeRegex:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,c,s,o,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[a,o,c,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:`meta`,end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:n,relevance:0,starts:l}]},{className:`tag`,begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:`name`,begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var jn=document.createElement(`style`);jn.innerText=[ln,cn].join(`
440
+ `),document.head.appendChild(jn),un.registerLanguage(`typescript`,kn),un.registerLanguage(`html`,An),un.registerLanguage(`css`,yn);function Mn(...e){let t=document.createElement(`div`),n=document.createElement(`div`);n.classList.add(`tab-control`);let r=document.createElement(`div`);return e.forEach(n=>{t.appendChild(n),n.addEventListener(`click`,()=>{e.forEach(e=>e.removeAttribute(`selected`)),n.setAttribute(`selected`,``),r.innerHTML=``,r.appendChild(n.content),r.className=n.className,r.classList.add(`tab-content`)})}),n.appendChild(t),n.appendChild(r),r.classList.add(`tab-content`),e[0].setAttribute(`selected`,``),r.appendChild(e[0].content),n}function Nn(e,t){let n=document.createElement(`div`);return n.role=`tab`,n.tabIndex=0,n.innerText=e,n.content=t,t.tagName==`PRE`&&n.classList.add(`code`),n}function Pn(e,t){let n=document.createElement(`template`);if(typeof t==`string`)return n.innerHTML=`<${e}>${t}</${e}>`,n.content.firstElementChild;{n.innerHTML=`<${e}></${e}>`;let r=n.content.firstElementChild;return t.forEach(e=>r.appendChild(e)),r}}async function Fn(e,t,n){let r=t.mainContent,i=Pn(`div`,r);i.id=`example-preview-${n}`;let a=typeof t.css==`string`?void 0:t.css?.label,o=typeof t.css==`string`?t.css:t.css?.content,s=Mn(Nn(`Preview`,i),Nn(`HTML`,In(`html`,r)),...o?[Nn(a??`CSS`,In(`css`,o))]:[],...t.initializer&&t.initializer.content?[Nn(t.initializer.label??`TS`,In(`typescript`,t.initializer.content))]:[],...(t.additionalSources||[]).map(e=>Nn(e.label,In(e.language,e.content))));t.description&&e.appendChild(Pn(`div`,t.description));let c=Pn(`div`,[s]);c.classList.add(`example`),e.appendChild(c),o&&Ln(`#${i.id}`,o),t.initializer?.initialize&&await t.initializer.initialize(i)}function In(e,t){let n=t.split(/\r?\n/).map(e=>{let t=e.indexOf(`///`);if(t>-1){let n=e.substring(t+3).trimStart();return n?e.replace(/^(\s*)([^\s].*)$/,`$1${n}`):void 0}return e}).filter(e=>e!==void 0).join(`
441
+ `).trim();return e&&e!=`raw`&&(n=un.highlight(n,{language:e}).value),Pn(`pre`,[Pn(`code`,n)])}function Ln(e,t){let n=document.createElement(`style`);n.innerHTML=Xt().use((0,Zt.default)({prefix:e})).process(t).css,document.head.appendChild(n)}async function Rn(e,t=document.body){let n=Bn(t),r=0;return Object.keys(e).sort().map(async t=>{let i=document.createElement(`div`);i.className=`example-container`,n.appendChild(i);let a=e[t].default;await Fn(i,a,r++)})}function zn(e){let t=document.createElement(`div`);t.id=`examples-container`;let n=e.querySelector(`#examples`);return n?n.after(t):e.appendChild(t),t}function Bn(e){return e.children?zn(e):e}var Vn=`<h1 id="@cas-smartdesign/radio-button-group">@cas-smartdesign/radio-button-group</h1>
442
442
  <p>A radio-button-group and a radio-button element based on <a href="https://github.com/Polymer/lit-element">lit-element</a> with SmartDesign look &amp; feel.</p>
443
443
  <h2 id="radio-button-group">radio-button-group</h2>
444
444
  <h3 id="attributes">Attributes</h3>
@@ -470,7 +470,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ee=A,G=I),q===void 0&&
470
470
  </ul>
471
471
  <h3 id="custom-events">Custom events</h3>
472
472
  <ul>
473
- <li><code>value-change</code>: <strong><em>CustomEvent&lt;IValueChangeEvent&gt;</em></strong><ul>
473
+ <li><code>sd-radio-button-group-value-change</code>: <strong><em>CustomEvent&lt;IValueChangeEvent&gt;</em></strong><ul>
474
474
  <li>This event is dispatched when the value is changed because of a user interaction</li>
475
475
  </ul>
476
476
  </li>
@@ -547,4 +547,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ee=A,G=I),q===void 0&&
547
547
  </ul>
548
548
  </li>
549
549
  </ul>
550
- `,Bo=document.querySelector("#markdown-container");Bo.innerHTML=jo;Io(Object.assign({"./examples/1_declarative/index.ts":Fr,"./examples/2_disabled/index.ts":Kr,"./examples/3_long_text/index.ts":Yr,"./examples/4_validation/index.ts":as,"./examples/5_segmented_button/index.ts":fs}),document.querySelector(".markdown-body"));export{qt as e};
550
+ `,Hn=document.querySelector(`#markdown-container`);Hn.innerHTML=Vn,Rn(Object.assign({"./examples/1_declarative/index.ts":p,"./examples/2_disabled/index.ts":v,"./examples/3_long_text/index.ts":S,"./examples/4_validation/index.ts":M,"./examples/5_segmented_button/index.ts":R}),document.querySelector(`.markdown-body`));export{xt as t};