@htmlbricks/hb-contact-card 0.71.35 → 0.71.37
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/README.md +176 -35
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +83 -108
- package/package.json +1 -1
- package/types/webcomponent.type.d.ts +3 -3
- package/types/webcomponent_events.type.d.json +3 -69
package/README.md
CHANGED
|
@@ -1,55 +1,196 @@
|
|
|
1
|
-
|
|
1
|
+
# `hb-contact-card`
|
|
2
2
|
|
|
3
|
-
**Category:** content
|
|
3
|
+
**Category:** content · **Tags:** content, contact
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The **contact card** web component renders a Bulma-styled card with a header (avatar or placeholder, name, optional title, collapse control, and optional actions menu) and a body of collapsible sections: company, contact details (email, phone, website), addresses, social links, and notes. Data is supplied as a single JSON object. Optional **Bootstrap Icons** are loaded for affordances.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**Peer dependency (runtime):** when `actions_list` is non-empty, the component registers and embeds **`hb-dropdown-simple`** for the overflow menu.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Custom element
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```html
|
|
14
|
+
<hb-contact-card></hb-contact-card>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## HTML attributes (snake_case, strings)
|
|
20
|
+
|
|
21
|
+
From HTML, complex values must be **JSON strings** on attributes (objects and arrays are not passed as live JS references).
|
|
22
|
+
|
|
23
|
+
| Attribute | Required | Description |
|
|
24
|
+
|-----------|----------|-------------|
|
|
25
|
+
| `data` | **Yes** | JSON string of the contact payload (see **Contact data** below). Parsed in the component; invalid JSON is logged and leaves internal data empty until fixed. |
|
|
26
|
+
| `id` | No | String passed through on custom event `detail.id`. |
|
|
27
|
+
| `style` | No | Inline style string applied on the root card wrapper. |
|
|
28
|
+
| `actions_list` | No | JSON string array of menu items for `hb-dropdown-simple` (`key`, `label`, optional `badge`, `group`, `linkHref`). If empty or omitted, the menu is not shown. |
|
|
29
|
+
| `i18nlang` | No | Language for built-in labels (e.g. section titles). Supported in authoring metadata: **`en`**, **`it`**. |
|
|
30
|
+
| `show_header_collapse_button` | No | **`yes`** (default) or **`no`**: show or hide the header button that collapses the entire card body. |
|
|
31
|
+
| `start_collapsed` | No | **`no`** (default) or **`yes`**: render the card body collapsed on first paint. |
|
|
32
|
+
|
|
33
|
+
**Boolean strings:** only the attributes above use `yes` / `no`. Inside the JSON `data` object, use normal JSON booleans for fields like `clickable` (`true` / `false`).
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Contact data (`data` JSON)
|
|
38
|
+
|
|
39
|
+
The inner object is the **contact record**. Display name is computed as `fullName`, or `firstName` + `lastName`, or the literal `"Unknown Contact"`.
|
|
40
|
+
|
|
41
|
+
| Field | Type | Description |
|
|
42
|
+
|-------|------|-------------|
|
|
43
|
+
| `firstName`, `lastName` | string (optional) | Used for display name when `fullName` is absent. |
|
|
44
|
+
| `fullName` | string (optional) | Preferred single-field name. |
|
|
45
|
+
| `title` | string (optional) | Subtitle under the name in the header. |
|
|
46
|
+
| `emails` | array (optional) | Items: `address`, `type` (`home` \| `work` \| `personal` \| `other`), optional `label`. Rendered as `mailto:` links. |
|
|
47
|
+
| `phones` | array (optional) | Items: `number`, `type` (`home` \| `work` \| `mobile` \| `fax` \| `other`), optional `label`. Rendered as `tel:` links. |
|
|
48
|
+
| `website` | string (optional) | Opened in a new tab (`rel="noopener noreferrer"`). |
|
|
49
|
+
| `addresses` | array (optional) | Items: `type` (`home` \| `work` \| `billing` \| `shipping` \| `other`), optional `label`, `street`, `city`, `state`, `postalCode`, `country`. Rows are keyboard-activatable and dispatch `addressClick`. |
|
|
50
|
+
| `company`, `department`, `jobTitle` | string (optional) | Shown in the **Company** section if any is present. |
|
|
51
|
+
| `notes` | string (optional) | **Notes** section. |
|
|
52
|
+
| `avatar` | string (optional) | Image URL; if missing or blank, a gradient placeholder with a person icon is shown. |
|
|
53
|
+
| `latitude`, `longitude` | number (optional) | Accepted in typings; not rendered by the current template. |
|
|
54
|
+
| `socialMedia` | array (optional) | Items: `platform`, `url`, optional `username`. Platforms include `linkedin`, `twitter`, `facebook`, `instagram`, `github`, `youtube`, `tiktok`, `signal`, `whatsapp`, `telegram`, `other`. If `url` is empty but `username` is set, the component **fills `url`** using known per-platform patterns (e.g. `wa.me` for WhatsApp, `t.me` for Telegram). |
|
|
55
|
+
| `clickable` | boolean (optional) | When `true`, a full-card hit target dispatches **`contactClick`** on activation and the card gets hover / focus-visible affordances. |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Actions menu (`actions_list`)
|
|
60
|
+
|
|
61
|
+
Each entry is passed through to **`hb-dropdown-simple`** as its `list` prop (stringified JSON). Typical fields:
|
|
62
|
+
|
|
63
|
+
| Field | Description |
|
|
64
|
+
|-------|-------------|
|
|
65
|
+
| `key` | Stable id for the action (consumer-defined). |
|
|
66
|
+
| `label` | Visible label. |
|
|
67
|
+
| `badge` | Optional number shown on the item. |
|
|
68
|
+
| `group` | Optional grouping label in the menu. |
|
|
69
|
+
| `linkHref` | Optional navigation target for the item. |
|
|
70
|
+
|
|
71
|
+
Selecting items is handled inside **`hb-dropdown-simple`**; this card does not map menu `key` values to `contactEdit` / `contactDelete` automatically—you can coordinate behavior in your host app if needed.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Behavior
|
|
76
|
+
|
|
77
|
+
- **Card collapse:** The header chevron toggles the whole **body** (max-height / opacity animation). Toggling dispatches **`collapseChange`** with the new collapsed flag.
|
|
78
|
+
- **Section collapse:** Company, Contact, Address, Social, and Notes each have their own expand/collapse; these are **internal only** (no custom event).
|
|
79
|
+
- **Clickable card:** With `clickable: true`, a transparent button covers the card (`z-index` below header actions). Header controls, section toggles, links, and the actions dropdown sit above it and stop propagation where appropriate.
|
|
80
|
+
- **Links:** Email, phone, and website use normal anchors; click handlers still run to emit the corresponding events (in addition to default navigation where applicable).
|
|
81
|
+
- **Social:** Icon buttons link to `resolvedSocialMedia` URLs (built from `url` or from `username` + `platform`).
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Custom events
|
|
86
|
+
|
|
87
|
+
Listen with `addEventListener` on the element. All payloads include `id` from the element’s `id` attribute (string).
|
|
88
|
+
|
|
89
|
+
| Event | `detail` | When it fires |
|
|
90
|
+
|-------|----------|----------------|
|
|
91
|
+
| `contactClick` | `{ id, contact }` | `contact` is the **parsed inner contact object** (same shape as `data` without the outer attribute wrapper). Fires when `clickable` is true and the card hit area is activated. |
|
|
92
|
+
| `phoneClick` | `{ id, phone }` | Phone row link clicked. |
|
|
93
|
+
| `emailClick` | `{ id, email }` | Email row link clicked. |
|
|
94
|
+
| `websiteClick` | `{ id, website }` | Website link clicked. |
|
|
95
|
+
| `socialClick` | `{ id, social }` | Social icon link clicked. |
|
|
96
|
+
| `addressClick` | `{ id, address }` | Address row clicked or activated with Enter/Space. |
|
|
97
|
+
| `collapseChange` | `{ id, collapsed }` | Card body toggled via the header control. |
|
|
98
|
+
| `contactEdit` | `{ id, contact }` | Typings and dispatch helpers exist for an edit flow; the **default markup does not wire** this event to a control. |
|
|
99
|
+
| `contactDelete` | `{ id, contact }` | Same as `contactEdit` for delete. |
|
|
14
100
|
|
|
15
|
-
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| `id` | string (optional) | Element identifier. |
|
|
18
|
-
| `style` | string (optional) | Inline style string. |
|
|
19
|
-
| `data` | object (required) | JSON `ContactData`: names, title, emails[], phones[], website, addresses[], company fields, notes, avatar, lat/long, socialMedia[], clickable?. |
|
|
20
|
-
| `actions_list` | array (optional) | JSON `IDropDownMenuListItem[]`: key, label, badge?, group?, linkHref?. |
|
|
21
|
-
| `i18nlang` | string (optional) | `en` \| `it` (storybook). |
|
|
22
|
-
| `show_header_collapse_button` | union (optional) | `"yes"` \| `"no"` — default `"yes"`. |
|
|
23
|
-
| `start_collapsed` | union (optional) | `"yes"` \| `"no"` — default `"no"`. |
|
|
101
|
+
---
|
|
24
102
|
|
|
25
|
-
|
|
103
|
+
## Styling: CSS custom properties (`:host`)
|
|
26
104
|
|
|
27
|
-
|
|
105
|
+
Bulma-related tokens are documented in `extra/docs.ts` / `styleSetup`. The card and rows use:
|
|
28
106
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
107
|
+
| Variable | Role |
|
|
108
|
+
|----------|------|
|
|
109
|
+
| `--bulma-border` | Card border and separators. |
|
|
110
|
+
| `--bulma-radius` | Card corners, rows, section chrome. |
|
|
111
|
+
| `--bulma-shadow` | Default elevation. |
|
|
112
|
+
| `--bulma-card-background-color` | Card surface (falls back to `--bulma-body-background`). |
|
|
113
|
+
| `--bulma-card-shadow` | Stronger shadow on hover when the card is clickable. |
|
|
114
|
+
| `--bulma-body-background` | Fallback surface. |
|
|
115
|
+
| `--bulma-link` | Links, focus rings, accents. |
|
|
116
|
+
| `--bulma-link-invert` | Icon/text on social pills when hovered (solid link background). |
|
|
117
|
+
| `--bulma-info` | Second stop for avatar placeholder gradient. |
|
|
118
|
+
| `--bulma-scheme-main-bis` | Header strip and default social pill background. |
|
|
119
|
+
| `--bulma-white` | Placeholder icon color. |
|
|
120
|
+
| `--bulma-text`, `--bulma-text-strong`, `--bulma-text-weak` | Body, headings, muted labels. |
|
|
121
|
+
| `--bulma-background-lighter` | Hover on section headers and address rows. |
|
|
122
|
+
| `--bulma-radius-rounded` | Circular avatar and social pills. |
|
|
38
123
|
|
|
39
|
-
|
|
124
|
+
Theme setup follows Bulma 1.x CSS variables on `:host` (see project `styles/bulma.scss`).
|
|
40
125
|
|
|
41
|
-
|
|
42
|
-
- Icons use bootstrap-icons for contact and social affordances.
|
|
43
|
-
- Shadow DOM exposes `::part()` hooks for card regions.
|
|
44
|
-
- Set `i18nlang` for English or Italian strings.
|
|
126
|
+
---
|
|
45
127
|
|
|
46
|
-
|
|
128
|
+
## Styling: `::part` names
|
|
129
|
+
|
|
130
|
+
These names are published in component metadata (`styleSetup.parts`) for host-level styling:
|
|
131
|
+
|
|
132
|
+
| Part | Intended target |
|
|
133
|
+
|------|-----------------|
|
|
134
|
+
| `card` | Root card container. |
|
|
135
|
+
| `header` | Header strip (avatar, title, controls). |
|
|
136
|
+
| `body` | Scrollable / collapsible main content. |
|
|
137
|
+
| `avatar` | Avatar image or placeholder. |
|
|
138
|
+
| `actions` | Actions dropdown region. |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Slots
|
|
143
|
+
|
|
144
|
+
None.
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Example: minimal host page
|
|
47
149
|
|
|
48
150
|
```html
|
|
49
151
|
<hb-contact-card
|
|
50
152
|
id="c1"
|
|
51
153
|
i18nlang="en"
|
|
52
|
-
data='{"fullName":"Alex Doe","emails":[{"address":"alex@example.com","type":"work"}],"clickable":true}'
|
|
53
|
-
actions_list='[{"key":"edit","label":"Edit"}]'
|
|
154
|
+
data='{"fullName":"Alex Doe","title":"Engineer","emails":[{"address":"alex@example.com","type":"work"}],"phones":[{"number":"+15551234567","type":"mobile"}],"clickable":true}'
|
|
155
|
+
actions_list='[{"key":"edit","label":"Edit","group":"Actions"},{"key":"email","label":"Send email","group":"Actions"}]'
|
|
54
156
|
></hb-contact-card>
|
|
157
|
+
|
|
158
|
+
<script type="module">
|
|
159
|
+
const el = document.querySelector("hb-contact-card");
|
|
160
|
+
el.addEventListener("contactClick", (e) => {
|
|
161
|
+
console.log("contact", e.detail.contact);
|
|
162
|
+
});
|
|
163
|
+
el.addEventListener("collapseChange", (e) => {
|
|
164
|
+
console.log("collapsed", e.detail.collapsed);
|
|
165
|
+
});
|
|
166
|
+
</script>
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Example: collapsed by default, no menu
|
|
172
|
+
|
|
173
|
+
```html
|
|
174
|
+
<hb-contact-card
|
|
175
|
+
id="c2"
|
|
176
|
+
start_collapsed="yes"
|
|
177
|
+
show_header_collapse_button="yes"
|
|
178
|
+
data='{"fullName":"Jamie Lee","company":"Acme","jobTitle":"CEO","clickable":false}'
|
|
179
|
+
></hb-contact-card>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## TypeScript authoring
|
|
185
|
+
|
|
186
|
+
For props and nested types (`PhoneNumber`, `EmailAddress`, `Address`, `SocialMedia`, `ContactData`, `Component`, `Events`), see `types/webcomponent.type.d.ts` next to this package.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Build note (monorepo)
|
|
191
|
+
|
|
192
|
+
From the `builder` folder, a single package build:
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
npm run build:wc -- contact-card
|
|
55
196
|
```
|
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<18,ie=1<<19,ae=1<<20,oe=1<<25,se=65536,ce=1<<21,le=1<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),me=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function T(e){w=e}var E;function D(e){if(e===null)throw Oe(),t;return E=e}function Ae(){return D(I(E))}function O(e){if(w){if(I(E)!==null)throw Oe(),t;E=e}}function je(e=1){if(w){for(var t=e,n=E;t--;)n=I(n);E=n}}function Me(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=I(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw Oe(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,k=null;function ze(e){k=e}function Be(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:U,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)pn(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function He(){return!Re||k!==null&&k.l===null}var Ue=[];function We(){var e=Ue;Ue=[],_(e)}function Ge(e){if(Ue.length===0&&!it){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ke(){for(;Ue.length>0;)We()}function qe(e){var t=U;if(t===null)return V.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;Je(e,t)}function Je(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ye=~(b|x|y);function A(e,t){e.f=e.f&Ye|t}function Xe(e){e.f&512||e.deps===null?A(e,y):A(e,x)}function Ze(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Ze(t.deps))}function Qe(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Ze(e.deps),A(e,y)}var $e=!1,et=!1;function tt(e){var t=et;try{return et=!1,[e(),et]}finally{et=t}}var nt=new Set,j=null,M=null,rt=null,it=!1,at=!1,ot=null,st=null,ct=0,lt=1,ut=class e{id=lt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)A(n,b),this.schedule(n);for(n of t.m)A(n,x),this.schedule(n)}}#p(){if(ct++>1e3&&(nt.delete(this),ft()),!this.#d()){for(let e of this.#o)this.#s.delete(e),A(e,b),this.schedule(e);for(let e of this.#s)A(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=ot=[],r=[],i=st=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw yt(e),t}if(j=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ot=null,st=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)vt(e,t)}else{this.#n.size===0&&nt.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),mt(r),mt(n),this.#i?.resolve()}var o=j;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(nt.add(o),o.#p()),nt.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):Kn(r)&&(i&16&&this.#s.add(r),Zn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Qe(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),M?.set(e,e.v))}activate(){j=this}deactivate(){j=null,M=null}flush(){try{at=!0,j=this,this.#p()}finally{ct=0,rt=null,ot=null,st=null,at=!1,j=null,M=null,zt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),nt.delete(this)}#g(){for(let c of nt){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ht(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of nt)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ge(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(j===null){let t=j=new e;at||(nt.add(j),it||Ge(()=>{j===t&&t.flush()}))}return j}apply(){if(!Le||!this.is_fork&&nt.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of nt)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)M.has(e)||M.set(e,t)}}schedule(e){if(rt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ot!==null&&t===U&&(Le||(V===null||!(V.f&2))&&!$e))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function dt(e){var t=it;it=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(Ke(),j===null)return n;j.flush()}}finally{it=t}}function ft(){try{xe()}catch(e){Je(e,rt)}}var pt=null;function mt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Kn(r)&&(pt=new Set,Zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),pt?.size>0)){zt.clear();for(let e of pt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)pt.has(n)&&(pt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Zn(n)}}pt.clear()}}pt=null}}function ht(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ht(i,t,n,r):e&4194320&&!(e&2048)&>(i,t,r)&&(A(i,b),_t(i))}}function gt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&>(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function _t(e){j.schedule(e)}function vt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),A(e,y);for(var n=e.first;n!==null;)vt(n,t),n=n.next}}function yt(e){A(e,y);for(var t=e.first;t!==null;)yt(t),t=t.next}function bt(e){let t=0,n=Vt(0),r;return()=>{un()&&(K(n),vn(()=>(t===0&&(r=er(()=>e(()=>Gt(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Gt(n))})})))}}var xt=ne|ie;function St(e,t,n,r){new Ct(e,t,n,r)}var Ct=class{parent;is_pending=!1;transform_error;#e;#t=w?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=bt(()=>(this.#m=Vt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=U;t.b=this,t.f|=128,n(e)},this.parent=U.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=yn(()=>{if(w){let e=this.#t;Ae();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},xt),w&&(this.#e=E)}#g(){try{this.#a=bn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=bn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=bn(()=>e(this.#e)),Ge(()=>{var e=this.#c=document.createDocumentFragment(),t=F();e.append(t),this.#a=this.#x(()=>bn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(j))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=bn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=bn(()=>t(this.#e))}else this.#b(j)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Qe(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=U,n=V,r=k;In(this.#i),H(this.#i),ze(this.#i.ctx);try{return ut.ensure(),e()}catch(e){return qe(e),null}finally{In(t),H(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ge(()=>{this.#d=!1,this.#m&&Ut(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),K(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(B(this.#a),null),this.#o&&=(B(this.#o),null),this.#s&&=(B(this.#s),null),w&&(D(this.#t),je(),D(Me()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&De(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Je(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return bn(()=>{var t=U;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Je(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){Je(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Je(e,this.#i&&this.#i.parent)):o(t)})}};function wt(e,t,n,r){let i=He()?Ot:jt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=U,s=Tt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Je(e,o)}Et()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Dt();function d(){Promise.all(n.map(e=>kt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Je(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Et()}):d()}function Tt(){var e=U,t=V,n=k,r=j;return function(i=!0){In(e),H(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Et(e=!0){In(null),H(null),ze(null),e&&j?.deactivate()}function Dt(){var e=U,t=e.b,n=j,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ot(e){var t=2|b,r=V!==null&&V.f&2?V:null;return U!==null&&(U.f|=ie),{ctx:k,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??U,ac:null}}function kt(e,t,r){let i=U;i===null&&ge();var a=void 0,o=Vt(n),s=!V,c=new Map;return _n(()=>{var t=U,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Et)}catch(e){n.reject(e),Et()}var r=j;if(s){if(t.f&32768)var l=Dt();if(i.b.is_rendered())c.get(r)?.reject(me),c.delete(r);else{for(let e of c.values())e.reject(me);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===me),!(n===me||t.f&16384)){if(r.activate(),n)o.f|=ue,Ut(o,n);else{o.f&8388608&&(o.f^=ue),Ut(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(me)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),dn(()=>{for(let e of c.values())e.reject(me)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function At(e){let t=Ot(e);return Le||Rn(t),t}function jt(e){let t=Ot(e);return t.equals=Ie,t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function Nt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Pt(e){var t,n=U;In(Nt(e));try{e.f&=~se,Mt(e),t=Jn(e)}finally{In(n)}return t}function Ft(e){var t=e.v,n=Pt(e);if(!e.equals(n)&&(e.wv=Gn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){A(e,y);return}Nn||(M===null?Xe(e):(un()||j?.is_fork)&&M.set(e,n))}function It(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(me),t.teardown=g,t.ac=null,Xn(t,0),Sn(t))}function Lt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Zn(t)}var Rt=new Set,zt=new Map,Bt=!1;function Vt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function N(e,t){let n=Vt(e,t);return Rn(n),n}function Ht(e,t=!1,n=!0){let r=Vt(e);return t||(r.equals=Ie),Re&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function P(e,t,n=!1){return V!==null&&(!Fn||V.f&131072)&&He()&&V.f&4325394&&(Ln===null||!o.call(Ln,e))&&Ee(),Ut(e,n?qt(t):t,st)}function Ut(e,t,n=null){if(!e.equals(t)){var r=e.v;Nn?zt.set(e,t):zt.set(e,r),e.v=t;var i=ut.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Pt(t),M===null&&Xe(t)}e.wv=Gn(),Kt(e,b,n),He()&&U!==null&&U.f&1024&&!(U.f&96)&&(zn===null?Bn([e]):zn.push(e)),!i.is_fork&&Rt.size>0&&!Bt&&Wt()}return t}function Wt(){Bt=!1;for(let e of Rt)e.f&1024&&A(e,x),Kn(e)&&Zn(e);Rt.clear()}function Gt(e){P(e,e.v+1)}function Kt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===U)){var l=(c&b)===0;if(l&&A(s,t),c&2){var u=s;M?.delete(u),c&65536||(c&512&&(s.f|=se),Kt(u,x,n))}else if(l){var d=s;c&16&&pt!==null&&pt.add(d),n===null?_t(d):n.push(d)}}}}function qt(e){if(typeof e!=`object`||!e||de in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=N(0),s=null,c=Un,l=e=>{if(Un===c)return e();var t=V,n=Un;H(null),Wn(c);var r=e();return H(t),Wn(n),r};return a&&r.set(`length`,N(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&we();var i=r.get(t);return i===void 0?l(()=>{var e=N(n.value,s);return r.set(t,e),e}):P(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>N(n,s));r.set(t,e),Gt(o)}}else P(i,n),Gt(o);return!0},get(t,i,a){if(i===de)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>N(qt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=K(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=K(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===de)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||U!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>N(a?qt(e[t]):n,s)),r.set(t,i)),K(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>N(n,s)),r.set(p+``,m)):P(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>N(void 0,s)),P(d,qt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>qt(i));P(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&P(_,v+1)}Gt(o)}return!0},ownKeys(e){K(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Te()}})}var Jt,Yt,Xt,Zt;function Qt(){if(Jt===void 0){Jt=window,Yt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Xt=u(t,`firstChild`).get,Zt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function F(e=``){return document.createTextNode(e)}function $t(e){return Xt.call(e)}function I(e){return Zt.call(e)}function L(e,t){if(!w)return $t(e);var n=$t(E);if(n===null)n=E.appendChild(F());else if(t&&n.nodeType!==3){var r=F();return n?.before(r),D(r),r}return t&&an(n),D(n),n}function en(e,t=!1){if(!w){var n=$t(e);return n instanceof Comment&&n.data===``?I(n):n}if(t){if(E?.nodeType!==3){var r=F();return E?.before(r),D(r),r}an(E)}return E}function R(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=I(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=F();return r===null?i?.after(a):r.before(a),D(a),a}an(r)}return D(r),r}function tn(e){e.textContent=``}function nn(){return!Le||pt!==null?!1:(U.f&C)!==0}function rn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function an(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function on(e){var t=V,n=U;H(null),In(null);try{return e()}finally{H(t),In(n)}}function sn(e){U===null&&(V===null&&be(e),ye()),Nn&&ve(e)}function cn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ln(e,t){var n=U;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)ot===null?ut.ensure().schedule(r):ot.push(r);else if(t!==null){try{Zn(r)}catch(e){throw B(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&cn(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function un(){return V!==null&&!Fn}function dn(e){let t=ln(8,null);return A(t,y),t.teardown=e,t}function fn(e){sn(`$effect`);var t=U.f;if(!V&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return pn(e)}function pn(e){return ln(4|ae,e)}function mn(e){ut.ensure();let t=ln(64|ie,e);return()=>{B(t)}}function hn(e){ut.ensure();let t=ln(64|ie,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function gn(e){return ln(4,e)}function _n(e){return ln(le|ie,e)}function vn(e,t=0){return ln(8|t,e)}function z(e,t=[],n=[],r=[]){wt(r,t,n,t=>{ln(8,()=>e(...t.map(K)))})}function yn(e,t=0){return ln(16|t,e)}function bn(e){return ln(32|ie,e)}function xn(e){var t=e.teardown;if(t!==null){let e=Nn,n=V;Pn(!0),H(null);try{t.call(null)}finally{Pn(e),H(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&on(()=>{e.abort(me)});var r=n.next;n.f&64?n.parent=null:B(n,t),n=r}}function Cn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||B(t),t=n}}function B(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),A(e,te),Sn(e,t&&!n),Xn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();xn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:I(e);e.remove(),e=n}}function Tn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&B(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Dn(i,t,o?n:!1),i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(A(e,b),ut.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;kn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:I(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var V=null,Fn=!1;function H(e){V=e}var U=null;function In(e){U=e}var Ln=null;function Rn(e){V!==null&&(!Le||V.f&2)&&(Ln===null?Ln=[e]:Ln.push(e))}var W=null,G=0,zn=null;function Bn(e){zn=e}var Vn=1,Hn=0,Un=Hn;function Wn(e){Un=e}function Gn(){return++Vn}function Kn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Kn(a)&&Ft(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,y)}return!1}function qn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&Ln!==null&&o.call(Ln,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?qn(a,t,!1):t===a&&(n?A(a,b):a.f&1024&&A(a,x),_t(a))}}function Jn(e){var t=W,n=G,r=zn,i=V,a=Ln,o=k,s=Fn,c=Un,l=e.f;W=null,G=0,zn=null,V=l&96?null:e,Ln=null,ze(e.ctx),Fn=!1,Un=++Hn,e.ac!==null&&(on(()=>{e.ac.abort(me)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=j?.is_fork;if(W!==null){var m;if(p||Xn(e,G),f!==null&&G>0)for(f.length=G+W.length,m=0;m<W.length;m++)f[G+m]=W[m];else e.deps=f=W;if(un()&&e.f&512)for(m=G;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&G<f.length&&(Xn(e,G),f.length=G);if(He()&&zn!==null&&!Fn&&f!==null&&!(e.f&6146))for(m=0;m<zn.length;m++)qn(zn[m],e);if(i!==null&&i!==e){if(Hn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Hn;if(t!==null)for(let e of t)e.rv=Hn;zn!==null&&(r===null?r=zn:r.push(...zn))}return e.f&8388608&&(e.f^=ue),d}catch(e){return qe(e)}finally{e.f^=ce,W=t,G=n,zn=r,V=i,Ln=a,ze(o),Fn=s,Un=c}}function Yn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(W===null||!o.call(W,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),Xe(s),It(s),Xn(s,0)}}function Xn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yn(e,n[r])}function Zn(e){var t=e.f;if(!(t&16384)){A(e,y);var n=U,r=Mn;U=e,Mn=!0;try{t&16777232?Cn(e):Sn(e),xn(e);var i=Jn(e);e.teardown=typeof i==`function`?i:null,e.wv=Vn}finally{Mn=r,U=n}}}function K(e){var t=(e.f&2)!=0;if(jn?.add(e),V!==null&&!Fn&&!(U!==null&&U.f&16384)&&(Ln===null||!o.call(Ln,e))){var n=V.deps;if(V.f&2097152)e.rv<Hn&&(e.rv=Hn,W===null&&n!==null&&n[G]===e?G++:W===null?W=[e]:W.push(e));else{(V.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[V]:o.call(r,V)||r.push(V)}}if(Nn&&zt.has(e))return zt.get(e);if(t){var i=e;if(Nn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||$n(i))&&(a=Pt(i)),zt.set(i,a),a}var s=(i.f&512)==0&&!Fn&&V!==null&&(Mn||(V.f&512)!=0),c=(i.f&C)===0;Kn(i)&&(s&&(i.f|=512),Ft(i)),s&&!c&&(Lt(i),Qn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Qn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Lt(t),Qn(t))}function $n(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(zt.has(t)||t.f&2&&$n(t))return!0;return!1}function er(e){var t=Fn;try{return Fn=!0,e()}finally{Fn=t}}var tr=Symbol(`events`),nr=new Set,rr=new Set;function q(e,t,n){(t[tr]??={})[e]=n}function ir(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var n of rr)n(e)}var ar=null;function or(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ar=e;var o=0,s=ar===e&&e[tr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[tr]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=V,f=U;H(null),In(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[tr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[tr]=t,delete e.currentTarget,H(d),In(f)}}}var sr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function cr(e){return sr?.createHTML(e)??e}function lr(e){var t=rn(`template`);return t.innerHTML=cr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ur(e,t){var n=U;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return ur(E,null),E;i===void 0&&(i=lr(a?e:`<!>`+e),n||(i=$t(i)));var t=r||Yt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=$t(t),s=t.lastChild;ur(o,s)}else ur(t,t);return t}}function dr(){if(w)return ur(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=F();return e.append(t,n),ur(t,n),e}function Y(e,t){if(w){var n=U;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ae();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var fr=[`touchstart`,`touchmove`];function pr(e){return fr.includes(e)}function X(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function mr(e,t){return _r(e,t)}function hr(e,n){Qt(),n.intro=n.intro??!1;let r=n.target,i=w,a=E;try{for(var o=$t(r);o&&(o.nodeType!==8||o.data!==`[`);)o=I(o);if(!o)throw t;T(!0),D(o);let i=_r(e,{...n,anchor:o});return T(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
2
|
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),Qt(),tn(r),T(!1),mr(e,n)}finally{T(i),D(a)}}var gr=new Map;function _r(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Qt();var u=void 0,d=hn(()=>{var c=r??n.appendChild(F());St(c,{pending:()=>{}},n=>{Be({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),w&&ur(n,null),u=e(n,i)||{},w&&(U.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Oe(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=pr(r);for(let e of[n,document]){var a=gr.get(e);a===void 0&&(a=new Map,gr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,or,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(nr)),rr.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=gr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,or),t.delete(e),t.size===0&&gr.delete(r)):t.set(e,i)}rr.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return vr.set(u,d),u}var vr=new WeakMap;function yr(e,t){let n=vr.get(e);return n?(vr.delete(e),n(t)):Promise.resolve()}var br=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(B(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();An(r,t),t.append(F()),this.#n.set(e,{effect:r,fragment:t})}else B(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(B(n.effect),this.#n.delete(e))};ensure(e,t){var n=j,r=nn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=F();i.append(a),this.#n.set(e,{effect:bn(()=>t(a)),fragment:i})}else this.#t.set(e,bn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=E),this.#a(n)}};function Z(e,t,n=!1){var r;w&&(r=E,Ae());var i=new br(e),a=n?ne:0;function o(e,t){if(w){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();D(a),i.anchor=a,T(!1),i.ensure(e,t),T(!0);return}}i.ensure(e,t)}yn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function xr(e,t){return t}function Sr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];En(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Cr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;tn(d),d.append(u),e.items.clear()}Cr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Cr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=oe,An(a,document.createDocumentFragment())):B(t[i],n)}}var wr;function Tr(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=w?D($t(u)):u.appendChild(F())}w&&Ae();var d=null,f=jt(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Dr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=oe,kr(d,null,c)):On(d):En(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:yn(()=>{p=K(f);var e=p.length;let i=!1;w&&Ne(c)===`[!`!=(e===0)&&(c=Me(),D(c),T(!1),i=!0);for(var s=new Set,u=j,v=nn(),y=0;y<e;y+=1){w&&E.nodeType===8&&E.data===`]`&&(c=E,i=!0,T(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Ut(S.v,b),S.i&&Ut(S.i,y),v&&u.unskip_effect(S.e)):(S=Or(l,h?c:wr??=F(),b,x,y,a,t,n),h||(S.e.f|=oe),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=bn(()=>o(c)):(d=bn(()=>o(wr??=F())),d.f|=oe)),e>s.size&&_e(``,``,``),w&&e>0&&D(Me()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&T(!0),K(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,w&&(c=E)}function Er(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Dr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=Er(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(On(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=oe,_===l)kr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ar(e,d,_),Ar(e,_,y),kr(_,y,n),d=_,p=[],m=[],l=Er(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)kr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Ar(e,S.prev,ee.next),Ar(e,d,S),Ar(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),kr(_,l,n),Ar(e,_.prev,_.next),Ar(e,_,d===null?e.effect.first:d.next),Ar(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Er(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Er(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Cr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=Er(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Sr(e,C,ne)}}a&&Ge(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Or(e,t,n,r,i,a,o,s){var c=o&1?o&16?Vt(n):Ht(n,!1,!1):null,l=o&2?Vt(i):null;return{v:c,i:l,e:bn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function kr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=I(r);if(a.before(r),r===i)return;r=o}}function Ar(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function jr(e,t){let n=null,r=w;var i;if(w){n=E;for(var a=$t(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=I(a);if(a===null)T(!1);else{var o=I(a);a.remove(),D(o)}}w||(i=document.head.appendChild(F()));try{yn(()=>t(i),re|ie)}finally{r&&(T(!0),D(n))}}function Mr(e,t){gn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=rn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Nr=[...`
|
|
3
|
-
\r\f\xA0\v`];function Pr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Nr.includes(r[o-1]))&&(s===r.length||Nr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Fr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ir(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Lr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ir)),i&&c.push(...Object.keys(i).map(Ir));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ir(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Fr(r)),i&&(n+=Fr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Q(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=Pr(n,r,a);(!w||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Rr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function zr(e,t,n,r){var i=e.__style;if(w||i!==t){var a=Lr(t,r);(!w||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Rr(e,n?.[0],r[0]),Rr(e,n?.[1],r[1],`important`)):Rr(e,n,r));return r}var Br=Symbol(`is custom element`),Vr=Symbol(`is html`),Hr=he?`link`:`LINK`;function $(e,t,n,r){var i=Wr(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Hr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Kr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ur(e,t,n){var r=V,i=U;let a=w;w&&T(!1),H(null),In(null);try{t!==`style`&&(Gr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Kr(e).includes(t):n&&typeof n==`object`)?e[t]=n:$(e,t,n==null?n:String(n))}finally{H(r),In(i),a&&T(!0)}}function Wr(e){return e.__attributes??={[Br]:e.nodeName.includes(`-`),[Vr]:e.namespaceURI===r}}var Gr=new Map;function Kr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Gr.get(t);if(n)return n;Gr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function qr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?er(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=tt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Ot:jt)(()=>(_=!1,h()));a&&K(v);var y=U;return(function(e,t){if(arguments.length>0){let n=t?K(v):i&&a?qt(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Nn&&_||y.f&16384?v.v:K(v)})}function Jr(e){return new Yr(e)}var Yr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ht(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return P(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hr:mr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&dt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Xr;typeof HTMLElement==`function`&&(Xr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=rn(`slot`);e!==`default`&&(n.name=e),Y(t,n)}}let t={},n=Qr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Zr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mn(()=>{vn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Zr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Zr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Zr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Qr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function $r(e,t,n,r,i,a){let o=class extends Xr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Zr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function ei(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ti=class e{dictionary;lang=``;constructor(e){if(!e?.dictionary)throw Error(`no dictionary provided`);this.dictionary=e.dictionary,this.setLang(e?.lang)}setLang(t){t||=e.getDefaultLang(),this.lang=t}translateWord(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)}translateDate(t,n,r){return e.formatDate(t,n,r||this.lang)}static getDefaultLang(){let e=`en`;return navigator?.languages&&navigator.languages[0]?.split(`-`)[0]?.toLowerCase()?.length&&(e=navigator.languages[0].split(`-`)[0].toLowerCase()),e}static getDictionaryWord(t,n,r){if(!t)throw Error(`no wordKey provided`);if(!n)throw Error(`no dictionary provided`);if(r&&n[r]?.[t])return n[r][t];let i=``,a=e.getDefaultLang();if(!r||a!==r){let e=n?.[a];e?.[t]&&(i=e[t])}return i}static formatDate(t,n,r){if(!t)throw Error(`no date provided`);if(typeof t.getMonth!=`function`)throw Error(`wrong date format`);return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)}},ni={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.35`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}},ri={en:{Contact:`Contact`,Company:`Company`,Address:`Address`,Social:`Social`,Notes:`Notes`},it:{Contact:`Contatto`,Company:`Azienda`,Address:`Indirizzo`,Social:`Social`,Notes:`Note`}},ii=J(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-165xfg5"/>`),ai=J(`<button class="hb-contact-card-hitarea svelte-165xfg5" type="button" aria-label="View contact details"></button>`),oi=J(`<img class="avatar svelte-165xfg5"/>`),si=J(`<div class="avatar-placeholder svelte-165xfg5"><i class="bi bi-person-fill svelte-165xfg5"></i></div>`),ci=J(`<p class="card-subtitle has-text-grey mb-0 svelte-165xfg5"> </p>`),li=J(`<button class="button is-small is-outlined svelte-165xfg5" type="button"><i></i></button>`),ui=J(`<div class="dropdown svelte-165xfg5"><hb-dropdown-simple><button slot="dropdownbutton" class="button is-small is-outlined svelte-165xfg5" type="button" aria-label="Contact actions menu"><i class="bi bi-three-dots-vertical svelte-165xfg5"></i></button></hb-dropdown-simple></div>`,2),di=J(`<div class="contact-item svelte-165xfg5"><strong class="svelte-165xfg5"> </strong></div>`),fi=J(`<div class="contact-item has-text-grey svelte-165xfg5"> </div>`),pi=J(`<div class="contact-item has-text-grey svelte-165xfg5"> </div>`),mi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-building mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!> <!> <!></div></div>`),hi=J(`<span class="has-text-grey ml-2 svelte-165xfg5"> </span>`),gi=J(`<div class="contact-item svelte-165xfg5"><i></i> <a class="svelte-165xfg5"> </a> <!></div>`),_i=J(`<span class="has-text-grey ml-2 svelte-165xfg5"> </span>`),vi=J(`<div class="contact-item svelte-165xfg5"><i></i> <a class="svelte-165xfg5"> </a> <!></div>`),yi=J(`<div class="contact-item svelte-165xfg5"><i class="bi bi-globe mr-2 svelte-165xfg5"></i> <a target="_blank" rel="noopener noreferrer" class="svelte-165xfg5"> </a></div>`),bi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-telephone mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!> <!> <!></div></div>`),xi=J(`<strong class="svelte-165xfg5"> </strong>`),Si=J(`<div class="svelte-165xfg5"> </div>`),Ci=J(`<div class="svelte-165xfg5"> </div>`),wi=J(`<div class="svelte-165xfg5"> </div>`),Ti=J(`<div class="contact-item address-item is-clickable svelte-165xfg5" role="button" tabindex="0"><i></i> <!> <!> <!> <!></div>`),Ei=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-geo-alt mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!></div></div>`),Di=J(`<a target="_blank" rel="noopener noreferrer" class="social-link mr-2 svelte-165xfg5"><i></i></a>`),Oi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-share mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!></div></div>`),ki=J(`<div class="contact-section svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-sticky mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><div class="contact-item svelte-165xfg5"> </div></div></div>`),Ai=J(`<div><!> <div class="card-header is-flex is-align-items-center svelte-165xfg5"><div class="avatar-container mr-3 svelte-165xfg5"><!></div> <div class="is-flex-grow-1 svelte-165xfg5"><h5 class="card-title mb-1 svelte-165xfg5"> </h5> <!></div> <div class="header-actions is-flex is-gap-2 svelte-165xfg5"><!> <!></div></div> <div><!> <!> <!> <!> <!></div></div>`),ji={hash:`svelte-165xfg5`,code:`@charset "UTF-8";
|
|
3
|
+
\r\f\xA0\v`];function Pr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Nr.includes(r[o-1]))&&(s===r.length||Nr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Fr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ir(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Lr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ir)),i&&c.push(...Object.keys(i).map(Ir));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ir(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Fr(r)),i&&(n+=Fr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Q(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=Pr(n,r,a);(!w||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Rr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function zr(e,t,n,r){var i=e.__style;if(w||i!==t){var a=Lr(t,r);(!w||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Rr(e,n?.[0],r[0]),Rr(e,n?.[1],r[1],`important`)):Rr(e,n,r));return r}var Br=Symbol(`is custom element`),Vr=Symbol(`is html`),Hr=he?`link`:`LINK`;function $(e,t,n,r){var i=Wr(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Hr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Kr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ur(e,t,n){var r=V,i=U;let a=w;w&&T(!1),H(null),In(null);try{t!==`style`&&(Gr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Kr(e).includes(t):n&&typeof n==`object`)?e[t]=n:$(e,t,n==null?n:String(n))}finally{H(r),In(i),a&&T(!0)}}function Wr(e){return e.__attributes??={[Br]:e.nodeName.includes(`-`),[Vr]:e.namespaceURI===r}}var Gr=new Map;function Kr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Gr.get(t);if(n)return n;Gr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function qr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?er(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=tt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Ot:jt)(()=>(_=!1,h()));a&&K(v);var y=U;return(function(e,t){if(arguments.length>0){let n=t?K(v):i&&a?qt(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Nn&&_||y.f&16384?v.v:K(v)})}function Jr(e){return new Yr(e)}var Yr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Ht(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return K(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(K(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return P(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hr:mr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&dt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},Xr;typeof HTMLElement==`function`&&(Xr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=rn(`slot`);e!==`default`&&(n.name=e),Y(t,n)}}let t={},n=Qr(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Zr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Jr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=mn(()=>{vn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Zr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Zr(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Zr(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function Qr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function $r(e,t,n,r,i,a){let o=class extends Xr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Zr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}function ei(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`)&&!customElements?.get?.(t)&&!window?.customElements?.get?.(t))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var ti=class e{dictionary;lang=``;constructor(e){if(!e?.dictionary)throw Error(`no dictionary provided`);this.dictionary=e.dictionary,this.setLang(e?.lang)}setLang(t){t||=e.getDefaultLang(),this.lang=t}translateWord(t,n){return e.getDictionaryWord(t,this.dictionary,n||this.lang)}translateDate(t,n,r){return e.formatDate(t,n,r||this.lang)}static getDefaultLang(){let e=`en`;return navigator?.languages&&navigator.languages[0]?.split(`-`)[0]?.toLowerCase()?.length&&(e=navigator.languages[0].split(`-`)[0].toLowerCase()),e}static getDictionaryWord(t,n,r){if(!t)throw Error(`no wordKey provided`);if(!n)throw Error(`no dictionary provided`);if(r&&n[r]?.[t])return n[r][t];let i=``,a=e.getDefaultLang();if(!r||a!==r){let e=n?.[a];e?.[t]&&(i=e[t])}return i}static formatDate(t,n,r){if(!t)throw Error(`no date provided`);if(typeof t.getMonth!=`function`)throw Error(`wrong date format`);return new Intl.DateTimeFormat(r||e.getDefaultLang(),n).format(t)}},ni={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.71.37`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.5.4`}},ri={en:{Contact:`Contact`,Company:`Company`,Address:`Address`,Social:`Social`,Notes:`Notes`},it:{Contact:`Contatto`,Company:`Azienda`,Address:`Indirizzo`,Social:`Social`,Notes:`Note`}},ii=J(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-165xfg5"/>`),ai=J(`<button class="hb-contact-card-hitarea svelte-165xfg5" type="button" aria-label="View contact details"></button>`),oi=J(`<img class="avatar svelte-165xfg5"/>`),si=J(`<div class="avatar-placeholder svelte-165xfg5"><i class="bi bi-person-fill svelte-165xfg5"></i></div>`),ci=J(`<p class="card-subtitle has-text-grey mb-0 svelte-165xfg5"> </p>`),li=J(`<button class="button is-small is-outlined svelte-165xfg5" type="button"><i></i></button>`),ui=J(`<div class="dropdown svelte-165xfg5"><hb-dropdown-simple><button slot="dropdownbutton" class="button is-small is-outlined svelte-165xfg5" type="button" aria-label="Contact actions menu"><i class="bi bi-three-dots-vertical svelte-165xfg5"></i></button></hb-dropdown-simple></div>`,2),di=J(`<div class="contact-item svelte-165xfg5"><strong class="svelte-165xfg5"> </strong></div>`),fi=J(`<div class="contact-item has-text-grey svelte-165xfg5"> </div>`),pi=J(`<div class="contact-item has-text-grey svelte-165xfg5"> </div>`),mi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-building mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!> <!> <!></div></div>`),hi=J(`<span class="has-text-grey ml-2 svelte-165xfg5"> </span>`),gi=J(`<div class="contact-item svelte-165xfg5"><i></i> <a class="svelte-165xfg5"> </a> <!></div>`),_i=J(`<span class="has-text-grey ml-2 svelte-165xfg5"> </span>`),vi=J(`<div class="contact-item svelte-165xfg5"><i></i> <a class="svelte-165xfg5"> </a> <!></div>`),yi=J(`<div class="contact-item svelte-165xfg5"><i class="bi bi-globe mr-2 svelte-165xfg5"></i> <a target="_blank" rel="noopener noreferrer" class="svelte-165xfg5"> </a></div>`),bi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-telephone mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!> <!> <!></div></div>`),xi=J(`<strong class="svelte-165xfg5"> </strong>`),Si=J(`<div class="svelte-165xfg5"> </div>`),Ci=J(`<div class="svelte-165xfg5"> </div>`),wi=J(`<div class="svelte-165xfg5"> </div>`),Ti=J(`<div class="contact-item address-item is-clickable svelte-165xfg5" role="button" tabindex="0"><i></i> <!> <!> <!> <!></div>`),Ei=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-geo-alt mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!></div></div>`),Di=J(`<a target="_blank" rel="noopener noreferrer" class="social-link mr-2 svelte-165xfg5"><i></i></a>`),Oi=J(`<div class="contact-section mb-3 svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-share mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><!></div></div>`),ki=J(`<div class="contact-section svelte-165xfg5"><button class="section-header svelte-165xfg5" type="button"><h6 class="section-title mb-0 svelte-165xfg5"><i class="bi bi-sticky mr-2 svelte-165xfg5"></i> <i></i></h6></button> <div><div class="contact-item svelte-165xfg5"> </div></div></div>`),Ai=J(`<div><!> <div class="card-header is-flex is-align-items-center svelte-165xfg5"><div class="avatar-container mr-3 svelte-165xfg5"><!></div> <div class="is-flex-grow-1 svelte-165xfg5"><h5 class="card-title mb-1 svelte-165xfg5"> </h5> <!></div> <div class="header-actions is-flex is-gap-2 svelte-165xfg5"><!> <!></div></div> <div><!> <!> <!> <!> <!></div></div>`),ji={hash:`svelte-165xfg5`,code:`@charset "UTF-8";
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bulma 1.x (Sass) for hb-contact-card — card, buttons, flex/spacing, typography.
|