@custardui/custardui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -0
- package/dist/custardui.js +16552 -0
- package/dist/custardui.js.map +1 -0
- package/dist/custardui.min.js +7 -0
- package/dist/custardui.min.js.map +1 -0
- package/dist/types/src/browser.d.ts +7 -0
- package/dist/types/src/browser.d.ts.map +1 -0
- package/dist/types/src/lib/app/ui-manager.d.ts +55 -0
- package/dist/types/src/lib/app/ui-manager.d.ts.map +1 -0
- package/dist/types/src/lib/features/adaptation/adaptation-manager.d.ts +54 -0
- package/dist/types/src/lib/features/adaptation/adaptation-manager.d.ts.map +1 -0
- package/dist/types/src/lib/features/adaptation/stores/adaptation-store.svelte.d.ts +11 -0
- package/dist/types/src/lib/features/adaptation/stores/adaptation-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/adaptation/types.d.ts +13 -0
- package/dist/types/src/lib/features/adaptation/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/focus/focus-logic.d.ts +31 -0
- package/dist/types/src/lib/features/focus/focus-logic.d.ts.map +1 -0
- package/dist/types/src/lib/features/focus/services/focus-service.svelte.d.ts +37 -0
- package/dist/types/src/lib/features/focus/services/focus-service.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/focus/stores/focus-store.svelte.d.ts +14 -0
- package/dist/types/src/lib/features/focus/stores/focus-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/highlight/highlight-logic.d.ts +29 -0
- package/dist/types/src/lib/features/highlight/highlight-logic.d.ts.map +1 -0
- package/dist/types/src/lib/features/highlight/services/highlight-service.svelte.d.ts +20 -0
- package/dist/types/src/lib/features/highlight/services/highlight-service.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/highlight/services/highlight-types.d.ts +10 -0
- package/dist/types/src/lib/features/highlight/services/highlight-types.d.ts.map +1 -0
- package/dist/types/src/lib/features/notifications/stores/toast-store.svelte.d.ts +15 -0
- package/dist/types/src/lib/features/notifications/stores/toast-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/placeholder/placeholder-binder.d.ts +64 -0
- package/dist/types/src/lib/features/placeholder/placeholder-binder.d.ts.map +1 -0
- package/dist/types/src/lib/features/placeholder/placeholder-manager.d.ts +38 -0
- package/dist/types/src/lib/features/placeholder/placeholder-manager.d.ts.map +1 -0
- package/dist/types/src/lib/features/placeholder/stores/placeholder-registry-store.svelte.d.ts +17 -0
- package/dist/types/src/lib/features/placeholder/stores/placeholder-registry-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/placeholder/types.d.ts +18 -0
- package/dist/types/src/lib/features/placeholder/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/render/assets.d.ts +12 -0
- package/dist/types/src/lib/features/render/assets.d.ts.map +1 -0
- package/dist/types/src/lib/features/render/render.d.ts +3 -0
- package/dist/types/src/lib/features/render/render.d.ts.map +1 -0
- package/dist/types/src/lib/features/render/types.d.ts +19 -0
- package/dist/types/src/lib/features/render/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/settings/intro-manager.svelte.d.ts +30 -0
- package/dist/types/src/lib/features/settings/intro-manager.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/settings/types.d.ts +61 -0
- package/dist/types/src/lib/features/settings/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/share/constants.d.ts +4 -0
- package/dist/types/src/lib/features/share/constants.d.ts.map +1 -0
- package/dist/types/src/lib/features/share/share-logic.d.ts +36 -0
- package/dist/types/src/lib/features/share/share-logic.d.ts.map +1 -0
- package/dist/types/src/lib/features/share/stores/share-store.svelte.d.ts +24 -0
- package/dist/types/src/lib/features/share/stores/share-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/share/types.d.ts +8 -0
- package/dist/types/src/lib/features/share/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/tabs/types.d.ts +31 -0
- package/dist/types/src/lib/features/tabs/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/toggles/types.d.ts +16 -0
- package/dist/types/src/lib/features/toggles/types.d.ts.map +1 -0
- package/dist/types/src/lib/features/url/url-action-handler.d.ts +22 -0
- package/dist/types/src/lib/features/url/url-action-handler.d.ts.map +1 -0
- package/dist/types/src/lib/features/url/url-action-router.svelte.d.ts +26 -0
- package/dist/types/src/lib/features/url/url-action-router.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/features/url/url-state-manager.d.ts +67 -0
- package/dist/types/src/lib/features/url/url-state-manager.d.ts.map +1 -0
- package/dist/types/src/lib/registry.d.ts +8 -0
- package/dist/types/src/lib/registry.d.ts.map +1 -0
- package/dist/types/src/lib/runtime.svelte.d.ts +73 -0
- package/dist/types/src/lib/runtime.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/stores/active-state-store.svelte.d.ts +144 -0
- package/dist/types/src/lib/stores/active-state-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/stores/derived-store.svelte.d.ts +16 -0
- package/dist/types/src/lib/stores/derived-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/stores/element-store.svelte.d.ts +49 -0
- package/dist/types/src/lib/stores/element-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/stores/ui-store.svelte.d.ts +29 -0
- package/dist/types/src/lib/stores/ui-store.svelte.d.ts.map +1 -0
- package/dist/types/src/lib/types/config.d.ts +38 -0
- package/dist/types/src/lib/types/config.d.ts.map +1 -0
- package/dist/types/src/lib/types/index.d.ts +8 -0
- package/dist/types/src/lib/types/index.d.ts.map +1 -0
- package/dist/types/src/lib/types/state.d.ts +16 -0
- package/dist/types/src/lib/types/state.d.ts.map +1 -0
- package/dist/types/src/lib/utils/clipboard-utils.d.ts +7 -0
- package/dist/types/src/lib/utils/clipboard-utils.d.ts.map +1 -0
- package/dist/types/src/lib/utils/dom-element-locator.d.ts +30 -0
- package/dist/types/src/lib/utils/dom-element-locator.d.ts.map +1 -0
- package/dist/types/src/lib/utils/init-utils.d.ts +18 -0
- package/dist/types/src/lib/utils/init-utils.d.ts.map +1 -0
- package/dist/types/src/lib/utils/persistence.d.ts +34 -0
- package/dist/types/src/lib/utils/persistence.d.ts.map +1 -0
- package/dist/types/src/lib/utils/scroll-utils.d.ts +27 -0
- package/dist/types/src/lib/utils/scroll-utils.d.ts.map +1 -0
- package/dist/types/src/lib/utils/url-utils.d.ts +8 -0
- package/dist/types/src/lib/utils/url-utils.d.ts.map +1 -0
- package/dist/types/tests/functional/fingerprint-compatibility.test.d.ts +2 -0
- package/dist/types/tests/functional/fingerprint-compatibility.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/adaptation/adaptation-manager.test.d.ts +2 -0
- package/dist/types/tests/lib/features/adaptation/adaptation-manager.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/adaptation/stores/adaptation-store.test.d.ts +2 -0
- package/dist/types/tests/lib/features/adaptation/stores/adaptation-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/focus/focus-logic.test.d.ts +2 -0
- package/dist/types/tests/lib/features/focus/focus-logic.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/focus/focus-store.test.d.ts +2 -0
- package/dist/types/tests/lib/features/focus/focus-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/highlight/highlight-logic.test.d.ts +2 -0
- package/dist/types/tests/lib/features/highlight/highlight-logic.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/notifications/stores/toast-store.test.d.ts +2 -0
- package/dist/types/tests/lib/features/notifications/stores/toast-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/placeholder/placeholder-binder.test.d.ts +2 -0
- package/dist/types/tests/lib/features/placeholder/placeholder-binder.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/placeholder/placeholder-manager.test.d.ts +2 -0
- package/dist/types/tests/lib/features/placeholder/placeholder-manager.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/settings/intro-manager.test.d.ts +2 -0
- package/dist/types/tests/lib/features/settings/intro-manager.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/share/share-logic.test.d.ts +2 -0
- package/dist/types/tests/lib/features/share/share-logic.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/share/share-store.test.d.ts +2 -0
- package/dist/types/tests/lib/features/share/share-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/url/url-action-handler.test.d.ts +2 -0
- package/dist/types/tests/lib/features/url/url-action-handler.test.d.ts.map +1 -0
- package/dist/types/tests/lib/features/url/url-state-manager.test.d.ts +2 -0
- package/dist/types/tests/lib/features/url/url-state-manager.test.d.ts.map +1 -0
- package/dist/types/tests/lib/services/url-action-router.test.d.ts +2 -0
- package/dist/types/tests/lib/services/url-action-router.test.d.ts.map +1 -0
- package/dist/types/tests/lib/stores/active-state-store.test.d.ts +2 -0
- package/dist/types/tests/lib/stores/active-state-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/stores/element-store.test.d.ts +2 -0
- package/dist/types/tests/lib/stores/element-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/stores/ui-store.test.d.ts +2 -0
- package/dist/types/tests/lib/stores/ui-store.test.d.ts.map +1 -0
- package/dist/types/tests/lib/utils/dom-element-locator.test.d.ts +2 -0
- package/dist/types/tests/lib/utils/dom-element-locator.test.d.ts.map +1 -0
- package/dist/types/tests/lib/utils/persistence.test.d.ts +2 -0
- package/dist/types/tests/lib/utils/persistence.test.d.ts.map +1 -0
- package/dist/types/tests/lib/utils/scroll-utils.test.d.ts +2 -0
- package/dist/types/tests/lib/utils/scroll-utils.test.d.ts.map +1 -0
- package/dist/types/tests/lib/utils/url-utils.test.d.ts +2 -0
- package/dist/types/tests/lib/utils/url-utils.test.d.ts.map +1 -0
- package/dist/types/tests/setup.d.ts +2 -0
- package/dist/types/tests/setup.d.ts.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @custardui/custardui v1.0.0
|
|
3
|
+
* (c) 2026 Chan Ger Teck
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).CustardUI={})}(this,function(e){"use strict";function t(e,t){if(!t)return e;if(e.startsWith("http://")||e.startsWith("https://"))return e;return(t.endsWith("/")?t.slice(0,-1):t)+(e.startsWith("/")?e:"/"+e)}"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");const n="[!",r={},s=Symbol();var o=!1,i=Array.isArray,a=Array.prototype.indexOf,l=Array.from,c=Object.keys,d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,p=Object.prototype,f=Array.prototype,v=Object.getPrototypeOf,g=Object.isExtensible;const b=()=>{};function m(e){return e()}function y(e){for(var t=0;t<e.length;t++)e[t]()}function w(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const x=1<<24,k=16,C=32,_=64,$=128,S=512,T=1024,E=2048,L=4096,I=8192,A=16384,P=32768,M=65536,H=1<<17,z=1<<18,R=1<<19,O=1<<25,j=32768,q=1<<21,U=1<<23,N=Symbol("$state"),V=Symbol("legacy props"),F=Symbol(""),D=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function G(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let B,W=!1;function Y(e){W=e}function Z(e){if(null===e)throw G(),r;return B=e}function K(){return Z(it(B))}function X(e){if(W){if(null!==it(B))throw G(),r;B=e}}function J(e=1){if(W){for(var t=e,n=B;t--;)n=it(n);B=n}}function Q(e=!0){for(var t=0,r=B;;){if(8===r.nodeType){var s=r.data;if("]"===s){if(0===t)return r;t-=1}else"["!==s&&s!==n||(t+=1)}var o=it(r);e&&r.remove(),r=o}}function ee(e){if(!e||8!==e.nodeType)throw G(),r;return e.data}function te(e){return e===this.v}function ne(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}let re=!1;let se=null;function oe(e){se=e}function ie(e,t=!1,n){se={p:se,i:!1,c:null,e:null,s:e,x:null,l:re&&!t?{s:null,u:null,$:[]}:null}}function ae(e){var t=se,n=t.e;if(null!==n)for(var r of(t.e=null,n))wt(r);return void 0!==e&&(t.x=e),t.i=!0,se=t.p,e??{}}function le(){return!re||null!==se&&null===se.l}let ce=[];function de(){var e=ce;ce=[],y(e)}function ue(e){if(0===ce.length&&!xe){var t=ce;queueMicrotask(()=>{t===ce&&de()})}ce.push(e)}function he(){for(;ce.length>0;)de()}function pe(e){var t=Gt;if(null===t)return Vt.f|=U,e;if(0===(t.f&P)){if(0===(t.f&$))throw e;t.b.error(e)}else fe(e,t)}function fe(e,t){for(;null!==t;){if(0!==(t.f&$))try{return void t.b.error(e)}catch(t){e=t}t=t.parent}throw e}const ve=new Set;let ge=null,be=null,me=[],ye=null,we=!1,xe=!1;class ke{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=new Set;#i=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){me=[],this.apply();var t={parent:null,effect:null,effects:[],render_effects:[]};for(const n of e)this.#a(n,t);this.is_fork||this.#l(),this.is_deferred()?(this.#c(t.effects),this.#c(t.render_effects)):(ge=null,Te(t.render_effects),Te(t.effects),this.#s?.resolve()),be=null}#a(e,t){e.f^=T;for(var n=e.first;null!==n;){var r=n.f,s=!!(96&r),o=s&&0!==(r&T)||0!==(r&I)||this.skipped_effects.has(n);if(0!==(n.f&$)&&n.b?.is_pending()&&(t={parent:t,effect:n,effects:[],render_effects:[]}),!o&&null!==n.fn){s?n.f^=T:4&r?t.effects.push(n):rn(n)&&(0!==(n.f&k)&&this.#o.add(n),cn(n));var i=n.first;if(null!==i){n=i;continue}}var a=n.parent;for(n=n.next;null===n&&null!==a;)a===t.effect&&(this.#c(t.effects),this.#c(t.render_effects),t=t.parent),n=a.next,a=a.parent}}#c(e){for(const t of e)0!==(t.f&E)?this.#o.add(t):0!==(t.f&L)&&this.#i.add(t),this.#d(t.deps),vn(t,T)}#d(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&j)&&(t.f^=j,this.#d(t.deps))}capture(e,t){this.previous.has(e)||this.previous.set(e,t),0===(e.f&U)&&(this.current.set(e,e.v),be?.set(e,e.v))}activate(){ge=this,this.apply()}deactivate(){ge===this&&(ge=null,be=null)}flush(){if(this.activate(),me.length>0){if(_e(),null!==ge&&ge!==this)return}else 0===this.#n&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#l(){if(0===this.#r){for(const e of this.#e)e();this.#e.clear()}0===this.#n&&this.#u()}#u(){if(ve.size>1){this.previous.clear();var e=be,t=!0,n={parent:null,effect:null,effects:[],render_effects:[]};for(const e of ve){if(e===this){t=!1;continue}const s=[];for(const[n,r]of this.current){if(e.current.has(n)){if(!t||r===e.current.get(n))continue;e.current.set(n,r)}s.push(n)}if(0===s.length)continue;const o=[...e.current.keys()].filter(e=>!this.current.has(e));if(o.length>0){var r=me;me=[];const t=new Set,i=new Map;for(const e of s)Ee(e,o,t,i);if(me.length>0){ge=e,e.apply();for(const t of me)e.#a(t,n);e.deactivate()}me=r}}ge=null,be=e}this.committed=!0,ve.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)this.#i.delete(e),vn(e,E),Ie(e);for(const e of this.#i)vn(e,L),Ie(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#s??=w()).promise}static ensure(){if(null===ge){const e=ge=new ke;ve.add(ge),xe||ke.enqueue(()=>{ge===e&&e.flush()})}return ge}static enqueue(e){ue(e)}apply(){}}function Ce(e){var t=xe;xe=!0;try{for(;;){if(he(),0===me.length&&(ge?.flush(),0===me.length))return void(ye=null);_e()}}finally{xe=t}}function _e(){var e=jt;we=!0;try{var t=0;for(qt(!0);me.length>0;){var n=ke.ensure();if(t++>1e3)o,$e();n.process(me),Ne.clear()}}finally{we=!1,qt(e),ye=null}}function $e(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){fe(e,ye)}}let Se=null;function Te(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&rn(r)&&(Se=new Set,cn(r),null===r.deps&&null===r.first&&null===r.nodes&&(null===r.teardown&&null===r.ac?Pt(r):r.fn=null),Se?.size>0)){Ne.clear();for(const e of Se){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Se.has(n)&&(Se.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||cn(n)}}Se.clear()}}Se=null}}function Ee(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const s of e.reactions){const e=s.f;2&e?Ee(s,t,n,r):4194320&e&&0===(e&E)&&Le(s,t,r)&&(vn(s,E),Ie(s))}}function Le(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(t.includes(r))return!0;if(2&r.f&&Le(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Ie(e){for(var t=ye=e;null!==t.parent;){var n=(t=t.parent).f;if(we&&t===Gt&&0!==(n&k)&&0===(n&z))return;if(96&n){if(0===(n&T))return;t.f^=T}}me.push(t)}class Ae{parent;#n=!1;#h;#p=W?B:null;#f;#v;#g;#b=null;#m=null;#y=null;#w=null;#x=null;#k=0;#C=0;#_=!1;#$=null;#S=function(e){let t,n=0,r=Fe(0);return()=>{bt()&&(dn(r),Ct(()=>(0===n&&(t=pn(()=>e(()=>Ye(r)))),n+=1,()=>{ue(()=>{n-=1,0===n&&(t?.(),t=void 0,Ye(r))})})))}}(()=>(this.#$=Fe(this.#k),()=>{this.#$=null}));constructor(e,t,r){this.#h=e,this.#f=t,this.#v=r,this.parent=Gt.b,this.#n=!!this.#f.pending,this.#g=$t(()=>{if(Gt.b=this,W){const e=this.#p;K();8===e.nodeType&&e.data===n?this.#T():this.#E()}else{var e=this.#L();try{this.#b=Tt(()=>r(e))}catch(e){this.error(e)}this.#C>0?this.#I():this.#n=!1}return()=>{this.#x?.remove()}},589952),W&&(this.#h=B)}#E(){try{this.#b=Tt(()=>this.#v(this.#h))}catch(e){this.error(e)}this.#n=!1}#T(){const e=this.#f.pending;e&&(this.#m=Tt(()=>e(this.#h)),ke.enqueue(()=>{var e=this.#L();this.#b=this.#A(()=>(ke.ensure(),Tt(()=>this.#v(e)))),this.#C>0?this.#I():(Mt(this.#m,()=>{this.#m=null}),this.#n=!1)}))}#L(){var e=this.#h;return this.#n&&(this.#x=st(),this.#h.before(this.#x),e=this.#x),e}is_pending(){return this.#n||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#f.pending}#A(e){var t=Gt,n=Vt,r=se;Bt(this.#g),Dt(this.#g),oe(this.#g.ctx);try{return e()}catch(e){return pe(e),null}finally{Bt(t),Dt(n),oe(r)}}#I(){const e=this.#f.pending;null!==this.#b&&(this.#w=document.createDocumentFragment(),this.#w.append(this.#x),Ot(this.#b,this.#w)),null===this.#m&&(this.#m=Tt(()=>e(this.#h)))}#P(e){this.has_pending_snippet()?(this.#C+=e,0===this.#C&&(this.#n=!1,this.#m&&Mt(this.#m,()=>{this.#m=null}),this.#w&&(this.#h.before(this.#w),this.#w=null))):this.parent&&this.parent.#P(e)}update_pending_count(e){this.#P(e),this.#k+=e,this.#$&&We(this.#$,this.#k)}get_effect_pending(){return this.#S(),dn(this.#$)}error(e){var t=this.#f.onerror;let n=this.#f.failed;if(this.#_||!t&&!n)throw e;this.#b&&(It(this.#b),this.#b=null),this.#m&&(It(this.#m),this.#m=null),this.#y&&(It(this.#y),this.#y=null),W&&(Z(this.#p),J(),Z(Q()));var r=!1,s=!1;const o=()=>{r?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,s&&function(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),ke.ensure(),this.#k=0,null!==this.#y&&Mt(this.#y,()=>{this.#y=null}),this.#n=this.has_pending_snippet(),this.#b=this.#A(()=>(this.#_=!1,Tt(()=>this.#v(this.#h)))),this.#C>0?this.#I():this.#n=!1)};var i=Vt;try{Dt(null),s=!0,t?.(e,o),s=!1}catch(e){fe(e,this.#g&&this.#g.parent)}finally{Dt(i)}n&&ue(()=>{this.#y=this.#A(()=>{ke.ensure(),this.#_=!0;try{return Tt(()=>{n(this.#h,()=>e,()=>o)})}catch(e){return fe(e,this.#g.parent),null}finally{this.#_=!1}})})}}function Pe(e,t,n,r){const o=le()?He:Re;if(0!==n.length||0!==e.length){var i,a,l,c,d=ge,u=Gt,h=(i=Gt,a=Vt,l=se,c=ge,function(e=!0){Bt(i),Dt(a),oe(l),e&&c?.activate()});e.length>0?Promise.all(e).then(()=>{h();try{return p()}finally{d?.deactivate(),Me()}}):p()}else r(t.map(o));function p(){Promise.all(n.map(e=>function(e){let t=Gt;null===t&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var n=t.b,r=void 0,o=Fe(s),i=!Vt,a=new Map;return function(e){gt(4718592,e,!0)}(()=>{var t=w();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).then(()=>{s===ge&&s.committed&&s.deactivate(),Me()})}catch(e){t.reject(e),Me()}var s=ge;if(i){var l=!n.is_pending();n.update_pending_count(1),s.increment(l),a.get(s)?.reject(D),a.delete(s),a.set(s,t)}const c=(e,t=void 0)=>{if(s.activate(),t)t!==D&&(o.f|=U,We(o,t));else{0!==(o.f&U)&&(o.f^=U),We(o,e);for(const[e,t]of a){if(a.delete(e),e===s)break;t.reject(D)}}i&&(n.update_pending_count(-1),s.decrement(l))};t.promise.then(c,e=>c(null,e||"unknown"))}),mt(()=>{for(const e of a.values())e.reject(D)}),new Promise(e=>{function t(n){function s(){n===r?e(o):t(r)}n.then(s,s)}t(r)})}(e))).then(e=>{h();try{r([...t.map(o),...e])}catch(e){0===(u.f&A)&&fe(e,u)}d?.deactivate(),Me()}).catch(e=>{fe(e,u)})}}function Me(){Bt(null),Dt(null),oe(null)}function He(e){var t=null!==Vt&&2&Vt.f?Vt:null;null!==Gt&&(Gt.f|=R);return{ctx:se,deps:null,effects:null,equals:te,f:2050,fn:e,reactions:null,rv:0,v:s,wv:0,parent:t??Gt,ac:null}}function ze(e){const t=He(e);return Yt(t),t}function Re(e){const t=He(e);return t.equals=ne,t}function Oe(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)It(t[n])}}function je(e){var t,n=Gt;Bt(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&A)?t:null;t=t.parent}return null}(e));try{e.f&=-32769,Oe(e),t=on(e)}finally{Bt(n)}return t}function qe(e){var t=je(e);(e.equals(t)||(ge?.is_fork||(e.v=t),e.wv=nn()),Ut)||(null!==be?(bt()||ge?.is_fork)&&be.set(e,t):vn(e,0===(e.f&S)?L:T))}let Ue=new Set;const Ne=new Map;let Ve=!1;function Fe(e,t){return{f:0,v:e,reactions:null,equals:te,rv:0,wv:0}}function De(e,t){const n=Fe(e);return Yt(n),n}function Ge(e,t=!1,n=!0){const r=Fe(e);return t||(r.equals=ne),re&&n&&null!==se&&null!==se.l&&(se.l.s??=[]).push(r),r}function Be(e,t,n=!1){return null!==Vt&&(!Ft||0!==(Vt.f&H))&&le()&&4325394&Vt.f&&!Wt?.includes(e)&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),We(e,n?Ke(t):t)}function We(e,t){if(!e.equals(t)){var n=e.v;Ut?Ne.set(e,t):Ne.set(e,n),e.v=t;var r=ke.ensure();r.capture(e,n),2&e.f&&(0!==(e.f&E)&&je(e),vn(e,0!==(e.f&S)?T:L)),e.wv=nn(),Ze(e,E),!le()||null===Gt||0===(Gt.f&T)||96&Gt.f||(null===Xt?function(e){Xt=e}([e]):Xt.push(e)),!r.is_fork&&Ue.size>0&&!Ve&&function(){Ve=!1;var e=jt;qt(!0);const t=Array.from(Ue);try{for(const e of t)0!==(e.f&T)&&vn(e,L),rn(e)&&cn(e)}finally{qt(e)}Ue.clear()}()}return t}function Ye(e){Be(e,e.v+1)}function Ze(e,t){var n=e.reactions;if(null!==n)for(var r=le(),s=n.length,o=0;o<s;o++){var i=n[o],a=i.f;if(r||i!==Gt){var l=0===(a&E);if(l&&vn(i,t),2&a){var c=i;be?.delete(c),0===(a&j)&&(a&S&&(i.f|=j),Ze(c,L))}else l&&(0!==(a&k)&&null!==Se&&Se.add(i),Ie(i))}}}function Ke(e){if("object"!=typeof e||null===e||N in e)return e;const t=v(e);if(t!==p&&t!==f)return e;var n=new Map,r=i(e),o=De(0),a=en,l=e=>{if(en===a)return e();var t=Vt,n=en;Dt(null),tn(a);var r=e();return Dt(t),tn(n),r};return r&&n.set("length",De(e.length)),new Proxy(e,{defineProperty(e,t,r){"value"in r&&!1!==r.configurable&&!1!==r.enumerable&&!1!==r.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var s=n.get(t);return void 0===s?s=l(()=>{var e=De(r.value);return n.set(t,e),e}):Be(s,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(void 0===r){if(t in e){const e=l(()=>De(s));n.set(t,e),Ye(o)}}else Be(r,s),Ye(o);return!0},get(t,r,o){if(r===N)return e;var i=n.get(r),a=r in t;if(void 0!==i||a&&!u(t,r)?.writable||(i=l(()=>De(Ke(a?t[r]:s))),n.set(r,i)),void 0!==i){var c=dn(i);return c===s?void 0:c}return Reflect.get(t,r,o)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&"value"in r){var o=n.get(t);o&&(r.value=dn(o))}else if(void 0===r){var i=n.get(t),a=i?.v;if(void 0!==i&&a!==s)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return r},has(e,t){if(t===N)return!0;var r=n.get(t),o=void 0!==r&&r.v!==s||Reflect.has(e,t);if((void 0!==r||null!==Gt&&(!o||u(e,t)?.writable))&&(void 0===r&&(r=l(()=>De(o?Ke(e[t]):s)),n.set(t,r)),dn(r)===s))return!1;return o},set(e,t,i,a){var c=n.get(t),d=t in e;if(r&&"length"===t)for(var h=i;h<c.v;h+=1){var p=n.get(h+"");void 0!==p?Be(p,s):h in e&&(p=l(()=>De(s)),n.set(h+"",p))}void 0===c?d&&!u(e,t)?.writable||(Be(c=l(()=>De(void 0)),Ke(i)),n.set(t,c)):(d=c.v!==s,Be(c,l(()=>Ke(i))));var f=Reflect.getOwnPropertyDescriptor(e,t);if(f?.set&&f.set.call(a,i),!d){if(r&&"string"==typeof t){var v=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=v.v&&Be(v,g+1)}Ye(o)}return!0},ownKeys(e){dn(o);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return void 0===t||t.v!==s});for(var[r,i]of n)i.v===s||r in e||t.push(r);return t},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Xe(e){try{if(null!==e&&"object"==typeof e&&N in e)return e[N]}catch{}return e}function Je(e,t){return Object.is(Xe(e),Xe(t))}var Qe,et,tt,nt;function rt(){if(void 0===Qe){Qe=window,et=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tt=u(t,"firstChild").get,nt=u(t,"nextSibling").get,g(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),g(n)&&(n.__t=void 0)}}function st(e=""){return document.createTextNode(e)}function ot(e){return tt.call(e)}function it(e){return nt.call(e)}function at(e,t){if(!W)return ot(e);var n=ot(B);if(null===n)n=B.appendChild(st());else if(t&&3!==n.nodeType){var r=st();return n?.before(r),Z(r),r}return Z(n),n}function lt(e,t=!1){if(!W){var n=ot(e);return n instanceof Comment&&""===n.data?it(n):n}if(t&&3!==B?.nodeType){var r=st();return B?.before(r),Z(r),r}return B}function ct(e,t=1,n=!1){let r=W?B:e;for(var s;t--;)s=r,r=it(r);if(!W)return r;if(n&&3!==r?.nodeType){var o=st();return null===r?s?.after(o):r.before(o),Z(o),o}return Z(r),r}function dt(e){e.textContent=""}function ut(e,t){if(t){const t=document.body;e.autofocus=!0,ue(()=>{document.activeElement===t&&e.focus()})}}let ht=!1;function pt(){ht||(ht=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function ft(e){var t=Vt,n=Gt;Dt(null),Bt(null);try{return e()}finally{Dt(t),Bt(n)}}function vt(e){null===Gt&&(null===Vt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Ut&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function gt(e,t,n){var r=Gt;null!==r&&0!==(r.f&I)&&(e|=I);var s={ctx:se,deps:null,nodes:null,f:e|E|S,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{cn(s),s.f|=P}catch(o){throw It(s),o}else null!==t&&Ie(s);var o=s;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&R)&&(o=o.first,0!==(e&k)&&0!==(e&M)&&null!==o&&(o.f|=M)),null!==o&&(o.parent=r,null!==r&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(o,r),null!==Vt&&2&Vt.f&&0===(e&_))){var i=Vt;(i.effects??=[]).push(o)}return s}function bt(){return null!==Vt&&!Ft}function mt(e){const t=gt(8,null,!1);return vn(t,T),t.teardown=e,t}function yt(e){vt();var t=Gt.f;if(!(!Vt&&0!==(t&C)&&0===(t&P)))return wt(e);var n=se;(n.e??=[]).push(e)}function wt(e){return gt(1048580,e,!1)}function xt(e){ke.ensure();const t=gt(524352,e,!0);return()=>{It(t)}}function kt(e){return gt(4,e,!1)}function Ct(e,t=0){return gt(8|t,e,!0)}function _t(e,t=[],n=[],r=[]){Pe(r,t,n,t=>{gt(8,()=>e(...t.map(dn)),!0)})}function $t(e,t=0){return gt(k|t,e,!0)}function St(e,t=0){return gt(x|t,e,!0)}function Tt(e){return gt(524320,e,!0)}function Et(e){var t=e.teardown;if(null!==t){const e=Ut,n=Vt;Nt(!0),Dt(null);try{t.call(null)}finally{Nt(e),Dt(n)}}}function Lt(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&ft(()=>{e.abort(D)});var r=n.next;0!==(n.f&_)?n.parent=null:It(n,t),n=r}}function It(e,t=!0){var n=!1;!t&&0===(e.f&z)||null===e.nodes||null===e.nodes.end||(At(e.nodes.start,e.nodes.end),n=!0),Lt(e,t&&!n),ln(e,0),vn(e,A);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();Et(e);var s=e.parent;null!==s&&null!==s.first&&Pt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function At(e,t){for(;null!==e;){var n=e===t?null:it(e);e.remove(),e=n}}function Pt(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Mt(e,t,n=!0){var r=[];Ht(e,r,!0);var s=()=>{n&&It(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||s();for(var a of r)a.out(i)}else s()}function Ht(e,t,n){if(0===(e.f&I)){e.f^=I;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var s=e.first;null!==s;){var o=s.next;Ht(s,t,!!(0!==(s.f&M)||0!==(s.f&C)&&0!==(e.f&k))&&n),s=o}}}function zt(e){Rt(e,!0)}function Rt(e,t){if(0!==(e.f&I)){e.f^=I,0===(e.f&T)&&(vn(e,E),Ie(e));for(var n=e.first;null!==n;){var r=n.next;Rt(n,!!(0!==(n.f&M)||0!==(n.f&C))&&t),n=r}var s=e.nodes&&e.nodes.t;if(null!==s)for(const e of s)(e.is_global||t)&&e.in()}}function Ot(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var s=n===r?null:it(n);t.append(n),n=s}}let jt=!1;function qt(e){jt=e}let Ut=!1;function Nt(e){Ut=e}let Vt=null,Ft=!1;function Dt(e){Vt=e}let Gt=null;function Bt(e){Gt=e}let Wt=null;function Yt(e){null!==Vt&&(null===Wt?Wt=[e]:Wt.push(e))}let Zt=null,Kt=0,Xt=null;let Jt=1,Qt=0,en=Qt;function tn(e){en=e}function nn(){return++Jt}function rn(e){var t=e.f;if(0!==(t&E))return!0;if(2&t&&(e.f&=-32769),0!==(t&L)){var n=e.deps;if(null!==n)for(var r=n.length,s=0;s<r;s++){var o=n[s];if(rn(o)&&qe(o),o.wv>e.wv)return!0}0!==(t&S)&&null===be&&vn(e,T)}return!1}function sn(e,t,n=!0){var r=e.reactions;if(null!==r&&!Wt?.includes(e))for(var s=0;s<r.length;s++){var o=r[s];2&o.f?sn(o,t,!1):t===o&&(n?vn(o,E):0!==(o.f&T)&&vn(o,L),Ie(o))}}function on(e){var t=Zt,n=Kt,r=Xt,s=Vt,o=Wt,i=se,a=Ft,l=en,c=e.f;Zt=null,Kt=0,Xt=null,Vt=96&c?null:e,Wt=null,oe(e.ctx),Ft=!1,en=++Qt,null!==e.ac&&(ft(()=>{e.ac.abort(D)}),e.ac=null);try{e.f|=q;var d=(0,e.fn)(),u=e.deps;if(null!==Zt){var h;if(ln(e,Kt),null!==u&&Kt>0)for(u.length=Kt+Zt.length,h=0;h<Zt.length;h++)u[Kt+h]=Zt[h];else e.deps=u=Zt;if(bt()&&0!==(e.f&S))for(h=Kt;h<u.length;h++)(u[h].reactions??=[]).push(e)}else null!==u&&Kt<u.length&&(ln(e,Kt),u.length=Kt);if(le()&&null!==Xt&&!Ft&&null!==u&&!(6146&e.f))for(h=0;h<Xt.length;h++)sn(Xt[h],e);return null!==s&&s!==e&&(Qt++,null!==Xt&&(null===r?r=Xt:r.push(...Xt))),0!==(e.f&U)&&(e.f^=U),d}catch(e){return pe(e)}finally{e.f^=q,Zt=t,Kt=n,Xt=r,Vt=s,Wt=o,oe(i),Ft=a,en=l}}function an(e,t){let n=t.reactions;if(null!==n){var r=a.call(n,e);if(-1!==r){var s=n.length-1;0===s?n=t.reactions=null:(n[r]=n[s],n.pop())}}null===n&&2&t.f&&(null===Zt||!Zt.includes(t))&&(vn(t,L),0!==(t.f&S)&&(t.f^=S,t.f&=-32769),Oe(t),ln(t,0))}function ln(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)an(e,n[r])}function cn(e){var t=e.f;if(0===(t&A)){vn(e,T);var n=Gt,r=jt;Gt=e,jt=!0;try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&C)&&It(t),t=n}}(e):Lt(e),Et(e);var s=on(e);e.teardown="function"==typeof s?s:null,e.wv=Jt}finally{jt=r,Gt=n}}}function dn(e){var t=!!(2&e.f);if(null!==Vt&&!Ft&&(!(null!==Gt&&0!==(Gt.f&A))&&!Wt?.includes(e))){var n=Vt.deps;if(0!==(Vt.f&q))e.rv<Qt&&(e.rv=Qt,null===Zt&&null!==n&&n[Kt]===e?Kt++:null===Zt?Zt=[e]:Zt.includes(e)||Zt.push(e));else{(Vt.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[Vt]:r.includes(Vt)||r.push(Vt)}}if(Ut){if(Ne.has(e))return Ne.get(e);if(t){var s=e,o=s.v;return(0===(s.f&T)&&null!==s.reactions||hn(s))&&(o=je(s)),Ne.set(s,o),o}}else t&&(!be?.has(e)||ge?.is_fork&&!bt())&&(rn(s=e)&&qe(s),jt&&bt()&&0===(s.f&S)&&un(s));if(be?.has(e))return be.get(e);if(0!==(e.f&U))throw e.v;return e.v}function un(e){if(null!==e.deps){e.f^=S;for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&S)&&un(t)}}function hn(e){if(e.v===s)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Ne.has(t))return!0;if(2&t.f&&hn(t))return!0}return!1}function pn(e){var t=Ft;try{return Ft=!0,e()}finally{Ft=t}}const fn=-7169;function vn(e,t){e.f=e.f&fn|t}function gn(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{gn(e[n],t)}catch(e){}const n=v(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=h(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const bn=new Set,mn=new Set;function yn(e,t,n,r={}){function s(e){if(r.capture||Cn.call(t,e),!e.cancelBubble)return ft(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?ue(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function wn(e,t,n,r,s){var o={capture:r,passive:s},i=yn(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&mt(()=>{t.removeEventListener(e,i,o)})}function xn(e){for(var t=0;t<e.length;t++)bn.add(e[t]);for(var n of mn)n(e)}let kn=null;function Cn(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;kn=e;var i=0,a=kn===e&&e.__root;if(a){var l=s.indexOf(a);if(-1!==l&&(t===document||t===window))return void(e.__root=t);var c=s.indexOf(t);if(-1===c)return;l<=c&&(i=l)}if((o=s[i]||e.target)!==t){d(e,"currentTarget",{configurable:!0,get:()=>o||n});var u=Vt,h=Gt;Dt(null),Bt(null);try{for(var p,f=[];null!==o;){var v=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+r];null==g||o.disabled&&e.target!==o||g.call(o,e)}catch(e){p?f.push(e):p=e}if(e.cancelBubble||v===t||null===v)break;o=v}if(p){for(let e of f)queueMicrotask(()=>{throw e});throw p}}finally{e.__root=t,delete e.currentTarget,Dt(u),Bt(h)}}}function _n(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","\x3c!----\x3e"),t.content}function $n(e,t){var n=Gt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Sn(e,t){var n,r=!!(1&t),s=!!(2&t),o=!e.startsWith("<!>");return()=>{if(W)return $n(B,null),B;void 0===n&&(n=_n(o?e:"<!>"+e),r||(n=ot(n)));var t=s||et?document.importNode(n,!0):n.cloneNode(!0);r?$n(ot(t),t.lastChild):$n(t,t);return t}}function Tn(e,t){return function(e,t,n="svg"){var r,s=`<${n}>${e.startsWith("<!>")?"<!>"+e:e}</${n}>`;return()=>{if(W)return $n(B,null),B;if(!r){var e=ot(_n(s));r=ot(e)}var t=r.cloneNode(!0);return $n(t,t),t}}(e,0,"svg")}function En(e=""){if(!W){var t=st(e+"");return $n(t,t),t}var n=B;return 3!==n.nodeType&&(n.before(n=st()),Z(n)),$n(n,n),n}function Ln(){if(W)return $n(B,null),B;var e=document.createDocumentFragment(),t=document.createComment(""),n=st();return e.append(t,n),$n(t,n),e}function In(e,t){if(W){var n=Gt;return 0!==(n.f&P)&&null!==n.nodes.end||(n.nodes.end=B),void K()}null!==e&&e.before(t)}function An(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const Pn=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Mn(e){return Pn.includes(e)}const Hn={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function zn(e){return e=e.toLowerCase(),Hn[e]??e}const Rn=["touchstart","touchmove"];function On(e){return Rn.includes(e)}let jn=!0;function qn(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Un(e,t){return Fn(e,t)}function Nn(e,t){rt(),t.intro=t.intro??!1;const n=t.target,s=W,o=B;try{for(var i=ot(n);i&&(8!==i.nodeType||"["!==i.data);)i=it(i);if(!i)throw r;Y(!0),Z(i);const s=Fn(e,{...t,anchor:i});return Y(!1),s}catch(s){if(s instanceof Error&&s.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw s;return s!==r&&console.warn("Failed to hydrate: ",s),!1===t.recover&&function(){throw new Error("https://svelte.dev/e/hydration_failed")}(),rt(),dt(n),Y(!1),Un(e,t)}finally{Y(s),Z(o)}}const Vn=new Map;function Fn(e,{target:t,anchor:n,props:s={},events:o,context:i,intro:a=!0}){rt();var c=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!c.has(r)){c.add(r);var s=On(r);t.addEventListener(r,Cn,{passive:s});var o=Vn.get(r);void 0===o?(document.addEventListener(r,Cn,{passive:s}),Vn.set(r,1)):Vn.set(r,o+1)}}};d(l(bn)),mn.add(d);var u=void 0,h=function(e){ke.ensure();const t=gt(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?Mt(t,()=>{It(t),n(void 0)}):(It(t),n(void 0))})}(()=>{var l=n??t.appendChild(st());return function(e,t,n){new Ae(e,t,n)}(l,{pending:()=>{}},t=>{i&&(ie({}),se.c=i);if(o&&(s.$$events=o),W&&$n(t,null),jn=a,u=e(t,s)||{},jn=!0,W&&(Gt.nodes.end=B,null===B||8!==B.nodeType||"]"!==B.data))throw G(),r;i&&ae()}),()=>{for(var e of c){t.removeEventListener(e,Cn);var r=Vn.get(e);0===--r?(document.removeEventListener(e,Cn),Vn.delete(e)):Vn.set(e,r)}mn.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Dn.set(u,h),u}let Dn=new WeakMap;function Gn(e,t){const n=Dn.get(e);return n?(Dn.delete(e),n(t)):Promise.resolve()}class Bn{anchor;#M=new Map;#H=new Map;#z=new Map;#R=new Set;#O=!0;constructor(e,t=!0){this.anchor=e,this.#O=t}#u=()=>{var e=ge;if(this.#M.has(e)){var t=this.#M.get(e),n=this.#H.get(t);if(n)zt(n),this.#R.delete(t);else{var r=this.#z.get(t);r&&(this.#H.set(t,r.effect),this.#z.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#M){if(this.#M.delete(t),t===e)break;const r=this.#z.get(n);r&&(It(r.effect),this.#z.delete(n))}for(const[e,r]of this.#H){if(e===t||this.#R.has(e))continue;const s=()=>{if(Array.from(this.#M.values()).includes(e)){var t=document.createDocumentFragment();Ot(r,t),t.append(st()),this.#z.set(e,{effect:r,fragment:t})}else It(r);this.#R.delete(e),this.#H.delete(e)};this.#O||!n?(this.#R.add(e),Mt(r,s,!1)):s()}}};#j=e=>{this.#M.delete(e);const t=Array.from(this.#M.values());for(const[e,n]of this.#z)t.includes(e)||(It(n.effect),this.#z.delete(e))};ensure(e,t){var n=ge;!t||this.#H.has(e)||this.#z.has(e)||this.#H.set(e,Tt(()=>t(this.anchor)));this.#M.set(n,e),W&&(this.anchor=B),this.#u()}}function Wn(e){var t,n;null===se&&function(){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}(),re&&null!==se.l?(t=se,n=t.l,n.u??={a:[],b:[],m:[]}).m.push(e):yt(()=>{const t=pn(e);if("function"==typeof t)return t})}function Yn(e,t,r=!1){W&&K();var s=new Bn(e);function o(t,r){if(W){if(t===(ee(e)===n)){var o=Q();return Z(o),s.anchor=o,Y(!1),s.ensure(t,r),void Y(!0)}}s.ensure(t,r)}$t(()=>{var e=!1;t((t,n=!0)=>{e=!0,o(n,t)}),e||o(!1,null)},r?M:0)}function Zn(e,t=!0){for(var n=0;n<e.length;n++)It(e[n],t)}var Kn;function Xn(e,t,r,s,o,a=null){var c=e,d=new Map;if(!!(4&t)){var u=e;c=W?Z(ot(u)):u.appendChild(st())}W&&K();var h,p=null,f=Re(()=>{var e=r();return i(e)?e:null==e?[]:l(e)}),v=!0;function g(){b.fallback=p,function(e,t,n,r,s){var o,i,a,c,d,u=!!(8&r),h=t.length,p=e.items,f=e.effect.first,v=null,g=[],b=[];if(u)for(d=0;d<h;d+=1)a=s(t[d],d),0===((c=p.get(a).e).f&O)&&(c.nodes?.a?.measure(),(i??=new Set).add(c));for(d=0;d<h;d+=1){if(a=s(t[d],d),c=p.get(a).e,null!==e.outrogroups)for(const t of e.outrogroups)t.pending.delete(c),t.done.delete(c);if(0!==(c.f&O)){if(c.f^=O,c!==f){var m=v?v.next:f;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),er(e,v,c),er(e,c,m),Qn(c,m,n),g=[],b=[],f=(v=c).next;continue}Qn(c,null,n)}if(0!==(c.f&I)&&(zt(c),u&&(c.nodes?.a?.unfix(),(i??=new Set).delete(c))),c!==f){if(void 0!==o&&o.has(c)){if(g.length<b.length){var y,w=b[0];v=w.prev;var x=g[0],k=g[g.length-1];for(y=0;y<g.length;y+=1)Qn(g[y],w,n);for(y=0;y<b.length;y+=1)o.delete(b[y]);er(e,x.prev,k.next),er(e,v,x),er(e,k,w),f=w,v=k,d-=1,g=[],b=[]}else o.delete(c),Qn(c,f,n),er(e,c.prev,c.next),er(e,c,null===v?e.effect.first:v.next),er(e,v,c),v=c;continue}for(g=[],b=[];null!==f&&f!==c;)(o??=new Set).add(f),b.push(f),f=f.next;if(null===f)continue}0===(c.f&O)&&g.push(c),v=c,f=c.next}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(Zn(l(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==f||void 0!==o){var C=[];if(void 0!==o)for(c of o)0===(c.f&I)&&C.push(c);for(;null!==f;)0===(f.f&I)&&f!==e.fallback&&C.push(f),f=f.next;var _=C.length;if(_>0){var $=4&r&&0===h?n:null;if(u){for(d=0;d<_;d+=1)C[d].nodes?.a?.measure();for(d=0;d<_;d+=1)C[d].nodes?.a?.fix()}!function(e,t,n){for(var r,s=t.length,o=t.length,i=0;i<s;i++){let n=t[i];Mt(n,()=>{if(r){if(r.pending.delete(n),r.done.add(n),0===r.pending.size){var t=e.outrogroups;Zn(l(r.done)),t.delete(r),0===t.size&&(e.outrogroups=null)}}else o-=1},!1)}if(0===o){var a=null!==n;if(a){var c=n,d=c.parentNode;dt(d),d.append(c),e.items.clear()}Zn(t,!a)}else r={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(r)}(e,C,$)}}u&&ue(()=>{if(void 0!==i)for(c of i)c.nodes?.a?.apply()})}(b,h,c,t,s),null!==p&&(0===h.length?0===(p.f&O)?zt(p):(p.f^=O,Qn(p,null,c)):Mt(p,()=>{p=null}))}var b={effect:$t(()=>{var e=(h=dn(f)).length;let i=!1;W&&(ee(c)===n!==(0===e)&&(Z(c=Q()),Y(!1),i=!0));for(var l=new Set,u=0;u<e;u+=1){W&&8===B.nodeType&&"]"===B.data&&(c=B,i=!0,Y(!1));var b=h[u],m=s(b,u),y=v?null:d.get(m);y?(y.v&&We(y.v,b),y.i&&We(y.i,u)):(y=Jn(d,v?c:Kn??=st(),b,m,u,o,t,r),v||(y.e.f|=O),d.set(m,y)),l.add(m)}0===e&&a&&!p&&(v?p=Tt(()=>a(c)):(p=Tt(()=>a(Kn??=st()))).f|=O),W&&e>0&&Z(Q()),v||g(),i&&Y(!0),dn(f)}),items:d,outrogroups:null,fallback:p};v=!1,W&&(c=B)}function Jn(e,t,n,r,s,o,i,a){var l=1&i?16&i?Fe(n):Ge(n,!1,!1):null,c=2&i?Fe(s):null;return{v:l,i:c,e:Tt(()=>(o(t,l??n,c??s,a),()=>{e.delete(r)}))}}function Qn(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,o=t&&0===(t.f&O)?t.nodes.start:n;null!==r;){var i=it(r);if(o.before(r),r===s)return;r=i}}function er(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function tr(e,t,n,r,s){W&&K();var o=t.$$slots?.[n],i=!1;!0===o&&(o=t.children,i=!0),void 0===o||o(e,i?()=>r:r)}const nr={tick:e=>requestAnimationFrame(e),now:()=>performance.now(),tasks:new Set};function rr(){const e=nr.now();nr.tasks.forEach(t=>{t.c(e)||(nr.tasks.delete(t),t.f())}),0!==nr.tasks.size&&nr.tick(rr)}function sr(e,t){ft(()=>{e.dispatchEvent(new CustomEvent(t))})}function or(e){if("float"===e)return"cssFloat";if("offset"===e)return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return 1===t.length?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function ir(e){const t={},n=e.split(";");for(const e of n){const[n,r]=e.split(":");if(!n||void 0===r)break;t[or(n.trim())]=r.trim()}return t}const ar=e=>e;function lr(e,t,n,r){var s,o,i,a=!!(1&e),l=!!(2&e),c=!!(4&e),d=a&&l?"both":a?"in":"out",u=t.inert,h=t.style.overflow;function p(){return ft(()=>s??=n()(t,r?.()??{},{direction:d}))}var f={is_global:c,in(){if(t.inert=u,!a)return i?.abort(),void i?.reset?.();l||o?.abort(),sr(t,"introstart"),o=cr(t,p(),i,1,()=>{sr(t,"introend"),o?.abort(),o=s=void 0,t.style.overflow=h})},out(e){if(!l)return e?.(),void(s=void 0);t.inert=!0,sr(t,"outrostart"),i=cr(t,p(),o,0,()=>{sr(t,"outroend"),e?.()})},stop:()=>{o?.abort(),i?.abort()}},v=Gt;if((v.nodes.t??=[]).push(f),a&&jn){var g=c;if(!g){for(var b=v.parent;b&&0!==(b.f&M);)for(;(b=b.parent)&&0===(b.f&k););g=!b||0!==(b.f&P)}g&&kt(()=>{pn(()=>f.in())})}}function cr(e,t,n,r,s){var o=1===r;if("function"==typeof t){var i,a=!1;return ue(()=>{if(!a){var l=t({direction:o?"in":"out"});i=cr(e,l,n,r,s)}}),{abort:()=>{a=!0,i?.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(n?.deactivate(),!t?.duration)return s(),{abort:b,deactivate:b,reset:b,t:()=>r};const{delay:l=0,css:c,tick:d,easing:u=ar}=t;var h=[];if(o&&void 0===n&&(d&&d(0,1),c)){var p=ir(c(0,1));h.push(p,p)}var f=()=>1-r,v=e.animate(h,{duration:l,fill:"forwards"});return v.onfinish=()=>{v.cancel();var o=n?.t()??1-r;n?.abort();var i=r-o,a=t.duration*Math.abs(i),l=[];if(a>0){var h=!1;if(c)for(var p=Math.ceil(a/(1e3/60)),g=0;g<=p;g+=1){var b=o+i*u(g/p),m=ir(c(b,1-b));l.push(m),h||="hidden"===m.overflow}h&&(e.style.overflow="hidden"),f=()=>{var e=v.currentTime;return o+i*u(e/a)},d&&function(e){let t;0===nr.tasks.size&&nr.tick(rr),new Promise(n=>{nr.tasks.add(t={c:e,f:n})})}(()=>{if("running"!==v.playState)return!1;var e=f();return d(e,1-e),!0})}(v=e.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{f=()=>r,d?.(r,1-r),s()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=b)},deactivate:()=>{s=b},reset:()=>{0===r&&d?.(1,0)},t:()=>f()}}function dr(e,t){kt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const e=document.createElement("style");e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}function ur(e,t){var n,r=void 0;St(()=>{r!==(r=t())&&(n&&(It(n),n=null),r&&(n=Tt(()=>{kt(()=>r(e))})))})}function hr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=hr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pr(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=hr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const fr=[..." \t\n\r\f \v\ufeff"];function vr(e,t=!1){var n=t?" !important;":";",r="";for(var s in e){var o=e[s];null!=o&&""!==o&&(r+=" "+s+": "+o+n)}return r}function gr(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function br(e,t,n,r,s,o){var i=e.__className;if(W||i!==n||void 0===i){var a=function(e,t,n){var r=null==e?"":""+e;if(t&&(r=r?r+" "+t:t),n)for(var s in n)if(n[s])r=r?r+" "+s:s;else if(r.length)for(var o=s.length,i=0;(i=r.indexOf(s,i))>=0;){var a=i+o;0!==i&&!fr.includes(r[i-1])||a!==r.length&&!fr.includes(r[a])?i=a:r=(0===i?"":r.substring(0,i))+r.substring(a+1)}return""===r?null:r}(n,r,o);W&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=n}else if(o&&s!==o)for(var l in o){var c=!!o[l];null!=s&&c===!!s[l]||e.classList.toggle(l,c)}return o}function mr(e,t={},n,r){for(var s in n){var o=n[s];t[s]!==o&&(null==n[s]?e.style.removeProperty(s):e.style.setProperty(s,o,r))}}function yr(e,t,n,r){var s=e.__style;if(W||s!==t){var o=function(e,t){if(t){var n,r,s="";if(Array.isArray(t)?(n=t[0],r=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,i=0,a=!1,l=[];n&&l.push(...Object.keys(n).map(gr)),r&&l.push(...Object.keys(r).map(gr));var c=0,d=-1;const t=e.length;for(var u=0;u<t;u++){var h=e[u];if(a?"/"===h&&"*"===e[u-1]&&(a=!1):o?o===h&&(o=!1):"/"===h&&"*"===e[u+1]?a=!0:'"'===h||"'"===h?o=h:"("===h?i++:")"===h&&i--,!a&&!1===o&&0===i)if(":"===h&&-1===d)d=u;else if(";"===h||u===t-1){if(-1!==d){var p=gr(e.substring(c,d).trim());l.includes(p)||(";"!==h&&u++,s+=" "+e.substring(c,u).trim()+";")}c=u+1,d=-1}}}return n&&(s+=vr(n)),r&&(s+=vr(r,!0)),""===(s=s.trim())?null:s}return null==e?null:String(e)}(t,r);W&&o===e.getAttribute("style")||(null==o?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else r&&(Array.isArray(r)?(mr(e,n?.[0],r[0]),mr(e,n?.[1],r[1],"important")):mr(e,n,r));return r}function wr(e,t,n=!1){if(e.multiple){if(null==t)return;if(!i(t))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var r of e.options)r.selected=t.includes(kr(r))}else{for(r of e.options){if(Je(kr(r),t))return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function xr(e){var t=new MutationObserver(()=>{wr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),mt(()=>{t.disconnect()})}function kr(e){return"__value"in e?e.__value:e.value}const Cr=Symbol("class"),_r=Symbol("style"),$r=Symbol("is custom element"),Sr=Symbol("is html");function Tr(e){if(W){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ir(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;Ir(e,"checked",null),e.checked=r}}};e.__on_r=n,ue(n),pt()}}function Er(e,t){var n=Pr(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&"PROGRESS"===e.nodeName)&&(e.value=t??"")}function Lr(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Ir(e,t,n,r){var s=Pr(e);W&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||s[t]!==(s[t]=n)&&("loading"===t&&(e[F]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&Hr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ar(e,t,n=[],r=[],o=[],i,a=!1,l=!1){Pe(o,n,r,n=>{var r=void 0,o={},c="SELECT"===e.nodeName,d=!1;if(St(()=>{var u=t(...n.map(dn)),h=function(e,t,n,r,o=!1){if(W&&o&&"INPUT"===e.tagName){var i=e;("checkbox"===i.type?"defaultChecked":"defaultValue")in n||Tr(i)}var a=Pr(e),l=a[$r],c=!a[Sr];let d=W&&l;d&&Y(!1);var u=t||{},h="OPTION"===e.tagName;for(var p in t)p in n||(n[p]=null);n.class?n.class=pr(n.class):n[Cr]&&(n.class=null),n[_r]&&(n.style??=null);var f=Hr(e);for(const w in n){let x=n[w];if(h&&"value"===w&&null==x)e.value=e.__value="",u[w]=x;else if("class"!==w)if("style"!==w){var v=u[w];if(x!==v||void 0===x&&e.hasAttribute(w)){u[w]=x;var g=w[0]+w[1];if("$$"!==g)if("on"===g){const k={},C="$$"+w;let _=w.slice(2);var b=Mn(_);if(An(_)&&(_=_.slice(0,-7),k.capture=!0),!b&&v){if(null!=x)continue;e.removeEventListener(_,u[C],k),u[C]=null}if(null!=x)if(b)e[`__${_}`]=x,xn([_]);else{function $(e){u[w].call(this,e)}u[C]=yn(_,e,$,k)}else b&&(e[`__${_}`]=void 0)}else if("style"===w)Ir(e,w,x);else if("autofocus"===w)ut(e,Boolean(x));else if(l||"__value"!==w&&("value"!==w||null==x))if("selected"===w&&h)Lr(e,x);else{var m=w;c||(m=zn(m));var y="defaultValue"===m||"defaultChecked"===m;if(null!=x||l||y)y||f.includes(m)&&(l||"string"!=typeof x)?(e[m]=x,m in a&&(a[m]=s)):"function"!=typeof x&&Ir(e,m,x);else if(a[w]=null,"value"===m||"checked"===m){let S=e;const T=void 0===t;if("value"===m){let E=S.defaultValue;S.removeAttribute(m),S.defaultValue=E,S.value=S.__value=T?E:null}else{let L=S.defaultChecked;S.removeAttribute(m),S.defaultChecked=L,S.checked=!!T&&L}}else e.removeAttribute(w)}else e.value=e.__value=x}}else yr(e,x,t?.[_r],n[_r]),u[w]=x,u[_r]=n[_r];else br(e,"http://www.w3.org/1999/xhtml"===e.namespaceURI,x,r,t?.[Cr],n[Cr]),u[w]=x,u[Cr]=n[Cr]}return d&&Y(!0),u}(e,r,u,i,a,l);d&&c&&"value"in u&&wr(e,u.value);for(let e of Object.getOwnPropertySymbols(o))u[e]||It(o[e]);for(let t of Object.getOwnPropertySymbols(u)){var p=u[t];"@attach"!==t.description||r&&p===r[t]||(o[t]&&It(o[t]),o[t]=Tt(()=>ur(e,()=>p))),h[t]=p}r=h}),c){var u=e;kt(()=>{wr(u,r.value,!0),xr(u)})}d=!0})}function Pr(e){return e.__attributes??={[$r]:e.nodeName.includes("-"),[Sr]:"http://www.w3.org/1999/xhtml"===e.namespaceURI}}var Mr=new Map;function Hr(e){var t,n=e.getAttribute("is")||e.nodeName,r=Mr.get(n);if(r)return r;Mr.set(n,r=[]);for(var s=e,o=Element.prototype;o!==s;){for(var i in t=h(s))t[i].set&&r.push(i);s=v(s)}return r}const zr=new Set;function Rr(e,t,n,r,s=r){var o="checkbox"===n.getAttribute("type"),i=e;let a=!1;if(null!==t)for(var l of t)i=i[l]??=[];i.push(n),function(e,t,n,r=n){e.addEventListener(t,()=>ft(n));const s=e.__on_r;e.__on_r=s?()=>{s(),r(!0)}:()=>r(!0),pt()}(n,"change",()=>{var e=n.__value;o&&(e=Or(i,e,n.checked)),s(e)},()=>s(o?[]:null)),Ct(()=>{var e=r();W&&n.defaultChecked!==n.checked?a=!0:o?(e=e||[],n.checked=e.includes(n.__value)):n.checked=Je(n.__value,e)}),mt(()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1)}),zr.has(i)||(zr.add(i),ue(()=>{i.sort((e,t)=>4===e.compareDocumentPosition(t)?-1:1),zr.delete(i)})),ue(()=>{if(a){var e;if(o)e=Or(i,e,n.checked);else{var t=i.find(e=>e.checked);e=t?.__value}s(e)}})}function Or(e,t,n){for(var r=new Set,s=0;s<e.length;s+=1)e[s].checked&&r.add(e[s].__value);return n||r.delete(t),Array.from(r)}class jr{#q=new WeakMap;#U;#N;static entries=new WeakMap;constructor(e){this.#N=e}observe(e,t){var n=this.#q.get(e)||new Set;return n.add(t),this.#q.set(e,n),this.#V().observe(e,this.#N),()=>{var n=this.#q.get(e);n.delete(t),0===n.size&&(this.#q.delete(e),this.#U.unobserve(e))}}#V(){return this.#U??(this.#U=new ResizeObserver(e=>{for(var t of e)for(var n of(jr.entries.set(t.target,t),this.#q.get(t.target)||[]))n(t)}))}}var qr=new jr({box:"border-box"});function Ur(e,t,n){var r=qr.observe(e,()=>n(e[t]));kt(()=>(pn(()=>n(e[t])),r))}function Nr(e,t){return e===t||e?.[N]===t}function Vr(e={},t,n,r){return kt(()=>{var r,s;return Ct(()=>{r=s,s=[],pn(()=>{e!==n(...s)&&(t(e,...s),r&&Nr(n(...r),e)&&t(null,...r))})}),()=>{ue(()=>{s&&Nr(n(...s),e)&&t(null,...s)})}}),e}function Fr(e=!1){const t=se,n=t.l.u;if(!n)return;let r=()=>function(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(N in e)gn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&N in n&&gn(n)}}(t.s);if(e){let e=0,n={};const s=He(()=>{let r=!1;const s=t.s;for(const e in s)s[e]!==n[e]&&(n[e]=s[e],r=!0);return r&&e++,e});r=()=>dn(s)}var s;n.b.length&&(s=()=>{Dr(t,r),y(n.b)},vt(),gt(1048584,s,!0)),yt(()=>{const e=pn(()=>n.m.map(m));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&yt(()=>{Dr(t,r),y(n.a)})}function Dr(e,t){if(e.l.s)for(const t of e.l.s)dn(t);t()}let Gr=!1;const Br={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set:(e,t)=>!1,getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t))return t in e.props?{enumerable:!0,configurable:!0,value:e.props[t]}:void 0},has:(e,t)=>!e.exclude.includes(t)&&t in e.props,ownKeys:e=>Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))};function Wr(e,t,n){return new Proxy({props:e,exclude:t},Br)}function Yr(e,t,n,r){var s,o,i=!re||!!(2&n),a=!!(8&n),l=!!(16&n),c=r,d=!0,h=()=>(d&&(d=!1,c=l?pn(r):r),c);if(a){var p=N in e||V in e;s=u(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var f,v=!1;if(a?[o,v]=function(e){var t=Gr;try{return Gr=!1,[e(),Gr]}finally{Gr=t}}(()=>e[t]):o=e[t],void 0===o&&void 0!==r&&(o=h(),s&&(i&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),s(o))),f=i?()=>{var n=e[t];return void 0===n?h():(d=!0,n)}:()=>{var n=e[t];return void 0!==n&&(c=void 0),void 0===n?c:n},i&&!(4&n))return f;if(s){var g=e.$$legacy;return function(e,t){return arguments.length>0?(i&&t&&!g&&!v||s(t?f():e),e):f()}}var b=!1,m=(1&n?He:Re)(()=>(b=!1,f()));a&&dn(m);var y=Gt;return function(e,t){if(arguments.length>0){const n=t?dn(m):i&&a?Ke(e):e;return Be(m,n),b=!0,void 0!==c&&(c=n),e}return Ut&&b||0!==(y.f&A)?m.v:dn(m)}}class Zr{#F;#D;constructor(e){var t=new Map,n=(e,n)=>{var r=Ge(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>dn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===V||(dn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,s)=>(Be(t.get(r)??n(r,s),s),Reflect.set(e,r,s))});this.#D=(e.hydrate?Nn:Un)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover}),e?.props?.$$host&&!1!==e.sync||Ce(),this.#F=r.$$events;for(const e of Object.keys(this.#D))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&d(this,e,{get(){return this.#D[e]},set(t){this.#D[e]=t},enumerable:!0});this.#D.$set=e=>{Object.assign(r,e)},this.#D.$destroy=()=>{Gn(this.#D)}}$set(e){this.#D.$set(e)}$on(e,t){this.#F[e]=this.#F[e]||[];const n=(...e)=>t.call(this,...e);return this.#F[e].push(n),()=>{this.#F[e]=this.#F[e].filter(e=>e!==n)}}$destroy(){this.#D.$destroy()}}let Kr;function Xr(e,t,n,r){const s=n[e]?.type;if(t="Boolean"===s&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function Jr(e,t,n,r,s,o){let i=class extends Kr{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{d(i.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Xr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var s=u(r,e)?.get;s?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{d(i.prototype,e,{get(){return this.$$c?.[e]}})}),e.element=i,i}"function"==typeof HTMLElement&&(Kr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const 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){const 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 t(e){return t=>{const n=document.createElement("slot");"default"!==e&&(n.name=e),In(t,n)}}const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const s of this.$$s)s in r&&("default"!==s||this.$$d.children?n[s]=t(s):(this.$$d.children=t(s),n.default=!0));for(const o of this.attributes){const i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=Xr(i,o.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=(e={component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Zr(e)),this.$$me=xt(()=>{Ct(()=>{this.$$r=!0;for(const e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Xr(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const l in this.$$l)for(const d of this.$$l[l]){const u=this.$$c.$on(l,d);this.$$l_u.set(d,u)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Xr(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}});var Qr=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],es=["difference","intersection","symmetricDifference","union"],ts=!1;class ns extends Set{#G=new Map;#B=De(0);#W=De(0);#Y=en||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#W.v=super.size}ts||this.#Z()}#K(e){return en===this.#Y?De(e):Fe(e)}#Z(){ts=!0;var e=ns.prototype,t=Set.prototype;for(const n of Qr)e[n]=function(...e){return dn(this.#B),t[n].apply(this,e)};for(const n of es)e[n]=function(...e){dn(this.#B);var r=t[n].apply(this,e);return new ns(r)}}has(e){var t=super.has(e),n=this.#G,r=n.get(e);if(void 0===r){if(!t)return dn(this.#B),!1;r=this.#K(!0),n.set(e,r)}return dn(r),t}add(e){return super.has(e)||(super.add(e),Be(this.#W,super.size),Ye(this.#B)),this}delete(e){var t=super.delete(e),n=this.#G,r=n.get(e);return void 0!==r&&(n.delete(e),Be(r,!1)),t&&(Be(this.#W,super.size),Ye(this.#B)),t}clear(){if(0!==super.size){super.clear();var e=this.#G;for(var t of e.values())Be(t,!1);e.clear(),Be(this.#W,0),Ye(this.#B)}}keys(){return this.values()}values(){return dn(this.#B),super.values()}entries(){return dn(this.#B),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return dn(this.#W)}}class rs extends Map{#G=new Map;#B=De(0);#W=De(0);#Y=en||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#W.v=super.size}}#K(e){return en===this.#Y?De(e):Fe(e)}has(e){var t=this.#G,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return dn(this.#B),!1;n=this.#K(0),t.set(e,n)}return dn(n),!0}forEach(e,t){this.#X(),super.forEach(e,t)}get(e){var t=this.#G,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void dn(this.#B);n=this.#K(0),t.set(e,n)}return dn(n),super.get(e)}set(e,t){var n=this.#G,r=n.get(e),s=super.get(e),o=super.set(e,t),i=this.#B;if(void 0===r)r=this.#K(0),n.set(e,r),Be(this.#W,super.size),Ye(i);else if(s!==t){Ye(r);var a=null===i.reactions?null:new Set(i.reactions),l=null===a||!r.reactions?.every(e=>a.has(e));l&&Ye(i)}return o}delete(e){var t=this.#G,n=t.get(e),r=super.delete(e);return void 0!==n&&(t.delete(e),Be(this.#W,super.size),Be(n,-1),Ye(this.#B)),r}clear(){if(0!==super.size){super.clear();var e=this.#G;for(var t of(Be(this.#W,0),e.values()))Be(t,-1);Ye(this.#B),e.clear()}}#X(){dn(this.#B);var e=this.#G;if(this.#W.v!==e.size)for(var t of super.keys())if(!e.has(t)){var n=this.#K(0);e.set(t,n)}for([,n]of this.#G)dn(n)}keys(){return dn(this.#B),super.keys()}values(){return this.#X(),super.values()}entries(){return this.#X(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return dn(this.#W),super.size}}const ss=new class{_definitions=new rs;get definitions(){return Array.from(this._definitions.values())}register(e){this._definitions.has(e.name)?this.updateExisting(e):this.addNew(e)}get(e){return this._definitions.get(e)}has(e){return this._definitions.has(e)}updateExisting(e){const t=this._definitions.get(e.name);t&&this.hasChanged(t,e)&&this._definitions.set(e.name,e)}addNew(e){this._definitions.set(e.name,e)}hasChanged(e,t){return e.settingsLabel!==t.settingsLabel||e.settingsHint!==t.settingsHint||e.defaultValue!==t.defaultValue||e.hiddenFromSettings!==t.hiddenFromSettings||e.isLocal!==t.isLocal}};const os=new class{registerConfigPlaceholders(e){e.placeholders&&e.placeholders.forEach(e=>{ss.register({...e,source:"config"})})}registerTabGroupPlaceholders(e){e.tabGroups&&e.tabGroups.forEach(e=>{this.registerPlaceholderFromTabGroup(e)})}calculatePlaceholderFromTabSelected(e,t,n){const r=n.tabGroups?.find(t=>t.groupId===e);if(!r||!r.placeholderId)return null;if(!ss.has(r.placeholderId))return null;const s=r.tabs.find(e=>e.tabId===t);if(!s)return null;const o=s.placeholderValue??"";return{key:r.placeholderId,value:o}}filterValidPlaceholders(e={}){const t={};for(const[n,r]of Object.entries(e))ss.has(n)?t[n]=r:console.warn(`[CustardUI] Placeholder "${n}" is not registered and will be ignored.`);return t}registerPlaceholderFromTabGroup(e){if(!e.placeholderId)return;const t=e.placeholderId,n=ss.get(t);n?"config"===n.source?console.warn(`[CustardUI] Tab group "${e.groupId}" is binding to placeholder "${t}", which is already explicitly defined in placeholders config. To avoid unexpected behavior, placeholders should have a single source of truth.`):"tabgroup"===n.source&&n.ownerTabGroupId!==e.groupId&&console.warn(`[CustardUI] Multiple tab groups are binding to the same placeholderId: "${t}". Current group: "${e.groupId}", Existing group: "${n.ownerTabGroupId}". This will cause race conditions as both groups compete for the same value.`):ss.register({name:t,settingsLabel:e.label??e.groupId,hiddenFromSettings:!0,source:"tabgroup",ownerTabGroupId:e.groupId})}},is=["toggles","tabGroups","placeholders"];function as(e){return is.includes(e)}const ls=new class{#J=De(Ke({}));get config(){return dn(this.#J)}set config(e){Be(this.#J,e,!0)}#Q=De(Ke([]));get configSectionOrder(){return dn(this.#Q)}set configSectionOrder(e){Be(this.#Q,e,!0)}#ee=De(Ke({shownToggles:[],peekToggles:[],tabs:{},placeholders:{}}));get state(){return dn(this.#ee)}set state(e){Be(this.#ee,e,!0)}constructor(e={}){Object.keys(e).length>0?this.init(e):this.state=this.computeDefaultState()}init(e){Object.assign(this.config,e),this.configSectionOrder=Object.keys(e).filter(as);const t=this.computeDefaultState();this.state.shownToggles=t.shownToggles??[],this.state.peekToggles=t.peekToggles??[],this.state.tabs=t.tabs??{},this.state.placeholders=t.placeholders??{}}setPinnedTab(e,t){this.state.tabs||(this.state.tabs={}),this.state.tabs[e]=t;const n=os.calculatePlaceholderFromTabSelected(e,t,this.config);n&&this.setPlaceholder(n.key,n.value)}setToggles(e,t){this.state.shownToggles=e,this.state.peekToggles=t}setPlaceholder(e,t){this.state.placeholders||(this.state.placeholders={}),this.state.placeholders[e]=t}applyState(e){const t=this.computeDefaultState(),n=this.filterValidTabs(e.tabs??{}),r=os.filterValidPlaceholders(e.placeholders??{}),s=this.filterValidToggles(e.shownToggles??t.shownToggles??[]),o=this.filterValidToggles(e.peekToggles??t.peekToggles??[]);this.state={shownToggles:s,peekToggles:o,tabs:{...t.tabs??{},...n},placeholders:{...t.placeholders??{},...r}},this.syncPlaceholdersFromTabs(r)}applyDifferenceInState(e){this.applyToggleDelta(e),this.applyTabsDelta(e.tabs??{}),this.applyPlaceholdersDelta(e.placeholders??{})}applyAdaptationDefaults(e){if(e&&(e.toggles&&this.applyToggleMap(e.toggles),e.placeholders)){const t=os.filterValidPlaceholders(e.placeholders);this.state.placeholders||(this.state.placeholders={}),Object.assign(this.state.placeholders,t)}}reset(){this.state=this.computeDefaultState()}computeDefaultState(){const e=[],t=[],n={},r={};for(const e of this.config.placeholders??[])void 0!==e.defaultValue&&(r[e.name]=e.defaultValue);for(const n of this.config.toggles??[])"peek"===n.default?t.push(n.toggleId):"hide"===n.default||e.push(n.toggleId);for(const e of this.config.tabGroups??[]){let t=e.default;if(t||(t=e.tabs?.[0]?.tabId),!t)continue;if(n[e.groupId]=t,!e.placeholderId)continue;const s=ss.get(e.placeholderId);if("config"===s?.source)continue;const o=e.tabs.find(e=>e.tabId===t);o&&void 0===r[e.placeholderId]&&(r[e.placeholderId]=o.placeholderValue??"")}return{shownToggles:e,peekToggles:t,tabs:n,placeholders:r}}getToggleConfigFromConfig(e){return this.config.toggles?.find(t=>t.toggleId.toLowerCase()===e.toLowerCase())}applyToggleMap(e){for(const[t,n]of Object.entries(e)){const e=this.getToggleConfigFromConfig(t);if(!e){console.warn(`[CustardUI] Toggle "${t}" is not in the config and will be ignored.`);continue}const r=e.toggleId;this.state.shownToggles=(this.state.shownToggles??[]).filter(e=>e!==r),this.state.peekToggles=(this.state.peekToggles??[]).filter(e=>e!==r),"show"===n?this.state.shownToggles.push(r):"peek"===n&&this.state.peekToggles.push(r)}}applyToggleDelta(e){const t=new Set(this.filterValidToggles(e.shownToggles??[])),n=new Set(this.filterValidToggles(e.peekToggles??[])),r=new Set(this.filterValidToggles(e.hiddenToggles??[])),s=new Set([...t,...n,...r]),o=(this.state.shownToggles??[]).filter(e=>!s.has(e)),i=(this.state.peekToggles??[]).filter(e=>!s.has(e));o.push(...t),i.push(...n),this.state.shownToggles=o,this.state.peekToggles=i}applyTabsDelta(e){const t=this.filterValidTabs(e);this.state.tabs||(this.state.tabs={}),Object.assign(this.state.tabs,t),this.syncPlaceholdersFromTabs({})}applyPlaceholdersDelta(e){const t=os.filterValidPlaceholders(e);this.state.placeholders||(this.state.placeholders={}),Object.assign(this.state.placeholders,t)}filterValidTabs(e){const t={};for(const[n,r]of Object.entries(e)){const e=this.config.tabGroups?.find(e=>e.groupId.toLowerCase()===n.toLowerCase());if(!e){console.warn(`[CustardUI] Tab group "${n}" is not in the config and will be ignored.`);continue}const s=e.tabs.find(e=>e.tabId.toLowerCase()===r.toLowerCase());s?t[e.groupId]=s.tabId:console.warn(`[CustardUI] Tab "${r}" is not in group "${e.groupId}" and will be ignored.`)}return t}filterValidToggles(e){if(!this.config.toggles||0===this.config.toggles.length)return e.forEach(e=>console.warn(`[CustardUI] Toggle "${e}" is not in the config and will be ignored.`)),[];const t=[];for(const n of e){const e=this.getToggleConfigFromConfig(n);e?t.push(e.toggleId):console.warn(`[CustardUI] Toggle "${n}" is not in the config and will be ignored.`)}return t}syncPlaceholdersFromTabs(e){if(this.config.tabGroups)for(const t of this.config.tabGroups){const n=t.placeholderId;if(!n)continue;if(void 0!==e[n])continue;const r=ss.get(n);if("config"===r?.source)continue;const s=this.state.tabs?.[t.groupId];if(!s)continue;const o=os.calculatePlaceholderFromTabSelected(t.groupId,s,this.config);o&&this.setPlaceholder(o.key,o.value)}}};const cs=new class{#te=De(Ke(new ns));get detectedToggles(){return dn(this.#te)}set detectedToggles(e){Be(this.#te,e,!0)}#ne=De(Ke(new ns));get detectedTabGroups(){return dn(this.#ne)}set detectedTabGroups(e){Be(this.#ne,e,!0)}#re=De(Ke(new ns));get detectedPlaceholders(){return dn(this.#re)}set detectedPlaceholders(e){Be(this.#re,e,!0)}#se=ze(()=>this.detectedToggles.size>0||this.detectedTabGroups.size>0);get hasPageElements(){return dn(this.#se)}set hasPageElements(e){Be(this.#se,e)}registerToggle(e){this.detectedToggles.add(e)}registerTabGroup(e){this.detectedTabGroups.add(e)}registerPlaceholder(e){this.detectedPlaceholders.add(e)}clearRegistry(){this.detectedToggles.clear(),this.detectedTabGroups.clear(),this.detectedPlaceholders.clear()}clearDetectedPlaceholders(){this.detectedPlaceholders.clear()}};const ds=new class{#oe=De(Ke({showTabGroups:!0,showReset:!0,title:"Customize View",description:""}));get uiOptions(){return dn(this.#oe)}set uiOptions(e){Be(this.#oe,e,!0)}#ie=De(!0);get isTabGroupNavHeadingVisible(){return dn(this.#ie)}set isTabGroupNavHeadingVisible(e){Be(this.#ie,e,!0)}setUIOptions(e){void 0!==e.showTabGroups&&(this.uiOptions.showTabGroups=e.showTabGroups),void 0!==e.showReset&&(this.uiOptions.showReset=e.showReset),void 0!==e.title&&(this.uiOptions.title=e.title),void 0!==e.description&&(this.uiOptions.description=e.description)}reset(){Object.assign(this.uiOptions,{showTabGroups:!0,showReset:!0,title:"Customize View",description:""})}};const us=new class{#ae=De(void 0);get assetsManager(){return dn(this.#ae)}set assetsManager(e){Be(this.#ae,e,!0)}#le=ze(()=>ls.config.toggles?ls.config.toggles.filter(e=>!e.isLocal||cs.detectedToggles.has(e.toggleId)):[]);get menuToggles(){return dn(this.#le)}set menuToggles(e){Be(this.#le,e)}#ce=ze(()=>ls.config.tabGroups?ls.config.tabGroups.filter(e=>!e.isLocal||cs.detectedTabGroups.has(e.groupId)):[]);get menuTabGroups(){return dn(this.#ce)}set menuTabGroups(e){Be(this.#ce,e)}#de=ze(()=>ss.definitions.some(e=>!e.hiddenFromSettings&&(!e.isLocal||cs.detectedPlaceholders.has(e.name))));get hasVisiblePlaceholders(){return dn(this.#de)}set hasVisiblePlaceholders(e){Be(this.#de,e)}#ue=ze(()=>this.menuToggles.length>0||this.menuTabGroups.length>0||this.hasVisiblePlaceholders);get hasMenuOptions(){return dn(this.#ue)}set hasMenuOptions(e){Be(this.#ue,e)}setAssetsManager(e){this.assetsManager=e}};var hs=Sn('<div><div role="alert"><button class="close-btn svelte-ysaqmb" aria-label="Dismiss intro">×</button> <p class="text svelte-ysaqmb"> </p></div></div>');const ps={hash:"svelte-ysaqmb",code:"\n /* Animation */\n @keyframes svelte-ysaqmb-popIn {\n 0% {\n opacity: 0;\n transform: scale(0.9) translateY(-50%);\n }\n 100% {\n opacity: 1;\n transform: scale(1) translateY(-50%);\n }\n }\n\n /* Reset transform for top/bottom positions */\n @keyframes svelte-ysaqmb-popInVertical {\n 0% {\n opacity: 0;\n transform: scale(0.9);\n }\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n }\n\n /* Simplified Pulse Animation - Shadow Only */\n @keyframes svelte-ysaqmb-pulse {\n 0% {\n transform: scale(1);\n box-shadow:\n 0 4px 6px -1px rgba(0, 0, 0, 0.1),\n 0 0 0 0 rgba(62, 132, 244, 0.7);\n }\n 50% {\n transform: scale(1);\n box-shadow:\n 0 4px 6px -1px rgba(0, 0, 0, 0.1),\n 0 0 0 10px rgba(62, 132, 244, 0);\n }\n 100% {\n transform: scale(1);\n box-shadow:\n 0 4px 6px -1px rgba(0, 0, 0, 0.1),\n 0 0 0 0 rgba(62, 132, 244, 0);\n }\n }\n\n /* Wrapper handles Positioning & Entry Animation */.cv-callout-wrapper.svelte-ysaqmb {position:fixed;z-index:9999;\n\n /* Default animation (centered ones) */\n animation: svelte-ysaqmb-popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;}\n\n /* Inner handles Visuals & Pulse Animation */.cv-callout.svelte-ysaqmb {background:var(--cv-callout-bg, var(--cv-bg));padding:1rem 1.25rem;border-radius:0.5rem;box-shadow:0 4px 6px -1px var(--cv-shadow),\n 0 2px 4px -1px var(--cv-shadow); /* adapt shadow? */max-width:250px;font-size:0.9rem;line-height:1.5;color:var(--cv-callout-text, var(--cv-text));display:flex;align-items:flex-start;gap:0.75rem;font-family:inherit;border:2px solid var(--cv-border);}\n\n /* Apply pulse to inner callout if enabled */.cv-callout.cv-pulse.svelte-ysaqmb {\n animation: svelte-ysaqmb-pulse 2s infinite 0.5s;}\n\n /* Arrow Base */.cv-callout.svelte-ysaqmb::before {content:'';position:absolute;width:1rem;height:1rem;background:var(--cv-callout-bg, var(--cv-bg));transform:rotate(45deg);border:2px solid var(--cv-border);z-index:-1;}.close-btn.svelte-ysaqmb {background:transparent;border:none;color:currentColor;opacity:0.7;font-size:1.25rem;line-height:1;cursor:pointer;padding:0;margin:-0.25rem -0.5rem 0 0;transition:opacity 0.15s;flex-shrink:0;}.close-btn.svelte-ysaqmb:hover {color:currentColor;opacity:1;}.text.svelte-ysaqmb {margin:0;flex:1;font-weight:500;}\n\n /* \n Position Specifics (Applied to Wrapper)\n */\n\n /* Right-side positions (Icon on Right -> Callout on Left) */.pos-top-right.svelte-ysaqmb,\n .pos-middle-right.svelte-ysaqmb,\n .pos-bottom-right.svelte-ysaqmb {right:80px;}.pos-top-right.svelte-ysaqmb,\n .pos-bottom-right.svelte-ysaqmb {\n animation-name: svelte-ysaqmb-popInVertical;}\n\n /* X Button Spacing Adjustments */.pos-top-right.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb),\n .pos-middle-right.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb),\n .pos-bottom-right.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb) {margin-right:0;margin-left:-0.5rem;}\n\n /* Left-side positions (Icon on Left -> Callout on Right) */.pos-top-left.svelte-ysaqmb,\n .pos-middle-left.svelte-ysaqmb,\n .pos-bottom-left.svelte-ysaqmb {left:80px;}.pos-top-left.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb),\n .pos-middle-left.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb),\n .pos-bottom-left.svelte-ysaqmb .close-btn:where(.svelte-ysaqmb) {order:2; /* Move to end */margin-right:-0.5rem;margin-left:0;}.pos-top-left.svelte-ysaqmb,\n .pos-bottom-left.svelte-ysaqmb {\n animation-name: svelte-ysaqmb-popInVertical;}\n\n /* Vertical Alignment */.pos-middle-right.svelte-ysaqmb,\n .pos-middle-left.svelte-ysaqmb {top:50%;\n /* transform handled by popIn animation (translateY -50%) */}.pos-top-right.svelte-ysaqmb,\n .pos-top-left.svelte-ysaqmb {top:20px;}.pos-bottom-right.svelte-ysaqmb,\n .pos-bottom-left.svelte-ysaqmb {bottom:20px;}\n\n /* Arrow Positioning (Child of .callout, dependent on Wrapper .pos-*) */\n\n /* Pointing Right */.pos-top-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-middle-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-bottom-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before {right:-0.5rem;border-left:none;border-bottom:none;}\n\n /* Pointing Left */.pos-top-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-middle-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-bottom-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before {left:-0.5rem;border-right:none;border-top:none;}\n\n /* Vertical placement of arrow */.pos-middle-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-middle-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before {top:50%;margin-top:-0.5rem;}.pos-top-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-top-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before {top:1.25rem;}.pos-bottom-right.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before,\n .pos-bottom-left.svelte-ysaqmb .cv-callout:where(.svelte-ysaqmb)::before {bottom:1.25rem;}\n\n @media print {.cv-callout-wrapper.svelte-ysaqmb {display:none !important;}\n }"};xn(["click"]);var fs=Sn('<div role="button" tabindex="0" aria-label="Open Custom Views Settings"><span class="cv-gear svelte-122ln5">⚙</span></div>');const vs={hash:"svelte-122ln5",code:".cv-settings-icon.svelte-122ln5 {position:fixed;background:var(--cv-icon-bg, rgba(255, 255, 255, 0.92));color:var(--cv-icon-color, rgba(0, 0, 0, 0.9));opacity:var(--cv-icon-opacity, 0.6);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:bold;cursor:grab; /* Default cursor */box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);border:2px solid rgba(0, 0, 0, 0.2);z-index:9998;transition:width 0.3s ease,\n background 0.3s ease,\n color 0.3s ease,\n opacity 0.3s ease,\n border-color 0.3s ease; /* Removed transform transition to allow smooth dragging */touch-action:none; /* Crucial for touch dragging */font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;box-sizing:border-box;user-select:none; /* Prevent text selection while dragging */}.cv-settings-icon.svelte-122ln5:active {cursor:grabbing;}.cv-settings-icon.svelte-122ln5:hover {background:var(--cv-icon-bg, rgba(255, 255, 255, 1));color:var(--cv-icon-color, rgba(0, 0, 0, 1));opacity:1;border-color:rgba(0, 0, 0, 0.3);}\n\n /* Top-right */.cv-settings-top-right.svelte-122ln5 {top:20px;right:0;border-radius:18px 0 0 18px;padding-left:6px;justify-content:flex-start;border-right:none;}\n\n /* Top-left */.cv-settings-top-left.svelte-122ln5 {top:20px;left:0;border-radius:0 18px 18px 0;padding-right:6px;justify-content:flex-end;border-left:none;}\n\n /* Bottom-right */.cv-settings-bottom-right.svelte-122ln5 {bottom:20px;right:0;border-radius:18px 0 0 18px;padding-left:6px;justify-content:flex-start;border-right:none;}\n\n /* Bottom-left */.cv-settings-bottom-left.svelte-122ln5 {bottom:20px;left:0;border-radius:0 18px 18px 0;padding-right:6px;justify-content:flex-end;border-left:none;}\n\n /* Middle-left */.cv-settings-middle-left.svelte-122ln5 {top:50%;left:0;\n /* transform handled by inline style now */border-radius:0 18px 18px 0;padding-right:6px;justify-content:flex-end;border-left:none;}\n\n /* Middle-right */.cv-settings-middle-right.svelte-122ln5 {top:50%;right:0;\n /* transform handled by inline style now */border-radius:18px 0 0 18px;padding-left:6px;justify-content:flex-start;border-right:none;}.cv-settings-top-right.svelte-122ln5,\n .cv-settings-middle-right.svelte-122ln5,\n .cv-settings-bottom-right.svelte-122ln5,\n .cv-settings-top-left.svelte-122ln5,\n .cv-settings-middle-left.svelte-122ln5,\n .cv-settings-bottom-left.svelte-122ln5 {height:36px;width:36px;}.cv-settings-middle-right.svelte-122ln5:hover,\n .cv-settings-top-right.svelte-122ln5:hover,\n .cv-settings-bottom-right.svelte-122ln5:hover,\n .cv-settings-top-left.svelte-122ln5:hover,\n .cv-settings-middle-left.svelte-122ln5:hover,\n .cv-settings-bottom-left.svelte-122ln5:hover {width:55px;}.cv-pulse {\n animation: svelte-122ln5-pulse 2s infinite;}\n\n @keyframes svelte-122ln5-pulse {\n 0% {\n box-shadow:\n 0 4px 12px rgba(0, 0, 0, 0.15),\n 0 0 0 0 rgba(62, 132, 244, 0.7);\n }\n 70% {\n box-shadow:\n 0 4px 12px rgba(0, 0, 0, 0.15),\n 0 0 0 10px rgba(62, 132, 244, 0);\n }\n 100% {\n box-shadow:\n 0 4px 12px rgba(0, 0, 0, 0.15),\n 0 0 0 0 rgba(62, 132, 244, 0);\n }\n }\n\n @media (max-width: 768px) {.cv-settings-top-right.svelte-122ln5,\n .cv-settings-top-left.svelte-122ln5 {top:10px;}.cv-settings-bottom-right.svelte-122ln5,\n .cv-settings-bottom-left.svelte-122ln5 {bottom:10px;}.cv-settings-top-right.svelte-122ln5,\n .cv-settings-bottom-right.svelte-122ln5,\n .cv-settings-middle-right.svelte-122ln5 {right:0;}.cv-settings-top-left.svelte-122ln5,\n .cv-settings-bottom-left.svelte-122ln5,\n .cv-settings-middle-left.svelte-122ln5 {left:0;}.cv-settings-icon.svelte-122ln5 {width:60px;height:32px;}.cv-settings-icon.svelte-122ln5:hover {width:75px;}\n }\n\n @media print {.cv-settings-icon.svelte-122ln5 {display:none !important;}\n }"};function gs(e,t){ie(t,!0),dr(e,vs);let n=Yr(t,"position",3,"middle-left"),r=Yr(t,"title",3,"Customize View"),s=Yr(t,"pulse",3,!1),o=Yr(t,"onclick",3,void 0),i=Yr(t,"iconColor",3,void 0),a=Yr(t,"backgroundColor",3,void 0),l=Yr(t,"opacity",3,void 0),c=Yr(t,"scale",3,void 0),d=Yr(t,"getIconPosition",3,void 0),u=Yr(t,"saveIconPosition",3,void 0),h=Yr(t,"clearIconPosition",3,void 0);const p=10;let f,v,g=De(!1),b=0,m=0,y=De(0),w=!1,x=-1/0,k=1/0;function C(){if(!f)return;const e=f.getBoundingClientRect(),t=e.top-dn(y),n=e.height,r=10-t,s=window.innerHeight-10-t-n,o=Math.max(r,Math.min(s,dn(y)));o!==dn(y)&&(Be(y,o,!0),T())}function _(e){Be(g,!0),b=e,m=dn(y),w=!1,function(){if(!f)return;const e=f.getBoundingClientRect(),t=e.top-dn(y),n=e.height;x=p-t,k=window.innerHeight-p-t-n}()}function $(e){if(!dn(g))return;const t=function(e){if(window.TouchEvent&&e instanceof TouchEvent&&e.touches.length>0)return e.touches[0].clientY;if(e instanceof MouseEvent)return e.clientY;return null}(e);if(null===t)return;const n=t-b,r=m+n;Be(y,Math.max(x,Math.min(k,r)),!0),Math.abs(n)>5&&(w=!0)}function S(){dn(g)&&(Be(g,!1),T())}function T(){u()?.(dn(y))}function E(e,t,n){let r="";return r=e&&e.includes("middle")?`translateY(calc(-50% + ${t}px))`:`translateY(${t}px)`,n&&1!==n&&(r+=` scale(${n})`),r}Wn(()=>{if(d()){const e=d()();null!==e&&Be(y,e,!0)}return window.addEventListener("mousemove",$),window.addEventListener("mouseup",S),window.addEventListener("touchmove",$,{passive:!1}),window.addEventListener("touchend",S),window.addEventListener("resize",C),v=setTimeout(C,0),()=>{window.removeEventListener("mousemove",$),window.removeEventListener("mouseup",S),window.removeEventListener("touchmove",$),window.removeEventListener("touchend",S),window.removeEventListener("resize",C),clearTimeout(v)}});var L={resetPosition:function(){Be(y,0),m=0,h()?.()}},I=fs();let A;return I.__mousedown=function(e){0===e.button&&_(e.clientY)},I.__touchstart=function(e){1===e.touches.length&&_(e.touches[0].clientY)},I.__click=function(e){if(w)return e.stopImmediatePropagation(),e.preventDefault(),void(w=!1);o()&&o()()},I.__keydown=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o()&&o()())},Vr(I,e=>f=e,()=>f),_t(e=>{br(I,1,`cv-settings-icon cv-settings-${n()??""} ${s()?"cv-pulse":""}`,"svelte-122ln5"),Ir(I,"title",r()),A=yr(I,"",A,e)},[()=>({"--cv-icon-color":i(),"--cv-icon-bg":a(),"--cv-icon-opacity":l(),transform:E(n(),dn(y),c()),cursor:dn(g)?"grabbing":"grab"})]),In(e,I),ae(L)}xn(["mousedown","touchstart","click","keydown"]);const bs=e=>e;function ms(e){const t=e-1;return t*t*t+1}function ys(e){const t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function ws(e,{delay:t=0,duration:n=400,easing:r=bs}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*s}}function xs(e,{delay:t=0,duration:n=400,easing:r=ms,x:s=0,y:o=0,opacity:i=0}={}){const a=getComputedStyle(e),l=+a.opacity,c="none"===a.transform?"":a.transform,d=l*(1-i),[u,h]=ys(s),[p,f]=ys(o);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*u}${h}, ${(1-e)*p}${f});\n\t\t\topacity: ${l-d*t}`}}function ks(e,{delay:t=0,duration:n=400,easing:r=ms,axis:s="y"}={}){const o=getComputedStyle(e),i=+o.opacity,a="y"===s?"height":"width",l=parseFloat(o[a]),c="y"===s?["top","bottom"]:["left","right"],d=c.map(e=>`${e[0].toUpperCase()}${e.slice(1)}`),u=parseFloat(o[`padding${d[0]}`]),h=parseFloat(o[`padding${d[1]}`]),p=parseFloat(o[`margin${d[0]}`]),f=parseFloat(o[`margin${d[1]}`]),v=parseFloat(o[`border${d[0]}Width`]),g=parseFloat(o[`border${d[1]}Width`]);return{delay:t,duration:n,easing:r,css:e=>`overflow: hidden;opacity: ${Math.min(20*e,1)*i};${a}: ${e*l}px;padding-${c[0]}: ${e*u}px;padding-${c[1]}: ${e*h}px;margin-${c[0]}: ${e*p}px;margin-${c[1]}: ${e*f}px;border-${c[0]}-width: ${e*v}px;border-${c[1]}-width: ${e*g}px;min-${a}: 0`}}function Cs(e,{delay:t=0,duration:n=400,easing:r=ms,start:s=0,opacity:o=0}={}){const i=getComputedStyle(e),a=+i.opacity,l="none"===i.transform?"":i.transform,c=1-s,d=a*(1-o);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${l} scale(${1-c*t});\n\t\t\topacity: ${a-d*t}\n\t\t`}}var _s=Tn('<svg><path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M12 8.00002C9.79085 8.00002 7.99999 9.79088 7.99999 12C7.99999 14.2092 9.79085 16 12 16C14.2091 16 16 14.2092 16 12C16 9.79088 14.2091 8.00002 12 8.00002ZM9.99999 12C9.99999 10.8955 10.8954 10 12 10C13.1046 10 14 10.8955 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 9.99999 13.1046 9.99999 12Z" fill="#0F1729"></path><path xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" d="M10.7673 1.01709C10.9925 0.999829 11.2454 0.99993 11.4516 1.00001L12.5484 1.00001C12.7546 0.99993 13.0075 0.999829 13.2327 1.01709C13.4989 1.03749 13.8678 1.08936 14.2634 1.26937C14.7635 1.49689 15.1915 1.85736 15.5007 2.31147C15.7454 2.67075 15.8592 3.0255 15.9246 3.2843C15.9799 3.50334 16.0228 3.75249 16.0577 3.9557L16.1993 4.77635L16.2021 4.77788C16.2369 4.79712 16.2715 4.81659 16.306 4.8363L16.3086 4.83774L17.2455 4.49865C17.4356 4.42978 17.6693 4.34509 17.8835 4.28543C18.1371 4.2148 18.4954 4.13889 18.9216 4.17026C19.4614 4.20998 19.9803 4.39497 20.4235 4.70563C20.7734 4.95095 21.0029 5.23636 21.1546 5.4515C21.2829 5.63326 21.4103 5.84671 21.514 6.02029L22.0158 6.86003C22.1256 7.04345 22.2594 7.26713 22.3627 7.47527C22.4843 7.7203 22.6328 8.07474 22.6777 8.52067C22.7341 9.08222 22.6311 9.64831 22.3803 10.1539C22.1811 10.5554 21.9171 10.8347 21.7169 11.0212C21.5469 11.1795 21.3428 11.3417 21.1755 11.4746L20.5 12L21.1755 12.5254C21.3428 12.6584 21.5469 12.8205 21.7169 12.9789C21.9171 13.1653 22.1811 13.4446 22.3802 13.8461C22.631 14.3517 22.7341 14.9178 22.6776 15.4794C22.6328 15.9253 22.4842 16.2797 22.3626 16.5248C22.2593 16.7329 22.1255 16.9566 22.0158 17.14L21.5138 17.9799C21.4102 18.1535 21.2828 18.3668 21.1546 18.5485C21.0028 18.7637 20.7734 19.0491 20.4234 19.2944C19.9803 19.6051 19.4613 19.7901 18.9216 19.8298C18.4954 19.8612 18.1371 19.7852 17.8835 19.7146C17.6692 19.6549 17.4355 19.5703 17.2454 19.5014L16.3085 19.1623L16.306 19.1638C16.2715 19.1835 16.2369 19.2029 16.2021 19.2222L16.1993 19.2237L16.0577 20.0443C16.0228 20.2475 15.9799 20.4967 15.9246 20.7157C15.8592 20.9745 15.7454 21.3293 15.5007 21.6886C15.1915 22.1427 14.7635 22.5032 14.2634 22.7307C13.8678 22.9107 13.4989 22.9626 13.2327 22.983C13.0074 23.0002 12.7546 23.0001 12.5484 23H11.4516C11.2454 23.0001 10.9925 23.0002 10.7673 22.983C10.5011 22.9626 10.1322 22.9107 9.73655 22.7307C9.23648 22.5032 8.80849 22.1427 8.49926 21.6886C8.25461 21.3293 8.14077 20.9745 8.07542 20.7157C8.02011 20.4967 7.97723 20.2475 7.94225 20.0443L7.80068 19.2237L7.79791 19.2222C7.7631 19.2029 7.72845 19.1835 7.69396 19.1637L7.69142 19.1623L6.75458 19.5014C6.5645 19.5702 6.33078 19.6549 6.11651 19.7146C5.86288 19.7852 5.50463 19.8611 5.07841 19.8298C4.53866 19.7901 4.01971 19.6051 3.57654 19.2944C3.2266 19.0491 2.99714 18.7637 2.84539 18.5485C2.71718 18.3668 2.58974 18.1534 2.4861 17.9798L1.98418 17.14C1.87447 16.9566 1.74067 16.7329 1.63737 16.5248C1.51575 16.2797 1.36719 15.9253 1.32235 15.4794C1.26588 14.9178 1.36897 14.3517 1.61976 13.8461C1.81892 13.4446 2.08289 13.1653 2.28308 12.9789C2.45312 12.8205 2.65717 12.6584 2.82449 12.5254L3.47844 12.0054V11.9947L2.82445 11.4746C2.65712 11.3417 2.45308 11.1795 2.28304 11.0212C2.08285 10.8347 1.81888 10.5554 1.61972 10.1539C1.36893 9.64832 1.26584 9.08224 1.3223 8.52069C1.36714 8.07476 1.51571 7.72032 1.63732 7.47528C1.74062 7.26715 1.87443 7.04347 1.98414 6.86005L2.48605 6.02026C2.58969 5.84669 2.71714 5.63326 2.84534 5.45151C2.9971 5.23637 3.22655 4.95096 3.5765 4.70565C4.01966 4.39498 4.53862 4.20999 5.07837 4.17027C5.50458 4.1389 5.86284 4.21481 6.11646 4.28544C6.33072 4.34511 6.56444 4.4298 6.75451 4.49867L7.69141 4.83775L7.69394 4.8363C7.72844 4.8166 7.7631 4.79712 7.79791 4.77788L7.80068 4.77635L7.94225 3.95571C7.97723 3.7525 8.02011 3.50334 8.07542 3.2843C8.14077 3.0255 8.25461 2.67075 8.49926 2.31147C8.80849 1.85736 9.23648 1.49689 9.73655 1.26937C10.1322 1.08936 10.5011 1.03749 10.7673 1.01709ZM14.0938 4.3363C14.011 3.85634 13.9696 3.61637 13.8476 3.43717C13.7445 3.2858 13.6019 3.16564 13.4352 3.0898C13.2378 3.00002 12.9943 3.00002 12.5073 3.00002H11.4927C11.0057 3.00002 10.7621 3.00002 10.5648 3.0898C10.3981 3.16564 10.2555 3.2858 10.1524 3.43717C10.0304 3.61637 9.98895 3.85634 9.90615 4.3363L9.75012 5.24064C9.69445 5.56333 9.66662 5.72467 9.60765 5.84869C9.54975 5.97047 9.50241 6.03703 9.40636 6.13166C9.30853 6.22804 9.12753 6.3281 8.76554 6.52822C8.73884 6.54298 8.71227 6.55791 8.68582 6.57302C8.33956 6.77078 8.16643 6.86966 8.03785 6.90314C7.91158 6.93602 7.83293 6.94279 7.70289 6.93196C7.57049 6.92094 7.42216 6.86726 7.12551 6.7599L6.11194 6.39308C5.66271 6.2305 5.43809 6.14921 5.22515 6.16488C5.04524 6.17811 4.87225 6.23978 4.72453 6.34333C4.5497 6.46589 4.42715 6.67094 4.18206 7.08103L3.72269 7.84965C3.46394 8.2826 3.33456 8.49907 3.31227 8.72078C3.29345 8.90796 3.32781 9.09665 3.41141 9.26519C3.51042 9.4648 3.7078 9.62177 4.10256 9.9357L4.82745 10.5122C5.07927 10.7124 5.20518 10.8126 5.28411 10.9199C5.36944 11.036 5.40583 11.1114 5.44354 11.2504C5.47844 11.379 5.47844 11.586 5.47844 12C5.47844 12.414 5.47844 12.621 5.44354 12.7497C5.40582 12.8887 5.36944 12.9641 5.28413 13.0801C5.20518 13.1875 5.07927 13.2876 4.82743 13.4879L4.10261 14.0643C3.70785 14.3783 3.51047 14.5352 3.41145 14.7349C3.32785 14.9034 3.29349 15.0921 3.31231 15.2793C3.33461 15.501 3.46398 15.7174 3.72273 16.1504L4.1821 16.919C4.4272 17.3291 4.54974 17.5342 4.72457 17.6567C4.8723 17.7603 5.04528 17.8219 5.2252 17.8352C5.43813 17.8508 5.66275 17.7695 6.11199 17.607L7.12553 17.2402C7.42216 17.1328 7.5705 17.0791 7.7029 17.0681C7.83294 17.0573 7.91159 17.064 8.03786 17.0969C8.16644 17.1304 8.33956 17.2293 8.68582 17.427C8.71228 17.4421 8.73885 17.4571 8.76554 17.4718C9.12753 17.6719 9.30853 17.772 9.40635 17.8684C9.50241 17.963 9.54975 18.0296 9.60765 18.1514C9.66662 18.2754 9.69445 18.4367 9.75012 18.7594L9.90615 19.6637C9.98895 20.1437 10.0304 20.3837 10.1524 20.5629C10.2555 20.7142 10.3981 20.8344 10.5648 20.9102C10.7621 21 11.0057 21 11.4927 21H12.5073C12.9943 21 13.2378 21 13.4352 20.9102C13.6019 20.8344 13.7445 20.7142 13.8476 20.5629C13.9696 20.3837 14.011 20.1437 14.0938 19.6637L14.2499 18.7594C14.3055 18.4367 14.3334 18.2754 14.3923 18.1514C14.4502 18.0296 14.4976 17.963 14.5936 17.8684C14.6915 17.772 14.8725 17.6719 15.2344 17.4718C15.2611 17.4571 15.2877 17.4421 15.3141 17.427C15.6604 17.2293 15.8335 17.1304 15.9621 17.0969C16.0884 17.064 16.167 17.0573 16.2971 17.0681C16.4295 17.0791 16.5778 17.1328 16.8744 17.2402L17.888 17.607C18.3372 17.7696 18.5619 17.8509 18.7748 17.8352C18.9547 17.8219 19.1277 17.7603 19.2754 17.6567C19.4502 17.5342 19.5728 17.3291 19.8179 16.919L20.2773 16.1504C20.536 15.7175 20.6654 15.501 20.6877 15.2793C20.7065 15.0921 20.6721 14.9034 20.5885 14.7349C20.4895 14.5353 20.2921 14.3783 19.8974 14.0643L19.1726 13.4879C18.9207 13.2876 18.7948 13.1875 18.7159 13.0801C18.6306 12.9641 18.5942 12.8887 18.5564 12.7497C18.5215 12.6211 18.5215 12.414 18.5215 12C18.5215 11.586 18.5215 11.379 18.5564 11.2504C18.5942 11.1114 18.6306 11.036 18.7159 10.9199C18.7948 10.8126 18.9207 10.7124 19.1725 10.5122L19.8974 9.9357C20.2922 9.62176 20.4896 9.46479 20.5886 9.26517C20.6722 9.09664 20.7065 8.90795 20.6877 8.72076C20.6654 8.49906 20.5361 8.28259 20.2773 7.84964L19.8179 7.08102C19.5728 6.67093 19.4503 6.46588 19.2755 6.34332C19.1277 6.23977 18.9548 6.1781 18.7748 6.16486C18.5619 6.14919 18.3373 6.23048 17.888 6.39307L16.8745 6.75989C16.5778 6.86725 16.4295 6.92093 16.2971 6.93195C16.167 6.94278 16.0884 6.93601 15.9621 6.90313C15.8335 6.86965 15.6604 6.77077 15.3142 6.57302C15.2877 6.55791 15.2611 6.54298 15.2345 6.52822C14.8725 6.3281 14.6915 6.22804 14.5936 6.13166C14.4976 6.03703 14.4502 5.97047 14.3923 5.84869C14.3334 5.72467 14.3055 5.56332 14.2499 5.24064L14.0938 4.3363Z" fill="#0F1729"></path></svg>');var $s=Tn('<svg><path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"></path></svg>');var Ss=Tn('<svg><rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"></rect><line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"></line><path d="M245 37.0001V39.5001H250V37.0001H247.5H245ZM250 13.0001C250 11.6194 248.881 10.5001C247.5 10.5001C246.119 10.5001 245 11.6194 245 13.0001H247.5H250ZM250 31.0001C250 29.6194 248.881 28.5001C247.5 28.5001C246.119 28.5001 245 29.6194 245 31.0001H247.5H250ZM245 19.0001C245 20.3808 246.119 21.5001C247.5 21.5001C248.881 21.5001 250 20.3808 250 19.0001H247.5H245ZM247.5 37.0001H250V31.0001H247.5H245V37.0001H247.5ZM247.5 19.0001H250V13.0001H247.5H245V19.0001H247.5Z" fill="currentColor"></path><line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></line><path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path><path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"></path></svg>');var Ts=Tn('<svg><rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"></rect><line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"></line><line x1="247.5" y1="43.0001" x2="247.5" y2="13.0001" stroke="currentColor" stroke-width="5" stroke-linecap="round"></line><path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round"></line><path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path><path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round"></path></svg>');var Es=Tn('<svg><rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"></rect><line x1="27" y1="62" x2="77" y2="62" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="77.8887" x2="77" y2="77.8887" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="97.4453" x2="221" y2="97.4453" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"></line><line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"></line></svg>');var Ls=Tn('<svg><path fill="currentColor" d="M18 8h-2a1 1 0 0 0 0 2h2v8H6v-8h2a1 1 0 0 0 0-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2z"></path><path fill="currentColor" d="M11 6.41V12a1 1 0 0 0 2 0V6.41l1.29 1.3a1 1 0 0 0 1.42 0a1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0l-3 3a1 1 0 1 0 1.42 1.42L11 6.41z"></path></svg>');var Is=Tn('<svg><g id="surface1"><path d="M 11.273438 0 L 2.546875 0 C 1.746094 0 1.089844 0.613281 1.089844 1.363281 L 1.089844 10.910156 L 2.546875 10.910156 L 2.546875 1.363281 L 11.273438 1.363281 Z M 13.453125 2.726562 L 5.453125 2.726562 C 4.65625 2.726562 4 3.339844 4 4.089844 L 4 13.636719 C 4 14.386719 4.65625 15 5.453125 15 L 13.453125 15 C 14.253906 15 14.910156 14.386719 14.910156 13.636719 L 14.910156 4.089844 C 14.910156 3.339844 14.253906 2.726562 13.453125 2.726562 Z M 13.453125 13.636719 L 5.453125 13.636719 L 5.453125 4.089844 L 13.453125 4.089844 Z M 13.453125 13.636719 "></path></g></svg>');var As=Tn('<svg><path d="M 19.28125 5.28125 L 9 15.5625 L 4.71875 11.28125 L 3.28125 12.71875 L 8.28125 17.71875 L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"></path></svg>');var Ps=Tn('<svg><path d="M22.719 12A10.719 10.719 0 0 1 1.28 12h.838a9.916 9.916 0 1 0 1.373-5H8v1H2V2h1v4.2A10.71 10.71 0 0 1 22.719 12z"></path><path fill="none" d="M0 0h24v24H0z"></path></svg>');var Ms=Tn('<svg><path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"></path></svg>');const Hs="t-show",zs="t-peek",Rs="t-hide",Os="tabs",js="ph",qs=[Hs,zs,Rs,Os,js];function Us(e){return e.map(encodeURIComponent).join(",")}function Ns(e){return Object.entries(e).map(([e,t])=>`${encodeURIComponent(e)}:${encodeURIComponent(t)}`).join(",")}function Vs(e,t){const n=function(e,t){const n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`[?&]${n}=([^&]*)`).exec(e);return r?.[1]??null}(e,t);return n?n.split(",").map(e=>{try{return decodeURIComponent(e.replace(/\+/g,"%20"))}catch{return console.warn(`[CustardUI] URLStateManager: Failed to decode ${t} item: ${e}`),e}}).filter(Boolean):[]}function Fs(e,t){const n=Vs(e,t),r={};for(const e of n){const t=e.indexOf(":");if(t>0){const n=e.slice(0,t),s=e.slice(t+1);n&&(r[n]=s)}}return r}function Ds(e){const t={},n=Vs(e,Hs);n.length>0&&(t.shownToggles=n);const r=Vs(e,zs);r.length>0&&(t.peekToggles=r);const s=Vs(e,Rs);return s.length>0&&(t.hiddenToggles=s),t}function Gs(e){const t=Fs(e,Os);return Object.keys(t).length>0?{tabs:t}:{}}function Bs(e){const t=Fs(e,js);return Object.keys(t).length>0?{placeholders:t}:{}}function Ws(e,t){const n=e.shownToggles??[],r=e.peekToggles??[],s=new Set(t.toggles),o=new Set(t.tabGroups),i=new Set(t.placeholders),a=n.filter(e=>s.has(e)),l=r.filter(e=>s.has(e)),c=new Set(a),d=new Set(l),u=[];for(const e of s)c.has(e)||d.has(e)||u.push(e);const h={};if(a.length>0&&(h.shownToggles=a),l.length>0&&(h.peekToggles=l),u.length>0&&(h.hiddenToggles=u),e.tabs){const t={};for(const[n,r]of Object.entries(e.tabs))o.has(n)&&(t[n]=r);Object.keys(t).length>0&&(h.tabs=t)}if(e.placeholders){const t=function(e){const t={};for(const[n,r]of Object.entries(e)){const e=ss.get(n);"tabgroup"!==e?.source&&(t[n]=r)}return t}(e.placeholders),n={};for(const[e,r]of Object.entries(t))i.has(e)&&(n[e]=r);Object.keys(n).length>0&&(h.placeholders=n)}return h}class Ys{static parseURL(){const e=new URLSearchParams(window.location.search);if(!qs.some(t=>e.has(t)))return null;const t=window.location.search;return{...Ds(t),...Gs(t),...Bs(t)}}static generateShareableURL(e,t={toggles:[],tabGroups:[],placeholders:[]}){const n=new URL(window.location.href);for(const e of qs)n.searchParams.delete(e);let r="";if(e){r=function(e){const t=[];return e.shownToggles&&e.shownToggles.length>0&&t.push(`${Hs}=${Us(e.shownToggles)}`),e.peekToggles&&e.peekToggles.length>0&&t.push(`${zs}=${Us(e.peekToggles)}`),e.hiddenToggles&&e.hiddenToggles.length>0&&t.push(`${Rs}=${Us(e.hiddenToggles)}`),e.tabs&&Object.keys(e.tabs).length>0&&t.push(`${Os}=${Ns(e.tabs)}`),e.placeholders&&Object.keys(e.placeholders).length>0&&t.push(`${js}=${Ns(e.placeholders)}`),t.join("&")}(Ws(e,t))}return function(e,t){const n=[e.searchParams.toString(),t].filter(Boolean).join("&");return e.origin+e.pathname+(n?`?${n}`:"")+(e.hash||"")}(n,r)}static clearURL(){if("undefined"==typeof window||!window.history)return;const e=new URL(window.location.href);let t=!1;for(const n of qs)e.searchParams.has(n)&&(e.searchParams.delete(n),t=!0);t&&window.history.replaceState({},"",e.toString())}}const Zs=new class{#he=De(Ke([]));get items(){return dn(this.#he)}set items(e){Be(this.#he,e,!0)}nextId=0;show(e,t=2500){const n=this.nextId++,r={message:e,duration:t,id:n};this.items.push(r),t>0&&setTimeout(()=>{this.dismiss(n)},t)}dismiss(e){this.items=this.items.filter(t=>t.id!==e)}};function Ks(e,t){Zs.show(e,t)}function Xs(){let e=0,t=0;const n=document.querySelector("header");if(n){const t=window.getComputedStyle(n);["fixed","sticky"].includes(t.position)&&(e=n.getBoundingClientRect().height)}return document.querySelectorAll("[data-cv-scroll-offset]").forEach(e=>{t=Math.max(t,e.scrollHeight)}),Math.max(e,t)}function Js(e){const t=Xs(),n=e.getBoundingClientRect().top+window.scrollY-t-20;window.scrollTo({top:n,behavior:"smooth"})}var Qs=Sn('<p class="description svelte-gwkhja"> </p>'),eo=Sn('<div class="card svelte-gwkhja"><div class="content svelte-gwkhja"><div><p class="title svelte-gwkhja"> </p> <!></div> <div class="radios svelte-gwkhja"><label class="radio-label svelte-gwkhja" title="Hide"><input class="toggle-input svelte-gwkhja" type="radio"/> <span>Hide</span></label> <label class="radio-label svelte-gwkhja" title="Peek"><input class="toggle-input svelte-gwkhja" type="radio"/> <span>Peek</span></label> <label class="radio-label svelte-gwkhja" title="Show"><input class="toggle-input svelte-gwkhja" type="radio"/> <span>Show</span></label></div></div></div>');const to={hash:"svelte-gwkhja",code:".card.svelte-gwkhja {background:var(--cv-bg);border:1px solid var(--cv-border);border-radius:0.5rem;}.content.svelte-gwkhja {display:flex;align-items:center;justify-content:space-between;padding:0.75rem;}.title.svelte-gwkhja {font-weight:500;font-size:0.875rem;color:var(--cv-text);margin:0;}.description.svelte-gwkhja {font-size:0.75rem;color:var(--cv-text-secondary);margin:0.125rem 0 0 0;}.radios.svelte-gwkhja {display:flex;gap:8px;}.radio-label.svelte-gwkhja {display:flex;align-items:center;gap:4px;font-size:0.85rem;cursor:pointer;color:var(--cv-text);}.toggle-input.svelte-gwkhja {margin:0;opacity:1;width:auto;height:auto;}"};xn(["change"]);var no=Sn('<p class="description svelte-uub3h8"> </p>'),ro=Sn("<option> </option>"),so=Sn('<div class="root svelte-uub3h8"><div class="header svelte-uub3h8"><label class="label svelte-uub3h8"> </label> <!></div> <select class="select svelte-uub3h8"></select></div>');const oo={hash:"svelte-uub3h8",code:".root.svelte-uub3h8 {display:flex;flex-direction:column;gap:0.75rem;padding:0.75rem;background:var(--cv-bg);border:1px solid var(--cv-border);border-radius:0.5rem;}\n\n /* Remove special handling for last child since they are now separate cards */.root.svelte-uub3h8:last-child {border-bottom:1px solid var(--cv-border);}.header.svelte-uub3h8 {display:flex;flex-direction:column;gap:0.25rem;}.label.svelte-uub3h8 {font-size:0.875rem;color:var(--cv-text);margin:0;line-height:1.4;font-weight:500;display:block;cursor:pointer;}.description.svelte-uub3h8 {font-size:0.75rem;color:var(--cv-text-secondary);margin:0;line-height:1.4;}.select.svelte-uub3h8 {width:100%;border-radius:0.5rem;background:var(--cv-input-bg);border:1px solid var(--cv-input-border);color:var(--cv-text);padding:0.5rem 0.75rem;font-size:0.875rem;cursor:pointer;transition:all 0.15s ease;font-family:inherit;}.select.svelte-uub3h8:hover {border-color:var(--cv-text-secondary);}.select.svelte-uub3h8:focus {outline:none;border-color:var(--cv-primary);box-shadow:0 0 0 2px var(--cv-focus-ring);}"};xn(["change"]);var io=Sn('<div class="placeholder-item svelte-1vp05mb"><label class="placeholder-label svelte-1vp05mb"> </label> <input class="placeholder-input svelte-1vp05mb" type="text"/></div>');const ao={hash:"svelte-1vp05mb",code:".placeholder-item.svelte-1vp05mb {display:flex;flex-direction:column;gap:0.25rem;}.placeholder-label.svelte-1vp05mb {font-size:0.85rem;font-weight:500;color:var(--cv-text);}.placeholder-input.svelte-1vp05mb {padding:0.5rem 0.75rem;border:1px solid var(--cv-input-border);border-radius:0.375rem;font-size:0.9rem;transition:border-color 0.2s;background:var(--cv-input-bg);color:var(--cv-text);}.placeholder-input.svelte-1vp05mb:focus {outline:none;border-color:var(--cv-primary);box-shadow:0 0 0 2px var(--cv-focus-ring);}"};xn(["input"]);var lo=Sn("<button>Customize</button>"),co=Sn('<p class="description svelte-16uy9h6"> </p>'),uo=Sn('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Toggles</div> <div class="toggles-container svelte-16uy9h6"></div></div>'),ho=Sn('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Placeholders</div> <div class="placeholders-container svelte-16uy9h6"></div></div>'),po=Sn('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Tab Groups</div> <div class="tabgroups-container svelte-16uy9h6"><div class="tabgroup-card header-card svelte-16uy9h6" role="group"><div class="tabgroup-row svelte-16uy9h6"><div class="logo-box svelte-16uy9h6" id="cv-nav-icon-box"><div class="nav-icon svelte-16uy9h6"><!></div></div> <div class="tabgroup-info svelte-16uy9h6"><div class="tabgroup-title-container"><p class="tabgroup-title svelte-16uy9h6">Show only the selected tab</p></div> <p class="tabgroup-description svelte-16uy9h6">Hide the navigation headers</p></div> <label class="toggle-switch nav-toggle svelte-16uy9h6"><input class="nav-pref-input svelte-16uy9h6" type="checkbox" aria-label="Show only the selected tab"/> <span class="switch-bg svelte-16uy9h6"></span> <span class="switch-knob svelte-16uy9h6"></span></label></div></div> <div class="tab-groups-list svelte-16uy9h6"></div></div></div>'),fo=Sn("<!> <!> <!>",1),vo=Sn('<div class="tab-content active svelte-16uy9h6"><!> <!></div>'),go=Sn('<button class="share-action-btn copy-url-btn svelte-16uy9h6"><span class="btn-icon svelte-16uy9h6"><!></span> <span><!></span></button>'),bo=Sn('<div class="tab-content active svelte-16uy9h6"><div class="share-content svelte-16uy9h6"><div class="share-instruction svelte-16uy9h6">Create a shareable link for your current customization, or select specific parts of\n the page to share.</div> <button class="share-action-btn primary start-share-btn svelte-16uy9h6"><span class="btn-icon svelte-16uy9h6"><!></span> <span>Select elements to share</span></button> <!></div></div>'),mo=Sn('<button class="reset-btn svelte-16uy9h6" title="Reset to Default"><span><!></span> <span>Reset</span></button>'),yo=Sn("<div></div>"),wo=Sn('<div class="modal-overlay svelte-16uy9h6" role="presentation"><div class="modal-box cv-custom-state-modal svelte-16uy9h6" role="dialog" aria-modal="true"><header class="header svelte-16uy9h6"><div class="header-content svelte-16uy9h6"><div class="modal-icon svelte-16uy9h6"><!></div> <div class="title svelte-16uy9h6"> </div></div> <button class="close-btn svelte-16uy9h6" aria-label="Close modal"><!></button></header> <main class="main svelte-16uy9h6"><div class="tabs svelte-16uy9h6"><!> <button>Share</button></div> <!></main> <footer class="footer svelte-16uy9h6"><!> <a href="https://github.com/custardui/custardui" target="_blank" class="footer-link svelte-16uy9h6"><!> <span>View on GitHub</span></a> <button class="done-btn svelte-16uy9h6">Done</button></footer></div></div>');const xo={hash:"svelte-16uy9h6",code:"\n /* Modal Overlay & Modal Frame */.modal-overlay.svelte-16uy9h6 {position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:10002;}.modal-box.svelte-16uy9h6 {background:var(--cv-bg);border-radius:0.75rem;box-shadow:0 25px 50px -12px var(--cv-shadow);max-width:32rem;width:90vw;max-height:80vh;display:flex;flex-direction:column;}.header.svelte-16uy9h6 {display:flex;align-items:center;justify-content:space-between;padding:0.5rem 1rem;border-bottom:1px solid var(--cv-border);}.header-content.svelte-16uy9h6 {display:flex;align-items:center;gap:0.75rem;}.modal-icon.svelte-16uy9h6 {position:relative;width:1rem;height:1rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;color:var(--cv-text);}.modal-icon.svelte-16uy9h6 svg {fill:currentColor;}.title.svelte-16uy9h6 {font-size:1.125rem;font-weight:bold;color:var(--cv-text);margin:0;}.close-btn.svelte-16uy9h6 {width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:9999px;background:transparent;border:none;color:var(--cv-text-secondary);cursor:pointer;transition:all 0.2s ease;}.close-btn.svelte-16uy9h6:hover {background:rgba(62, 132, 244, 0.1);color:var(--cv-primary);}.main.svelte-16uy9h6 {padding:1rem;flex:1;display:flex;flex-direction:column;overflow-y:auto;max-height:calc(80vh - 8rem);min-height:var(--cv-modal-min-height, 20rem);}.description.svelte-16uy9h6 {font-size:0.875rem;color:var(--cv-text);margin:0 0 1rem 0;line-height:1.4;}\n\n /* Tabs */.tabs.svelte-16uy9h6 {display:flex;margin-bottom:1rem;border-bottom:2px solid var(--cv-border);}.tab.svelte-16uy9h6 {background:transparent;border:none;padding:0.5rem 1rem;font-size:0.9rem;font-weight:600;color:var(--cv-text-secondary);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;}.tab.active.svelte-16uy9h6 {color:var(--cv-primary);border-bottom-color:var(--cv-primary);}.tab-content.svelte-16uy9h6 {display:none;}.tab-content.active.svelte-16uy9h6 {display:block;}\n\n /* Section Styling */.section.svelte-16uy9h6 {display:flex;flex-direction:column;gap:0.75rem;margin-bottom:1.5rem;}.section-heading.svelte-16uy9h6 {font-size:1rem;font-weight:bold;color:var(--cv-text);margin:0;}.toggles-container.svelte-16uy9h6 {display:flex;flex-direction:column;gap:0.5rem;overflow:hidden;}\n\n /* Tab Groups Section specific */.tabgroups-container.svelte-16uy9h6 {border-radius:0.5rem;}\n\n /* Nav Toggle Card */.tabgroup-card.svelte-16uy9h6 {background:var(--cv-bg);border-bottom:1px solid var(--cv-border);}.tabgroup-card.header-card.svelte-16uy9h6 {display:flex;align-items:center;justify-content:space-between;padding:0.75rem;border:1px solid var(--cv-border);border-radius:0.5rem;margin-bottom:0.75rem;}.tabgroup-row.svelte-16uy9h6 {display:flex;align-items:center;justify-content:space-between;width:100%;gap:1rem;}.logo-box.svelte-16uy9h6 {width:3rem;height:3rem;background:var(--cv-modal-icon-bg);border-radius:0.5rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}.nav-icon.svelte-16uy9h6 {width:2rem;height:2rem;color:var(--cv-text);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:color 0.2s ease;}.tabgroup-info.svelte-16uy9h6 {flex:1;display:flex;flex-direction:column;gap:0.25rem;}.tabgroup-title.svelte-16uy9h6 {font-weight:500;font-size:0.875rem;color:var(--cv-text);margin:0 0 0 0;}.tabgroup-description.svelte-16uy9h6 {font-size:0.75rem;color:var(--cv-text-secondary);margin:0;line-height:1.3;}\n\n /* Toggle Switch */.toggle-switch.svelte-16uy9h6 {position:relative;display:inline-flex;align-items:center;width:44px;height:24px;background:var(--cv-switch-bg);border-radius:9999px;padding:2px;box-sizing:border-box;cursor:pointer;transition:background-color 0.2s ease;border:none;}.toggle-switch.svelte-16uy9h6 input:where(.svelte-16uy9h6) {display:none;}.toggle-switch.svelte-16uy9h6 .switch-bg:where(.svelte-16uy9h6) {position:absolute;inset:0;border-radius:9999px;background:var(--cv-switch-bg);transition:background-color 0.2s ease;pointer-events:none;}.toggle-switch.svelte-16uy9h6 .switch-knob:where(.svelte-16uy9h6) {position:relative;width:20px;height:20px;background:var(--cv-switch-knob);border-radius:50%;box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);transition:transform 0.2s ease;transform:translateX(0);}.toggle-switch.svelte-16uy9h6 input:where(.svelte-16uy9h6):checked ~ .switch-knob:where(.svelte-16uy9h6) {transform:translateX(20px);}.toggle-switch.svelte-16uy9h6 input:where(.svelte-16uy9h6):checked ~ .switch-bg:where(.svelte-16uy9h6) {background:var(--cv-primary);}\n\n /* Tab Groups List */.tab-groups-list.svelte-16uy9h6 {display:flex;flex-direction:column;gap:0.75rem;}\n\n /* Footer */.footer.svelte-16uy9h6 {padding:1rem;border-top:1px solid var(--cv-border);display:flex;align-items:center;justify-content:space-between;background:var(--cv-bg);border-bottom-left-radius:0.75rem;border-bottom-right-radius:0.75rem;}.footer-link.svelte-16uy9h6 {display:flex;align-items:center;gap:0.5rem;color:var(--cv-text-secondary);text-decoration:none;font-size:0.875rem;font-weight:500;transition:color 0.15s ease;}.footer-link.svelte-16uy9h6:hover {color:var(--cv-text);}.reset-btn.svelte-16uy9h6 {display:flex;align-items:center;gap:0.5rem;background:var(--cv-bg);border:1px solid var(--cv-border);font-size:0.875rem;font-weight:500;color:var(--cv-danger);cursor:pointer;padding:0.5rem 0.75rem;border-radius:0.5rem;transition:all 0.2s ease;box-shadow:0 1px 2px rgba(0, 0, 0, 0.05);}.reset-btn.svelte-16uy9h6:hover {background:var(--cv-danger-bg);border-color:var(--cv-danger);box-shadow:0 2px 4px rgba(0, 0, 0, 0.05);}.done-btn.svelte-16uy9h6 {background:var(--cv-primary);color:white;border:none;padding:0.5rem 1rem;border-radius:0.375rem;font-weight:600;font-size:0.875rem;cursor:pointer;transition:background-color 0.15s ease;}.done-btn.svelte-16uy9h6:hover {background:var(--cv-primary-hover);}.reset-btn-icon.svelte-16uy9h6 {display:flex;align-items:center;width:1.25rem;height:1.25rem;}.spinning {\n animation: svelte-16uy9h6-spin 1s linear infinite;}\n\n @keyframes svelte-16uy9h6-spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n }\n\n /* Share Tab Styles */.share-content.svelte-16uy9h6 {display:flex;flex-direction:column;gap:1rem;align-items:center;text-align:center;padding:1rem 0;}.share-instruction.svelte-16uy9h6 {font-size:0.95rem;color:var(--cv-text-secondary);margin-bottom:0.5rem;}.share-action-btn.svelte-16uy9h6 {display:flex;align-items:center;justify-content:center;gap:0.75rem;width:100%;max-width:320px;padding:0.75rem 1rem;border-radius:0.5rem;font-weight:500;font-size:0.95rem;cursor:pointer;transition:all 0.2s ease;border:1px solid var(--cv-border);background:var(--cv-bg);color:var(--cv-text);}.share-action-btn.svelte-16uy9h6:hover {border-color:var(--cv-primary);color:var(--cv-primary);background:var(--cv-bg-hover);}.share-action-btn.primary.svelte-16uy9h6 {background:var(--cv-primary);border-color:var(--cv-primary);color:white;}.share-action-btn.primary.svelte-16uy9h6:hover {background:var(--cv-primary-hover);border-color:var(--cv-primary-hover);}.btn-icon.svelte-16uy9h6 {display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;}\n\n /* Placeholder Inputs */.placeholders-container.svelte-16uy9h6 {display:flex;flex-direction:column;gap:0.75rem;}"};function ko(e,t){ie(t,!0),dr(e,xo);let n=Yr(t,"isResetting",3,!1),r=Yr(t,"onclose",3,()=>{}),s=Yr(t,"onreset",3,()=>{}),o=Yr(t,"onstartShare",3,()=>{});const i=ze(()=>ds.isTabGroupNavHeadingVisible),a=ze(()=>ds.uiOptions.showTabGroups),l=ze(()=>ds.uiOptions.showReset),c=ze(()=>ds.uiOptions.title),d=ze(()=>ds.uiOptions.description),u=ze(()=>us.menuToggles),h=ze(()=>us.menuTabGroups),p=ze(()=>ls.configSectionOrder);let f=ze(()=>ls.state.shownToggles??[]),v=ze(()=>ls.state.peekToggles??[]),g=ze(()=>ls.state.tabs??{}),b=ze(()=>ss.definitions.filter(e=>!e.hiddenFromSettings&&(!e.isLocal||cs.detectedPlaceholders.has(e.name)))),m=ze(()=>ls.state.placeholders??{}),y=ze(()=>dn(u).length>0||dn(b).length>0||dn(a)&&dn(h).length>0),w=De("customize"),x=De(!1),k=De(0),C=De(0);yt(()=>{dn(y)||"customize"!==dn(w)||Be(w,"share")}),yt(()=>{"customize"===dn(w)&&dn(k)>dn(C)&&Be(C,dn(k),!0)});let _=De(!1);function $(e){Be(_,e,!0)}function S(){ds.isTabGroupNavHeadingVisible=!dn(i)}function T(e){const{toggleId:t,value:n}=e,r=ls.state.shownToggles||[],s=ls.state.peekToggles||[],o=r.filter(e=>e!==t),i=s.filter(e=>e!==t);"show"===n&&o.push(t),"peek"===n&&i.push(t),ls.setToggles(o,i)}function E(e){const{groupId:t,tabId:n}=e,r=function(e){const t=Xs(),n=t,r=Array.from(document.querySelectorAll(e)),s=document.querySelector("header"),o=r.filter(e=>!(t>0&&s&&e.closest("header")===s));let i=null,a=1/0;for(const e of o){const t=e.getBoundingClientRect();t.bottom>n&&t.top<window.innerHeight&&t.top<a&&(i=e,a=t.top)}return i}("cv-tabgroup");ls.setPinnedTab(t,n),r&&queueMicrotask(()=>{Js(r)})}function L(e){ls.setPlaceholder(e.name,e.value)}async function I(){const e=Ys.generateShareableURL(ls.state,{toggles:cs.detectedToggles,tabGroups:cs.detectedTabGroups,placeholders:cs.detectedPlaceholders});try{await async function(e){if(navigator.clipboard&&navigator.clipboard.writeText)try{return void await navigator.clipboard.writeText(e)}catch(e){console.warn("Navigator clipboard failed, trying fallback:",e)}try{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();const n=document.execCommand("copy");return document.body.removeChild(t),n?Promise.resolve():Promise.reject(new Error("execCommand copy failed"))}catch(e){return Promise.reject(e)}}(e),Ks("Link copied to clipboard!"),Be(x,!0),setTimeout(()=>{Be(x,!1)},2e3)}catch(e){console.error("Copy failed:",e),Ks("Failed to copy URL. Please copy manually.")}}var A=wo();A.__click=e=>{e.target===e.currentTarget&&r()()};var P=at(A),M=at(P),H=at(M),z=at(H);!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=_s();Ar(r,()=>({class:"cv-modal-icon-svg",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n})),In(e,r)}(at(z),{}),X(z);var R=ct(z,2),O=at(R,!0);X(R),X(H);var j=ct(H,2);j.__click=function(...e){r()?.apply(this,e)},function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=$s();Ar(r,()=>({class:"cv-modal-close-icon",fill:"currentColor",height:"20px",viewBox:"0 0 256 256",width:"20px",xmlns:"http://www.w3.org/2000/svg",...n})),In(e,r)}(at(j),{}),X(j),X(M);var q=ct(M,2);let U;var N=at(q),V=at(N),F=e=>{var t=lo();t.__click=()=>Be(w,"customize"),_t(()=>br(t,1,"tab "+("customize"===dn(w)?"active":""),"svelte-16uy9h6")),In(e,t)};Yn(V,e=>{dn(y)&&e(F)});var D=ct(V,2);D.__click=()=>Be(w,"share"),X(N);var G=ct(N,2),B=e=>{var t=vo(),n=at(t),r=e=>{var t=co(),n=at(t,!0);X(t),_t(()=>qn(n,dn(d))),In(e,t)};Yn(n,e=>{dn(d)&&e(r)}),Xn(ct(n,2),16,()=>dn(p),e=>e,(e,t)=>{var n=fo(),r=lt(n),s=e=>{var t=uo(),n=ct(at(t),2);Xn(n,21,()=>dn(u),e=>e.toggleId,(e,t)=>{{let n=ze(()=>{return e=dn(t).toggleId,n=dn(f),r=dn(v),n.includes(e)?"show":r.includes(e)?"peek":"hide";var e,n,r});!function(e,t){ie(t,!0),dr(e,to);const n=[];let r=Yr(t,"value",15,"show"),s=Yr(t,"onchange",3,()=>{});var o=eo(),i=at(o),a=at(i),l=at(a),c=at(l,!0);X(l);var d=ct(l,2),u=e=>{var n=Qs(),r=at(n,!0);X(n),_t(()=>qn(r,t.toggle.description)),In(e,n)};Yn(d,e=>{t.toggle.description&&e(u)}),X(a);var h=ct(a,2),p=at(h),f=at(p);Tr(f),f.__change=()=>s()({toggleId:t.toggle.toggleId,value:"hide"}),f.value=f.__value="hide",J(2),X(p);var v=ct(p,2),g=at(v);Tr(g),g.__change=()=>s()({toggleId:t.toggle.toggleId,value:"peek"}),g.value=g.__value="peek",J(2),X(v);var b=ct(v,2),m=at(b);Tr(m),m.__change=()=>s()({toggleId:t.toggle.toggleId,value:"show"}),m.value=m.__value="show",J(2),X(b),X(h),X(i),X(o),_t(()=>{qn(c,t.toggle.label||t.toggle.toggleId),Ir(f,"name",`cv-toggle-${t.toggle.toggleId??""}`),Ir(g,"name",`cv-toggle-${t.toggle.toggleId??""}`),Ir(m,"name",`cv-toggle-${t.toggle.toggleId??""}`)}),Rr(n,[],f,r,r),Rr(n,[],g,r,r),Rr(n,[],m,r,r),In(e,o),ae()}(e,{get toggle(){return dn(t)},get value(){return dn(n)},onchange:T})}}),X(n),X(t),In(e,t)};Yn(r,e=>{"toggles"===t&&dn(u).length>0&&e(s)});var o=ct(r,2),l=e=>{var t=ho(),n=ct(at(t),2);Xn(n,21,()=>dn(b),e=>e.name,(e,t)=>{{let n=ze(()=>dn(m)[dn(t).name]??dn(t).defaultValue??"");!function(e,t){ie(t,!0),dr(e,ao);let n=Yr(t,"value",15,""),r=Yr(t,"onchange",3,()=>{});const s=ze(()=>`cv-placeholder-${t.definition.name.replace(/[^a-zA-Z0-9-_]/g,"-")}`);var o=io(),i=at(o),a=at(i,!0);X(i);var l=ct(i,2);Tr(l),l.__input=function(e){const s=e.target;n(s.value),r()({name:t.definition.name,value:s.value})},X(o),_t(()=>{Ir(i,"for",dn(s)),qn(a,t.definition.settingsLabel||t.definition.name),Ir(l,"id",dn(s)),Ir(l,"placeholder",t.definition.settingsHint||""),Er(l,n())}),In(e,o),ae()}(e,{get definition(){return dn(t)},get value(){return dn(n)},onchange:L})}}),X(n),X(t),In(e,t)};Yn(o,e=>{"placeholders"===t&&dn(b).length>0&&e(l)});var c=ct(o,2),d=e=>{var t=po(),n=ct(at(t),2),r=at(n),s=at(r),o=at(s),a=at(o),l=at(a),c=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Ss();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg",width:"250",height:"181",viewBox:"0 0 250 181",...n})),In(e,r)}(e,{})},d=e=>{var t=Ln(),n=lt(t),r=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Ts();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg",width:"250",height:"181",viewBox:"0 0 250 181",...n})),In(e,r)}(e,{})},s=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Es();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg",width:"250",height:"181",viewBox:"0 0 250 181",fill:"currentColor",...n})),In(e,r)}(e,{})};Yn(n,e=>{dn(i)?e(r):e(s,!1)},!0),In(e,t)};Yn(l,e=>{dn(_)?e(c):e(d,!1)}),X(a),X(o);var u=ct(o,4),p=at(u);Tr(p),p.__change=S,J(4),X(u),X(s),X(r);var f=ct(r,2);Xn(f,21,()=>dn(h),e=>e.groupId,(e,t)=>{{let n=ze(()=>dn(g)[dn(t).groupId]||dn(t).tabs[0]?.tabId);!function(e,t){ie(t,!0),dr(e,oo);let n=Yr(t,"activeTabId",15,""),r=Yr(t,"onchange",3,()=>{});var s=so(),o=at(s),i=at(o),a=at(i,!0);X(i);var l=ct(i,2),c=e=>{var n=no(),r=at(n,!0);X(n),_t(()=>qn(r,t.group.description)),In(e,n)};Yn(l,e=>{t.group.description&&e(c)}),X(o);var d,u=ct(o,2);u.__change=function(e){const s=e.target;n(s.value),r()({groupId:t.group.groupId,tabId:n()})},Xn(u,21,()=>t.group.tabs,e=>e.tabId,(e,t)=>{var n=ro(),r=at(n,!0);X(n);var s={};_t(()=>{qn(r,dn(t).label||dn(t).tabId),s!==(s=dn(t).tabId)&&(n.value=(n.__value=dn(t).tabId)??"")}),In(e,n)}),X(u),xr(u),X(s),_t(()=>{Ir(i,"for",`tab-group-${t.group.groupId??""}`),qn(a,t.group.label||t.group.groupId),Ir(u,"id",`tab-group-${t.group.groupId??""}`),d!==(d=n())&&(u.value=(u.__value=n())??"",wr(u,n()))}),In(e,s),ae()}(e,{get group(){return dn(t)},get activeTabId(){return dn(n)},onchange:E})}}),X(f),X(n),X(t),_t(()=>{return e=p,t=!dn(i),void((n=Pr(e)).checked!==(n.checked=t??void 0)&&(e.checked=t));var e,t,n}),wn("mouseenter",r,()=>$(!0)),wn("mouseleave",r,()=>$(!1)),In(e,t)};Yn(c,e=>{"tabGroups"===t&&dn(a)&&dn(h).length>0&&e(d)}),In(e,n)}),X(t),lr(1,t,()=>ws,()=>({duration:150})),In(e,t)},W=e=>{var t=bo(),n=at(t),r=ct(at(n),2);r.__click=()=>o()();var s=at(r);!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Ls();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",...n})),In(e,r)}(at(s),{}),X(s),J(2),X(r);var i=ct(r,2),a=e=>{var t=go();t.__click=I;var n=at(t),r=at(n),s=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=As();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"2 2 22 22",fill:"currentColor",...n})),In(e,r)}(e,{})},o=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Is();Ar(r,()=>({xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"18",height:"18",viewBox:"0 0 18 18",version:"1.1",fill:"currentColor",...n})),In(e,r)}(e,{})};Yn(r,e=>{dn(x)?e(s):e(o,!1)}),X(n);var i=ct(n,2),a=at(i),l=e=>{In(e,En("Copied!"))},c=e=>{In(e,En("Copy Shareable URL of Settings"))};Yn(a,e=>{dn(x)?e(l):e(c,!1)}),X(i),X(t),In(e,t)};Yn(i,e=>{dn(y)&&e(a)}),X(n),X(t),lr(1,t,()=>ws,()=>({duration:150})),In(e,t)};Yn(G,e=>{"customize"===dn(w)?e(B):e(W,!1)}),X(q);var Y=ct(q,2),Z=at(Y),K=e=>{var t=mo();t.__click=function(...e){s()?.apply(this,e)};var r=at(t);!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Ps();Ar(r,()=>({class:"cv-btn-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n})),In(e,r)}(at(r),{}),X(r),J(2),X(t),_t(()=>br(r,1,"reset-btn-icon "+(n()?"spinning":""),"svelte-16uy9h6")),In(e,t)},Q=e=>{In(e,yo())};Yn(Z,e=>{dn(l)?e(K):e(Q,!1)});var ee=ct(Z,2);!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Ms();Ar(r,()=>({viewBox:"0 0 98 96",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",...n})),In(e,r)}(at(ee),{}),J(2),X(ee),ct(ee,2).__click=function(...e){r()?.apply(this,e)},X(Y),X(P),X(A),_t(()=>{qn(O,dn(c)),U=yr(q,"",U,{"min-height":"share"===dn(w)&&dn(C)>0?`${dn(C)}px`:void 0}),br(D,1,"tab "+("share"===dn(w)?"active":""),"svelte-16uy9h6")}),Ur(q,"clientHeight",e=>Be(k,e)),lr(3,P,()=>Cs,()=>({duration:200,start:.9})),lr(3,A,()=>ws,()=>({duration:200})),In(e,A),ae()}function Co(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n),t&=t}return t}function _o(e){return e.trim().replace(/\s+/g," ")}function $o(e){const t=e.tagName,n=_o(e.textContent||"");let r,s=e.parentElement;for(;s;){if(s.id){r=s.id;break}s=s.parentElement}const o=s||document.body,i=Array.from(o.querySelectorAll(t)).indexOf(e),a={tag:t,index:-1!==i?i:0,textSnippet:n.substring(0,32),textHash:Co(n),elementId:e.id};return r&&(a.parentId=r),a}function So(e){const t=e.map(e=>({t:e.tag,i:e.index,p:e.parentId,s:e.textSnippet,h:e.textHash,id:e.elementId}));if(t.every(e=>!!e.id))return t.map(e=>e.id).join(",");const n=JSON.stringify(t);try{const e=(new TextEncoder).encode(n),t=Array.from(e,e=>String.fromCodePoint(e)).join("");return btoa(t)}catch(e){throw console.error("Failed to encode anchor:",e),new Error("Failed to generate link signature.")}}function To(e){if(!e)return[];if(e.includes(" "))return Eo(e);if(!/^[A-Za-z0-9+/]*={0,2}$/.test(e))return Eo(e);try{const t=atob(e),n=Uint8Array.from(t,e=>e.codePointAt(0)||0),r=(new TextDecoder).decode(n),s=JSON.parse(r);if(!Array.isArray(s))throw new Error("Decoded JSON is not an array");return s.map(e=>{if("object"!=typeof e||null===e)throw new Error("Item is not an object");return{tag:e.t,index:e.i,parentId:e.p,textSnippet:e.s,textHash:e.h,elementId:e.id}})}catch{return Eo(e)}}function Eo(e){return e.split(/[ +,]+/).filter(e=>e.length>0).map(e=>({tag:"ANY",index:0,textSnippet:"",textHash:0,elementId:e}))}xn(["click","change"]);function Lo(e,t){if(t.elementId){const e=document.querySelectorAll(`[id="${CSS.escape(t.elementId)}"]`);if(e.length>0)return Array.from(e);if("ANY"===t.tag)return[]}let n=e;if(t.parentId){const r=e.querySelector(`#${t.parentId}`);if(r instanceof HTMLElement)n=r;else{const e=document.getElementById(t.parentId);e&&(n=e)}}const r=n.querySelectorAll(t.tag);if(r[t.index]){const e=r[t.index];if(Co(_o(e.textContent||""))===t.textHash)return[e]}let s=null,o=0;for(let e=0;e<r.length;e++){const n=r[e];let i=0;const a=_o(n.textContent||"");if(Co(a)===t.textHash?i+=50:a.startsWith(t.textSnippet)&&(i+=30),e===t.index&&(i+=10),i>=60)return[n];i>o&&(o=i,s=n)}return o>30&&s?[s]:[]}const Io=["HEADER","NAV","FOOTER","SCRIPT","STYLE"],Ao=[],Po="data-cv-share-ignore",Mo="div, p, blockquote, pre, li, h1, h2, h3, h4, h5, h6, table, span, tr, cv-tabgroup, cv-toggle",Ho="cv-share-selected",zo="cv-highlight-target",Ro="cv-share-selected-hide",Oo="cv-highlight-target-hide",jo="cv-share-selected-highlight",qo="cv-highlight-target-mode",Uo=["flex-body","content-wrapper","app"];function No(e){if(e.id&&Uo.includes(e.id))return!0;if("DIV"!==e.tagName)return!1;if(e.id)return!1;const t=window.getComputedStyle(e),n=t.backgroundColor&&"rgba(0, 0, 0, 0)"!==t.backgroundColor&&"transparent"!==t.backgroundColor,r=t.borderStyle&&"none"!==t.borderStyle&&parseFloat(t.borderWidth)>0,s=t.boxShadow&&"none"!==t.boxShadow;return!n&&!r&&!s}const Vo=new class{#pe=De(!1);get isActive(){return dn(this.#pe)}set isActive(e){Be(this.#pe,e,!0)}#fe=De("show");get selectionMode(){return dn(this.#fe)}set selectionMode(e){Be(this.#fe,e,!0)}#ve=De(Ke(new ns));get selectedElements(){return dn(this.#ve)}set selectedElements(e){Be(this.#ve,e,!0)}#ge=De(null);get currentHoverTarget(){return dn(this.#ge)}set currentHoverTarget(e){Be(this.#ge,e,!0)}#be=ze(()=>this.selectedElements.size);get shareCount(){return dn(this.#be)}set shareCount(e){Be(this.#be,e)}toggleActive(e){(void 0!==e?e:!this.isActive)?(this.isActive=!0,this.updateBodyClass()):(this.clearAllSelections(),this.currentHoverTarget&&this._removeHighlightClass(this.currentHoverTarget),this.isActive=!1,this.currentHoverTarget=null,document.body.classList.remove("cv-share-active-show","cv-share-active-hide","cv-share-active-highlight"))}setSelectionMode(e){this.selectionMode!==e&&(this.selectionMode=e,this.selectedElements.forEach(e=>{this._removeSelectionClass(e),this._addSelectionClass(e)}),this.isActive&&this.updateBodyClass())}updateBodyClass(){document.body.classList.remove("cv-share-active-show","cv-share-active-hide","cv-share-active-highlight"),document.body.classList.add(`cv-share-active-${this.selectionMode}`)}setHoverTarget(e){this.currentHoverTarget&&this.currentHoverTarget!==e&&this._removeHighlightClass(this.currentHoverTarget),e&&this._addHighlightClass(e),this.currentHoverTarget=e}toggleElementSelection(e){const{updatedSelection:t,changesMade:n}=function(e,t){const n=new ns(e);if(n.has(t))return n.delete(t),{updatedSelection:n,changesMade:!0};let r=t.parentElement,s=!1;for(;r;){if(n.has(r)){s=!0;break}r=r.parentElement}if(s)return{updatedSelection:e,changesMade:!1};const o=[];return n.forEach(e=>{t.contains(e)&&t!==e&&o.push(e)}),o.forEach(e=>{n.delete(e)}),n.add(t),{updatedSelection:n,changesMade:!0}}(this.selectedElements,e);n&&(this.selectedElements.forEach(e=>{t.has(e)||this._removeSelectionClass(e)}),t.forEach(e=>{this.selectedElements.has(e)||this._addSelectionClass(e)}),this.selectedElements=t)}toggleMultipleElements(e){for(const t of e)this.toggleElementSelection(t)}clearAllSelections(){this.selectedElements.forEach(e=>this._removeSelectionClass(e)),this.selectedElements.clear()}_addHighlightClass(e){"hide"===this.selectionMode?e.classList.add(Oo):"highlight"===this.selectionMode?e.classList.add(qo):e.classList.add(zo)}_removeHighlightClass(e){e.classList.remove(zo,Oo,qo)}_addSelectionClass(e){"hide"===this.selectionMode?e.classList.add(Ro):"highlight"===this.selectionMode?e.classList.add(jo):e.classList.add(Ho)}_removeSelectionClass(e){e.classList.remove(Ho,Ro,jo)}generateLink(){if(0===this.selectedElements.size)return void Ks("Please select at least one item.");const e=Array.from(this.selectedElements).map(e=>$o(e));let t;try{t=So(e)}catch{return void Ks("Failed to generate link. Please try selecting fewer items.")}const n=new URL(window.location.href);n.searchParams.delete("cv-show"),n.searchParams.delete("cv-hide"),n.searchParams.delete("cv-highlight"),"hide"===this.selectionMode?n.searchParams.set("cv-hide",t):"highlight"===this.selectionMode?n.searchParams.set("cv-highlight",t):n.searchParams.set("cv-show",t),navigator.clipboard.writeText(n.href).then(()=>{Ks("Link copied to clipboard!")}).catch(()=>{Ks("Failed to copy to clipboard")})}previewLink(){if(0===this.selectedElements.size)return void Ks("Please select at least one item.");const e=So(Array.from(this.selectedElements).map(e=>$o(e))),t=new URL(window.location.href);t.searchParams.delete("cv-show"),t.searchParams.delete("cv-hide"),t.searchParams.delete("cv-highlight"),"hide"===this.selectionMode?t.searchParams.set("cv-hide",e):"highlight"===this.selectionMode?t.searchParams.set("cv-highlight",e):t.searchParams.set("cv-show",e),window.open(t.toString(),"_blank")}};function Fo(e){const t=e-1;return t*t*t+1}function Do(e,{from:t,to:n},r={}){var{delay:s=0,duration:o=e=>120*Math.sqrt(e),easing:i=Fo}=r,a=getComputedStyle(e),l="none"===a.transform?"":a.transform,[c,d]=a.transformOrigin.split(" ").map(parseFloat);c/=e.clientWidth,d/=e.clientHeight;var u=function(e){if("currentCSSZoom"in e)return e.currentCSSZoom;var t=e,n=1;for(;null!==t;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}(e),h=e.clientWidth/n.width/u,p=e.clientHeight/n.height/u,f=t.left+t.width*c,v=t.top+t.height*d,g=n.left+n.width*c,b=n.top+n.height*d,m=(f-g)*h,y=(v-b)*p,w=t.width/n.width,x=t.height/n.height;return{delay:s,duration:"function"==typeof o?o(Math.sqrt(m*m+y*y)):o,easing:i,css:(e,t)=>`transform: ${l} translate(${t*m}px, ${t*y}px) scale(${e+t*w}, ${e+t*x});`}}re=!0;var Go=Sn('<div role="alert" aria-live="polite"> </div>'),Bo=Sn('<div class="toast-container svelte-14irt8g"></div>');const Wo={hash:"svelte-14irt8g",code:".toast-container.svelte-14irt8g {position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:20000;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none; /* Let clicks pass through container */}.toast-item.svelte-14irt8g {background:rgba(0, 0, 0, 0.85);color:white;padding:10px 20px;border-radius:4px;font-size:14px;box-shadow:0 4px 6px rgba(0, 0, 0, 0.1);pointer-events:auto; /* Re-enable clicks on toasts */max-width:300px;text-align:center;}"};function Yo(e,t){ie(t,!1),dr(e,Wo),Fr();var n=Bo();Xn(n,13,()=>Zs.items,e=>e.id,(e,t)=>{var n=Go(),r=at(n,!0);X(n),_t(()=>{br(n,1,"cv-toast-notification toast-item","svelte-14irt8g"),qn(r,dn(t).message)}),lr(1,n,()=>xs,()=>({y:-20,duration:300})),lr(2,n,()=>ws,()=>({duration:200})),function(e,t,n){var r,s,o,i=Gt.nodes,a=null;i.a??={element:e,measure(){r=this.element.getBoundingClientRect()},apply(){if(o?.abort(),s=this.element.getBoundingClientRect(),r.left!==s.left||r.right!==s.right||r.top!==s.top||r.bottom!==s.bottom){const e=t()(this.element,{from:r,to:s},n?.());o=cr(this.element,e,void 0,1,()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:s}=getComputedStyle(e);if("absolute"!==t&&"fixed"!==t){var o=e.style;a={position:o.position,width:o.width,height:o.height,transform:o.transform},o.position="absolute",o.width=n,o.height=s;var i=e.getBoundingClientRect();if(r.left!==i.left||r.top!==i.top){var l=`translate(${r.left-i.left}px, ${r.top-i.top}px)`;o.transform=o.transform?`${o.transform} ${l}`:l}}}},unfix(){if(a){var t=e.style;t.position=a.position,t.width=a.width,t.height=a.height,t.transform=a.transform}}},i.a.element=e}(n,()=>Do,null),In(e,n)}),X(n),In(e,n),ae()}var Zo=Sn('<div class="floating-bar svelte-bs8cbd"><div class="mode-toggle svelte-bs8cbd"><button title="Show only selected elements">Show</button> <button title="Hide selected elements">Hide</button> <button title="Highlight selected elements">Highlight</button></div> <span class="divider svelte-bs8cbd"></span> <span class="count svelte-bs8cbd"> </span> <button class="btn clear svelte-bs8cbd">Clear</button> <button class="btn preview svelte-bs8cbd">Preview</button> <button class="btn generate svelte-bs8cbd">Copy Link</button> <button class="btn exit svelte-bs8cbd">Exit</button></div>');const Ko={hash:"svelte-bs8cbd",code:".floating-bar.svelte-bs8cbd {position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background-color:#2c2c2c;color:#f1f1f1;border-radius:8px;padding:8px 12px;box-shadow:0 8px 20px rgba(0, 0, 0, 0.4);display:grid;grid-template-columns:auto auto 1fr auto auto auto auto;align-items:center;gap:12px;z-index:99999;font-family:system-ui,\n -apple-system,\n sans-serif;font-size:14px;border:1px solid #4a4a4a;pointer-events:auto;white-space:nowrap;min-width:500px;}.mode-toggle.svelte-bs8cbd {display:flex;background:#1a1a1a;border-radius:6px;padding:2px;border:1px solid #4a4a4a;}.mode-btn.svelte-bs8cbd {background:transparent;color:#aeaeae;border:none;padding:4px 10px;border-radius:4px;cursor:pointer;font-weight:500;font-size:13px;transition:all 0.2s;}.mode-btn.svelte-bs8cbd:hover {color:#fff;}.mode-btn.active.svelte-bs8cbd {background:#4a4a4a;color:#fff;box-shadow:0 1px 3px rgba(0, 0, 0, 0.2);}.divider.svelte-bs8cbd {width:1px;height:20px;background:#4a4a4a;margin:0 4px;}.count.svelte-bs8cbd {font-weight:500;min-width:120px;text-align:center;font-size:13px;color:#ccc;}.btn.svelte-bs8cbd {background-color:#0078d4;color:white;border:none;padding:6px 12px;border-radius:5px;cursor:pointer;font-weight:500;transition:background-color 0.2s;font-size:13px;}.btn.svelte-bs8cbd:hover {background-color:#005a9e;}.btn.clear.svelte-bs8cbd {background-color:transparent;border:1px solid #5a5a5a;color:#dadada;}.btn.clear.svelte-bs8cbd:hover {background-color:#3a3a3a;color:white;}.btn.preview.svelte-bs8cbd {background-color:#333;border:1px solid #555;}.btn.preview.svelte-bs8cbd:hover {background-color:#444;}.btn.exit.svelte-bs8cbd {background-color:transparent;color:#ff6b6b;padding:6px 10px;}.btn.exit.svelte-bs8cbd:hover {background-color:rgba(255, 107, 107, 0.1);}\n\n @media (max-width: 600px) {.floating-bar.svelte-bs8cbd {display:flex;flex-wrap:wrap;min-width:unset;width:90%;max-width:400px;height:auto;padding:12px;gap:10px;bottom:30px;}.mode-toggle.svelte-bs8cbd {margin-right:auto;order:1;}.btn.exit.svelte-bs8cbd {margin-left:auto;order:2;}.divider.svelte-bs8cbd {display:none;}.count.svelte-bs8cbd {width:100%;text-align:center;order:3;padding:8px 0;border-top:1px solid #3a3a3a;border-bottom:1px solid #3a3a3a;margin:4px 0;}.btn.clear.svelte-bs8cbd,\n .btn.preview.svelte-bs8cbd,\n .btn.generate.svelte-bs8cbd {flex:1;text-align:center;font-size:12px;padding:8px 4px;order:4;}.btn.generate.svelte-bs8cbd {flex:1.5;}\n }"};xn(["click"]);var Xo=Sn('<span class="id-badge svelte-64gpkh" title="ID detection active"> </span>'),Jo=Sn('<button class="action-btn up svelte-64gpkh" title="Select Parent">↰</button>'),Qo=Sn('<div class="hover-helper svelte-64gpkh"><div class="info svelte-64gpkh"><span class="tag svelte-64gpkh"> </span> <!></div> <button> </button> <!></div>');const ei={hash:"svelte-64gpkh",code:".hover-helper.svelte-64gpkh {position:fixed;z-index:99999;background-color:#333;color:white;padding:4px 8px;border-radius:4px;display:flex;align-items:center;gap:8px;box-shadow:0 2px 5px rgba(0, 0, 0, 0.2);font-family:monospace;pointer-events:auto;}.info.svelte-64gpkh {display:flex;flex-direction:column;align-items:flex-start;line-height:1;gap:2px;}.tag.svelte-64gpkh {font-size:12px;font-weight:bold;color:#aeaeae;}.id-badge.svelte-64gpkh {font-size:10px;color:#64d2ff;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.action-btn.svelte-64gpkh {background:#555;border:none;color:white;border-radius:3px;cursor:pointer;padding:2px 6px;font-size:14px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background-color 0.1s;}.action-btn.svelte-64gpkh:hover {background:#777;}.action-btn.deselect.svelte-64gpkh {background-color:#d13438;}.action-btn.deselect.svelte-64gpkh:hover {background-color:#a42628;}"};xn(["click"]);var ti=Sn('<div><span class="selection-label svelte-1dbf58w"> </span></div>'),ni=Sn('<div class="share-overlay-ui"><!> <!> <!></div>');const ri={hash:"svelte-1dbf58w",code:"\n /* Global styles injected when active */body.cv-share-active {cursor:default;user-select:none;-webkit-user-select:none;}\n\n /* Highlight outlines */.cv-highlight-target {outline:2px dashed #0078d4 !important;outline-offset:2px;cursor:crosshair;}.cv-share-selected {outline:3px solid #005a9e !important;outline-offset:2px;background-color:rgba(0, 120, 212, 0.05);}.cv-highlight-target-hide {outline:2px dashed #d13438 !important;outline-offset:2px;cursor:crosshair;}.cv-share-selected-hide {outline:3px solid #a4262c !important;outline-offset:2px;background-color:rgba(209, 52, 56, 0.05);}.cv-highlight-target-mode {outline:2px dashed #d97706 !important;outline-offset:2px;cursor:crosshair;}.cv-share-selected-highlight {outline:3px solid #b45309 !important;outline-offset:2px;background-color:rgba(245, 158, 11, 0.05);}.selection-box.svelte-1dbf58w {position:fixed;border:1px solid rgba(0, 120, 212, 0.4);background-color:rgba(0, 120, 212, 0.1);pointer-events:none;z-index:10000;box-sizing:border-box;}.selection-box.hide-mode.svelte-1dbf58w {border:1px solid rgba(209, 52, 56, 0.4);background-color:rgba(209, 52, 56, 0.1);}.selection-box.highlight-mode.svelte-1dbf58w {border:1px solid rgba(255, 140, 0, 0.6); /* Orange/Gold for highlight */background-color:rgba(255, 140, 0, 0.1);}.selection-label.svelte-1dbf58w {position:absolute;top:-24px;left:0;background:#0078d4;color:white;padding:2px 6px;font-size:11px;border-radius:3px;white-space:nowrap;font-family:sans-serif;opacity:0.9;}.hide-mode.svelte-1dbf58w .selection-label:where(.svelte-1dbf58w) {background:#d13438;}.highlight-mode.svelte-1dbf58w .selection-label:where(.svelte-1dbf58w) {background:#d97706; /* Darker orange for text bg */}"};function si(e,t){ie(t,!0),dr(e,ri);let n=Yr(t,"excludedTags",19,()=>["HEADER","NAV","FOOTER"]),r=Yr(t,"excludedIds",19,()=>[]),s=ze(()=>new Set(n().map(e=>e.toUpperCase()))),o=ze(()=>new Set(r()));yt(()=>(document.body.classList.add("cv-share-active"),()=>{document.body.classList.remove("cv-share-active")}));let i=De(!1),a=De(null),l=De(null),c=!1,d=[],u=ze(()=>{if(!dn(a)||!dn(l)||!dn(i))return null;return{left:Math.min(dn(a).x,dn(l).x),top:Math.min(dn(a).y,dn(l).y),width:Math.abs(dn(l).x-dn(a).x),height:Math.abs(dn(l).y-dn(a).y)}});function h(e){return function(e,t,n){let r=e;for(;r;){if(r.hasAttribute(Po))return!0;if(t&&t.has(r.tagName.toUpperCase()))return!0;if(n&&r.id&&n.has(r.id))return!0;r=r.parentElement}return!1}(e,dn(s),dn(o))}var p=ni();wn("mouseover",Qe,function(e){if(!Vo.isActive||dn(i))return;const t=e.target;if(t.closest(".hover-helper")||t.closest(".floating-bar"))return;if(h(t))return;const n=t.closest(Mo);if(!n)return void Vo.setHoverTarget(null);const r=n;let s=r.parentElement,o=null;for(;s;){if(Vo.selectedElements.has(s)){o=s;break}s=s.parentElement}if(o)Vo.setHoverTarget(o);else if(No(r))Vo.setHoverTarget(null);else if(Vo.currentHoverTarget!==r){if(Vo.currentHoverTarget&&Vo.currentHoverTarget.contains(r))return;Vo.setHoverTarget(r)}}),wn("mousedown",Qe,function(e){if(!Vo.isActive)return;const t=e.target;t.closest(".floating-bar")||t.closest(".hover-helper")||window.matchMedia("(pointer: coarse)").matches||(e.preventDefault(),Be(a,{x:e.clientX,y:e.clientY},!0),Be(l,{x:e.clientX,y:e.clientY},!0),Be(i,!1),c=!1)}),wn("mousemove",Qe,function(e){if(!dn(a))return;Be(l,{x:e.clientX,y:e.clientY},!0);const t=e.clientX-dn(a).x,n=e.clientY-dn(a).y;Math.hypot(t,n)>12&&(Be(i,!0),Vo.setHoverTarget(null))}),wn("mouseup",Qe,function(){if(dn(i)&&dn(a)&&dn(l)){const e=Math.abs(dn(l).x-dn(a).x),t=Math.abs(dn(l).y-dn(a).y);if(e<10||t<10)return Be(i,!1),Be(a,null),void Be(l,null);const n=Math.min(dn(a).x,dn(l).x),r=Math.min(dn(a).y,dn(l).y),s=n+e,o=r+t;0===d.length&&(d=Array.from(document.querySelectorAll(Mo)));const u=[];d.forEach(e=>{const t=e;if(h(t))return;const i=t.getBoundingClientRect();i.left>=n&&i.right<=s&&i.top>=r&&i.bottom<=o&&!No(t)&&u.push(t)}),u.length>0&&Vo.toggleMultipleElements(u),c=!0}Be(i,!1),Be(a,null),Be(l,null)}),wn("click",Qe,function(e){if(c)return e.preventDefault(),e.stopPropagation(),void(c=!1);const t=e.target;if(t.closest(".hover-helper")||t.closest(".floating-bar"))return;e.preventDefault(),e.stopPropagation();const n=Vo.currentHoverTarget;n&&Vo.toggleElementSelection(n)},!0),wn("keydown",Qe,function(e){"Escape"===e.key&&(e.preventDefault(),Vo.toggleActive(!1))});var f=at(p);!function(e,t){ie(t,!1),dr(e,Ko),Fr();var n=Zo(),r=at(n),s=at(r);s.__click=()=>Vo.setSelectionMode("show");var o=ct(s,2);o.__click=()=>Vo.setSelectionMode("hide");var i=ct(o,2);i.__click=()=>Vo.setSelectionMode("highlight"),X(r);var a=ct(r,4),l=at(a);X(a);var c=ct(a,2);c.__click=function(){Vo.clearAllSelections()};var d=ct(c,2);d.__click=function(){Vo.previewLink()};var u=ct(d,2);u.__click=function(){Vo.generateLink()},ct(u,2).__click=function(){Vo.toggleActive(!1)},X(n),_t(()=>{br(s,1,"mode-btn "+("show"===Vo.selectionMode?"active":""),"svelte-bs8cbd"),Ir(s,"aria-pressed","show"===Vo.selectionMode),br(o,1,"mode-btn "+("hide"===Vo.selectionMode?"active":""),"svelte-bs8cbd"),Ir(o,"aria-pressed","hide"===Vo.selectionMode),br(i,1,"mode-btn "+("highlight"===Vo.selectionMode?"active":""),"svelte-bs8cbd"),Ir(i,"aria-pressed","highlight"===Vo.selectionMode),qn(l,`${Vo.shareCount??""} item${1===Vo.shareCount?"":"s"} to\n ${"show"===Vo.selectionMode?"show":"highlight"===Vo.selectionMode?"highlight":"hide"}`)}),lr(3,n,()=>xs,()=>({y:50,duration:200})),In(e,n),ae()}(f,{});var v=ct(f,2);!function(e,t){ie(t,!0),dr(e,ei);let n=ze(()=>Vo.currentHoverTarget),r=ze(()=>dn(n)&&Vo.selectedElements.has(dn(n))),s=De("display: none;"),o=De("TAG"),i=De(null),a=De(!1),l=De(null);function c(e){let t=e.parentElement;for(;t;){if(t.matches(Mo)&&!No(t))return t;t=t.parentElement}return null}function d(e){e.stopPropagation(),dn(n)&&Vo.toggleElementSelection(dn(n))}yt(()=>{const e=Vo.currentHoverTarget;if(e){const t=pn(()=>dn(l));if(t)Be(s,t,!0),Be(l,null);else{const t=e.getBoundingClientRect();let n=t.top-23;n<0&&(n=t.top+5);let r=t.right-80;r<10&&(r=10),r+100>window.innerWidth&&(r=window.innerWidth-110),Be(s,`top: ${n}px; left: ${r}px;`)}Be(o,e.tagName,!0),Be(i,e.id||null,!0),Be(a,!!c(e))}else Be(s,"display: none;"),Be(l,null)});let u=De(0);function h(e){if(e.stopPropagation(),!dn(n))return;const t=c(dn(n));t&&(Be(l,`${dn(s)} min-width: ${dn(u)}px;`),Vo.setHoverTarget(t))}var p=Ln(),f=lt(p),v=e=>{var t=Qo(),n=at(t),l=at(n),c=at(l,!0);X(l);var p=ct(l,2),f=e=>{var t=Xo(),n=at(t);X(t),_t(()=>qn(n,`#${dn(i)??""}`)),In(e,t)};Yn(p,e=>{dn(i)&&e(f)}),X(n);var v=ct(n,2);v.__click=d;var g=at(v,!0);X(v);var b=ct(v,2),m=e=>{var t=Jo();t.__click=h,In(e,t)};Yn(b,e=>{dn(a)&&e(m)}),X(t),_t(()=>{yr(t,dn(s)),qn(c,dn(o)),br(v,1,"action-btn "+(dn(r)?"deselect":"select"),"svelte-64gpkh"),Ir(v,"title",dn(r)?"Deselect":"Select"),qn(g,dn(r)?"✕":"✓")}),Ur(t,"clientWidth",e=>Be(u,e)),lr(3,t,()=>ws,()=>({duration:100})),In(e,t)};Yn(f,e=>{dn(n)&&e(v)}),In(e,p),ae()}(v,{});var g=ct(v,2),b=e=>{var t=ti(),n=at(t),r=at(n,!0);X(n),X(t),_t(()=>{br(t,1,"selection-box "+("hide"===Vo.selectionMode?"hide-mode":"highlight"===Vo.selectionMode?"highlight-mode":""),"svelte-1dbf58w"),yr(t,`left: ${dn(u).left??""}px; top: ${dn(u).top??""}px; width: ${dn(u).width??""}px; height: ${dn(u).height??""}px;`),qn(r,"hide"===Vo.selectionMode?"Select to hide":"highlight"===Vo.selectionMode?"Select to highlight":"Select to show")}),In(e,t)};Yn(g,e=>{dn(u)&&e(b)}),X(p),In(e,p),ae()}const oi=new class{#pe=De(!1);get isActive(){return dn(this.#pe)}set isActive(e){Be(this.#pe,e,!0)}setIsActive(e){this.isActive=e}exit(){this.isActive=!1}};var ii=Sn('<div class="cv-focus-banner-wrapper svelte-1yqpn7e"><div id="cv-exit-focus-banner" data-cv-scroll-offset="" class="svelte-1yqpn7e"><span>You are viewing a focused selection.</span> <button class="svelte-1yqpn7e">Show Full Page</button></div></div>');const ai={hash:"svelte-1yqpn7e",code:".cv-focus-banner-wrapper.svelte-1yqpn7e {position:fixed;top:0;left:0;right:0;z-index:9000;background-color:#0078d4;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);font-family:system-ui, sans-serif;}#cv-exit-focus-banner.svelte-1yqpn7e {color:white;padding:10px 20px;display:flex;align-items:center;justify-content:center;gap:16px;}button.svelte-1yqpn7e {background:white;color:#0078d4;border:none;padding:4px 12px;border-radius:4px;cursor:pointer;font-weight:600;}button.svelte-1yqpn7e:hover {background:#f0f0f0;}"};xn(["click"]);class li{parseForMatch(e){return new URLSearchParams(e.search).has("cv-open")?{type:"OPEN_MODAL",triggerKey:"cv-open",triggerSource:"query"}:"#cv-open"===e.hash?{type:"OPEN_MODAL",triggerKey:"#cv-open",triggerSource:"hash"}:null}getCleanedUrl(e,t){return"OPEN_MODAL"!==t.type?null:ui(e,t)}}class ci{parseForMatch(e){return new URLSearchParams(e.search).has("cv-share")?{type:"START_SHARE",triggerKey:"cv-share",triggerSource:"query"}:"#cv-share"===e.hash?{type:"START_SHARE",triggerKey:"#cv-share",triggerSource:"hash"}:null}getCleanedUrl(e,t){return"START_SHARE"!==t.type||t.mode?null:ui(e,t)}}class di{static SHARE_MODES=["show","hide","highlight"];parseForMatch(e){const t=new URLSearchParams(e.search);for(const n of di.SHARE_MODES){const r=`cv-share-${n}`;if(t.has(r))return{type:"START_SHARE",mode:n,triggerKey:r,triggerSource:"query"};const s=`#cv-share-${n}`;if(e.hash===s)return{type:"START_SHARE",mode:n,triggerKey:s,triggerSource:"hash"}}return null}getCleanedUrl(e,t){return"START_SHARE"===t.type&&t.mode?ui(e,t):null}}function ui(e,t){const n=new URL(e.href);return"query"===t.triggerSource?n.searchParams.delete(t.triggerKey):"hash"===t.triggerSource&&n.hash===t.triggerKey&&(n.hash=""),n.toString()}class hi{static rules=[new li,new ci,new di];static detectAction(e){for(const t of this.rules){const n=t.parseForMatch(e);if(n)return n}return null}static getCleanedUrl(e,t){for(const n of this.rules){const r=n.getCleanedUrl(e,t);if(r)return r}return ui(e,t)}}class pi{options;boundCheck;constructor(e){this.options=e,this.boundCheck=this.checkURLForAction.bind(this)}init(){this.checkURLForAction(),window.addEventListener("popstate",this.boundCheck),window.addEventListener("hashchange",this.boundCheck)}destroy(){window.removeEventListener("popstate",this.boundCheck),window.removeEventListener("hashchange",this.boundCheck)}checkURLForAction(){const e=hi.detectAction(window.location);if(e){"OPEN_MODAL"===e.type?this.options.checkSettingsEnabled()&&this.options.onOpenModal():"START_SHARE"===e.type&&this.options.onStartShare(e.mode);const t=hi.getCleanedUrl(window.location,e);window.history.replaceState({},"",t)}}}class fi{#me=De(!1);get showCallout(){return dn(this.#me)}set showCallout(e){Be(this.#me,e,!0)}#ye=De(!1);get showPulse(){return dn(this.#ye)}set showPulse(e){Be(this.#ye,e,!0)}persistence;getOptions;hasChecked=!1;constructor(e,t){this.persistence=e,this.getOptions="function"==typeof t?t:()=>t}init(e,t){const n=this.getOptions();t&&!this.hasChecked&&n?.show&&e&&(this.hasChecked=!0,this.checkAndShow())}checkAndShow(){this.persistence.isIntroSeen()||setTimeout(()=>{this.showCallout=!0,this.showPulse=!0},1e3)}dismiss(){this.showCallout=!1,this.showPulse=!1,this.persistence.markIntroSeen()}}var vi=Sn('<div class="cv-widget-root" data-cv-share-ignore=""><!> <!> <!> <!> <!> <!></div>');const gi={hash:"svelte-1vlfixd",code:"\n /* Root should allow clicks to pass through to the page unless hitting checking/interactive element */.cv-widget-root {position:fixed;top:0;left:0;width:0;height:0;z-index:9999;pointer-events:none; /* Crucial: Allow clicks to pass through */\n\n /* Light Theme Defaults */--cv-bg: white;--cv-text: rgba(0, 0, 0, 0.9);--cv-text-secondary: rgba(0, 0, 0, 0.6);--cv-border: rgba(0, 0, 0, 0.1);--cv-bg-hover: rgba(0, 0, 0, 0.05);--cv-primary: #3e84f4;--cv-primary-hover: #2563eb;--cv-danger: #dc2626;--cv-danger-bg: rgba(220, 38, 38, 0.1);--cv-shadow: rgba(0, 0, 0, 0.25);--cv-input-bg: white;--cv-input-border: rgba(0, 0, 0, 0.15);--cv-switch-bg: rgba(0, 0, 0, 0.1);--cv-switch-knob: white;--cv-modal-icon-bg: rgba(0, 0, 0, 0.08);--cv-icon-bg: rgba(255, 255, 255, 0.92);--cv-icon-color: rgba(0, 0, 0, 0.9);--cv-focus-ring: rgba(62, 132, 244, 0.2);--cv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);font-family:inherit; /* Inherit font from host */}\n\n /* But interactive children need pointer-events back */.cv-widget-root > * {pointer-events:auto;}\n\n /* Exception: ShareOverlay manages its own pointer events */.cv-widget-root .cv-share-overlay {pointer-events:none; /* Overlay often passes clicks until specialized handles active */}.cv-widget-root[data-theme='dark'] {\n /* Dark Theme Overrides */--cv-bg: #101722;--cv-text: #e2e8f0;--cv-text-secondary: rgba(255, 255, 255, 0.6);--cv-border: rgba(255, 255, 255, 0.1);--cv-bg-hover: rgba(255, 255, 255, 0.05);--cv-primary: #3e84f4;--cv-primary-hover: #60a5fa;--cv-danger: #f87171;--cv-danger-bg: rgba(248, 113, 113, 0.1);--cv-shadow: rgba(0, 0, 0, 0.5);--cv-input-bg: #1e293b;--cv-input-border: rgba(255, 255, 255, 0.1);--cv-switch-bg: rgba(255, 255, 255, 0.1);--cv-switch-knob: #e2e8f0;--cv-modal-icon-bg: rgba(255, 255, 255, 0.08);--cv-icon-bg: #1e293b;--cv-icon-color: #e2e8f0;--cv-focus-ring: rgba(62, 132, 244, 0.5);--cv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);}.cv-hidden {display:none !important;}"};function bi(e,t){ie(t,!0),dr(e,gi);const n=ze(()=>ls.config),r=ze(()=>t.options.settingsEnabled??!0),s=new fi({isIntroSeen:()=>t.callbacks.isIntroSeen(),markIntroSeen:()=>t.callbacks.markIntroSeen()},()=>t.options.callout),o=new pi({onOpenModal:h,onStartShare:v,checkSettingsEnabled:()=>dn(r)});let i=De(!1),a=De(!1),l=De(void 0);const c=ze(()=>dn(n).shareExclusions||{}),d=ze(()=>[...Io,...dn(c).tags||[]]),u=ze(()=>[...Ao,...dn(c).ids||[]]);function h(){dn(r)&&(s.dismiss(),Be(i,!0))}function p(){Be(i,!1)}function f(){Be(a,!0),t.callbacks.resetToDefault(),dn(l)?.resetPosition(),Ks("Settings reset to default"),setTimeout(()=>{Be(a,!1),dn(l)?.resetPosition()},600)}function v(e="show"){p(),Vo.setSelectionMode(e),Vo.toggleActive(!0)}Wn(()=>(o.init(),()=>o.destroy())),yt(()=>{s.init(cs.hasPageElements,dn(r))});const g=ze(()=>dn(r)&&(us.hasMenuOptions||ds.uiOptions.showTabGroups||dn(i)));var b=vi(),m=at(b),y=e=>{{let n=ze(()=>t.options.callout?.message),r=ze(()=>t.options.callout?.enablePulse),o=ze(()=>t.options.callout?.backgroundColor),i=ze(()=>t.options.callout?.textColor);!function(e,t){dr(e,ps);let n=Yr(t,"position",3,"middle-left"),r=Yr(t,"message",3,"Customize your reading experience here."),s=Yr(t,"onclose",3,()=>{}),o=Yr(t,"enablePulse",3,!0),i=Yr(t,"backgroundColor",3,void 0),a=Yr(t,"textColor",3,void 0);var l=hs(),c=at(l);let d;var u=at(c);u.__click=function(...e){s()?.apply(this,e)};var h=ct(u,2),p=at(h,!0);X(h),X(c),X(l),_t(()=>{br(l,1,`cv-callout-wrapper pos-${n()??""}`,"svelte-ysaqmb"),br(c,1,"cv-callout "+(o()?"cv-pulse":""),"svelte-ysaqmb"),d=yr(c,"",d,{"--cv-callout-bg":i(),"--cv-callout-text":a()}),qn(p,r())}),In(e,l)}(e,{get position(){return t.options.icon.position},get message(){return dn(n)},get enablePulse(){return dn(r)},get backgroundColor(){return dn(o)},get textColor(){return dn(i)},onclose:()=>s.dismiss()})}};Yn(m,e=>{s.showCallout&&dn(r)&&e(y)});var w=ct(m,2);Yo(w,{});var x=ct(w,2),k=e=>{si(e,{get excludedTags(){return dn(d)},get excludedIds(){return dn(u)}})};Yn(x,e=>{Vo.isActive&&e(k)});var C=ct(x,2);!function(e,t){function n(){oi.exit()}ie(t,!1),dr(e,ai),Fr();var r=Ln(),s=lt(r),o=e=>{var t=ii(),r=at(t);ct(at(r),2).__click=n,X(r),X(t),lr(3,t,()=>ks,()=>({duration:250})),In(e,t)};Yn(s,e=>{oi.isActive&&e(o)}),In(e,r),ae()}(C,{});var _=ct(C,2),$=e=>{{let n=ze(()=>t.options.icon?.color),r=ze(()=>t.options.icon?.backgroundColor),o=ze(()=>t.options.icon?.opacity),i=ze(()=>t.options.icon?.scale);Vr(gs(e,{get position(){return t.options.icon.position},get title(){return ds.uiOptions.title},get pulse(){return s.showPulse},onclick:h,get iconColor(){return dn(n)},get backgroundColor(){return dn(r)},get opacity(){return dn(o)},get scale(){return dn(i)},get getIconPosition(){return t.callbacks.getIconPosition},get saveIconPosition(){return t.callbacks.saveIconPosition},get clearIconPosition(){return t.callbacks.clearIconPosition}}),e=>Be(l,e,!0),()=>dn(l))}};Yn(_,e=>{dn(g)&&t.options.icon.show&&e($)});var S=ct(_,2),T=e=>{ko(e,{get isResetting(){return dn(a)},onclose:p,onreset:f,onstartShare:v})};Yn(S,e=>{dn(r)&&dn(i)&&e(T)}),X(b),_t(()=>Ir(b,"data-theme",t.options.theme)),In(e,b),ae()}class mi{app=null;options;constructor(e){this.options={callbacks:e.callbacks,container:e.container||document.body,settingsEnabled:e.settingsEnabled??!0,theme:e.panel?.theme||"light",callout:{show:e.callout?.show??!1,message:e.callout?.message||"Customize your reading experience here.",enablePulse:e.callout?.enablePulse??!0,backgroundColor:e.callout?.backgroundColor,textColor:e.callout?.textColor},icon:{position:e.icon?.position||"middle-left",color:e.icon?.color,backgroundColor:e.icon?.backgroundColor,opacity:e.icon?.opacity,scale:e.icon?.scale??1,show:e.icon?.show??!0}}}render(){this.app||(this.app=Un(bi,{target:this.options.container,props:{callbacks:this.options.callbacks,options:this.options}}))}destroy(){this.app&&(Gn(this.app),this.app=null)}}class yi{prefix;constructor(e){this.prefix=e?`${e}-`:""}isStorageAvailable(){return"undefined"!=typeof window&&void 0!==window.localStorage}setItem(e,t){if(this.isStorageAvailable())try{localStorage.setItem(this.getPrefixedKey(e),t)}catch(t){console.warn(`Failed to persist key ${e}:`,t)}}getItem(e){if(!this.isStorageAvailable())return null;try{return localStorage.getItem(this.getPrefixedKey(e))}catch(t){return console.warn(`Failed to get key ${e}:`,t),null}}removeItem(e){if(this.isStorageAvailable())try{localStorage.removeItem(this.getPrefixedKey(e))}catch(t){console.warn(`Failed to remove key ${e}:`,t)}}getPrefixedKey(e){return this.prefix+e}persistState(e){this.setItem("custardUI-state",JSON.stringify(e))}getPersistedState(){const e=this.getItem("custardUI-state");if(!e)return null;try{return JSON.parse(e)}catch(e){return console.error("[CustardUI] Failed to parse persisted state:",e),null}}clearAll(){this.removeItem("custardUI-state"),this.removeItem("cv-tab-navs-visible")}persistTabNavVisibility(e){this.setItem("cv-tab-navs-visible",e?"true":"false")}getPersistedTabNavVisibility(){const e=this.getItem("cv-tab-navs-visible");return null===e?null:"true"===e}hasPersistedData(){return!!this.getPersistedState()}}const wi="cv-adaptation";class xi{static QUERY_PARAM="adapt";static HASH_PREFIX="#/";static async init(e="",t){const n=new yi(t),r=new URL(window.location.href),s=this.getHashAdaptationId(r.hash),o=r.searchParams.get(this.QUERY_PARAM);if("clear"===o)return this.clearStoredId(n),this.hasHashAdaptationId(r.hash)&&this.stripHashFromUrl(r),this.stripQueryParamFromUrl(r),null;const i=this.getMetaAdaptationId()??o??s??n.getItem(wi),a="string"==typeof i?i.trim():i;if(!a)return this.clearStoredId(n),null;const l=await this.loadAdaptationConfig(e,a,n);return l?(null!==o&&(this.hasHashAdaptationId(r.hash)&&r.hash!==this.getHashUrlIndicator(o)&&this.stripHashFromUrl(r),""!==r.hash&&r.hash!==this.getHashUrlIndicator(o)||this.stripQueryParamFromUrl(r)),n.setItem(wi,a),this.applyTheme(l),l):(this.clearStoredId(n),null)}static rewriteUrlIndicator(e){const t=new URL(window.location.href),n=this.getHashUrlIndicator(e);if(t.hash!==n){if(""===t.hash)t.hash=n;else{if(t.searchParams.get(this.QUERY_PARAM)===e)return;t.searchParams.set(this.QUERY_PARAM,e)}history.replaceState({},"",t.toString())}}static applyTheme(e){const t=e.theme;if(t){if(t.cssVariables)for(const[e,n]of Object.entries(t.cssVariables))document.documentElement.style.setProperty(e,n);if(t.cssFile){if(!document.querySelector(`link[data-cv-adaptation-id="${CSS.escape(e.id)}"]`)){const n=document.createElement("link");n.rel="stylesheet",n.href=t.cssFile,n.setAttribute("data-cv-adaptation-id",e.id),document.head.appendChild(n)}}}}static clearStoredId(e){e.removeItem(wi)}static hasHashAdaptationId(e){return e.startsWith(this.HASH_PREFIX)}static getHashAdaptationId(e){if(!this.hasHashAdaptationId(e))return null;const t=e.slice(this.HASH_PREFIX.length);try{return decodeURIComponent(t)}catch{return t}}static getHashUrlIndicator(e){return`${this.HASH_PREFIX}${encodeURIComponent(e)}`}static getMetaAdaptationId(){return document.querySelector('meta[name="cv-adapt"]')?.content||null}static stripQueryParamFromUrl(e){e.searchParams.delete(this.QUERY_PARAM),history.replaceState({},"",e.toString())}static stripHashFromUrl(e){e.hash="",history.replaceState({},"",e.toString())}static async loadAdaptationConfig(e,t,n){try{if(!t||""===t.trim())return null;const r=encodeURIComponent(t.trim()),s=`${r}/${r}.json`,o=e.endsWith("/")?e:`${e}/`,i=new URL(s,new URL(o,window.location.origin)).toString(),a=await fetch(i);if(!a.ok)return console.warn(`[CustardUI] Adaptation "${t}" could not be loaded (HTTP ${a.status}). Clearing stored adaptation.`),this.clearStoredId(n),null;const l=await a.json();return l.id!==t?(console.warn(`[CustardUI] Adaptation config ID mismatch: expected "${t}", got "${l.id}". Clearing stored adaptation.`),this.clearStoredId(n),null):l}catch(e){return console.warn(`[CustardUI] Adaptation "${t}" failed to fetch:`,e,"Clearing stored adaptation."),this.clearStoredId(n),null}}}var ki=Sn('<div class="cv-context-divider svelte-1a535nn" role="button" tabindex="0"> </div>');const Ci={hash:"svelte-1a535nn",code:".cv-context-divider.svelte-1a535nn {padding:12px;margin:16px 0;background-color:#f8f8f8;border-top:1px dashed #ccc;border-bottom:1px dashed #ccc;color:#555;text-align:center;cursor:pointer;font-family:system-ui, sans-serif;font-size:13px;transition:background-color 0.2s;}.cv-context-divider.svelte-1a535nn:hover {background-color:#e8e8e8;color:#333;}"};function _i(e,t){ie(t,!0),dr(e,Ci);let n=Yr(t,"hiddenCount",3,0);function r(){t.onExpand&&t.onExpand()}var s=ki();s.__click=r,s.__keydown=e=>"Enter"===e.key&&r();var o=at(s);X(s),_t(()=>qn(o,`... ${n()??""} section${n()>1?"s":""} hidden (Click to expand) ...`)),In(e,s),ae()}xn(["click","keydown"]);var $i=Sn('<div class="cv-highlight-box svelte-1mz0neo"></div> <div> </div>',1),Si=Sn('<div class="cv-highlight-overlay svelte-1mz0neo"></div>');const Ti={hash:"svelte-1mz0neo",code:'.cv-highlight-overlay.svelte-1mz0neo {position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:8000;overflow:visible;}.cv-highlight-box.svelte-1mz0neo {position:absolute;\n /* Slightly thicker border looks more like a marker stroke */border:5px solid #d13438;box-sizing:border-box;\n\n /* Top-Left: 5px (Sharp)\n Top-Right: 80px\n Bottom-Right: 40px\n Bottom-Left: 100px\n (Separated by the slash for organic asymmetry)\n Horizontal Radius / Vertical Radius\n */border-radius:200px 15px 225px 15px / 15px 225px 15px 255px;\n\n /* A subtle transform to make it look slightly tilted/imperfect */transform:rotate(-0.5deg);\n\n /* Balanced shadows from before, but adjusted for the wobble */box-shadow:0 6px 15px rgba(0, 0, 0, 0.13),\n /* The inset shadow now follows the wobbly border-radius */ inset 0 0 8px 1px\n rgba(0, 0, 0, 0.12);pointer-events:none;\n /* Smoother rendering for the wobbled edges */backface-visibility:hidden;opacity:0.92;}.cv-highlight-arrow.svelte-1mz0neo {position:absolute;font-size:35px; /* Slightly larger for the "marker" feel */color:#d13438;font-weight:bold;width:40px;height:40px;line-height:40px;text-align:center;\n\n /* Hand-drawn style for the arrow: \n 1. Slight tilt to match the box\n 2. Multi-layer drop shadow to match the box\'s elevation \n */transform:rotate(3deg);filter:drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.15)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));}\n\n /* Animations set to run 4 times and stop (forwards) */.cv-highlight-arrow.left.svelte-1mz0neo {\n animation: svelte-1mz0neo-floatArrowLeft 1.5s 4 forwards;}.cv-highlight-arrow.right.svelte-1mz0neo {\n animation: svelte-1mz0neo-floatArrowRight 1.5s 4 forwards;}.cv-highlight-arrow.top.svelte-1mz0neo {\n animation: svelte-1mz0neo-floatArrowTop 1.5s 4 forwards;}.cv-highlight-arrow.bottom.svelte-1mz0neo {\n animation: svelte-1mz0neo-floatArrowBottom 1.5s 4 forwards;}\n\n @keyframes svelte-1mz0neo-floatArrowLeft {\n 0%,\n 100% {\n transform: translateX(0);\n }\n 50% {\n transform: translateX(-10px);\n }\n }\n @keyframes svelte-1mz0neo-floatArrowRight {\n 0%,\n 100% {\n transform: translateX(0);\n }\n 50% {\n transform: translateX(10px);\n }\n }\n @keyframes svelte-1mz0neo-floatArrowTop {\n 0%,\n 100% {\n transform: translate(-50%, 0);\n }\n 50% {\n transform: translate(-50%, -10px);\n }\n }\n @keyframes svelte-1mz0neo-floatArrowBottom {\n 0%,\n 100% {\n transform: translate(-50%, 0);\n }\n 50% {\n transform: translate(-50%, 10px);\n }\n }'};function Ei(e,t){ie(t,!0),dr(e,Ti);let n=ze(()=>t.box.rects);var r=Si();Xn(r,21,()=>dn(n),e=>`${e.top}-${e.left}-${e.width}-${e.height}`,(e,t)=>{const n=ze(()=>function(e){const t=window.innerWidth,n=e.left-(window.pageXOffset||document.documentElement.scrollLeft);return n>=50?"left":t-(n+e.width)>=50?"right":e.top-(window.pageYOffset||document.documentElement.scrollTop)>=50?"top":"bottom"}(dn(t)));var r=$i(),s=lt(r),o=ct(s,2),i=at(o,!0);X(o),_t((e,r)=>{yr(s,`top: ${dn(t).top??""}px; left: ${dn(t).left??""}px; width: ${dn(t).width??""}px; height: ${dn(t).height??""}px;`),br(o,1,`cv-highlight-arrow ${dn(n)??""}`,"svelte-1mz0neo"),yr(o,e),qn(i,r)},[()=>function(e,t){let n="";return n="left"===t?`top: ${e.top}px; left: ${e.left-40}px;`:"right"===t?`top: ${e.top}px; left: ${e.left+e.width+10}px;`:"top"===t?`top: ${e.top-40}px; left: ${e.left+e.width/2-15}px;`:`top: ${e.top+e.height+10}px; left: ${e.left+e.width/2-15}px;`,n}(dn(t),dn(n)),()=>function(e){switch(e){case"left":return"→";case"right":return"←";case"top":return"↓";case"bottom":return"↑"}return""}(dn(n))]),In(e,r)}),X(r),In(e,r),ae()}function Li(e,t,n,r,s){if(0===t.length)return;let o=1/0,i=1/0,a=-1/0,l=-1/0;t.forEach(e=>{const t=n(e),c=t.top+r,d=t.left+s,u=d+t.width,h=c+t.height;c<o&&(o=c),d<i&&(i=d),u>a&&(a=u),h>l&&(l=h)});const c=10;e.push({top:o-c,left:i-c,width:a-i+20,height:l-o+20,right:a+c,bottom:l+c,element:t[0]})}const Ii="cv-highlight",Ai="cv-highlight-mode",Pi="cv-highlight-overlay";class Mi{#we=De(Ke([]));get rects(){return dn(this.#we)}set rects(e){Be(this.#we,e,!0)}}class Hi{rootEl;overlayApp;state=new Mi;resizeObserver;activeTargets=[];onWindowResize=()=>this.updatePositions();constructor(e){this.rootEl=e,this.resizeObserver=new ResizeObserver(()=>{this.updatePositions()})}apply(e){const t=To(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Lo(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return Ks("Some highlighted sections could not be found."),void this.exit();n.length<t.length&&Ks("Some highlighted sections could not be found."),oi.setIsActive(!0),document.body.classList.add(Ai),this.activeTargets=n,this.activeTargets.forEach(e=>this.resizeObserver.observe(e)),this.resizeObserver.observe(document.body),window.addEventListener("resize",this.onWindowResize),this.renderHighlightOverlay();const r=n[0];r&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{Js(r)})})}exit(){document.body.classList.remove(Ai),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.onWindowResize),this.activeTargets=[],this.state.rects=[];const e=document.getElementById(Pi);this.overlayApp&&(Gn(this.overlayApp),this.overlayApp=void 0),e&&e.remove()}renderHighlightOverlay(){let e=document.getElementById(Pi);e||(e=document.createElement("div"),e.id=Pi,document.body.appendChild(e)),e.innerHTML="",this.updatePositions(),this.overlayApp&&Gn(this.overlayApp),this.overlayApp=Un(Ei,{target:e,props:{box:this.state}})}updatePositions(){if(0===this.activeTargets.length)return void(this.state.rects=[]);const e=function(e){const t=new rs;return e.forEach(e=>{const n=e.parentElement||document.body;t.has(n)||t.set(n,[]),t.get(n).push(e)}),t}(this.activeTargets);this.state.rects=function(e,t,n){const r=[],{scrollTop:s,scrollLeft:o}=n();for(const[n,i]of e){if(0===i.length)continue;if(1===i.length){Li(r,i,t,s,o);continue}const e=new ns(i);let a=[];const l=Array.from(n.children);for(const n of l)n instanceof HTMLElement&&e.has(n)?a.push(n):a.length>0&&(Li(r,a,t,s,o),a=[]);a.length>0&&Li(r,a,t,s,o)}return r}(e,e=>e.getBoundingClientRect(),()=>({scrollTop:window.pageYOffset||document.documentElement.scrollTop,scrollLeft:window.pageXOffset||document.documentElement.scrollLeft}))}}const zi="cv-show",Ri="cv-hide",Oi="cv-show-mode",ji="cv-hidden",qi="cv-show-element";class Ui{rootEl;hiddenElements=new ns;dividers=new ns;excludedTags;excludedIds;unsubscribe;highlightService;constructor(e,t){this.rootEl=e;const n=t.shareExclusions?.tags||[],r=t.shareExclusions?.ids||[];this.excludedTags=new ns([...Io,...n].map(e=>e.toUpperCase())),this.excludedIds=new ns([...Ao,...r]),this.highlightService=new Hi(this.rootEl),this.unsubscribe=xt(()=>{yt(()=>{oi.isActive||!document.body.classList.contains(Oi)&&!document.body.classList.contains(Ai)||this.exitShowMode(!1)})}),window.addEventListener("popstate",this.handlePopState),this.applyModesFromUrl()}handlePopState=()=>{this.applyModesFromUrl()};applyModesFromUrl(){const e=new URL(window.location.href),t=e.searchParams.get(zi),n=e.searchParams.get(Ri),r=e.searchParams.get(Ii);t?this.applyShowMode(t):n?this.applyHideMode(n):r?this.applyHighlightMode(r):(document.body.classList.contains(Oi)||document.body.classList.contains(Ai))&&this.exitShowMode(!1)}applyShowMode(e){(document.body.classList.contains(Oi)||document.body.classList.contains(Ai))&&this.exitShowMode(!1);const t=To(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Lo(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return Ks("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&Ks("Some shared sections could not be found."),oi.setIsActive(!0),document.body.classList.add(Oi),this.renderShowView(n)}applyHideMode(e){(document.body.classList.contains(Oi)||document.body.classList.contains(Ai))&&this.exitShowMode(!1);const t=To(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Lo(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return Ks("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&Ks("Some shared sections could not be found."),oi.setIsActive(!0),document.body.classList.add(Oi),this.renderHiddenView(n)}applyHighlightMode(e){(document.body.classList.contains(Oi)||document.body.classList.contains(Ai))&&this.exitShowMode(!1),this.highlightService.apply(e)}renderHiddenView(e){e.forEach(e=>{e.classList.add(ji),this.hiddenElements.add(e)});const t=new ns;e.forEach(e=>{const n=e.parentElement;n&&!t.has(n)&&(this.insertDividersForContainer(n),t.add(n))})}renderShowView(e){e.forEach(e=>e.classList.add(qi));const t=function(e,t,n){const r=new ns,s=new Set;e.forEach(e=>{let n=e;for(;n&&n!==t&&n.parentElement;)s.add(n),n=n.parentElement;n===t&&s.add(t)});const o=new Set(e);return s.forEach(e=>{if(e===t)return void Array.from(t.children).forEach(e=>{e instanceof HTMLElement&&!s.has(e)&&(n(e)||r.add(e))});const i=e.parentElement;i&&o.has(i)||i&&s.has(i)&&Array.from(i.children).forEach(e=>{e instanceof HTMLElement&&!s.has(e)&&(n(e)||r.add(e))})}),r}(e,document.body,e=>function(e,t){return!!(t.hiddenElements.has(e)||t.excludedTags.has(e.tagName.toUpperCase())||e.id&&t.excludedIds.has(e.id)||"true"===e.getAttribute("aria-hidden")||e.closest(".toast-container")||"cv-exit-focus-banner"===e.id||e.classList.contains("cv-settings-icon")||e.classList.contains("cv-widget-root")||e.closest(`[${Po}]`))}(e,{hiddenElements:this.hiddenElements,excludedTags:this.excludedTags,excludedIds:this.excludedIds}));t.forEach(e=>{e.classList.add(ji),this.hiddenElements.add(e)});const n=new ns;e.forEach(e=>{let t=e;for(;t&&t!==document.body&&t!==document.documentElement;)n.add(t),t=t.parentElement});const r=new ns;n.forEach(e=>{const t=e.parentElement;t&&!r.has(t)&&(this.insertDividersForContainer(t),r.add(t))})}insertDividersForContainer(e){const t=function(e,t){const n=[];let r=0,s=null;return e.forEach(e=>{t(e)?(0===r&&(s=e),r++):r>0&&s&&(n.push({insertBefore:e,startNode:s,count:r}),r=0,s=null)}),r>0&&s&&n.push({insertBefore:s,startNode:s,count:r}),n}(Array.from(e.children),e=>e.classList.contains(ji));t.forEach(t=>{this.createDivider(e,t.startNode,t.count)})}createDivider(e,t,n){const r=document.createElement("div");r.className="cv-divider-wrapper",e.insertBefore(r,t);const s=Un(_i,{target:r,props:{hiddenCount:n,onExpand:()=>{this.expandContext(t,n,s,r)}}});this.dividers.add(s)}expandContext(e,t,n,r){let s=e,o=0;for(;s&&o<t;)s instanceof HTMLElement&&s.classList.contains(ji)&&(s.classList.remove(ji),this.hiddenElements.delete(s)),s=s.nextElementSibling,o++;Gn(n),this.dividers.delete(n),r.remove(),0===this.hiddenElements.size&&oi.exit()}exitShowMode(e=!0){document.body.classList.remove(Oi,Ai),this.hiddenElements.forEach(e=>e.classList.remove(ji)),this.hiddenElements.clear(),this.dividers.forEach(e=>Gn(e)),this.dividers.clear(),document.querySelectorAll(".cv-divider-wrapper").forEach(e=>e.remove());if(document.querySelectorAll(`.${qi}`).forEach(e=>e.classList.remove(qi)),this.highlightService.exit(),oi.isActive&&oi.setIsActive(!1),e){const e=new URL(window.location.href);let t=!1;e.searchParams.has(zi)&&(e.searchParams.delete(zi),t=!0),e.searchParams.has(Ri)&&(e.searchParams.delete(Ri),t=!0),e.searchParams.has(Ii)&&(e.searchParams.delete(Ii),t=!0),t&&window.history.replaceState({},"",e.toString())}}destroy(){this.exitShowMode(),this.unsubscribe(),window.removeEventListener("popstate",this.handlePopState)}}const Ni=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/g,Vi=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/;class Fi{static scanAndHydrate(e){this.scanTextNodes(e),this.scanAttributeBindings(e)}static updateAll(e){this.updateAttributeBindings(e)}static scanTextNodes(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:e=>e.parentElement&&["SCRIPT","STYLE"].includes(e.parentElement.tagName)||e.parentElement&&"CV-PLACEHOLDER"===e.parentElement.tagName?NodeFilter.FILTER_REJECT:Vi.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);t.forEach(e=>{Fi.processTextNode(e)})}static scanAttributeBindings(e){e.querySelectorAll(".cv-bind, [data-cv-bind]").forEach(e=>{e instanceof HTMLElement&&Fi.processElementAttributes(e)})}static processTextNode(e){const t=e.nodeValue||"";let n,r=0;const s=document.createDocumentFragment();let o=!1;for(Ni.lastIndex=0;null!==(n=Ni.exec(t));){o=!0;const[e,i,a,l]=n,c=n.index;if(a){if(c>r&&s.appendChild(document.createTextNode(t.slice(r,c))),i)s.appendChild(document.createTextNode(e.slice(1)));else{const e=document.createElement("cv-placeholder");e.setAttribute("name",a),l&&e.setAttribute("fallback",l),s.appendChild(e),cs.registerPlaceholder(a)}r=Ni.lastIndex}}o&&(r<t.length&&s.appendChild(document.createTextNode(t.slice(r))),e.replaceWith(s))}static processElementAttributes(e){if(e.dataset.cvAttrTemplates)return;const t={};let n=!1;for(const r of Array.from(e.attributes))"data-cv-bind"!==r.name&&"data-cv-attr-templates"!==r.name&&"class"!==r.name&&Vi.test(r.value)&&(t[r.name]=r.value,n=!0);if(n){e.dataset.cvAttrTemplates=JSON.stringify(t);const n=new RegExp(Ni.source,"g");Object.values(t).forEach(e=>{let t;for(n.lastIndex=0;null!==(t=n.exec(e));)!t[1]&&t[2]&&cs.registerPlaceholder(t[2])})}}static updateAttributeBindings(e){document.querySelectorAll("[data-cv-attr-templates]").forEach(t=>{if(t instanceof HTMLElement)try{const n=JSON.parse(t.dataset.cvAttrTemplates||"{}");Object.entries(n).forEach(([n,r])=>{const s=Fi.interpolateString(r,e,n);t.setAttribute(n,s)})}catch(e){console.warn("Failed to parse cv-attr-templates",e)}})}static isFullUrl(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)}static isRelativeUrl(e){return e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}static resolveValue(e,t,n){const r=n[e],s=ss.get(e),o=s?.defaultValue;return void 0!==r&&""!==r?r:t||(void 0!==o&&""!==o?o:void 0)}static interpolateString(e,t,n){return e.replace(Ni,(e,r,s,o)=>{if(r)return`[[${s}]]`;let i=Fi.resolveValue(s,o,t);return void 0===i?`[[${s}]]`:(!n||"href"!==n&&"src"!==n||Fi.isFullUrl(i)||Fi.isRelativeUrl(i)||(i=encodeURIComponent(i)),i)})}}const Di=new class{#xe=De(null);get activeConfig(){return dn(this.#xe)}set activeConfig(e){Be(this.#xe,e,!0)}init(e){this.activeConfig=e}};class Gi{rootEl;persistenceManager;focusService;observer;destroyEffectRoot;onHashChange;constructor(e){this.rootEl=e.rootEl||document.body,this.persistenceManager=new yi(e.storageKey),this.initStores(e.configFile),Di.init(e.adaptationConfig??null),us.setAssetsManager(e.assetsManager),this.resolveInitialState(e.adaptationConfig??null),this.focusService=new Ui(this.rootEl,{shareExclusions:e.configFile.config?.shareExclusions||{}})}initStores(e){const t=e.config||{},n=e.settings?.panel||{};os.registerConfigPlaceholders(t),ls.init(t),os.registerTabGroupPlaceholders(t),ds.setUIOptions({showTabGroups:n.showTabGroups??!0,showReset:n.showReset??!0,title:n.title??"Customize View",description:n.description??""})}resolveInitialState(e){e?.defaults&&ls.applyAdaptationDefaults(e.defaults);const t=this.persistenceManager.getPersistedState();t&&ls.applyState(t);const n=Ys.parseURL();n&&(ls.applyDifferenceInState(n),Ys.clearURL());const r=this.persistenceManager.getPersistedTabNavVisibility();null!==r&&(ds.isTabGroupNavHeadingVisible=r)}start(){this.scanDOM(),this.startComponentObserver(),this.startGlobalReactivity()}scanDOM(){cs.clearDetectedPlaceholders(),Fi.scanAndHydrate(this.rootEl)}startGlobalReactivity(){this.destroyEffectRoot=xt(()=>{yt(()=>{this.persistenceManager.persistState(ls.state),this.persistenceManager.persistTabNavVisibility(ds.isTabGroupNavHeadingVisible)}),yt(()=>{Fi.updateAll(ls.state.placeholders??{})})});const e=Di.activeConfig?.id;e&&(this.onHashChange=()=>{xi.rewriteUrlIndicator(e)},window.addEventListener("hashchange",this.onHashChange))}startComponentObserver(){this.observer=new MutationObserver(e=>{for(const t of e)"childList"===t.type&&t.addedNodes.forEach(e=>this.handleForPlaceholders(e))}),this.observer.observe(this.rootEl,{childList:!0,subtree:!0})}handleForPlaceholders(e){if(e.nodeType===Node.ELEMENT_NODE){const t=e;if("CV-PLACEHOLDER"===t.tagName||"CV-PLACEHOLDER-INPUT"===t.tagName)return}e.nodeType===Node.ELEMENT_NODE?Fi.scanAndHydrate(e):e.nodeType===Node.TEXT_NODE&&e.parentElement&&e.nodeValue?.includes("[[")&&e.nodeValue?.includes("]]")&&Fi.scanAndHydrate(e.parentElement)}resetToDefault(){this.persistenceManager.clearAll(),ls.reset(),ds.reset(),ds.isTabGroupNavHeadingVisible=!0}getIconPosition(){const e=this.persistenceManager.getItem("cv-settings-icon-offset");return e?parseFloat(e):null}saveIconPosition(e){this.persistenceManager.setItem("cv-settings-icon-offset",e.toString())}clearIconPosition(){this.persistenceManager.removeItem("cv-settings-icon-offset")}isIntroSeen(){return!!this.persistenceManager.getItem("cv-intro-shown")}markIntroSeen(){this.persistenceManager.setItem("cv-intro-shown","true")}destroy(){this.observer?.disconnect(),this.destroyEffectRoot?.(),this.focusService.destroy(),this.onHashChange&&window.removeEventListener("hashchange",this.onHashChange)}}class Bi{assets;baseURL;constructor(e,t=""){this.assets=e,this.baseURL=t,this.validate()||console.warn("Invalid assets:",this.assets)}validate(){return Object.values(this.assets).every(e=>e.src||e.content)}get(e){const t=this.assets[e];if(t)return this.baseURL&&t.src?{...t,src:this.prependBaseURL(t.src)}:t}prependBaseURL(e){if(e.startsWith("http://")||e.startsWith("https://"))return e;return(this.baseURL.endsWith("/")?this.baseURL.slice(0,-1):this.baseURL)+(e.startsWith("/")?e:"/"+e)}loadFromJSON(e){this.assets=e}loadAdditionalAssets(e){this.assets={...this.assets,...e}}}var Wi=Tn('<svg><polyline points="6 9 12 15 18 9"></polyline></svg>');var Yi=Tn('<svg><polyline points="18 15 12 9 6 15"></polyline></svg>');function Zi(e,t,n){const r=n.get(t);if(!r)return;const s=r.type||function(e){return e.src?"image":e.content&&/<[^>]+>/.test(e.content)?"html":"text"}(r);switch(s){case"image":!function(e,t){if(!t.src)return;e.innerHTML="";const n=document.createElement("img");n.src=t.src,n.alt=t.alt||"",t.className&&(n.className=t.className),t.style&&n.setAttribute("style",t.style),n.style.maxWidth=n.style.maxWidth||"100%",n.style.height=n.style.height||"auto",n.style.display=n.style.display||"block",e.appendChild(n)}(e,r);break;case"text":!function(e,t){null!=t.content&&(e.textContent=t.content),t.className&&(e.className=t.className),t.style&&e.setAttribute("style",t.style)}(e,r);break;case"html":!function(e,t){null!=t.content&&(e.innerHTML=t.content),t.className&&(e.className=t.className),t.style&&e.setAttribute("style",t.style)}(e,r);break;default:e.innerHTML=r.content||String(r),console.warn("[Custard] Unknown asset type:",s)}}var Ki=Sn('<div class="cv-toggle-label svelte-1ka2eec"> </div>'),Xi=Sn('<button class="cv-expand-btn svelte-1ka2eec"><!></button>'),Ji=Sn('<div><!> <div class="cv-toggle-content svelte-1ka2eec"><div class="cv-toggle-inner svelte-1ka2eec"><!></div></div> <!></div>');const Qi={hash:"svelte-1ka2eec",code:":host {display:block;position:relative;z-index:1;overflow:visible;}\n\n /* Host visibility control */:host([hidden]) {display:none;}.cv-toggle-wrapper.svelte-1ka2eec {position:relative;width:100%;transition:all 0.3s ease;margin-bottom:4px;}.cv-toggle-wrapper.hidden.svelte-1ka2eec {margin-bottom:0;}.cv-toggle-wrapper.peek-mode.svelte-1ka2eec {margin-bottom:24px;}.cv-toggle-content.svelte-1ka2eec {overflow:hidden;transition:max-height 0.3s ease,\n opacity 0.3s ease,\n overflow 0s 0s;\n /* CSS max-height defaults are handled by inline styles now */}.cv-toggle-inner.svelte-1ka2eec {display:flow-root; /* Ensures margins of children are contained */}\n\n /* Hidden State */.hidden.svelte-1ka2eec .cv-toggle-content:where(.svelte-1ka2eec) {opacity:0;pointer-events:none;}\n\n /* Bordered State */.has-border.svelte-1ka2eec {box-sizing:border-box; /* Ensure padding/border doesn't increase width */\n\n /* Dashed border */border:2px dashed rgba(0, 0, 0, 0.15);border-bottom:none;\n\n /* Inner shadow to look like it's going into something + outer shadow */box-shadow:0 2px 8px rgba(0, 0, 0, 0.05),\n /* Subtle outer */ inset 0 -15px 10px -10px rgba(0, 0, 0, 0.1); /* Inner bottom shadow */border-radius:8px 8px 0 0;padding:12px 0 0 0; /* bottom 0 px until expanded */margin-top:4px;}\n\n /* Visible / Expanded State */.expanded.svelte-1ka2eec .cv-toggle-content:where(.svelte-1ka2eec) {opacity:1;transform:translateY(0);overflow:visible;transition:max-height 0.3s ease,\n opacity 0.3s ease,\n overflow 0s 0.3s;}\n\n /* When expanded, complete the border */.has-border.expanded.svelte-1ka2eec {border-bottom:2px dashed rgba(0, 0, 0, 0.15);border-radius:8px; /* Round all corners */padding-bottom:12px;box-shadow:0 2px 8px rgba(0, 0, 0, 0.05); /* Remove inner shadow when expanded */}\n\n /* Peek State */.peeking.svelte-1ka2eec .cv-toggle-content:where(.svelte-1ka2eec) {opacity:1;\n /* Mask for fade out effect */mask-image:linear-gradient(to bottom, black 50%, transparent 100%);-webkit-mask-image:linear-gradient(to bottom, black 50%, transparent 100%);}\n\n /* Label Style */.cv-toggle-label.svelte-1ka2eec {position:absolute;top:-12px;left:0;background:#e0e0e0;color:#333;font-size:0.75rem;font-weight:600;padding:2px 8px;border-radius:4px;z-index:10;pointer-events:auto;box-shadow:0 1px 2px rgba(0, 0, 0, 0.1);}\n\n /* Adjust label position if bordered */.has-border.svelte-1ka2eec .cv-toggle-label:where(.svelte-1ka2eec) {top:-10px;left:0;}\n\n /* Expand Button */.cv-expand-btn.svelte-1ka2eec {position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);display:flex;background:transparent;border:none;border-radius:50%;padding:4px;width:32px;height:32px;cursor:pointer;z-index:100;align-items:center;justify-content:center;color:#888;transition:all 0.2s ease;}.cv-expand-btn.svelte-1ka2eec:hover {background:rgba(0, 0, 0, 0.05);color:#000;transform:translateX(-50%) scale(1.1);}\n\n /* Accessing SVG inside button - might need :global if SVG is injected as HTML or just plain styles since it adheres to current scope */.cv-expand-btn.svelte-1ka2eec svg {display:block;opacity:0.6;width:24px;height:24px;transition:opacity 0.2s;}.cv-expand-btn.svelte-1ka2eec:hover svg {opacity:1;}"};xn(["click"]),customElements.define("cv-toggle",Jr(function(e,t){ie(t,!0),dr(e,Qi);let n=Yr(t,"toggleId",7,""),r=Yr(t,"assetId",7,""),s=Yr(t,"showPeekBorder",7,!1),o=Yr(t,"showLabel",7,!1),i=ze(()=>(n()||"").split(/\s+/).filter(Boolean)),a=ze(()=>ls.config.toggles?.find(e=>e.toggleId===dn(i)[0]));yt(()=>{dn(i).forEach(e=>cs.registerToggle(e))});let l,c,d=ze(()=>dn(a)?dn(a).label||dn(i)[0]:""),u=De(!1),h=De(!1),p=De(!1),f=De(0),v=ze(()=>{if(!ls.config.toggles)return!0;const e=ls.state.shownToggles??[];return dn(i).some(t=>e.includes(t))}),g=ze(()=>{const e=ls.state.peekToggles??[];return!dn(v)&&dn(i).some(t=>e.includes(t))}),b=De(!1);yt(()=>{if(!l)return;const e=new ResizeObserver(()=>{c&&Be(f,c.offsetHeight,!0),dn(f)>0&&(dn(f)<=70?Be(b,!0):dn(b)||Be(b,!1))});return c&&(e.observe(c),Be(f,c.offsetHeight,!0)),()=>{e.disconnect()}});let m=ze(()=>dn(v)||dn(g)&&dn(u)||dn(g)&&dn(b));yt(()=>{dn(m),Be(h,!1)});let y=ze(()=>!dn(v)&&dn(g)&&!dn(u)&&!dn(b)),w=ze(()=>!dn(v)&&!dn(g)),x=ze(()=>dn(w)?"0px":dn(h)&&dn(m)?"none":dn(y)?"70px":dn(m)?dn(f)>0?`${dn(f)}px`:"9999px":"0px");function k(e){e.stopPropagation(),Be(u,!dn(u))}yt(()=>{dn(m)&&r()&&!dn(p)&&us.assetsManager&&l&&(Zi(l,r(),us.assetsManager),Be(p,!0))});var C={get toggleId(){return n()},set toggleId(e=""){n(e),Ce()},get assetId(){return r()},set assetId(e=""){r(e),Ce()},get showPeekBorder(){return s()},set showPeekBorder(e=!1){s(e),Ce()},get showLabel(){return o()},set showLabel(e=!1){o(e),Ce()}},_=Ji();let $;var S=at(_),T=e=>{var t=Ki(),n=at(t,!0);X(t),_t(()=>qn(n,dn(d))),In(e,t)};Yn(S,e=>{o()&&dn(d)&&!dn(w)&&e(T)});var E=ct(S,2);let L;var I=at(E);tr(at(I),t,"default",{}),X(I),Vr(I,e=>c=e,()=>c),X(E),Vr(E,e=>l=e,()=>l);var A=ct(E,2),P=e=>{var t=Xi();t.__click=k;var n=at(t),r=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Yi();Ar(r,()=>({viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...n})),In(e,r)}(e,{})},s=e=>{!function(e,t){let n=Wr(t,["$$slots","$$events","$$legacy"]);var r=Wi();Ar(r,()=>({viewBox:"0 0 24 24",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",...n})),In(e,r)}(e,{})};Yn(n,e=>{dn(u)?e(r):e(s,!1)}),X(t),_t(()=>Ir(t,"aria-label",dn(u)?"Collapse content":"Expand content")),In(e,t)};return Yn(A,e=>{dn(g)&&!dn(b)&&e(P)}),X(_),_t(()=>{$=br(_,1,"cv-toggle-wrapper svelte-1ka2eec",null,$,{expanded:dn(m)&&!dn(y),peeking:dn(y),"peek-mode":dn(g),hidden:dn(w),"has-border":s()&&dn(g)}),L=yr(E,"",L,{"max-height":dn(x)})}),wn("transitionend",E,function(e){"max-height"===e.propertyName&&e.target===l&&dn(m)&&Be(h,!0)}),In(e,_),ae(C)},{toggleId:{attribute:"toggle-id",reflect:!0,type:"String"},assetId:{attribute:"asset-id",reflect:!0,type:"String"},showPeekBorder:{attribute:"show-peek-border",reflect:!0,type:"Boolean"},showLabel:{attribute:"show-label",reflect:!0,type:"Boolean"}},["default"],[],!0));var ea=Sn("<div><!></div>");const ta={hash:"svelte-8qj5x2",code:":host {display:block;}:host(.cv-hidden) {display:none !important;}:host(.cv-visible) {display:block !important;}:host([active='true']) {display:block;}.cv-tab-content.svelte-8qj5x2 {display:none;\n animation: svelte-8qj5x2-fade-in 0.2s ease-in-out;padding-top:1rem;padding-bottom:0.5rem;padding-left:0;padding-right:0;}.cv-tab-content.active.svelte-8qj5x2 {display:block;}\n\n /* Hide cv-tab-header source element; content is extracted to nav link */.svelte-8qj5x2::slotted(cv-tab-header) {display:none !important;}\n\n /* Allow cv-tab-body to flow naturally */.svelte-8qj5x2::slotted(cv-tab-body) {display:block;}\n\n @keyframes svelte-8qj5x2-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }"};customElements.define("cv-tab",Jr(function(e,t){ie(t,!0),dr(e,ta);let n=Yr(t,"active",7,!1);var r={get active(){return n()},set active(e=!1){n(e),Ce()}},s=ea();let o;return tr(at(s),t,"default",{}),X(s),_t(()=>o=br(s,1,"cv-tab-content svelte-8qj5x2",null,o,{active:n()})),In(e,s),ae(r)},{tabId:{attribute:"tab-id",reflect:!0,type:"String"},header:{attribute:"header",reflect:!0,type:"String"},active:{}},["default"],[],!0));var na=Tn('<svg><g transform="rotate(45 8 8)"><path d="M10.5 2H12V0H4V2H5.5V6L4 7.5V9H7.2V15H8.8V9H12V7.5L10.5 6V2Z"></path></g></svg>');var ra=Sn('<li class="nav-item svelte-1ujqpe3"><a role="tab" title="Double-click a tab to \'pin\' it in all similar tab groups."><span class="cv-tab-header-container svelte-1ujqpe3"><span class="cv-tab-header-text svelte-1ujqpe3"><!></span> <span class="cv-tab-pin-icon svelte-1ujqpe3"><!></span></span></a></li>'),sa=Sn('<ul class="cv-tabs-nav nav-tabs svelte-1ujqpe3" role="tablist"></ul>'),oa=Sn('<link rel="stylesheet"/>'),ia=Sn('<div class="cv-tabgroup-container"><!> <!> <div class="cv-tabgroup-content"><!></div> <div class="cv-tabgroup-bottom-border svelte-1ujqpe3"></div></div>');const aa={hash:"svelte-1ujqpe3",code:":host {display:block;margin-bottom:24px;}\n\n /* Tab navigation styles */ul.nav-tabs.svelte-1ujqpe3 {display:flex;flex-wrap:wrap;padding-left:0;margin-top:0.5rem;margin-bottom:0;list-style:none;border-bottom:1px solid #dee2e6;align-items:stretch;}.nav-item.svelte-1ujqpe3 {margin-bottom:-1px;list-style:none;display:flex;align-items:stretch;}.nav-link.svelte-1ujqpe3 {display:flex;align-items:center;justify-content:center;padding:0.5rem 1rem;color:#495057;text-decoration:none;background-color:transparent;border:1px solid transparent;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;transition:color 0.15s ease-in-out,\n background-color 0.15s ease-in-out,\n border-color 0.15s ease-in-out;cursor:pointer;min-height:2.5rem;box-sizing:border-box;}.nav-link.svelte-1ujqpe3 p {margin:0;display:inline;}.nav-link.svelte-1ujqpe3:hover,\n .nav-link.svelte-1ujqpe3:focus {border-color:#e9ecef #e9ecef #dee2e6;isolation:isolate;}.nav-link.active.svelte-1ujqpe3 {color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff;}.nav-link.svelte-1ujqpe3:focus {outline:0;}.cv-tab-header-container.svelte-1ujqpe3 {display:flex;align-items:center;gap:6px;}.cv-tab-header-text.svelte-1ujqpe3 {flex:1;}.cv-tab-pin-icon.svelte-1ujqpe3 {display:inline-flex;align-items:center;line-height:0;flex-shrink:0;}.cv-tab-pin-icon.svelte-1ujqpe3 svg {vertical-align:middle;width:14px;height:14px;}.cv-tabgroup-bottom-border.svelte-1ujqpe3 {border-bottom:1px solid #dee2e6;}\n\n @media print {ul.cv-tabs-nav.svelte-1ujqpe3 {display:none !important;}\n }"};xn(["click","dblclick"]),customElements.define("cv-tabgroup",Jr(function(e,t){ie(t,!0),dr(e,aa);let n=Yr(t,"groupId",7);yt(()=>{n()&&cs.registerTabGroup(n())});let s=De(Ke([])),o=De(void 0),i=De(null),a=De(!1),l=De(""),c=ze(()=>{const e=ls.state.tabs??{};return n()&&e[n()]?e[n()]:null}),d=De(null);yt(()=>{dn(c)!==dn(d)&&(Be(d,dn(c),!0),dn(c)&&dn(l)!==dn(c)&&(Be(l,dn(c),!0),f()))});let u=ze(()=>ds.isTabGroupNavHeadingVisible);function h(e){return e.split(/[\s|]+/).filter(e=>""!==e.trim()).map(e=>e.trim())}function p(){if(!dn(i))return;const e=dn(i).assignedElements().filter(e=>"cv-tab"===e.tagName.toLowerCase());if(Be(s,e.map((e,t)=>{const r=e;let s=r.getAttribute("tab-id");s||(s=`${n()||"tabgroup"}-tab-${t}`,r.setAttribute("data-cv-internal-id",s));const o=h(s)[0]||s;let i="";const a=r.querySelector("cv-tab-header");return a?i=a.innerHTML.trim():(i=r.header||r.getAttribute("header")||"",i||(i=r.getAttribute("tab-id")?o:`Tab ${t+1}`)),{id:o,rawId:s,header:i,element:r}}),!0),!dn(a)&&dn(s).length>0){if(dn(l))f();else{const e=dn(s)[0].id;Be(l,e,!0)}Be(a,!0)}else dn(a)&&f()}function f(){dn(s).length&&dn(s).forEach(e=>{const t=h(e.rawId).includes(dn(l));e.element.active=t})}Wn(()=>{dn(o)&&(Be(i,dn(o).querySelector("slot"),!0),dn(i)&&(dn(i).addEventListener("slotchange",p),p()))});var v={get groupId(){return n()},set groupId(e){n(e),Ce()}},g=ia(),b=at(g),m=e=>{var t=sa();Xn(t,21,()=>dn(s),e=>e.id,(e,t)=>{const s=ze(()=>h(dn(t).rawId)),o=ze(()=>dn(s).includes(dn(l))),i=ze(()=>dn(c)&&dn(s).includes(dn(c)));var a=ra(),d=at(a);let u;d.__click=e=>function(e,t){t.preventDefault(),dn(l)!==e&&(Be(l,e,!0),f())}(dn(t).id,e),d.__dblclick=e=>function(e,t){t.preventDefault(),n()&&ls.setPinnedTab(n(),e)}(dn(t).id,e);var p=at(d),v=at(p);!function(e,t,n=!1,s=!1){var o=e,i="";_t(()=>{var e=Gt;if(i!==(i=t()??"")){if(null!==e.nodes&&(At(e.nodes.start,e.nodes.end),e.nodes=null),""!==i){if(W){B.data;for(var a=K(),l=a;null!==a&&(8!==a.nodeType||""!==a.data);)l=a,a=it(a);if(null===a)throw G(),r;return $n(B,l),void(o=Z(a))}var c=i+"";n?c=`<svg>${c}</svg>`:s&&(c=`<math>${c}</math>`);var d=_n(c);if((n||s)&&(d=ot(d)),$n(ot(d),d.lastChild),n||s)for(;ot(d);)o.before(ot(d));else o.before(d)}}else W&&K()})}(at(v),()=>dn(t).header),X(v);var g=ct(v,2);let b;!function(e,t){let n=Yr(t,"isPinned",3,!1),r=Wr(t,["$$slots","$$events","$$legacy","isPinned"]);const s=ze(()=>n()?"1":"0.6");var o=na();Ar(o,()=>({width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",opacity:dn(s),xmlns:"http://www.w3.org/2000/svg",...r})),In(e,o)}(at(g),{get isPinned(){return dn(i)}}),X(g),X(p),X(d),X(a),_t(()=>{u=br(d,1,"nav-link svelte-1ujqpe3",null,u,{active:dn(o)}),Ir(d,"href","#"+dn(t).id),Ir(d,"aria-selected",dn(o)),Ir(d,"data-tab-id",dn(t).id),Ir(d,"data-raw-tab-id",dn(t).rawId),Ir(d,"data-group-id",n()),b=yr(g,"",b,{display:dn(i)?"inline-flex":"none"})}),In(e,a)}),X(t),In(e,t)};Yn(b,e=>{dn(s).length>0&&dn(u)&&e(m)});var y=ct(b,2);Xn(y,16,()=>Array.from(document.querySelectorAll('link[rel="stylesheet"]')),e=>e.href,(e,t)=>{var n=oa();_t(()=>Ir(n,"href",t.href)),In(e,n)});var w=ct(y,2);return tr(at(w),t,"default",{}),X(w),Vr(w,e=>Be(o,e),()=>dn(o)),J(2),X(g),In(e,g),ae(v)},{groupId:{attribute:"group-id",reflect:!0,type:"String"}},["default"],[],!0));const la={hash:"svelte-1hl11lz",code:":host {display:none; /* Semantic container only, usually read by parent and hidden */}"};customElements.define("cv-tab-header",Jr(function(e,t){dr(e,la);var n=Ln();tr(lt(n),t,"default",{}),In(e,n)},{},["default"],[],!0));const ca={hash:"svelte-eizj8y",code:":host {display:block;}"};customElements.define("cv-tab-body",Jr(function(e,t){dr(e,ca);var n=Ln();tr(lt(n),t,"default",{}),In(e,n)},{},["default"],[],!0));var da=Sn('<span class="cv-var"> </span>');const ua={hash:"svelte-1tffxwo",code:":host {display:inline;}"};customElements.define("cv-placeholder",Jr(function(e,t){ie(t,!0),dr(e,ua);let n=Yr(t,"name",7),r=Yr(t,"fallback",7),s=ze(()=>{if(!n())return"";const e=ls.state.placeholders?.[n()];if(void 0!==e&&""!==e)return e;if(r())return r();const t=ss.get(n());return void 0!==t?.defaultValue&&""!==t.defaultValue?t.defaultValue:`[[${n()}]]`});function o(e){const t=e.getRootNode();if(t&&t.host){t.host.innerText=dn(s)}}var i={get name(){return n()},set name(e){n(e),Ce()},get fallback(){return r()},set fallback(e){r(e),Ce()}},a=da(),l=at(a,!0);return X(a),ur(a,()=>o),_t(()=>qn(l,dn(s))),In(e,a),ae(i)},{name:{},fallback:{}},[],[],!0));var ha=Sn('<label class="placeholder-label svelte-dpk3ag"> </label>'),pa=Sn('<div><!> <input type="text"/></div>');const fa={hash:"svelte-dpk3ag",code:":host {display:inline-block;width:auto;margin:0 0.25rem; /* Add breathing room for inline text */}\n\n /* Host display overrides based on layout */:host([layout='stacked']),\n :host([layout='horizontal']) {display:block;width:100%;margin:0 0 0.5rem 0; /* Reset margins for block layouts */}\n \n /* Wrapper Grid/Flex Layouts */.cv-input-wrapper.svelte-dpk3ag {display:flex;width:100%;box-sizing:border-box;}\n\n /* INLINE */.cv-input-wrapper.inline.svelte-dpk3ag {display:inline-block;width:auto;}\n\n /* STACKED */.cv-input-wrapper.stacked.svelte-dpk3ag {flex-direction:column;gap:0.25rem;}\n\n /* HORIZONTAL */.cv-input-wrapper.horizontal.svelte-dpk3ag {flex-direction:row;align-items:center;gap:0.75rem;}\n\n /* Label Styles */.placeholder-label.svelte-dpk3ag {font-size:0.85rem;font-weight:500;color:var(--cv-text, #333);white-space:nowrap;}.stacked.svelte-dpk3ag .placeholder-label:where(.svelte-dpk3ag) {margin-bottom:2px;width:100%; /* Ensure label context is full width */text-align:left; /* Reset text align */}\n\n /* Input Styles */.placeholder-input.svelte-dpk3ag {padding:0.5rem 0.75rem;border:1px solid var(--cv-input-border, rgba(0, 0, 0, 0.1));border-radius:0.375rem;font-size:0.9rem;transition:all 0.2s;background:var(--cv-input-bg, white);color:var(--cv-text, #333);box-sizing:border-box;width:100%;}.stacked.svelte-dpk3ag .placeholder-input:where(.svelte-dpk3ag) {width:100%;}.inline.svelte-dpk3ag .placeholder-input:where(.svelte-dpk3ag) {width:var(--cv-input-width, auto);padding:0.3rem 0.5rem;display:inline-block;text-align:center;}.horizontal.svelte-dpk3ag .placeholder-input:where(.svelte-dpk3ag) {width:var(--cv-input-width, auto);flex:1;}\n\n /* APPEARANCES */\n \n /* Outline (Default) - handled by base styles above */\n\n /* Underline */.placeholder-input.underline.svelte-dpk3ag {border:none;border-bottom:1px solid var(--cv-input-border, rgba(0, 0, 0, 0.2));border-radius:0;background:transparent;padding-left:0;padding-right:0;}.placeholder-input.underline.svelte-dpk3ag:focus {box-shadow:none;border-bottom-color:var(--cv-primary, #3e84f4);}\n\n /* Ghost */.placeholder-input.ghost.svelte-dpk3ag {border-color:transparent;background:transparent;}.placeholder-input.ghost.svelte-dpk3ag:hover {background:var(--cv-input-bg-hover, rgba(0,0,0,0.05));}.placeholder-input.ghost.svelte-dpk3ag:focus {background:var(--cv-input-bg, white);border-color:var(--cv-primary, #3e84f4);box-shadow:0 0 0 2px var(--cv-focus-ring, rgba(62, 132, 244, 0.2));}\n\n /* Focus states for standard inputs */.placeholder-input.svelte-dpk3ag:not(.underline):focus {outline:none;border-color:var(--cv-primary, #3e84f4);box-shadow:0 0 0 2px var(--cv-focus-ring, rgba(62, 132, 244, 0.2));}"};function va(){"undefined"!=typeof window&&(window.__custardUIInitialized?console.info("[CustardUI] Auto-init skipped: already initialized."):document.addEventListener("DOMContentLoaded",async function(){if(!window.__custardUIInitInProgress&&!window.__custardUIInitialized){window.__custardUIInitInProgress=!0;try{const{baseURL:e,configPath:n}=function(){let e=document.currentScript;const t={baseURL:"",configPath:"/custardui.config.json"};if(!e||!e.hasAttribute("data-base-url")){const t=document.querySelector("script[data-base-url]");if(t)e=t;else for(const t of document.scripts){const n=t.src||"";if(/(?:custard(?:ui)?|@custardui\/custard(?:ui)?)(?:\.min)?\.(?:esm\.)?js($|\?)/i.test(n)){e=t;break}}}return e?{baseURL:e.getAttribute("data-base-url")||t.baseURL,configPath:e.getAttribute("data-config-path")||t.configPath}:t}(),r=await async function(e,n){const r={config:{},settings:{enabled:!0}};try{const s=t(e,n),o=await fetch(s);return o.ok?await o.json():(console.warn(`[CustardUI] Config file not found at ${s}. Using defaults.`),r)}catch(e){return console.error("[CustardUI] Error loading config file:",e),r}}(n,e),s=e||r.baseUrl||"",o=await xi.init(s,r.storageKey);let i;if(o?.id&&xi.rewriteUrlIndicator(o.id),r.assetsJsonPath){const e=t(r.assetsJsonPath,s);try{const t=await(await fetch(e)).json();i=new Bi(t,s)}catch(t){console.error(`[Custard] Failed to load assets JSON from ${e}:`,t),i=new Bi({},s)}}else i=new Bi({},s);const a={assetsManager:i,configFile:r,rootEl:document.body,storageKey:r.storageKey,adaptationConfig:o},l=new Gi(a);l.start(),function(e,t){const n=!1!==t.settings?.enabled,r=new mi({callbacks:{resetToDefault:()=>e.resetToDefault(),getIconPosition:()=>e.getIconPosition(),saveIconPosition:t=>e.saveIconPosition(t),clearIconPosition:()=>e.clearIconPosition(),isIntroSeen:()=>e.isIntroSeen(),markIntroSeen:()=>e.markIntroSeen()},settingsEnabled:n,...t.settings});r.render()}(l,r),window.__custardUIInitialized=!0,window.__custardUIInitInProgress=!1}catch(e){window.__custardUIInitInProgress=!1,console.error("[CustardUI] Auto-initialization error:",e)}}}))}xn(["input"]),customElements.define("cv-placeholder-input",Jr(function(e,t){ie(t,!0),dr(e,fa);let n=Yr(t,"name",7),r=Yr(t,"label",7),s=Yr(t,"hint",7),o=Yr(t,"layout",7,"inline"),i=Yr(t,"appearance",7,"outline"),a=Yr(t,"width",7),l=ze(o),c=ze(()=>ls.state.placeholders?.[n()]??""),d=ze(()=>{if(r())return r();const e=ss.get(n());return e?"inline"!==dn(l)&&e.settingsLabel?e.settingsLabel:e.settingsLabel||n():n()}),u=ze(()=>{if(s())return s();const e=ss.get(n());return e?.settingsHint||""}),h=ze(()=>n().replace(/[^a-zA-Z0-9_-]/g,"_")),p=ze(()=>{if("inline"!==dn(l)||"auto-grow"!==a())return;const e=(dn(c)||dn(u)).length;return Math.max(e,4)});var f={get name(){return n()},set name(e){n(e),Ce()},get label(){return r()},set label(e){r(e),Ce()},get hint(){return s()},set hint(e){s(e),Ce()},get layout(){return o()},set layout(e="inline"){o(e),Ce()},get appearance(){return i()},set appearance(e="outline"){i(e),Ce()},get width(){return a()},set width(e){a(e),Ce()}},v=pa();let g;var b=at(v),m=e=>{var t=ha(),n=at(t,!0);X(t),_t(()=>{Ir(t,"for",`cv-input-${dn(h)??""}`),qn(n,dn(d))}),In(e,t)};Yn(b,e=>{"inline"!==dn(l)&&dn(d)&&e(m)});var y=ct(b,2);return Tr(y),y.__input=function(e){const t=e.target;ls.setPlaceholder(n(),t.value)},X(v),_t(()=>{br(v,1,`cv-input-wrapper ${dn(l)??""}`,"svelte-dpk3ag"),g=yr(v,"",g,{"--cv-input-width":"auto-grow"===a()?"auto":a()}),Ir(y,"id",`cv-input-${dn(h)??""}`),br(y,1,`placeholder-input ${i()??""}`,"svelte-dpk3ag"),Ir(y,"placeholder",dn(u)),Er(y,dn(c)),Ir(y,"aria-label","inline"===dn(l)?dn(d):void 0),Ir(y,"size",dn(p))}),In(e,v),ae(f)},{name:{},label:{},hint:{},layout:{},appearance:{},width:{}},[],[],!0)),"undefined"!=typeof window&&va(),e.initializeFromScript=va});
|
|
7
|
+
//# sourceMappingURL=custardui.min.js.map
|