@htmlbricks/hb-sidebar-desktop 0.76.1 → 0.76.3
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 +10 -2
- package/main.iife.js +18 -6
- package/main.iife.js.map +1 -1
- package/manifest.json +48 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,13 +34,17 @@ Public theming uses **`--bulma-*`** on the host document or on ancestors; see [B
|
|
|
34
34
|
|
|
35
35
|
| Variable | Role |
|
|
36
36
|
|----------|------|
|
|
37
|
-
| `--
|
|
38
|
-
| `--
|
|
37
|
+
| `--hb-layout-sidebar-background` | From **`hb-layout`** / page: sidebar shell only (highest priority). |
|
|
38
|
+
| `--hb-sidebar-background-color` | Set on **`hb-sidebar-desktop`**: between layout override and Bulma scheme surfaces. |
|
|
39
|
+
| `--bulma-scheme-main-bis` | Default sidebar host background (Bulma secondary scheme). |
|
|
40
|
+
| `--bulma-scheme-main-ter` | Tertiary fallback when **`bis`** is unset. |
|
|
39
41
|
| `--bulma-text` | Default labels and menu copy. |
|
|
40
42
|
| `--bulma-link` | Active row accent and theme/language controls. |
|
|
41
43
|
| `--bulma-block-spacing` | Brand block spacing and vertical rhythm inside the shell. |
|
|
42
44
|
| `--bulma-border` | Section separators / hairlines. |
|
|
43
45
|
|
|
46
|
+
The **`hb-navbar`** strip uses **`--hb-layout-navbar-background`**, **`--hb-navbar-background-color`**, and **`--bulma-navbar-background-color`** instead; the sidebar host does **not** read the navbar background token by default so the two surfaces can diverge.
|
|
47
|
+
|
|
44
48
|
**Icons:** pass Bootstrap Icons **suffix only** on each `INavLink` (for example `house-door`, not `bi` or `bi-`). The component loads the Bootstrap Icons font stylesheet in the shadow tree.
|
|
45
49
|
|
|
46
50
|
## Navigation model
|
|
@@ -79,6 +83,10 @@ Links **without** a **`group`** are listed first, above any grouped sections.
|
|
|
79
83
|
|
|
80
84
|
The bottom toolbar (language + theme) is shown when **`enablethemeswitch`** is **`yes`** **or** there is at least one language option.
|
|
81
85
|
|
|
86
|
+
### Toolbar density (theme + language)
|
|
87
|
+
|
|
88
|
+
Bulma’s **small** icon size uses **root `rem`**, so if your page sets a large **`html { font-size }`**, the sun/moon/auto icons can look much bigger than the button text. The sidebar scopes the toolbar with a slightly smaller **`em`** context and overrides icon/body sizes. You can tune density with **`--hb-sidebar-toolbar-button-font-size`**, **`--hb-sidebar-toolbar-button-min-height`**, **`--hb-sidebar-toolbar-icon-size`**, and **`--hb-sidebar-toolbar-lang-min-inline`** on **`hb-sidebar-desktop`** (see **`extra/docs.ts`** / catalog **`styleSetup.vars`**).
|
|
89
|
+
|
|
82
90
|
## Custom element
|
|
83
91
|
|
|
84
92
|
```html
|
package/main.iife.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function _e(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ve(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ye(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function be(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function xe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Se(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ce(){throw Error(`https://svelte.dev/e/hydration_failed`)}function we(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Te(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function De(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Oe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){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 ke(),t;return E=e}function je(){return D(L(E))}function O(e){if(w){if(L(E)!==null)throw ke(),t;E=e}}function Me(e=1){if(w){for(var t=e,n=E;t--;)n=L(n);E=n}}function Ne(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=L(n);e&&n.remove(),n=i}}function Pe(e){if(!e||e.nodeType!==8)throw ke(),t;return e.data}function Fe(e){return e===this.v}function Ie(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Le(e){return!Ie(e,this.v)}var Re=!1,ze=!1,k=null;function Be(e){k=e}function Ve(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:G,l:ze&&!t?{s:null,u:null,$:[]}:null}}function He(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 Ue(){return!ze||k!==null&&k.l===null}var We=[];function Ge(){var e=We;We=[],_(e)}function Ke(e){if(We.length===0&&!at){var t=We;queueMicrotask(()=>{t===We&&Ge()})}We.push(e)}function qe(){for(;We.length>0;)Ge()}function Je(e){var t=G;if(t===null)return U.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(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 Xe=~(b|x|y);function A(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?A(e,y):A(e,x)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),A(e,y)}var et=!1,tt=!1;function nt(e){var t=tt;try{return tt=!1,[e(),tt]}finally{tt=t}}var rt=new Set,j=null,M=null,it=null,at=!1,ot=!1,st=null,ct=null,lt=0,ut=1,dt=class e{id=ut++;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(lt++>1e3&&(rt.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=st=[],r=[],i=ct=[];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(st=null,ct=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&&rt.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&&(rt.add(o),o.#p()),rt.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):Re&&i&16777224?n.push(r):Hn(r)&&(i&16&&this.#s.add(r),qn(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)$e(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{ot=!0,j=this,this.#p()}finally{lt=0,it=null,st=null,ct=null,ot=!1,j=null,M=null,zt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),rt.delete(this)}#g(){for(let c of rt){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 rt)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,Ke(()=>{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;ot||(rt.add(j),at||Ke(()=>{j===t&&t.flush()}))}return j}apply(){if(!Re||!this.is_fork&&rt.size===1){M=null;return}M=new Map;for(let[e,[t]]of this.current)M.set(e,t);for(let n of rt)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(it=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(st!==null&&t===G&&(Re||(U===null||!(U.f&2))&&!et))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function N(e){var t=at;at=!0;try{var n;for(e&&(j!==null&&!j.is_fork&&j.flush(),n=e());;){if(qe(),j===null)return n;j.flush()}}finally{at=t}}function ft(){try{Se()}catch(e){Ye(e,it)}}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)&&Hn(r)&&(pt=new Set,qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&wn(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||qn(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()&&(Z(n),vn(()=>(t===0&&(r=Xn(()=>e(()=>Gt(n)))),t+=1,()=>{Ke(()=>{--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=G;t.b=this,t.f|=128,n(e)},this.parent=G.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=yn(()=>{if(w){let e=this.#t;je();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=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),Ke(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Tn(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=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();kn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>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){$e(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=G,n=U,r=k;K(this.#i),W(this.#i),Be(this.#i.ctx);try{return dt.ensure(),e()}catch(e){return Je(e),null}finally{K(t),W(n),Be(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&&Tn(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,Ke(()=>{this.#d=!1,this.#m&&Ut(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),w&&(D(this.#t),Me(),D(Ne()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Oe(),this.#s!==null&&Tn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=G;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};Ke(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function wt(e,t,n,r){let i=Ue()?Ot:jt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=G,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||Ye(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=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Et()}):d()}function Tt(){var e=G,t=U,n=k,r=j;return function(i=!0){K(e),W(t),Be(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Et(e=!0){K(null),W(null),Be(null),e&&j?.deactivate()}function Dt(){var e=G,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=U!==null&&U.f&2?U:null;return G!==null&&(G.f|=ie),{ctx:k,deps:null,effects:null,equals:Fe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??G,ac:null}}function kt(e,t,r){let i=G;i===null&&_e();var a=void 0,o=Vt(n),s=!U,c=new Map;return _n(()=>{var t=G,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 Re||Fn(t),t}function jt(e){let t=Ot(e);return t.equals=Le,t}function Mt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(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=G;K(Nt(e));try{e.f&=~se,Mt(e),t=Wn(e)}finally{K(n)}return t}function Ft(e){var t=e.v,n=Pt(e);if(!e.equals(n)&&(e.wv=Vn(),(!j?.is_fork||e.deps===null)&&(e.v=n,j?.capture(e,t,!0),e.deps===null))){A(e,y);return}Mn||(M===null?Ze(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,Kn(t,0),xn(t))}function Lt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&qn(t)}var Rt=new Set,zt=new Map,Bt=!1;function Vt(e,t){return{f:0,v:e,reactions:null,equals:Fe,rv:0,wv:0}}function P(e,t){let n=Vt(e,t);return Fn(n),n}function Ht(e,t=!1,n=!0){let r=Vt(e);return t||(r.equals=Le),ze&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function F(e,t,n=!1){return U!==null&&(!Pn||U.f&131072)&&Ue()&&U.f&4325394&&(q===null||!o.call(q,e))&&De(),Ut(e,n?qt(t):t,ct)}function Ut(e,t,n=null){if(!e.equals(t)){var r=e.v;Mn?zt.set(e,t):zt.set(e,r),e.v=t;var i=dt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Pt(t),M===null&&Ze(t)}e.wv=Vn(),Kt(e,b,n),Ue()&&G!==null&&G.f&1024&&!(G.f&96)&&(X===null?In([e]):X.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),Hn(e)&&qn(e);Rt.clear()}function Gt(e){F(e,e.v+1)}function Kt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ue(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===G)){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=P(0),s=null,c=zn,l=e=>{if(zn===c)return e();var t=U,n=zn;W(null),Bn(c);var r=e();return W(t),Bn(n),r};return a&&r.set(`length`,P(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Te();var i=r.get(t);return i===void 0?l(()=>{var e=P(n.value,s);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>P(n,s));r.set(t,e),Gt(o)}}else F(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(()=>P(qt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Z(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=Z(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||G!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>P(a?qt(e[t]):n,s)),r.set(t,i)),Z(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(()=>P(n,s)),r.set(p+``,m)):F(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>P(void 0,s)),F(d,qt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>qt(i));F(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&&F(_,v+1)}Gt(o)}return!0},ownKeys(e){Z(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(){Ee()}})}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 I(e=``){return document.createTextNode(e)}function $t(e){return Xt.call(e)}function L(e){return Zt.call(e)}function R(e,t){if(!w)return $t(e);var n=$t(E);if(n===null)n=E.appendChild(I());else if(t&&n.nodeType!==3){var r=I();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===``?L(n):n}if(t){if(E?.nodeType!==3){var r=I();return E?.before(r),D(r),r}an(E)}return E}function z(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=L(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=I();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!Re||pt!==null?!1:(G.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=U,n=G;W(null),K(null);try{return e()}finally{W(t),K(n)}}function sn(e){G===null&&(U===null&&xe(e),be()),Mn&&ye(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=G;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)st===null?dt.ensure().schedule(r):st.push(r);else if(t!==null){try{qn(r)}catch(e){throw H(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),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function un(){return U!==null&&!Pn}function dn(e){let t=ln(8,null);return A(t,y),t.teardown=e,t}function fn(e){sn(`$effect`);var t=G.f;if(!U&&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){dt.ensure();let t=ln(64|ie,e);return()=>{H(t)}}function hn(e){dt.ensure();let t=ln(64|ie,e);return(e={})=>new Promise(n=>{e.outro?Tn(t,()=>{H(t),n(void 0)}):(H(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 B(e,t=[],n=[],r=[]){wt(r,t,n,t=>{ln(8,()=>e(...t.map(Z)))})}function yn(e,t=0){return ln(16|t,e)}function V(e){return ln(32|ie,e)}function bn(e){var t=e.teardown;if(t!==null){let e=Mn,n=U;Nn(!0),W(null);try{t.call(null)}finally{Nn(e),W(n)}}}function xn(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:H(n,t),n=r}}function Sn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Cn(e.nodes.start,e.nodes.end),n=!0),A(e,te),xn(e,t&&!n),Kn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();bn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Cn(e,t){for(;e!==null;){var n=e===t?null:L(e);e.remove(),e=n}}function wn(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 Tn(e,t,n=!0){var r=[];En(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function En(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;En(i,t,o?n:!1),i=a}}}function Dn(e){On(e,!0)}function On(e,t){if(e.f&8192){e.f^=S,e.f&1024||(A(e,b),dt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;On(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 kn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var An=null,jn=!1,Mn=!1;function Nn(e){Mn=e}var U=null,Pn=!1;function W(e){U=e}var G=null;function K(e){G=e}var q=null;function Fn(e){U!==null&&(!Re||U.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function In(e){X=e}var Ln=1,Rn=0,zn=Rn;function Bn(e){zn=e}function Vn(){return++Ln}function Hn(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(Hn(a)&&Ft(a),a.wv>e.wv)return!0}t&512&&M===null&&A(e,y)}return!1}function Un(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Re&&q!==null&&o.call(q,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Un(a,t,!1):t===a&&(n?A(a,b):a.f&1024&&A(a,x),_t(a))}}function Wn(e){var t=J,n=Y,r=X,i=U,a=q,o=k,s=Pn,c=zn,l=e.f;J=null,Y=0,X=null,U=l&96?null:e,q=null,Be(e.ctx),Pn=!1,zn=++Rn,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(J!==null){var m;if(p||Kn(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(un()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Kn(e,Y),f.length=Y);if(Ue()&&X!==null&&!Pn&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)Un(X[m],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=ue),d}catch(e){return Je(e)}finally{e.f^=ce,J=t,Y=n,X=r,U=i,q=a,Be(o),Pn=s,zn=c}}function Gn(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&&(J===null||!o.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),Ze(s),It(s),Kn(s,0)}}function Kn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Gn(e,n[r])}function qn(e){var t=e.f;if(!(t&16384)){A(e,y);var n=G,r=jn;G=e,jn=!0;try{t&16777232?Sn(e):xn(e),bn(e);var i=Wn(e);e.teardown=typeof i==`function`?i:null,e.wv=Ln}finally{jn=r,G=n}}}function Z(e){var t=(e.f&2)!=0;if(An?.add(e),U!==null&&!Pn&&!(G!==null&&G.f&16384)&&(q===null||!o.call(q,e))){var n=U.deps;if(U.f&2097152)e.rv<Rn&&(e.rv=Rn,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(Mn&&zt.has(e))return zt.get(e);if(t){var i=e;if(Mn){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Yn(i))&&(a=Pt(i)),zt.set(i,a),a}var s=(i.f&512)==0&&!Pn&&U!==null&&(jn||(U.f&512)!=0),c=(i.f&C)===0;Hn(i)&&(s&&(i.f|=512),Ft(i)),s&&!c&&(Lt(i),Jn(i))}if(M?.has(e))return M.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(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),Jn(t))}function Yn(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&&Yn(t))return!0;return!1}function Xn(e){var t=Pn;try{return Pn=!0,e()}finally{Pn=t}}var Zn=Symbol(`events`),Qn=new Set,$n=new Set;function er(e,t,n,r={}){function i(e){if(r.capture||ar.call(t,e),!e.cancelBubble)return on(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ke(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function tr(e,t,n,r,i){var a={capture:r,passive:i},o=er(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dn(()=>{t.removeEventListener(e,o,a)})}function nr(e,t,n){(t[Zn]??={})[e]=n}function rr(e){for(var t=0;t<e.length;t++)Qn.add(e[t]);for(var n of $n)n(e)}var ir=null;function ar(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ir=e;var o=0,s=ir===e&&e[Zn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Zn]=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=U,f=G;W(null),K(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Zn]?.[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[Zn]=t,delete e.currentTarget,W(d),K(f)}}}var or=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function sr(e){return or?.createHTML(e)??e}function cr(e){var t=rn(`template`);return t.innerHTML=sr(e.replaceAll(`<!>`,`<!---->`)),t.content}function lr(e,t){var n=G;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return lr(E,null),E;i===void 0&&(i=cr(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;lr(o,s)}else lr(t,t);return t}}function ur(e=``){if(!w){var t=I(e+``);return lr(t,t),t}var n=E;return n.nodeType===3?an(n):(n.before(n=I()),D(n)),lr(n,n),n}function dr(){if(w)return lr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=I();return e.append(t,n),lr(t,n),e}function $(e,t){if(w){var n=G;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),je();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 mr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function hr(e,t){return vr(e,t)}function gr(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=L(o);if(!o)throw t;T(!0),D(o);let i=vr(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&&Ce(),Qt(),tn(r),T(!1),hr(e,n)}finally{T(i),D(a)}}var _r=new Map;function vr(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(I());St(c,{pending:()=>{}},n=>{Ve({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),w&&lr(n,null),u=e(n,i)||{},w&&(G.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw ke(),t;He()},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=_r.get(e);a===void 0&&(a=new Map,_r.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ar,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Qn)),$n.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=_r.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,ar),t.delete(e),t.size===0&&_r.delete(r)):t.set(e,i)}$n.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return yr.set(u,d),u}var yr=new WeakMap;function br(e,t){let n=yr.get(e);return n?(yr.delete(e),n(t)):Promise.resolve()}var xr=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)Dn(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&&(H(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();kn(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Tn(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)||(H(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=I();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>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 Sr(e){k===null&&ge(`onMount`),ze&&k.l!==null?Cr(k).m.push(e):fn(()=>{let t=Xn(e);if(typeof t==`function`)return t})}function Cr(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}function wr(e,t,n=!1){var r;w&&(r=E,je());var i=new xr(e),a=n?ne:0;function o(e,t){if(w){var n=Pe(r);if(e!==parseInt(n.substring(1))){var a=Ne();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 Tr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Tn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Er(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()}Er(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Er(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,kn(a,document.createDocumentFragment())):H(t[i],n)}}var Dr;function Or(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(I())}w&&je();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,Ar(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=oe,Mr(d,null,c)):Dn(d):Tn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:yn(()=>{p=Z(f);var e=p.length;let i=!1;w&&Pe(c)===`[!`!=(e===0)&&(c=Ne(),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=jr(l,h?c:Dr??=I(),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=V(()=>o(c)):(d=V(()=>o(Dr??=I())),d.f|=oe)),e>s.size&&ve(``,``,``),w&&e>0&&D(Ne()),!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),Z(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,w&&(c=E)}function kr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Ar(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=kr(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&&(Dn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=oe,_===l)Mr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Nr(e,d,_),Nr(e,_,y),Mr(_,y,n),d=_,p=[],m=[],l=kr(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)Mr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Nr(e,S.prev,ee.next),Nr(e,d,S),Nr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Mr(_,l,n),Nr(e,_.prev,_.next),Nr(e,_,d===null?e.effect.first:d.next),Nr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=kr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=kr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Er(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=kr(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()}Tr(e,C,ne)}}a&&Ke(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function jr(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:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Mr(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=L(r);if(a.before(r),r===i)return;r=o}}function Nr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Pr(e,t,n,r,i){w&&je();var a=t.$$slots?.[n],o=!1;a===!0&&(a=t[n===`default`?`children`:n],o=!0),a===void 0?i!==null&&i(e):a(e,o?()=>r:r)}function Fr(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=L(a);if(a===null)T(!1);else{var o=L(a);a.remove(),D(o)}}w||(i=document.head.appendChild(I()));try{yn(()=>t(i),re|ie)}finally{r&&(T(!0),D(n))}}function Ir(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 Lr=[...`
|
|
3
|
-
\r\f\xA0\v`];function Rr(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||Lr.includes(r[o-1]))&&(s===r.length||Lr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function zr(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=Rr(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}var Br=Symbol(`is custom element`),Vr=Symbol(`is html`),Hr=he?`link`:`LINK`;function Ur(e,t,n,r){var i=Gr(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`&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wr(e,t,n){var r=U,i=G;let a=w;w&&T(!1),W(null),K(null);try{t!==`style`&&(Kr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Ur(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&T(!0)}}function Gr(e){return e.__attributes??={[Br]:e.nodeName.includes(`-`),[Vr]:e.namespaceURI===r}}var Kr=new Map;function qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kr.get(t);if(n)return n;Kr.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 Jr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Xn(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]=nt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&we(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&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?qt(e):e;return F(v,n),_=!0,s!==void 0&&(s=n),e}return Mn&&_||y.f&16384?v.v:Z(v)})}function Yr(e){return new Xr(e)}var Xr=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 Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?gr:hr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&N(),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=()=>{br(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()}},Zr;typeof HTMLElement==`function`&&(Zr=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),$(t,n)}}let t={},n=$r(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]=Qr(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=Yr({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=Qr(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]=Qr(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 Qr(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 $r(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ei(e,t,n,r,i,a){let o=class extends Zr{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=Qr(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}var ti={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.76.1`,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`}};function ni(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 ri=Q(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-127py2f"/>`),ii=Q(`<img class="hb-sidebar-brand-logo svelte-127py2f" alt=""/>`),ai=Q(`<div class="hb-sidebar-brand svelte-127py2f"><!> </div>`),oi=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),si=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),ci=Q(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 svelte-127py2f"/> <!>`,1),li=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),ui=Q(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 mt-0 svelte-127py2f"/> <!>`,1),di=Q(`<button type="button" role="option"> </button>`),fi=Q(`<div class="dropdown-menu hb-sidebar-lang__menu svelte-127py2f" role="listbox" id="hb-sidebar-lang-menu"><div class="dropdown-content svelte-127py2f"></div></div>`),pi=Q(`<div class="hb-sidebar-lang hb-sidebar-theme-switch__lang svelte-127py2f"><div><div class="dropdown-trigger svelte-127py2f"><div class="buttons are-small hb-sidebar-lang__button-wrap svelte-127py2f"><button type="button" class="button hb-sidebar-lang__toggle hb-sidebar-toolbar-btn svelte-127py2f" aria-haspopup="listbox"><span class="hb-sidebar-lang__code svelte-127py2f"> </span> <span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-chevron-down svelte-127py2f"></i></span></button></div></div> <!></div></div>`),mi=Q(`<div class="hb-sidebar-theme-switch__control svelte-127py2f" role="group" aria-label="Color theme"><div class="buttons has-addons are-small is-fullwidth hb-sidebar-theme-icons svelte-127py2f"><button type="button" title="Light"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-sun-fill svelte-127py2f"></i></span></button> <button type="button" title="Dark"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-moon-fill svelte-127py2f"></i></span></button> <button type="button" title="Auto"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-circle-half svelte-127py2f"></i></span></button></div></div>`),hi=Q(`<div class="hb-sidebar-theme-switch mt-4 svelte-127py2f" role="toolbar" aria-label="Language and appearance"><!> <!></div>`),gi=Q(`<div class="hb-sidebar-footer svelte-127py2f"><hr class="svelte-127py2f"/> <!></div>`),_i=Q(`<div id="webcomponent" class="hb-sidebar-shell svelte-127py2f"><!> <div class="p-3 is-relative hb-sidebar-inner svelte-127py2f"><h4 class="title is-6 mb-2 svelte-127py2f"><!> <!></h4> <ul class="hb-sidebar-nav-list mt-4 svelte-127py2f"><!> <!> <!></ul> <!> <!></div></div>`),vi={hash:`svelte-127py2f`,code:`@charset "UTF-8";
|
|
3
|
+
\r\f\xA0\v`];function Rr(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||Lr.includes(r[o-1]))&&(s===r.length||Lr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function zr(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=Rr(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}var Br=Symbol(`is custom element`),Vr=Symbol(`is html`),Hr=he?`link`:`LINK`;function Ur(e,t,n,r){var i=Gr(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`&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Wr(e,t,n){var r=U,i=G;let a=w;w&&T(!1),W(null),K(null);try{t!==`style`&&(Kr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?qr(e).includes(t):n&&typeof n==`object`)?e[t]=n:Ur(e,t,n==null?n:String(n))}finally{W(r),K(i),a&&T(!0)}}function Gr(e){return e.__attributes??={[Br]:e.nodeName.includes(`-`),[Vr]:e.namespaceURI===r}}var Kr=new Map;function qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Kr.get(t);if(n)return n;Kr.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 Jr(e,t,n,r){var i=!ze||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?Xn(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]=nt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&we(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&&Z(v);var y=G;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?qt(e):e;return F(v,n),_=!0,s!==void 0&&(s=n),e}return Mn&&_||y.f&16384?v.v:Z(v)})}function Yr(e){return new Xr(e)}var Xr=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 Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return F(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?gr:hr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Re&&(!e?.props?.$$host||e.sync===!1)&&N(),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=()=>{br(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()}},Zr;typeof HTMLElement==`function`&&(Zr=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),$(t,n)}}let t={},n=$r(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]=Qr(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=Yr({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=Qr(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]=Qr(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 Qr(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 $r(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ei(e,t,n,r,i,a){let o=class extends Zr{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=Qr(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}var ti={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.76.3`,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`}};function ni(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 ri=Q(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-127py2f"/>`),ii=Q(`<img class="hb-sidebar-brand-logo svelte-127py2f" alt=""/>`),ai=Q(`<div class="hb-sidebar-brand svelte-127py2f"><!> </div>`),oi=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),si=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),ci=Q(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 svelte-127py2f"/> <!>`,1),li=Q(`<hb-sidenav-link></hb-sidenav-link>`,2),ui=Q(`<p class="menu-label mt-4 mb-1 svelte-127py2f"> </p> <hr class="my-1 mt-0 svelte-127py2f"/> <!>`,1),di=Q(`<button type="button" role="option"> </button>`),fi=Q(`<div class="dropdown-menu hb-sidebar-lang__menu svelte-127py2f" role="listbox" id="hb-sidebar-lang-menu"><div class="dropdown-content svelte-127py2f"></div></div>`),pi=Q(`<div class="hb-sidebar-lang hb-sidebar-theme-switch__lang svelte-127py2f"><div><div class="dropdown-trigger svelte-127py2f"><div class="buttons are-small hb-sidebar-lang__button-wrap svelte-127py2f"><button type="button" class="button hb-sidebar-lang__toggle hb-sidebar-toolbar-btn svelte-127py2f" aria-haspopup="listbox"><span class="hb-sidebar-lang__code svelte-127py2f"> </span> <span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-chevron-down svelte-127py2f"></i></span></button></div></div> <!></div></div>`),mi=Q(`<div class="hb-sidebar-theme-switch__control svelte-127py2f" role="group" aria-label="Color theme"><div class="buttons has-addons are-small is-fullwidth hb-sidebar-theme-icons svelte-127py2f"><button type="button" title="Light"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-sun-fill svelte-127py2f"></i></span></button> <button type="button" title="Dark"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-moon-fill svelte-127py2f"></i></span></button> <button type="button" title="Auto"><span class="icon is-small svelte-127py2f" aria-hidden="true"><i class="bi bi-circle-half svelte-127py2f"></i></span></button></div></div>`),hi=Q(`<div class="hb-sidebar-theme-switch mt-4 svelte-127py2f" role="toolbar" aria-label="Language and appearance"><!> <!></div>`),gi=Q(`<div class="hb-sidebar-footer svelte-127py2f"><hr class="svelte-127py2f"/> <!></div>`),_i=Q(`<div id="webcomponent" class="hb-sidebar-shell svelte-127py2f"><!> <div class="p-3 is-relative hb-sidebar-inner svelte-127py2f"><h4 class="title is-6 mb-2 svelte-127py2f"><!> <!></h4> <ul class="hb-sidebar-nav-list mt-4 svelte-127py2f"><!> <!> <!></ul> <!> <!></div></div>`),vi={hash:`svelte-127py2f`,code:`@charset "UTF-8";
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.min.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bulma 1.x (Sass) for hb-sidebar-desktop — flex layout, spacing, title, menu.
|
|
7
|
-
* Host surface
|
|
7
|
+
* Host surface uses \`--hb-layout-sidebar-background\` / \`--hb-sidebar-background-color\` then Bulma \`--bulma-scheme-main-bis\` (see \`webcomponent.scss\`).
|
|
8
8
|
*/:host {--bulma-hb-def-control-radius: var(--bulma-radius, var(--bulma-hb-def-radius));--bulma-hb-def-control-radius-small: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));--bulma-hb-def-control-border-width: 1px;--bulma-hb-def-control-height: 2.5em;--bulma-hb-def-control-line-height: 1.5;--bulma-hb-def-control-padding-vertical: calc(0.5em - 1px);--bulma-hb-def-control-padding-horizontal: calc(0.75em - 1px);--bulma-hb-def-control-size: var(--bulma-size-normal, var(--bulma-hb-def-size-normal));--bulma-hb-def-control-focus-shadow-l: 50%;}
|
|
9
9
|
/*!
|
|
10
10
|
* Bulma 1.x (Sass) for hb-sidebar-desktop — flex layout, spacing, title, menu.
|
|
11
|
-
* Host surface
|
|
11
|
+
* Host surface uses \`--hb-layout-sidebar-background\` / \`--hb-sidebar-background-color\` then Bulma \`--bulma-scheme-main-bis\` (see \`webcomponent.scss\`).
|
|
12
12
|
*/.buttons.svelte-127py2f:not(:last-child), .title.svelte-127py2f:not(:last-child) {margin-bottom:var(--bulma-block-spacing, var(--bulma-hb-def-block-spacing));}.button.svelte-127py2f {align-items:center;appearance:none;border-color:transparent;border-style:solid;border-width:var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));border-radius:var(--bulma-control-radius, var(--bulma-hb-def-control-radius));box-shadow:none;display:inline-flex;font-size:var(--bulma-control-size, var(--bulma-hb-def-control-size));height:var(--bulma-control-height, var(--bulma-hb-def-control-height));justify-content:flex-start;line-height:var(--bulma-control-line-height, var(--bulma-hb-def-control-line-height));padding-bottom:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));padding-left:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-right:var(--bulma-control-padding-horizontal, var(--bulma-hb-def-control-padding-horizontal));padding-top:var(--bulma-control-padding-vertical, var(--bulma-hb-def-control-padding-vertical));position:relative;transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:background-color, border-color, box-shadow, color;vertical-align:top;}.button.svelte-127py2f:focus, .button.svelte-127py2f:focus-visible, .button.svelte-127py2f:focus-within, .button.svelte-127py2f:active {outline:none;}.button.svelte-127py2f {-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}.mt-0.svelte-127py2f {margin-top:0 !important;}.mb-1.svelte-127py2f {margin-bottom:0.25rem !important;}.my-1.svelte-127py2f {margin-top:0.25rem !important;margin-bottom:0.25rem !important;}.mb-2.svelte-127py2f {margin-bottom:0.5rem !important;}.mt-4.svelte-127py2f {margin-top:1rem !important;}.p-3.svelte-127py2f {padding:0.75rem !important;}.title.svelte-127py2f {--bulma-hb-def-title-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-title-family: false;--bulma-hb-def-title-size: var(--bulma-size-3, var(--bulma-hb-def-size-3));--bulma-hb-def-title-weight: var(--bulma-weight-extrabold, var(--bulma-hb-def-weight-extrabold));--bulma-hb-def-title-line-height: 1.125;--bulma-hb-def-title-strong-color: inherit;--bulma-hb-def-title-strong-weight: inherit;--bulma-hb-def-title-sub-size: 0.75em;--bulma-hb-def-title-sup-size: 0.75em;--bulma-hb-def-subtitle-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-subtitle-family: false;--bulma-hb-def-subtitle-size: var(--bulma-size-5, var(--bulma-hb-def-size-5));--bulma-hb-def-subtitle-weight: var(--bulma-weight-normal, var(--bulma-hb-def-weight-normal));--bulma-hb-def-subtitle-line-height: 1.25;--bulma-hb-def-subtitle-strong-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-subtitle-strong-weight: var(--bulma-weight-semibold, var(--bulma-hb-def-weight-semibold));}.title.svelte-127py2f {word-break:break-word;}.title.svelte-127py2f {color:var(--bulma-title-color, var(--bulma-hb-def-title-color));font-size:var(--bulma-title-size, var(--bulma-hb-def-title-size));font-weight:var(--bulma-title-weight, var(--bulma-hb-def-title-weight));line-height:var(--bulma-title-line-height, var(--bulma-hb-def-title-line-height));}.title.is-6.svelte-127py2f {font-size:1rem;}.icon.svelte-127py2f {--bulma-hb-def-icon-dimensions: 1.5rem;--bulma-hb-def-icon-dimensions-small: 1rem;--bulma-hb-def-icon-dimensions-medium: 2rem;--bulma-hb-def-icon-dimensions-large: 3rem;--bulma-hb-def-icon-text-spacing: 0.25em;}.icon.svelte-127py2f {align-items:center;display:inline-flex;flex-shrink:0;justify-content:center;height:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));transition-duration:var(--bulma-duration, var(--bulma-hb-def-duration));transition-property:color;width:var(--bulma-icon-dimensions, var(--bulma-hb-def-icon-dimensions));}.icon.is-small.svelte-127py2f {height:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));width:var(--bulma-icon-dimensions-small, var(--bulma-hb-def-icon-dimensions-small));}.button.svelte-127py2f {--bulma-hb-def-button-family: false;--bulma-hb-def-button-weight: var(--bulma-weight-medium, var(--bulma-hb-def-weight-medium));--bulma-hb-def-button-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-border-style: solid;--bulma-hb-def-button-border-width: var(--bulma-control-border-width, var(--bulma-hb-def-control-border-width));--bulma-hb-def-button-padding-vertical: 0.5em;--bulma-hb-def-button-padding-horizontal: 1em;--bulma-hb-def-button-focus-border-color: var(--bulma-link-focus-border, var(--bulma-hb-def-link-focus-border));--bulma-hb-def-button-focus-box-shadow-size: 0 0 0 0.125em;--bulma-hb-def-button-focus-box-shadow-color: hsla(var(--bulma-link-h, var(--bulma-hb-def-link-h)), var(--bulma-link-s, var(--bulma-hb-def-link-s)), var(--bulma-link-on-scheme-l, var(--bulma-hb-def-link-on-scheme-l)), 0.25);--bulma-hb-def-button-active-color: var(--bulma-link-active, var(--bulma-hb-def-link-active));--bulma-hb-def-button-active-border-color: var(--bulma-link-active-border, var(--bulma-hb-def-link-active-border));--bulma-hb-def-button-text-color: var(--bulma-text, var(--bulma-hb-def-text));--bulma-hb-def-button-text-decoration: underline;--bulma-hb-def-button-text-hover-background-color: var(--bulma-background, var(--bulma-hb-def-background));--bulma-hb-def-button-text-hover-color: var(--bulma-text-strong, var(--bulma-hb-def-text-strong));--bulma-hb-def-button-ghost-background: none;--bulma-hb-def-button-ghost-border-color: transparent;--bulma-hb-def-button-ghost-color: var(--bulma-link-text, var(--bulma-hb-def-link-text));--bulma-hb-def-button-ghost-decoration: none;--bulma-hb-def-button-ghost-hover-color: var(--bulma-link, var(--bulma-hb-def-link));--bulma-hb-def-button-ghost-hover-decoration: underline;--bulma-hb-def-button-disabled-background-color: var(--bulma-scheme-main, var(--bulma-hb-def-scheme-main));--bulma-hb-def-button-disabled-border-color: var(--bulma-border, var(--bulma-hb-def-border));--bulma-hb-def-button-disabled-shadow: none;--bulma-hb-def-button-disabled-opacity: 0.5;--bulma-hb-def-button-static-color: var(--bulma-text-weak, var(--bulma-hb-def-text-weak));--bulma-hb-def-button-static-background-color: var(--bulma-scheme-main-ter, var(--bulma-hb-def-scheme-main-ter));--bulma-hb-def-button-static-border-color: var(--bulma-border, var(--bulma-hb-def-border));}.button.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-scheme-h, var(--bulma-hb-def-scheme-h));--bulma-hb-def-button-s: var(--bulma-scheme-s, var(--bulma-hb-def-scheme-s));--bulma-hb-def-button-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l: var(--bulma-scheme-main-l, var(--bulma-hb-def-scheme-main-l));--bulma-hb-def-button-background-l-delta: 0%;--bulma-hb-def-button-hover-background-l-delta: var(--bulma-hover-background-l-delta, var(--bulma-hb-def-hover-background-l-delta));--bulma-hb-def-button-active-background-l-delta: var(--bulma-active-background-l-delta, var(--bulma-hb-def-active-background-l-delta));--bulma-hb-def-button-color-l: var(--bulma-text-strong-l, var(--bulma-hb-def-text-strong-l));--bulma-hb-def-button-border-l: var(--bulma-border-l, var(--bulma-hb-def-border-l));--bulma-hb-def-button-border-l-delta: 0%;--bulma-hb-def-button-hover-border-l-delta: var(--bulma-hover-border-l-delta, var(--bulma-hb-def-hover-border-l-delta));--bulma-hb-def-button-active-border-l-delta: var(--bulma-active-border-l-delta, var(--bulma-hb-def-active-border-l-delta));--bulma-hb-def-button-focus-border-l-delta: var(--bulma-focus-border-l-delta, var(--bulma-hb-def-focus-border-l-delta));--bulma-hb-def-button-outer-shadow-h: 0;--bulma-hb-def-button-outer-shadow-s: 0%;--bulma-hb-def-button-outer-shadow-l: 20%;--bulma-hb-def-button-outer-shadow-a: 0.05;--bulma-hb-def-loading-color: hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));background-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-background-l, var(--bulma-hb-def-button-background-l)) + var(--bulma-button-background-l-delta, var(--bulma-hb-def-button-background-l-delta))));border-color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), calc(var(--bulma-button-border-l, var(--bulma-hb-def-button-border-l)) + var(--bulma-button-border-l-delta, var(--bulma-hb-def-button-border-l-delta))));border-style:var(--bulma-button-border-style, var(--bulma-hb-def-button-border-style));border-width:var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width));box-shadow:0px 0.0625em 0.125em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a))), 0px 0.125em 0.25em hsla(var(--bulma-button-outer-shadow-h, var(--bulma-hb-def-button-outer-shadow-h)), var(--bulma-button-outer-shadow-s, var(--bulma-hb-def-button-outer-shadow-s)), var(--bulma-button-outer-shadow-l, var(--bulma-hb-def-button-outer-shadow-l)), var(--bulma-button-outer-shadow-a, var(--bulma-hb-def-button-outer-shadow-a)));color:hsl(var(--bulma-button-h, var(--bulma-hb-def-button-h)), var(--bulma-button-s, var(--bulma-hb-def-button-s)), var(--bulma-button-color-l, var(--bulma-hb-def-button-color-l)));cursor:pointer;font-weight:var(--bulma-button-weight, var(--bulma-hb-def-button-weight));height:auto;justify-content:center;padding-bottom:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-left:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-right:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));padding-top:calc(var(--bulma-button-padding-vertical, var(--bulma-hb-def-button-padding-vertical)) - var(--bulma-button-border-width, var(--bulma-hb-def-button-border-width)));text-align:center;white-space:nowrap;}.button.svelte-127py2f .icon:where(.svelte-127py2f), .button.svelte-127py2f .icon.is-small:where(.svelte-127py2f) {height:1.5em;width:1.5em;}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:not(:last-child) {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);}.button.svelte-127py2f .icon:where(.svelte-127py2f):last-child:not(:first-child) {margin-inline-start:calc(var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)) * 0.25);margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f .icon:where(.svelte-127py2f):first-child:last-child {margin-inline-start:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));margin-inline-end:calc(-0.5 * var(--bulma-button-padding-horizontal, var(--bulma-hb-def-button-padding-horizontal)));}.button.svelte-127py2f:hover {--bulma-hb-def-button-background-l-delta: var(--bulma-button-hover-background-l-delta, var(--bulma-hb-def-button-hover-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-hover-border-l-delta, var(--bulma-hb-def-button-hover-border-l-delta));}.button.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;border-color:hsl(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)));box-shadow:var(--bulma-focus-shadow-size, var(--bulma-hb-def-focus-shadow-size)) hsla(var(--bulma-focus-h, var(--bulma-hb-def-focus-h)), var(--bulma-focus-s, var(--bulma-hb-def-focus-s)), var(--bulma-focus-l, var(--bulma-hb-def-focus-l)), var(--bulma-focus-shadow-alpha, var(--bulma-hb-def-focus-shadow-alpha)));}.button.svelte-127py2f:active {--bulma-hb-def-button-background-l-delta: var(--bulma-button-active-background-l-delta, var(--bulma-hb-def-button-active-background-l-delta));--bulma-hb-def-button-border-l-delta: var(--bulma-button-active-border-l-delta, var(--bulma-hb-def-button-active-border-l-delta));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f {--bulma-hb-def-button-h: var(--bulma-link-h, var(--bulma-hb-def-link-h));--bulma-hb-def-button-s: var(--bulma-link-s, var(--bulma-hb-def-link-s));--bulma-hb-def-button-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-background-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-l: var(--bulma-link-l, var(--bulma-hb-def-link-l));--bulma-hb-def-button-border-width: 0px;--bulma-hb-def-button-color-l: var(--bulma-link-invert-l, var(--bulma-hb-def-link-invert-l));--bulma-hb-def-button-outer-shadow-a: 0;}.button.is-link.svelte-127py2f:focus-visible {--bulma-hb-def-button-border-width: 1px;}.buttons.svelte-127py2f {align-items:center;display:flex;flex-wrap:wrap;gap:0.75rem;justify-content:flex-start;}.buttons.are-small.svelte-127py2f {--bulma-hb-def-control-size: var(--bulma-size-small, var(--bulma-hb-def-size-small));--bulma-hb-def-control-radius: var(--bulma-radius-small, var(--bulma-hb-def-radius-small));}.buttons.has-addons.svelte-127py2f {gap:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:first-child) {border-end-start-radius:0;border-start-start-radius:0;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):not(:last-child) {border-end-end-radius:0;border-start-end-radius:0;margin-inline-end:-1px;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):hover {z-index:2;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f) {z-index:3;}.buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):focus:hover, .buttons.has-addons.svelte-127py2f .button:where(.svelte-127py2f):active:hover, .buttons.has-addons.svelte-127py2f .button.is-selected:where(.svelte-127py2f):hover {z-index:4;}.buttons.has-addons.svelte-127py2f .button.is-expanded:where(.svelte-127py2f) {flex-grow:1;flex-shrink:1;}
|
|
13
13
|
@media screen and (max-width: 768px) {
|
|
14
14
|
}
|
|
@@ -40,10 +40,22 @@ button.dropdown-item.is-active.svelte-127py2f {--bulma-hb-def-dropdown-item-h: v
|
|
|
40
40
|
* Load after Bulma theme in the component style block so \`--bulma-*\` tokens apply.
|
|
41
41
|
*/:host {box-sizing:border-box;max-width:100%;font-family:var(--bulma-family-primary, "Inter", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif);}.svelte-127py2f,
|
|
42
42
|
.svelte-127py2f::before,
|
|
43
|
-
.svelte-127py2f::after {box-sizing:inherit;}:host {display:flex;flex-direction:column;min-height:0;width:var(--hb-sidebar-host-width, 14rem);height:100%;font-size:0.9375rem
|
|
43
|
+
.svelte-127py2f::after {box-sizing:inherit;}:host {display:flex;flex-direction:column;min-height:0;width:var(--hb-sidebar-host-width, 14rem);height:100%;font-size:0.9375rem;
|
|
44
|
+
/* Sidebar chrome; menu labels still use Bulma defaults. */--bulma-size-small: 0.7rem;
|
|
45
|
+
/*
|
|
46
|
+
* Theme + language toolbar: keep controls compact when the page uses a large
|
|
47
|
+
* \`html\` font-size (Bulma icon small = 1rem root; buttons use \`size-small\` in rem).
|
|
48
|
+
*/--hb-sidebar-toolbar-button-font-size: max(0.625rem, 0.72em);--hb-sidebar-toolbar-button-min-height: max(1.45rem, 1.75em);--hb-sidebar-toolbar-icon-size: max(0.6875rem, 0.85em);--hb-sidebar-toolbar-lang-min-inline: max(2.25rem, 2.75em);color:var(--bulma-text);
|
|
49
|
+
/* Distinct from navbar: layout/page → per-host → secondary scheme surfaces (Bulma). */background-color:var(--hb-layout-sidebar-background, var(--hb-sidebar-background-color, var(--bulma-scheme-main-bis, var(--bulma-scheme-main-ter, #f5f5f5))));}.hb-sidebar-shell.svelte-127py2f {position:relative;flex:1 1 0%;min-height:0;display:flex;flex-direction:column;height:100%;color:inherit;background-color:inherit;}.hb-sidebar-inner.svelte-127py2f {flex:1 1 0%;min-height:0;height:100%;max-height:100%;display:flex;flex-direction:column;overflow:hidden;background-color:inherit;color:inherit;padding-block-start:0 !important;padding-inline-end:0 !important;}.hb-sidebar-inner.svelte-127py2f > h4:where(.svelte-127py2f) {flex-shrink:0;min-width:0;
|
|
44
50
|
/* Align with horizontal inset of \`.hb-sidebar-inner\` (\`p-3\`); scrollbar flush on inline-end. */padding-inline-end:0.75rem;}.hb-sidebar-brand.svelte-127py2f {margin-block-start:var(--bulma-block-spacing, 0.75rem);}.hb-sidebar-brand-logo.svelte-127py2f {height:2.125rem;margin-inline-end:0.5rem;vertical-align:middle;}.hb-sidebar-nav-list.svelte-127py2f {list-style:none;margin:0;padding:0 0.75rem 0 0;width:100%;max-width:none;align-self:stretch;flex:1 1 0%;min-height:0;min-width:0;overflow-x:hidden;overflow-y:auto;}
|
|
45
51
|
@supports (-moz-appearance: none) {.hb-sidebar-nav-list.svelte-127py2f {scrollbar-width:thin;scrollbar-color:var(--bulma-border) transparent;}
|
|
46
|
-
}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar {width:6px;-webkit-appearance:none;appearance:none;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-track {background:transparent;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb {background-color:var(--bulma-border);border-radius:999px;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb:hover {background-color:var(--bulma-border-hover, var(--bulma-border));}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button {-webkit-appearance:none;appearance:none;display:block;height:0;width:0;min-height:0;min-width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:increment {display:block;height:0;width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-corner {background:transparent;}.hb-sidebar-theme-switch.svelte-127py2f {flex-shrink:0;padding-inline-end:0.75rem;display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;column-gap:0.375rem;width:100%;box-sizing:border-box;min-width:0;position:relative;z-index:0;
|
|
47
|
-
|
|
52
|
+
}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar {width:6px;-webkit-appearance:none;appearance:none;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-track {background:transparent;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb {background-color:var(--bulma-border);border-radius:999px;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-thumb:hover {background-color:var(--bulma-border-hover, var(--bulma-border));}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button {-webkit-appearance:none;appearance:none;display:block;height:0;width:0;min-height:0;min-width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:start:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:end:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:vertical:increment, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:decrement, .hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-button:horizontal:increment {display:block;height:0;width:0;}.hb-sidebar-nav-list.svelte-127py2f::-webkit-scrollbar-corner {background:transparent;}.hb-sidebar-theme-switch.svelte-127py2f {flex-shrink:0;padding-inline-end:0.75rem;display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;column-gap:0.375rem;width:100%;box-sizing:border-box;min-width:0;position:relative;z-index:0;
|
|
53
|
+
/* Local \`em\` context so toolbar scales with \`:host\` instead of only root \`rem\`. */font-size:0.875em;
|
|
54
|
+
/* Tighter Bulma \`are-small\` text size for these \`.buttons\` groups only (not the lang dropdown list). */}.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-lang__button-wrap.buttons:where(.svelte-127py2f),
|
|
55
|
+
.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-theme-icons.buttons:where(.svelte-127py2f) {--bulma-size-small: var(--hb-sidebar-toolbar-button-font-size);}.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-lang__button-wrap:where(.svelte-127py2f) .button:where(.svelte-127py2f),
|
|
56
|
+
.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-theme-icons:where(.svelte-127py2f) .button:where(.svelte-127py2f) {font-size:var(--hb-sidebar-toolbar-button-font-size);min-height:var(--hb-sidebar-toolbar-button-min-height);padding-block:max(0.1rem, 0.18em);padding-inline:max(0.28rem, 0.35em);}.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-theme-icons:where(.svelte-127py2f) .button:where(.svelte-127py2f) {padding-inline:max(0.2rem, 0.28em);}.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-lang__button-wrap:where(.svelte-127py2f) .icon.is-small:where(.svelte-127py2f),
|
|
57
|
+
.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-theme-icons:where(.svelte-127py2f) .icon.is-small:where(.svelte-127py2f) {block-size:var(--hb-sidebar-toolbar-icon-size);inline-size:var(--hb-sidebar-toolbar-icon-size);}.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-lang__button-wrap:where(.svelte-127py2f) .icon.is-small:where(.svelte-127py2f) .bi:where(.svelte-127py2f),
|
|
58
|
+
.hb-sidebar-theme-switch.svelte-127py2f .hb-sidebar-theme-icons:where(.svelte-127py2f) .icon.is-small:where(.svelte-127py2f) .bi:where(.svelte-127py2f) {font-size:var(--hb-sidebar-toolbar-icon-size);line-height:1;}.hb-sidebar-theme-switch__lang.svelte-127py2f {flex:0 0 auto;display:inline-flex;align-items:center;min-width:0;max-width:none;}.hb-sidebar-lang.svelte-127py2f {position:relative;display:inline-block;width:auto;max-width:10rem;}.hb-sidebar-lang.svelte-127py2f .dropdown.is-active:where(.svelte-127py2f) {z-index:30;}.hb-sidebar-lang.svelte-127py2f .dropdown:where(.svelte-127py2f),
|
|
59
|
+
.hb-sidebar-lang.svelte-127py2f .dropdown-trigger:where(.svelte-127py2f) {display:inline-flex;width:auto;max-width:100%;}.hb-sidebar-lang.svelte-127py2f .hb-sidebar-lang__button-wrap.buttons:where(.svelte-127py2f) {margin-block-end:0;gap:0;flex-wrap:nowrap;}.hb-sidebar-lang.svelte-127py2f .dropdown-menu:where(.svelte-127py2f) {min-width:max(100%, var(--bulma-dropdown-menu-min-width, 12rem));max-width:min(18rem, 100vw);}.hb-sidebar-lang.svelte-127py2f .dropdown-content:where(.svelte-127py2f) {max-height:min(12rem, 55vh);overflow-y:auto;padding-block:0.25rem;padding-inline:0.25rem;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f) {appearance:none;margin:0;border:0;box-sizing:border-box;cursor:pointer;font:inherit;font-weight:500;text-align:start;white-space:normal;word-break:break-word;line-height:1.3;padding-block:0.375rem;padding-inline:0.5rem 0.625rem;border-radius:var(--bulma-radius-small);width:100%;transition:background-color 0.12s ease, color 0.12s ease;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):focus-visible {outline:2px solid var(--bulma-link);outline-offset:1px;}.hb-sidebar-lang.svelte-127py2f button.dropdown-item:where(.svelte-127py2f):not(:last-child) {margin-bottom:0.125rem;}.hb-sidebar-lang__toggle.svelte-127py2f {width:auto;max-width:100%;display:inline-flex;align-items:center;justify-content:center;gap:0.28em;min-inline-size:var(--hb-sidebar-toolbar-lang-min-inline);padding-inline:max(0.3rem, 0.35em);}.dropdown.is-active.svelte-127py2f .hb-sidebar-lang__toggle.hb-sidebar-toolbar-btn:where(.svelte-127py2f):not(.is-link) {border-color:var(--bulma-link);color:var(--bulma-link-text, var(--bulma-link));background:var(--bulma-scheme-main);}.hb-sidebar-lang__code.svelte-127py2f {font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:0.02em;text-transform:uppercase;}.hb-sidebar-theme-switch__control.svelte-127py2f {flex:1 1 auto;display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:0;}.hb-sidebar-theme-icons.svelte-127py2f {width:100%;max-width:100%;}.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .icon:where(.svelte-127py2f),
|
|
48
60
|
.hb-sidebar-theme-icons.svelte-127py2f .hb-sidebar-theme-icon-btn:where(.svelte-127py2f) .bi:where(.svelte-127py2f) {color:inherit;}.hb-sidebar-toolbar-btn.svelte-127py2f:not(.is-link) {border-color:var(--bulma-border);background:var(--bulma-scheme-main);color:var(--bulma-text);}.hb-sidebar-toolbar-btn.svelte-127py2f:not(.is-link):hover, .hb-sidebar-toolbar-btn.svelte-127py2f:not(.is-link):focus-visible {border-color:var(--bulma-border-hover, var(--bulma-border));color:var(--bulma-link-text, var(--bulma-link));}.hb-sidebar-footer.svelte-127py2f {flex-shrink:0;padding-inline-end:0.75rem;}.hb-sidebar-footer.svelte-127py2f hr:where(.svelte-127py2f) {border:0;border-top:1px solid var(--bulma-border);margin-block:0.5rem 0.75rem;margin-inline:0;height:0;background-color:transparent;}.svelte-127py2f::slotted(i) {min-width:1rem;display:inline-block;}`};function yi(e,t){Ve(t,!0),Ir(e,vi);let n=Jr(t,`id`,7,``),r=Jr(t,`companylogouri`,7,`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`),i=Jr(t,`navlinks`,23,()=>[]),a=Jr(t,`navpage`,7,`home`),o=Jr(t,`groups`,23,()=>[]),s=Jr(t,`companytitle`,7,``),c=Jr(t,`enablefooter`,7,`yes`),l=Jr(t,`enablethemeswitch`,7,`yes`),u=Jr(t,`themepreference`,7,void 0),d=Jr(t,`i18nlang`,7,``),f=Jr(t,`i18nlanguages`,7,void 0),p=P(`auto`),m=P(!1),h=P(``),g=P(`__UNSET__`),_=At(()=>{let e=f();if(e==null||e===``)return[];if(typeof e==`string`)try{e=JSON.parse(e)}catch{return[]}if(!Array.isArray(e))return[];let t=[];for(let n of e)if(typeof n==`string`&&n)t.push({code:n,label:n});else if(n&&typeof n==`object`&&`code`in n){let e=n;e.code&&t.push({code:e.code,label:e.label?.trim()?e.label:e.code})}return t});function v(e){let t=e.trim();typeof document>`u`||!t||(document.documentElement.lang=t)}function y(e){let n=e.trim();if(!n)return;let r=t.$$host;try{r.getAttribute(`i18nlang`)!==n&&r.setAttribute(`i18nlang`,n)}catch{}}fn(()=>{Z(_);let e=(d()??``).trim(),t=e.length>0?e:`__empty__`,n=Z(_)[0]?.code??``;t===Z(g)?!Z(h)&&n&&(F(h,n,!0),v(n),y(n)):(F(g,t,!0),e?(F(h,e,!0),v(e)):n&&(F(h,n,!0),v(n),y(n)))}),fn(()=>{if(!Z(m)||typeof window>`u`)return;function e(){F(m,!1),window.removeEventListener(`click`,e)}let t=window.setTimeout(()=>{window.addEventListener(`click`,e)},0);return()=>{window.clearTimeout(t),window.removeEventListener(`click`,e)}});function b(){for(let e of[document.documentElement,document.body]){let t=e.getAttribute(`data-theme`);if(t===`dark`||t===`light`)return t;if(e.classList.contains(`theme-dark`))return`dark`;if(e.classList.contains(`theme-light`))return`light`}return`auto`}function x(e){if(!(typeof document>`u`))for(let t of[document.documentElement,document.body])t&&(t.classList.remove(`theme-light`,`theme-dark`),e===`auto`?t.removeAttribute(`data-theme`):(t.setAttribute(`data-theme`,e),t.classList.add(e===`light`?`theme-light`:`theme-dark`)))}function S(e){F(p,e,!0),x(e),ee(`themeChange`,{mode:e})}fn(()=>{let e=u();(e===`light`||e===`dark`||e===`auto`)&&(F(p,e,!0),x(e))}),Sr(()=>{let e=u();e!==`light`&&e!==`dark`&&e!==`auto`&&F(p,b(),!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{let e=Z(h).trim();e&&ee(`languageChange`,{code:e})})})}),fn(()=>{(!c()||c()===`no`||c()===`false`)&&c(`no`),(!l()||l()===`no`||l()===`false`)&&l(`no`);try{typeof o()==`string`&&o(JSON.parse(o())),typeof i()==`string`&&i(JSON.parse(i()))}catch{}});function ee(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0}))}function C(e){console.log(e),ee(`pageChange`,{page:e})}function te(e){F(m,!1);let t=e.trim();t&&(F(h,t,!0),v(t),y(t),ee(`languageChange`,{code:t}))}function ne(e){e.stopPropagation(),F(m,!Z(m))}ni({repoName:`@htmlbricks/hb-sidenav-link`,version:ti.version});var re={get id(){return n()},set id(e=``){n(e),N()},get companylogouri(){return r()},set companylogouri(e=`https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg`){r(e),N()},get navlinks(){return i()},set navlinks(e=[]){i(e),N()},get navpage(){return a()},set navpage(e=`home`){a(e),N()},get groups(){return o()},set groups(e=[]){o(e),N()},get companytitle(){return s()},set companytitle(e=``){s(e),N()},get enablefooter(){return c()},set enablefooter(e=`yes`){c(e),N()},get enablethemeswitch(){return l()},set enablethemeswitch(e=`yes`){l(e),N()},get themepreference(){return u()},set themepreference(e=void 0){u(e),N()},get i18nlang(){return d()},set i18nlang(e=``){d(e),N()},get i18nlanguages(){return f()},set i18nlanguages(e=void 0){f(e),N()}},ie=_i();Fr(`127py2f`,e=>{$(e,ri())});var ae=R(ie);Pr(ae,t,`test`,{},null);var oe=z(ae,2),se=R(oe),ce=R(se);Pr(ce,t,`header`,{part:`header`},null);var le=z(ce,2),ue=e=>{var t=ai(),n=R(t),i=e=>{var t=ii();B(()=>Ur(t,`src`,r())),$(e,t)};wr(n,e=>{r()&&e(i)});var a=z(n);O(t),B(()=>mr(a,` ${s()??``}`)),$(e,t)};wr(le,e=>{s()&&e(ue)}),O(se);var de=z(se,2),fe=R(de),pe=e=>{var t=dr();Or(en(t),17,()=>i().filter(e=>!e.group),e=>e.key,(e,t)=>{var n=oi();B(()=>Wr(n,`navlink`,JSON.stringify(Z(t)))),B(()=>Wr(n,`navpage`,a())),zr(n,1,`svelte-127py2f`),tr(`pageChange`,n,e=>C(e.detail.page)),$(e,n)}),$(e,t)},me=At(()=>i()?.length&&typeof i()==`object`&&i().filter(e=>!e.group)?.length);wr(fe,e=>{Z(me)&&e(pe)});var he=z(fe,2),ge=e=>{var t=dr();Or(en(t),17,o,e=>e.key,(e,t)=>{var n=ci(),r=en(n),o=R(r,!0);O(r),Or(z(r,4),17,()=>i().filter(e=>e.group&&e.group===Z(t).key),e=>e.key,(e,t)=>{var n=si();B(()=>Wr(n,`navlink`,JSON.stringify(Z(t)))),B(()=>Wr(n,`navpage`,a())),zr(n,1,`svelte-127py2f`),tr(`pageChange`,n,e=>C(e.detail.page)),$(e,n)}),B(()=>mr(o,Z(t).label)),$(e,n)}),$(e,t)};wr(he,e=>{o()?.length&&i().length&&typeof i()==`object`&&e(ge)});var _e=z(he,2),ve=e=>{var t=dr();Or(en(t),16,()=>i().filter(e=>e.group&&(!o()?.length||!o().map(e=>e.key).includes(e.group))).map(e=>e.group).filter((e,t,n)=>n.indexOf(e)===t),e=>e,(e,t)=>{var n=ui(),r=en(n),o=R(r,!0);O(r),Or(z(r,4),17,()=>i().filter(e=>e.group&&e.group===t),e=>e.key,(e,t)=>{var n=li();B(()=>Wr(n,`navlink`,JSON.stringify(Z(t)))),B(()=>Wr(n,`navpage`,a())),zr(n,1,`svelte-127py2f`),tr(`pageChange`,n,e=>C(e.detail.page)),$(e,n)}),B(()=>mr(o,t)),$(e,n)}),$(e,t)};wr(_e,e=>{typeof i()==`object`&&i()?.length&&e(ve)}),O(de);var ye=z(de,2),be=e=>{var t=hi(),n=R(t),r=e=>{var t=pi(),n=R(t);let r;var i=R(n),a=R(i),o=R(a),s=R(o),c=R(s,!0);O(s),Me(2),O(o),O(a),O(i);var l=z(i,2),u=e=>{var t=fi(),n=R(t);Or(n,21,()=>Z(_),e=>e.code,(e,t)=>{var n=di();let r;var i=R(n,!0);O(n),B((e,a)=>{r=zr(n,1,`dropdown-item svelte-127py2f`,null,r,e),Ur(n,`aria-selected`,a),mr(i,Z(t).label)},[()=>({"is-active":Z(t).code===Z(h).trim()}),()=>Z(t).code===Z(h).trim()]),nr(`click`,n,e=>{e.stopPropagation(),te(Z(t).code)}),$(e,n)}),O(n),O(t),$(e,t)};wr(l,e=>{Z(m)&&e(u)}),O(n),O(t),B(()=>{r=zr(n,1,`dropdown svelte-127py2f`,null,r,{"is-active":Z(m),"is-up":!0}),Ur(o,`aria-expanded`,Z(m)),Ur(o,`aria-controls`,Z(m)?`hb-sidebar-lang-menu`:void 0),Ur(o,`aria-label`,`Language: ${Z(h)??``}`),mr(c,Z(h))}),nr(`click`,o,ne),$(e,t)};wr(n,e=>{Z(_).length>0&&e(r)});var i=z(n,2),a=e=>{var t=mi(),n=R(t),r=R(n);let i;var a=z(r,2);let o;var s=z(a,2);let c;O(n),O(t),B(()=>{i=zr(r,1,`button is-expanded hb-sidebar-theme-icon-btn hb-sidebar-toolbar-btn svelte-127py2f`,null,i,{"is-selected":Z(p)===`light`,"is-link":Z(p)===`light`}),Ur(r,`aria-pressed`,Z(p)===`light`),Ur(r,`aria-label`,Z(p)===`light`?`Light theme (selected)`:`Light theme`),o=zr(a,1,`button is-expanded hb-sidebar-theme-icon-btn hb-sidebar-toolbar-btn svelte-127py2f`,null,o,{"is-selected":Z(p)===`dark`,"is-link":Z(p)===`dark`}),Ur(a,`aria-pressed`,Z(p)===`dark`),Ur(a,`aria-label`,Z(p)===`dark`?`Dark theme (selected)`:`Dark theme`),c=zr(s,1,`button is-expanded hb-sidebar-theme-icon-btn hb-sidebar-toolbar-btn svelte-127py2f`,null,c,{"is-selected":Z(p)===`auto`,"is-link":Z(p)===`auto`}),Ur(s,`aria-pressed`,Z(p)===`auto`),Ur(s,`aria-label`,Z(p)===`auto`?`System theme (selected)`:`System theme`)}),nr(`click`,r,()=>S(`light`)),nr(`click`,a,()=>S(`dark`)),nr(`click`,s,()=>S(`auto`)),$(e,t)};wr(i,e=>{l()===`yes`&&e(a)}),O(t),$(e,t)};wr(ye,e=>{(l()===`yes`||Z(_).length>0)&&e(be)});var xe=z(ye,2),Se=e=>{var n=gi();Pr(z(R(n),2),t,`footer`,{},e=>{$(e,ur(`footer`))}),O(n),$(e,n)};return wr(xe,e=>{c()===`yes`&&e(Se)}),O(oe),O(ie),$(e,ie),He(re)}rr([`click`]),customElements.define(`hb-sidebar-desktop`,ei(yi,{id:{},companylogouri:{},navlinks:{},navpage:{},groups:{},companytitle:{},enablefooter:{},enablethemeswitch:{},themepreference:{},i18nlang:{},i18nlanguages:{}},[`test`,`header`,`footer`],[],{mode:`open`})),e.Component=yi})(this[`sidebar-desktop`]=this[`sidebar-desktop`]||{});
|
|
49
61
|
//# sourceMappingURL=main.iife.js.map
|