@customviews-js/customviews 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-views.js +40 -15
- package/dist/custom-views.js.map +1 -1
- package/dist/custom-views.min.js +2 -2
- package/dist/custom-views.min.js.map +1 -1
- package/dist/types/src/lib/controller.svelte.d.ts.map +1 -1
- package/dist/types/src/lib/features/placeholder/stores/placeholder-value-store.svelte.d.ts +1 -0
- package/dist/types/src/lib/features/placeholder/stores/placeholder-value-store.svelte.d.ts.map +1 -1
- package/dist/types/src/lib/utils/scroll-utils.d.ts +4 -3
- package/dist/types/src/lib/utils/scroll-utils.d.ts.map +1 -1
- 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/package.json +1 -1
package/dist/custom-views.min.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @customviews-js/customviews v1.7.
|
|
2
|
+
* @customviews-js/customviews v1.7.1
|
|
3
3
|
* (c) 2026 Chan Ger Teck
|
|
4
4
|
* Released under the MIT License.
|
|
5
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).CustomViews={})}(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,h=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,p=Object.prototype,v=Array.prototype,f=Object.getPrototypeOf,g=Object.isExtensible;const b=()=>{};function m(e){return e()}function w(e){for(var t=0;t<e.length;t++)e[t]()}function y(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const x=1<<24,k=16,_=32,C=64,S=128,E=512,$=1024,T=2048,L=4096,A=8192,M=16384,P=32768,z=65536,I=1<<17,H=1<<18,R=1<<19,q=1<<25,O=32768,N=1<<21,j=1<<23,V=Symbol("$state"),F=Symbol("legacy props"),D=Symbol(""),U=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function B(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let G,W=!1;function Z(e){W=e}function Y(e){if(null===e)throw B(),r;return G=e}function K(){return Y(it(G))}function J(e){if(W){if(null!==it(G))throw B(),r;G=e}}function X(e=1){if(W){for(var t=e,n=G;t--;)n=it(n);G=n}}function Q(e=!0){for(var t=0,r=G;;){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 B(),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=[],w(e)}function he(e){if(0===ce.length&&!xe){var t=ce;queueMicrotask(()=>{t===ce&&de()})}ce.push(e)}function ue(){for(;ce.length>0;)de()}function pe(e){var t=Dt;if(null===t)return jt.f|=j,e;if(0===(t.f&P)){if(0===(t.f&S))throw e;t.b.error(e)}else ve(e,t)}function ve(e,t){for(;null!==t;){if(0!==(t.f&S))try{return void t.b.error(e)}catch(t){e=t}t=t.parent}throw e}const fe=new Set;let ge=null,be=null,me=[],we=null,ye=!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,$e(t.render_effects),$e(t.effects),this.#s?.resolve()),be=null}#a(e,t){e.f^=$;for(var n=e.first;null!==n;){var r=n.f,s=!!(96&r),o=s&&0!==(r&$)||0!==(r&A)||this.skipped_effects.has(n);if(0!==(n.f&S)&&n.b?.is_pending()&&(t={parent:t,effect:n,effects:[],render_effects:[]}),!o&&null!==n.fn){s?n.f^=$:4&r?t.effects.push(n):tn(n)&&(0!==(n.f&k)&&this.#o.add(n),an(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&T)?this.#o.add(t):0!==(t.f&L)&&this.#i.add(t),this.#d(t.deps),pn(t,$)}#d(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&O)&&(t.f^=O,this.#d(t.deps))}capture(e,t){this.previous.has(e)||this.previous.set(e,t),0===(e.f&j)&&(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(Ce(),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.#h()}#h(){if(fe.size>1){this.previous.clear();var e=be,t=!0,n={parent:null,effect:null,effects:[],render_effects:[]};for(const e of fe){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)Te(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,fe.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),pn(e,T),Ae(e);for(const e of this.#i)pn(e,L),Ae(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#s??=y()).promise}static ensure(){if(null===ge){const e=ge=new ke;fe.add(ge),xe||ke.enqueue(()=>{ge===e&&e.flush()})}return ge}static enqueue(e){he(e)}apply(){}}function _e(e){var t=xe;xe=!0;try{for(;;){if(ue(),0===me.length&&(ge?.flush(),0===me.length))return void(we=null);Ce()}}finally{xe=t}}function Ce(){var e=Rt;ye=!0;try{var t=0;for(qt(!0);me.length>0;){var n=ke.ensure();if(t++>1e3)o,Se();n.process(me),Ve.clear()}}finally{ye=!1,qt(e),we=null}}function Se(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){ve(e,we)}}let Ee=null;function $e(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&tn(r)&&(Ee=new Set,an(r),null===r.deps&&null===r.first&&null===r.nodes&&(null===r.teardown&&null===r.ac?At(r):r.fn=null),Ee?.size>0)){Ve.clear();for(const e of Ee){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ee.has(n)&&(Ee.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||an(n)}}Ee.clear()}}Ee=null}}function Te(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?Te(s,t,n,r):4194320&e&&0===(e&T)&&Le(s,t,r)&&(pn(s,T),Ae(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 Ae(e){for(var t=we=e;null!==t.parent;){var n=(t=t.parent).f;if(ye&&t===Dt&&0!==(n&k)&&0===(n&H))return;if(96&n){if(0===(n&$))return;t.f^=$}}me.push(t)}class Me{parent;#n=!1;#u;#p=W?G:null;#v;#f;#g;#b=null;#m=null;#w=null;#y=null;#x=null;#k=0;#_=0;#C=!1;#S=null;#E=function(e){let t,n=0,r=De(0);return()=>{gt()&&(ln(r),kt(()=>(0===n&&(t=hn(()=>e(()=>Ze(r)))),n+=1,()=>{he(()=>{n-=1,0===n&&(t?.(),t=void 0,Ze(r))})})))}}(()=>(this.#S=De(this.#k),()=>{this.#S=null}));constructor(e,t,r){this.#u=e,this.#v=t,this.#f=r,this.parent=Dt.b,this.#n=!!this.#v.pending,this.#g=Ct(()=>{if(Dt.b=this,W){const e=this.#p;K();8===e.nodeType&&e.data===n?this.#$():this.#T()}else{var e=this.#L();try{this.#b=St(()=>r(e))}catch(e){this.error(e)}this.#_>0?this.#A():this.#n=!1}return()=>{this.#x?.remove()}},589952),W&&(this.#u=G)}#T(){try{this.#b=St(()=>this.#f(this.#u))}catch(e){this.error(e)}this.#n=!1}#$(){const e=this.#v.pending;e&&(this.#m=St(()=>e(this.#u)),ke.enqueue(()=>{var e=this.#L();this.#b=this.#M(()=>(ke.ensure(),St(()=>this.#f(e)))),this.#_>0?this.#A():(Mt(this.#m,()=>{this.#m=null}),this.#n=!1)}))}#L(){var e=this.#u;return this.#n&&(this.#x=st(),this.#u.before(this.#x),e=this.#x),e}is_pending(){return this.#n||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#v.pending}#M(e){var t=Dt,n=jt,r=se;Ut(this.#g),Ft(this.#g),oe(this.#g.ctx);try{return e()}catch(e){return pe(e),null}finally{Ut(t),Ft(n),oe(r)}}#A(){const e=this.#v.pending;null!==this.#b&&(this.#y=document.createDocumentFragment(),this.#y.append(this.#x),Ht(this.#b,this.#y)),null===this.#m&&(this.#m=St(()=>e(this.#u)))}#P(e){this.has_pending_snippet()?(this.#_+=e,0===this.#_&&(this.#n=!1,this.#m&&Mt(this.#m,()=>{this.#m=null}),this.#y&&(this.#u.before(this.#y),this.#y=null))):this.parent&&this.parent.#P(e)}update_pending_count(e){this.#P(e),this.#k+=e,this.#S&&We(this.#S,this.#k)}get_effect_pending(){return this.#E(),ln(this.#S)}error(e){var t=this.#v.onerror;let n=this.#v.failed;if(this.#C||!t&&!n)throw e;this.#b&&(Tt(this.#b),this.#b=null),this.#m&&(Tt(this.#m),this.#m=null),this.#w&&(Tt(this.#w),this.#w=null),W&&(Y(this.#p),X(),Y(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.#w&&Mt(this.#w,()=>{this.#w=null}),this.#n=this.has_pending_snippet(),this.#b=this.#M(()=>(this.#C=!1,St(()=>this.#f(this.#u)))),this.#_>0?this.#A():this.#n=!1)};var i=jt;try{Ft(null),s=!0,t?.(e,o),s=!1}catch(e){ve(e,this.#g&&this.#g.parent)}finally{Ft(i)}n&&he(()=>{this.#w=this.#M(()=>{ke.ensure(),this.#C=!0;try{return St(()=>{n(this.#u,()=>e,()=>o)})}catch(e){return ve(e,this.#g.parent),null}finally{this.#C=!1}})})}}function Pe(e,t,n,r){const o=le()?Ie:Re;if(0!==n.length||0!==e.length){var i,a,l,c,d=ge,h=Dt,u=(i=Dt,a=jt,l=se,c=ge,function(e=!0){Ut(i),Ft(a),oe(l),e&&c?.activate()});e.length>0?Promise.all(e).then(()=>{u();try{return p()}finally{d?.deactivate(),ze()}}):p()}else r(t.map(o));function p(){Promise.all(n.map(e=>function(e){let t=Dt;null===t&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var n=t.b,r=void 0,o=De(s),i=!jt,a=new Map;return function(e){ft(4718592,e,!0)}(()=>{var t=y();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).then(()=>{s===ge&&s.committed&&s.deactivate(),ze()})}catch(e){t.reject(e),ze()}var s=ge;if(i){var l=!n.is_pending();n.update_pending_count(1),s.increment(l),a.get(s)?.reject(U),a.delete(s),a.set(s,t)}const c=(e,t=void 0)=>{if(s.activate(),t)t!==U&&(o.f|=j,We(o,t));else{0!==(o.f&j)&&(o.f^=j),We(o,e);for(const[e,t]of a){if(a.delete(e),e===s)break;t.reject(U)}}i&&(n.update_pending_count(-1),s.decrement(l))};t.promise.then(c,e=>c(null,e||"unknown"))}),bt(()=>{for(const e of a.values())e.reject(U)}),new Promise(e=>{function t(n){function s(){n===r?e(o):t(r)}n.then(s,s)}t(r)})}(e))).then(e=>{u();try{r([...t.map(o),...e])}catch(e){0===(h.f&M)&&ve(e,h)}d?.deactivate(),ze()}).catch(e=>{ve(e,h)})}}function ze(){Ut(null),Ft(null),oe(null)}function Ie(e){var t=null!==jt&&2&jt.f?jt:null;null!==Dt&&(Dt.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??Dt,ac:null}}function He(e){const t=Ie(e);return Gt(t),t}function Re(e){const t=Ie(e);return t.equals=ne,t}function qe(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Tt(t[n])}}function Oe(e){var t,n=Dt;Ut(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&M)?t:null;t=t.parent}return null}(e));try{e.f&=-32769,qe(e),t=rn(e)}finally{Ut(n)}return t}function Ne(e){var t=Oe(e);(e.equals(t)||(ge?.is_fork||(e.v=t),e.wv=en()),Ot)||(null!==be?(gt()||ge?.is_fork)&&be.set(e,t):pn(e,0===(e.f&E)?L:$))}let je=new Set;const Ve=new Map;let Fe=!1;function De(e,t){return{f:0,v:e,reactions:null,equals:te,rv:0,wv:0}}function Ue(e,t){const n=De(e);return Gt(n),n}function Be(e,t=!1,n=!0){const r=De(e);return t||(r.equals=ne),re&&n&&null!==se&&null!==se.l&&(se.l.s??=[]).push(r),r}function Ge(e,t,n=!1){return null!==jt&&(!Vt||0!==(jt.f&I))&&le()&&4325394&jt.f&&!Bt?.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;Ot?Ve.set(e,t):Ve.set(e,n),e.v=t;var r=ke.ensure();r.capture(e,n),2&e.f&&(0!==(e.f&T)&&Oe(e),pn(e,0!==(e.f&E)?$:L)),e.wv=en(),Ye(e,T),!le()||null===Dt||0===(Dt.f&$)||96&Dt.f||(null===Yt?function(e){Yt=e}([e]):Yt.push(e)),!r.is_fork&&je.size>0&&!Fe&&function(){Fe=!1;var e=Rt;qt(!0);const t=Array.from(je);try{for(const e of t)0!==(e.f&$)&&pn(e,L),tn(e)&&an(e)}finally{qt(e)}je.clear()}()}return t}function Ze(e){Ge(e,e.v+1)}function Ye(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!==Dt){var l=0===(a&T);if(l&&pn(i,t),2&a){var c=i;be?.delete(c),0===(a&O)&&(a&E&&(i.f|=O),Ye(c,L))}else l&&(0!==(a&k)&&null!==Ee&&Ee.add(i),Ae(i))}}}function Ke(e){if("object"!=typeof e||null===e||V in e)return e;const t=f(e);if(t!==p&&t!==v)return e;var n=new Map,r=i(e),o=Ue(0),a=Xt,l=e=>{if(Xt===a)return e();var t=jt,n=Xt;Ft(null),Qt(a);var r=e();return Ft(t),Qt(n),r};return r&&n.set("length",Ue(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=Ue(r.value);return n.set(t,e),e}):Ge(s,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(void 0===r){if(t in e){const e=l(()=>Ue(s));n.set(t,e),Ze(o)}}else Ge(r,s),Ze(o);return!0},get(t,r,o){if(r===V)return e;var i=n.get(r),a=r in t;if(void 0!==i||a&&!h(t,r)?.writable||(i=l(()=>Ue(Ke(a?t[r]:s))),n.set(r,i)),void 0!==i){var c=ln(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=ln(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===V)return!0;var r=n.get(t),o=void 0!==r&&r.v!==s||Reflect.has(e,t);if((void 0!==r||null!==Dt&&(!o||h(e,t)?.writable))&&(void 0===r&&(r=l(()=>Ue(o?Ke(e[t]):s)),n.set(t,r)),ln(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 u=i;u<c.v;u+=1){var p=n.get(u+"");void 0!==p?Ge(p,s):u in e&&(p=l(()=>Ue(s)),n.set(u+"",p))}void 0===c?d&&!h(e,t)?.writable||(Ge(c=l(()=>Ue(void 0)),Ke(i)),n.set(t,c)):(d=c.v!==s,Ge(c,l(()=>Ke(i))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(a,i),!d){if(r&&"string"==typeof t){var f=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=f.v&&Ge(f,g+1)}Ze(o)}return!0},ownKeys(e){ln(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 Je(e){try{if(null!==e&&"object"==typeof e&&V in e)return e[V]}catch{}return e}function Xe(e,t){return Object.is(Je(e),Je(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=h(t,"firstChild").get,nt=h(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(G);if(null===n)n=G.appendChild(st());else if(t&&3!==n.nodeType){var r=st();return n?.before(r),Y(r),r}return Y(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!==G?.nodeType){var r=st();return G?.before(r),Y(r),r}return G}function ct(e,t=1,n=!1){let r=W?G: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),Y(o),o}return Y(r),r}function dt(e){e.textContent=""}let ht=!1;function ut(){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 pt(e){var t=jt,n=Dt;Ft(null),Ut(null);try{return e()}finally{Ft(t),Ut(n)}}function vt(e){null===Dt&&(null===jt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Ot&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function ft(e,t,n){var r=Dt;null!==r&&0!==(r.f&A)&&(e|=A);var s={ctx:se,deps:null,nodes:null,f:e|T|E,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{an(s),s.f|=P}catch(o){throw Tt(s),o}else null!==t&&Ae(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&z)&&null!==o&&(o.f|=z)),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!==jt&&2&jt.f&&0===(e&C))){var i=jt;(i.effects??=[]).push(o)}return s}function gt(){return null!==jt&&!Vt}function bt(e){const t=ft(8,null,!1);return pn(t,$),t.teardown=e,t}function mt(e){vt();var t=Dt.f;if(!(!jt&&0!==(t&_)&&0===(t&P)))return wt(e);var n=se;(n.e??=[]).push(e)}function wt(e){return ft(1048580,e,!1)}function yt(e){ke.ensure();const t=ft(524352,e,!0);return()=>{Tt(t)}}function xt(e){return ft(4,e,!1)}function kt(e,t=0){return ft(8|t,e,!0)}function _t(e,t=[],n=[],r=[]){Pe(r,t,n,t=>{ft(8,()=>e(...t.map(ln)),!0)})}function Ct(e,t=0){return ft(k|t,e,!0)}function St(e){return ft(524320,e,!0)}function Et(e){var t=e.teardown;if(null!==t){const e=Ot,n=jt;Nt(!0),Ft(null);try{t.call(null)}finally{Nt(e),Ft(n)}}}function $t(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&pt(()=>{e.abort(U)});var r=n.next;0!==(n.f&C)?n.parent=null:Tt(n,t),n=r}}function Tt(e,t=!0){var n=!1;!t&&0===(e.f&H)||null===e.nodes||null===e.nodes.end||(Lt(e.nodes.start,e.nodes.end),n=!0),$t(e,t&&!n),on(e,0),pn(e,M);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&&At(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Lt(e,t){for(;null!==e;){var n=e===t?null:it(e);e.remove(),e=n}}function At(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=[];Pt(e,r,!0);var s=()=>{n&&Tt(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||s();for(var a of r)a.out(i)}else s()}function Pt(e,t,n){if(0===(e.f&A)){e.f^=A;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;Pt(s,t,!!(0!==(s.f&z)||0!==(s.f&_)&&0!==(e.f&k))&&n),s=o}}}function zt(e){It(e,!0)}function It(e,t){if(0!==(e.f&A)){e.f^=A,0===(e.f&$)&&(pn(e,T),Ae(e));for(var n=e.first;null!==n;){var r=n.next;It(n,!!(0!==(n.f&z)||0!==(n.f&_))&&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 Ht(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 Rt=!1;function qt(e){Rt=e}let Ot=!1;function Nt(e){Ot=e}let jt=null,Vt=!1;function Ft(e){jt=e}let Dt=null;function Ut(e){Dt=e}let Bt=null;function Gt(e){null!==jt&&(null===Bt?Bt=[e]:Bt.push(e))}let Wt=null,Zt=0,Yt=null;let Kt=1,Jt=0,Xt=Jt;function Qt(e){Xt=e}function en(){return++Kt}function tn(e){var t=e.f;if(0!==(t&T))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(tn(o)&&Ne(o),o.wv>e.wv)return!0}0!==(t&E)&&null===be&&pn(e,$)}return!1}function nn(e,t,n=!0){var r=e.reactions;if(null!==r&&!Bt?.includes(e))for(var s=0;s<r.length;s++){var o=r[s];2&o.f?nn(o,t,!1):t===o&&(n?pn(o,T):0!==(o.f&$)&&pn(o,L),Ae(o))}}function rn(e){var t=Wt,n=Zt,r=Yt,s=jt,o=Bt,i=se,a=Vt,l=Xt,c=e.f;Wt=null,Zt=0,Yt=null,jt=96&c?null:e,Bt=null,oe(e.ctx),Vt=!1,Xt=++Jt,null!==e.ac&&(pt(()=>{e.ac.abort(U)}),e.ac=null);try{e.f|=N;var d=(0,e.fn)(),h=e.deps;if(null!==Wt){var u;if(on(e,Zt),null!==h&&Zt>0)for(h.length=Zt+Wt.length,u=0;u<Wt.length;u++)h[Zt+u]=Wt[u];else e.deps=h=Wt;if(gt()&&0!==(e.f&E))for(u=Zt;u<h.length;u++)(h[u].reactions??=[]).push(e)}else null!==h&&Zt<h.length&&(on(e,Zt),h.length=Zt);if(le()&&null!==Yt&&!Vt&&null!==h&&!(6146&e.f))for(u=0;u<Yt.length;u++)nn(Yt[u],e);return null!==s&&s!==e&&(Jt++,null!==Yt&&(null===r?r=Yt:r.push(...Yt))),0!==(e.f&j)&&(e.f^=j),d}catch(e){return pe(e)}finally{e.f^=N,Wt=t,Zt=n,Yt=r,jt=s,Bt=o,oe(i),Vt=a,Xt=l}}function sn(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===Wt||!Wt.includes(t))&&(pn(t,L),0!==(t.f&E)&&(t.f^=E,t.f&=-32769),qe(t),on(t,0))}function on(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)sn(e,n[r])}function an(e){var t=e.f;if(0===(t&M)){pn(e,$);var n=Dt,r=Rt;Dt=e,Rt=!0;try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&_)&&Tt(t),t=n}}(e):$t(e),Et(e);var s=rn(e);e.teardown="function"==typeof s?s:null,e.wv=Kt}finally{Rt=r,Dt=n}}}function ln(e){var t=!!(2&e.f);if(null!==jt&&!Vt&&(!(null!==Dt&&0!==(Dt.f&M))&&!Bt?.includes(e))){var n=jt.deps;if(0!==(jt.f&N))e.rv<Jt&&(e.rv=Jt,null===Wt&&null!==n&&n[Zt]===e?Zt++:null===Wt?Wt=[e]:Wt.includes(e)||Wt.push(e));else{(jt.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[jt]:r.includes(jt)||r.push(jt)}}if(Ot){if(Ve.has(e))return Ve.get(e);if(t){var s=e,o=s.v;return(0===(s.f&$)&&null!==s.reactions||dn(s))&&(o=Oe(s)),Ve.set(s,o),o}}else t&&(!be?.has(e)||ge?.is_fork&&!gt())&&(tn(s=e)&&Ne(s),Rt&>()&&0===(s.f&E)&&cn(s));if(be?.has(e))return be.get(e);if(0!==(e.f&j))throw e.v;return e.v}function cn(e){if(null!==e.deps){e.f^=E;for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&E)&&cn(t)}}function dn(e){if(e.v===s)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Ve.has(t))return!0;if(2&t.f&&dn(t))return!0}return!1}function hn(e){var t=Vt;try{return Vt=!0,e()}finally{Vt=t}}const un=-7169;function pn(e,t){e.f=e.f&un|t}function vn(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{vn(e[n],t)}catch(e){}const n=f(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=u(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const fn=new Set,gn=new Set;function bn(e,t,n,r,s){var o={capture:r,passive:s},i=function(e,t,n,r={}){function s(e){if(r.capture||yn.call(t,e),!e.cancelBubble)return pt(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?he(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bt(()=>{t.removeEventListener(e,i,o)})}function mn(e){for(var t=0;t<e.length;t++)fn.add(e[t]);for(var n of gn)n(e)}let wn=null;function yn(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;wn=e;var i=0,a=wn===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 h=jt,u=Dt;Ft(null),Ut(null);try{for(var p,v=[];null!==o;){var f=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?v.push(e):p=e}if(e.cancelBubble||f===t||null===f)break;o=f}if(p){for(let e of v)queueMicrotask(()=>{throw e});throw p}}finally{e.__root=t,delete e.currentTarget,Ft(h),Ut(u)}}}function xn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","\x3c!----\x3e"),t.content}function kn(e,t){var n=Dt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function _n(e,t){var n,r=!!(1&t),s=!!(2&t),o=!e.startsWith("<!>");return()=>{if(W)return kn(G,null),G;void 0===n&&(n=xn(o?e:"<!>"+e),r||(n=ot(n)));var t=s||et?document.importNode(n,!0):n.cloneNode(!0);r?kn(ot(t),t.lastChild):kn(t,t);return t}}function Cn(e=""){if(!W){var t=st(e+"");return kn(t,t),t}var n=G;return 3!==n.nodeType&&(n.before(n=st()),Y(n)),kn(n,n),n}function Sn(){if(W)return kn(G,null),G;var e=document.createDocumentFragment(),t=document.createComment(""),n=st();return e.append(t,n),kn(t,n),e}function En(e,t){if(W){var n=Dt;return 0!==(n.f&P)&&null!==n.nodes.end||(n.nodes.end=G),void K()}null!==e&&e.before(t)}const $n=["touchstart","touchmove"];function Tn(e){return $n.includes(e)}let Ln=!0;function An(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Mn(e,t){return In(e,t)}function Pn(e,t){rt(),t.intro=t.intro??!1;const n=t.target,s=W,o=G;try{for(var i=ot(n);i&&(8!==i.nodeType||"["!==i.data);)i=it(i);if(!i)throw r;Z(!0),Y(i);const s=In(e,{...t,anchor:i});return Z(!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),Z(!1),Mn(e,t)}finally{Z(s),Y(o)}}const zn=new Map;function In(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=Tn(r);t.addEventListener(r,yn,{passive:s});var o=zn.get(r);void 0===o?(document.addEventListener(r,yn,{passive:s}),zn.set(r,1)):zn.set(r,o+1)}}};d(l(fn)),gn.add(d);var h=void 0,u=function(e){ke.ensure();const t=ft(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?Mt(t,()=>{Tt(t),n(void 0)}):(Tt(t),n(void 0))})}(()=>{var l=n??t.appendChild(st());return function(e,t,n){new Me(e,t,n)}(l,{pending:()=>{}},t=>{i&&(ie({}),se.c=i);if(o&&(s.$$events=o),W&&kn(t,null),Ln=a,h=e(t,s)||{},Ln=!0,W&&(Dt.nodes.end=G,null===G||8!==G.nodeType||"]"!==G.data))throw B(),r;i&&ae()}),()=>{for(var e of c){t.removeEventListener(e,yn);var r=zn.get(e);0===--r?(document.removeEventListener(e,yn),zn.delete(e)):zn.set(e,r)}gn.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Hn.set(h,u),h}let Hn=new WeakMap;function Rn(e,t){const n=Hn.get(e);return n?(Hn.delete(e),n(t)):Promise.resolve()}class qn{anchor;#z=new Map;#I=new Map;#H=new Map;#R=new Set;#q=!0;constructor(e,t=!0){this.anchor=e,this.#q=t}#h=()=>{var e=ge;if(this.#z.has(e)){var t=this.#z.get(e),n=this.#I.get(t);if(n)zt(n),this.#R.delete(t);else{var r=this.#H.get(t);r&&(this.#I.set(t,r.effect),this.#H.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#z){if(this.#z.delete(t),t===e)break;const r=this.#H.get(n);r&&(Tt(r.effect),this.#H.delete(n))}for(const[e,r]of this.#I){if(e===t||this.#R.has(e))continue;const s=()=>{if(Array.from(this.#z.values()).includes(e)){var t=document.createDocumentFragment();Ht(r,t),t.append(st()),this.#H.set(e,{effect:r,fragment:t})}else Tt(r);this.#R.delete(e),this.#I.delete(e)};this.#q||!n?(this.#R.add(e),Mt(r,s,!1)):s()}}};#O=e=>{this.#z.delete(e);const t=Array.from(this.#z.values());for(const[e,n]of this.#H)t.includes(e)||(Tt(n.effect),this.#H.delete(e))};ensure(e,t){var n=ge;!t||this.#I.has(e)||this.#H.has(e)||this.#I.set(e,St(()=>t(this.anchor)));this.#z.set(n,e),W&&(this.anchor=G),this.#h()}}function On(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):mt(()=>{const t=hn(e);if("function"==typeof t)return t})}function Nn(e,t,r=!1){W&&K();var s=new qn(e);function o(t,r){if(W){if(t===(ee(e)===n)){var o=Q();return Y(o),s.anchor=o,Z(!1),s.ensure(t,r),void Z(!0)}}s.ensure(t,r)}Ct(()=>{var e=!1;t((t,n=!0)=>{e=!0,o(n,t)}),e||o(!1,null)},r?z:0)}function jn(e,t=!0){for(var n=0;n<e.length;n++)Tt(e[n],t)}var Vn;function Fn(e,t,r,s,o,a=null){var c=e,d=new Map;if(!!(4&t)){var h=e;c=W?Y(ot(h)):h.appendChild(st())}W&&K();var u,p=null,v=Re(()=>{var e=r();return i(e)?e:null==e?[]:l(e)}),f=!0;function g(){b.fallback=p,function(e,t,n,r,s){var o,i,a,c,d,h=!!(8&r),u=t.length,p=e.items,v=e.effect.first,f=null,g=[],b=[];if(h)for(d=0;d<u;d+=1)a=s(t[d],d),0===((c=p.get(a).e).f&q)&&(c.nodes?.a?.measure(),(i??=new Set).add(c));for(d=0;d<u;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&q)){if(c.f^=q,c!==v){var m=f?f.next:v;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Bn(e,f,c),Bn(e,c,m),Un(c,m,n),g=[],b=[],v=(f=c).next;continue}Un(c,null,n)}if(0!==(c.f&A)&&(zt(c),h&&(c.nodes?.a?.unfix(),(i??=new Set).delete(c))),c!==v){if(void 0!==o&&o.has(c)){if(g.length<b.length){var w,y=b[0];f=y.prev;var x=g[0],k=g[g.length-1];for(w=0;w<g.length;w+=1)Un(g[w],y,n);for(w=0;w<b.length;w+=1)o.delete(b[w]);Bn(e,x.prev,k.next),Bn(e,f,x),Bn(e,k,y),v=y,f=k,d-=1,g=[],b=[]}else o.delete(c),Un(c,v,n),Bn(e,c.prev,c.next),Bn(e,c,null===f?e.effect.first:f.next),Bn(e,f,c),f=c;continue}for(g=[],b=[];null!==v&&v!==c;)(o??=new Set).add(v),b.push(v),v=v.next;if(null===v)continue}0===(c.f&q)&&g.push(c),f=c,v=c.next}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(jn(l(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==v||void 0!==o){var _=[];if(void 0!==o)for(c of o)0===(c.f&A)&&_.push(c);for(;null!==v;)0===(v.f&A)&&v!==e.fallback&&_.push(v),v=v.next;var C=_.length;if(C>0){var S=4&r&&0===u?n:null;if(h){for(d=0;d<C;d+=1)_[d].nodes?.a?.measure();for(d=0;d<C;d+=1)_[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;jn(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()}jn(t,!a)}else r={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(r)}(e,_,S)}}h&&he(()=>{if(void 0!==i)for(c of i)c.nodes?.a?.apply()})}(b,u,c,t,s),null!==p&&(0===u.length?0===(p.f&q)?zt(p):(p.f^=q,Un(p,null,c)):Mt(p,()=>{p=null}))}var b={effect:Ct(()=>{var e=(u=ln(v)).length;let i=!1;W&&(ee(c)===n!==(0===e)&&(Y(c=Q()),Z(!1),i=!0));for(var l=new Set,h=0;h<e;h+=1){W&&8===G.nodeType&&"]"===G.data&&(c=G,i=!0,Z(!1));var b=u[h],m=s(b,h),w=f?null:d.get(m);w?(w.v&&We(w.v,b),w.i&&We(w.i,h)):(w=Dn(d,f?c:Vn??=st(),b,m,h,o,t,r),f||(w.e.f|=q),d.set(m,w)),l.add(m)}0===e&&a&&!p&&(f?p=St(()=>a(c)):(p=St(()=>a(Vn??=st()))).f|=q),W&&e>0&&Y(Q()),f||g(),i&&Z(!0),ln(v)}),items:d,outrogroups:null,fallback:p};f=!1,W&&(c=G)}function Dn(e,t,n,r,s,o,i,a){var l=1&i?16&i?De(n):Be(n,!1,!1):null,c=2&i?De(s):null;return{v:l,i:c,e:St(()=>(o(t,l??n,c??s,a),()=>{e.delete(r)}))}}function Un(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,o=t&&0===(t.f&q)?t.nodes.start:n;null!==r;){var i=it(r);if(o.before(r),r===s)return;r=i}}function Bn(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function Gn(e,t,n=!1,s=!1,o=!1){var i=e,a="";_t(()=>{var e=Dt;if(a!==(a=t()??"")){if(null!==e.nodes&&(Lt(e.nodes.start,e.nodes.end),e.nodes=null),""!==a){if(W){G.data;for(var o=K(),l=o;null!==o&&(8!==o.nodeType||""!==o.data);)l=o,o=it(o);if(null===o)throw B(),r;return kn(G,l),void(i=Y(o))}var c=a+"";n?c=`<svg>${c}</svg>`:s&&(c=`<math>${c}</math>`);var d=xn(c);if((n||s)&&(d=ot(d)),kn(ot(d),d.lastChild),n||s)for(;ot(d);)i.before(ot(d));else i.before(d)}}else W&&K()})}function Wn(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 Zn={tick:e=>requestAnimationFrame(e),now:()=>performance.now(),tasks:new Set};function Yn(){const e=Zn.now();Zn.tasks.forEach(t=>{t.c(e)||(Zn.tasks.delete(t),t.f())}),0!==Zn.tasks.size&&Zn.tick(Yn)}function Kn(e,t){pt(()=>{e.dispatchEvent(new CustomEvent(t))})}function Jn(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 Xn(e){const t={},n=e.split(";");for(const e of n){const[n,r]=e.split(":");if(!n||void 0===r)break;t[Jn(n.trim())]=r.trim()}return t}const Qn=e=>e;function er(e,t,n,r){var s,o,i,a=!!(1&e),l=!!(2&e),c=!!(4&e),d=a&&l?"both":a?"in":"out",h=t.inert,u=t.style.overflow;function p(){return pt(()=>s??=n()(t,r?.()??{},{direction:d}))}var v={is_global:c,in(){if(t.inert=h,!a)return i?.abort(),void i?.reset?.();l||o?.abort(),Kn(t,"introstart"),o=tr(t,p(),i,1,()=>{Kn(t,"introend"),o?.abort(),o=s=void 0,t.style.overflow=u})},out(e){if(!l)return e?.(),void(s=void 0);t.inert=!0,Kn(t,"outrostart"),i=tr(t,p(),o,0,()=>{Kn(t,"outroend"),e?.()})},stop:()=>{o?.abort(),i?.abort()}},f=Dt;if((f.nodes.t??=[]).push(v),a&&Ln){var g=c;if(!g){for(var b=f.parent;b&&0!==(b.f&z);)for(;(b=b.parent)&&0===(b.f&k););g=!b||0!==(b.f&P)}g&&xt(()=>{hn(()=>v.in())})}}function tr(e,t,n,r,s){var o=1===r;if("function"==typeof t){var i,a=!1;return he(()=>{if(!a){var l=t({direction:o?"in":"out"});i=tr(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:h=Qn}=t;var u=[];if(o&&void 0===n&&(d&&d(0,1),c)){var p=Xn(c(0,1));u.push(p,p)}var v=()=>1-r,f=e.animate(u,{duration:l,fill:"forwards"});return f.onfinish=()=>{f.cancel();var o=n?.t()??1-r;n?.abort();var i=r-o,a=t.duration*Math.abs(i),l=[];if(a>0){var u=!1;if(c)for(var p=Math.ceil(a/(1e3/60)),g=0;g<=p;g+=1){var b=o+i*h(g/p),m=Xn(c(b,1-b));l.push(m),u||="hidden"===m.overflow}u&&(e.style.overflow="hidden"),v=()=>{var e=f.currentTime;return o+i*h(e/a)},d&&function(e){let t;0===Zn.tasks.size&&Zn.tick(Yn),new Promise(n=>{Zn.tasks.add(t={c:e,f:n})})}(()=>{if("running"!==f.playState)return!1;var e=v();return d(e,1-e),!0})}(f=e.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{v=()=>r,d?.(r,1-r),s()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=b)},deactivate:()=>{s=b},reset:()=>{0===r&&d?.(1,0)},t:()=>v()}}function nr(e,t){xt(()=>{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 rr(e,t){var n,r=void 0;!function(e,t=0){ft(x|t,e,!0)}(()=>{r!==(r=t())&&(n&&(Tt(n),n=null),r&&(n=St(()=>{xt(()=>r(e))})))})}const sr=[..." \t\n\r\f \v\ufeff"];function or(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 ir(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function ar(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&&!sr.includes(r[i-1])||a!==r.length&&!sr.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"):e.className=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 lr(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 cr(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(ir)),r&&l.push(...Object.keys(r).map(ir));var c=0,d=-1;const t=e.length;for(var h=0;h<t;h++){var u=e[h];if(a?"/"===u&&"*"===e[h-1]&&(a=!1):o?o===u&&(o=!1):"/"===u&&"*"===e[h+1]?a=!0:'"'===u||"'"===u?o=u:"("===u?i++:")"===u&&i--,!a&&!1===o&&0===i)if(":"===u&&-1===d)d=h;else if(";"===u||h===t-1){if(-1!==d){var p=ir(e.substring(c,d).trim());l.includes(p)||(";"!==u&&h++,s+=" "+e.substring(c,h).trim()+";")}c=h+1,d=-1}}}return n&&(s+=or(n)),r&&(s+=or(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)?(lr(e,n?.[0],r[0]),lr(e,n?.[1],r[1],"important")):lr(e,n,r));return r}function dr(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(hr(r))}else{for(r of e.options){if(Xe(hr(r),t))return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function hr(e){return"__value"in e?e.__value:e.value}const ur=Symbol("is custom element"),pr=Symbol("is html");function vr(e){if(W){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;gr(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;gr(e,"checked",null),e.checked=r}}};e.__on_r=n,he(n),ut()}}function fr(e,t){var n=br(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&"PROGRESS"===e.nodeName)&&(e.value=t??"")}function gr(e,t,n,r){var s=br(e);W&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||s[t]!==(s[t]=n)&&("loading"===t&&(e[D]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,r=mr.get(n);if(r)return r;mr.set(n,r=[]);var s=e,o=Element.prototype;for(;o!==s;){for(var i in t=u(s))t[i].set&&r.push(i);s=f(s)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function br(e){return e.__attributes??={[ur]:e.nodeName.includes("-"),[pr]:"http://www.w3.org/1999/xhtml"===e.namespaceURI}}var mr=new Map;const wr=new Set;function yr(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,()=>pt(n));const s=e.__on_r;e.__on_r=s?()=>{s(),r(!0)}:()=>r(!0),ut()}(n,"change",()=>{var e=n.__value;o&&(e=xr(i,e,n.checked)),s(e)},()=>s(o?[]:null)),kt(()=>{var e=r();W&&n.defaultChecked!==n.checked?a=!0:o?(e=e||[],n.checked=e.includes(n.__value)):n.checked=Xe(n.__value,e)}),bt(()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1)}),wr.has(i)||(wr.add(i),he(()=>{i.sort((e,t)=>4===e.compareDocumentPosition(t)?-1:1),wr.delete(i)})),he(()=>{if(a){var e;if(o)e=xr(i,e,n.checked);else{var t=i.find(e=>e.checked);e=t?.__value}s(e)}})}function xr(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 kr{#N=new WeakMap;#j;#V;static entries=new WeakMap;constructor(e){this.#V=e}observe(e,t){var n=this.#N.get(e)||new Set;return n.add(t),this.#N.set(e,n),this.#F().observe(e,this.#V),()=>{var n=this.#N.get(e);n.delete(t),0===n.size&&(this.#N.delete(e),this.#j.unobserve(e))}}#F(){return this.#j??(this.#j=new ResizeObserver(e=>{for(var t of e)for(var n of(kr.entries.set(t.target,t),this.#N.get(t.target)||[]))n(t)}))}}var _r=new kr({box:"border-box"});function Cr(e,t,n){var r=_r.observe(e,()=>n(e[t]));xt(()=>(hn(()=>n(e[t])),r))}function Sr(e,t){return e===t||e?.[V]===t}function Er(e={},t,n,r){return xt(()=>{var r,s;return kt(()=>{r=s,s=[],hn(()=>{e!==n(...s)&&(t(e,...s),r&&Sr(n(...r),e)&&t(null,...r))})}),()=>{he(()=>{s&&Sr(n(...s),e)&&t(null,...s)})}}),e}function $r(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(V in e)vn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&V in n&&vn(n)}}(t.s);if(e){let e=0,n={};const s=Ie(()=>{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=()=>ln(s)}var s;n.b.length&&(s=()=>{Tr(t,r),w(n.b)},vt(),ft(1048584,s,!0)),mt(()=>{const e=hn(()=>n.m.map(m));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&mt(()=>{Tr(t,r),w(n.a)})}function Tr(e,t){if(e.l.s)for(const t of e.l.s)ln(t);t()}let Lr,Ar=!1;function Mr(e,t,n,r){var s,o,i=!re||!!(2&n),a=!!(8&n),l=!!(16&n),c=r,d=!0,u=()=>(d&&(d=!1,c=l?hn(r):r),c);if(a){var p=V in e||F in e;s=h(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var v,f=!1;if(a?[o,f]=function(e){var t=Ar;try{return Ar=!1,[e(),Ar]}finally{Ar=t}}(()=>e[t]):o=e[t],void 0===o&&void 0!==r&&(o=u(),s&&(i&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),s(o))),v=i?()=>{var n=e[t];return void 0===n?u():(d=!0,n)}:()=>{var n=e[t];return void 0!==n&&(c=void 0),void 0===n?c:n},i&&!(4&n))return v;if(s){var g=e.$$legacy;return function(e,t){return arguments.length>0?(i&&t&&!g&&!f||s(t?v():e),e):v()}}var b=!1,m=(1&n?Ie:Re)(()=>(b=!1,v()));a&&ln(m);var w=Dt;return function(e,t){if(arguments.length>0){const n=t?ln(m):i&&a?Ke(e):e;return Ge(m,n),b=!0,void 0!==c&&(c=n),e}return Ot&&b||0!==(w.f&M)?m.v:ln(m)}}class Pr{#D;#U;constructor(e){var t=new Map,n=(e,n)=>{var r=Be(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>ln(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===F||(ln(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,s)=>(Ge(t.get(r)??n(r,s),s),Reflect.set(e,r,s))});this.#U=(e.hydrate?Pn:Mn)(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||_e(),this.#D=r.$$events;for(const e of Object.keys(this.#U))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&d(this,e,{get(){return this.#U[e]},set(t){this.#U[e]=t},enumerable:!0});this.#U.$set=e=>{Object.assign(r,e)},this.#U.$destroy=()=>{Rn(this.#U)}}$set(e){this.#U.$set(e)}$on(e,t){this.#D[e]=this.#D[e]||[];const n=(...e)=>t.call(this,...e);return this.#D[e].push(n),()=>{this.#D[e]=this.#D[e].filter(e=>e!==n)}}$destroy(){this.#U.$destroy()}}function zr(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 Ir(e,t,n,r,s,o){let i=class extends Lr{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=zr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var s=h(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&&(Lr=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),En(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]=zr(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 Pr(e)),this.$$me=yt(()=>{kt(()=>{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=zr(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 h=this.$$c.$on(l,d);this.$$l_u.set(d,h)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=zr(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});var Hr=_n('<div><div role="alert"><button class="close-btn svelte-ysaqmb" aria-label="Dismiss intro">×</button> <p class="text svelte-ysaqmb"> </p></div></div>');const Rr={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 }"};mn(["click"]);var qr=_n('<div role="button" tabindex="0" aria-label="Open Custom Views Settings"><span class="cv-gear svelte-122ln5">⚙</span></div>');const Or={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 Nr(e,t){ie(t,!0),nr(e,Or);let n=Mr(t,"position",3,"middle-left"),r=Mr(t,"title",3,"Customize View"),s=Mr(t,"pulse",3,!1),o=Mr(t,"onclick",3,void 0),i=Mr(t,"iconColor",3,void 0),a=Mr(t,"backgroundColor",3,void 0),l=Mr(t,"opacity",3,void 0),c=Mr(t,"scale",3,void 0),d=Mr(t,"persistence",3,void 0);const h="cv-settings-icon-offset",u=10;let p,v,f=Ue(!1),g=0,b=0,m=Ue(0),w=!1,y=-1/0,x=1/0;function k(){if(!p)return;const e=p.getBoundingClientRect(),t=e.top-ln(m),n=e.height,r=10-t,s=window.innerHeight-10-t-n,o=Math.max(r,Math.min(s,ln(m)));o!==ln(m)&&(Ge(m,o,!0),E())}function _(e){Ge(f,!0),g=e,b=ln(m),w=!1,function(){if(!p)return;const e=p.getBoundingClientRect(),t=e.top-ln(m),n=e.height;y=u-t,x=window.innerHeight-u-t-n}()}function C(e){if(!ln(f))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-g,r=b+n;Ge(m,Math.max(y,Math.min(x,r)),!0),Math.abs(n)>5&&(w=!0)}function S(){ln(f)&&(Ge(f,!1),E())}function E(){d()&&d().setItem(h,ln(m).toString())}function $(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}On(()=>{if(d()){const e=d().getItem(h);e&&Ge(m,parseFloat(e),!0)}return window.addEventListener("mousemove",C),window.addEventListener("mouseup",S),window.addEventListener("touchmove",C,{passive:!1}),window.addEventListener("touchend",S),window.addEventListener("resize",k),v=setTimeout(k,0),()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",S),window.removeEventListener("touchmove",C),window.removeEventListener("touchend",S),window.removeEventListener("resize",k),clearTimeout(v)}});var T={resetPosition:function(){Ge(m,0),b=0,d()&&d().removeItem(h)}},L=qr();let A;return L.__mousedown=function(e){0===e.button&&_(e.clientY)},L.__touchstart=function(e){1===e.touches.length&&_(e.touches[0].clientY)},L.__click=function(e){if(w)return e.stopImmediatePropagation(),e.preventDefault(),void(w=!1);o()&&o()()},L.__keydown=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o()&&o()())},Er(L,e=>p=e,()=>p),_t(e=>{ar(L,0,`cv-settings-icon cv-settings-${n()??""} ${s()?"cv-pulse":""}`,"svelte-122ln5"),gr(L,"title",r()),A=cr(L,"",A,e)},[()=>({"--cv-icon-color":i(),"--cv-icon-bg":a(),"--cv-icon-opacity":l(),transform:$(n(),ln(m),c()),cursor:ln(f)?"grabbing":"grab"})]),En(e,L),ae(T)}mn(["mousedown","touchstart","click","keydown"]);const jr=e=>e;function Vr(e){const t=e-1;return t*t*t+1}function Fr(e){const t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function Dr(e,{delay:t=0,duration:n=400,easing:r=jr}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*s}}function Ur(e,{delay:t=0,duration:n=400,easing:r=Vr,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),[h,u]=Fr(s),[p,v]=Fr(o);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*h}${u}, ${(1-e)*p}${v});\n\t\t\topacity: ${l-d*t}`}}function Br(e,{delay:t=0,duration:n=400,easing:r=Vr,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)}`),h=parseFloat(o[`padding${d[0]}`]),u=parseFloat(o[`padding${d[1]}`]),p=parseFloat(o[`margin${d[0]}`]),v=parseFloat(o[`margin${d[1]}`]),f=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*h}px;padding-${c[1]}: ${e*u}px;margin-${c[0]}: ${e*p}px;margin-${c[1]}: ${e*v}px;border-${c[0]}-width: ${e*f}px;border-${c[1]}-width: ${e*g}px;min-${a}: 0`}}function Gr(e,{delay:t=0,duration:n=400,easing:r=Vr,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`}}function Wr(){return'<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n <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"/>\n</svg>'}function Zr(){return'<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">\n <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>\n </svg>'}function Yr(){return'<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <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 fill="none" d="M0 0h24v24H0z"/>\n </svg>'}function Kr(){return'<svg 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 <g id="surface1">\n <path d="M 11.273438 0 L 2.546875 0 C 1.746094 0 1.089844 0.613281 1.089844\n 1.363281 L 1.089844 10.910156 L 2.546875 10.910156 L 2.546875 1.363281 L 11.273438\n 1.363281 Z M 13.453125 2.726562 L 5.453125 2.726562 C 4.65625 2.726562 4 3.339844 4\n 4.089844 L 4 13.636719 C 4 14.386719 4.65625 15 5.453125 15 L 13.453125 15 C 14.253906\n 15 14.910156 14.386719 14.910156 13.636719 L 14.910156 4.089844 C 14.910156 3.339844\n 14.253906 2.726562 13.453125 2.726562 Z M 13.453125 13.636719 L 5.453125 13.636719 L\n 5.453125 4.089844 L 13.453125 4.089844 Z M 13.453125 13.636719 "></path>\n </g>\n </svg>'}function Jr(){return'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="2 2 22 22" fill="currentColor">\n <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 \n L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"></path>\n </svg>'}function Xr(){return'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <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"/>\n <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"/>\n </svg>'}function Qr(){return'<svg viewBox="0 0 98 96" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="currentColor">\n <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"/>\n </svg>'}const es=new class{#B=Ue("light");get mode(){return ln(this.#B)}set mode(e){Ge(this.#B,e,!0)}#G=Ue(!1);get systemIsDark(){return ln(this.#G)}set systemIsDark(e){Ge(this.#G,e,!0)}persistence;constructor(){if("undefined"!=typeof window){const e=window.matchMedia("(prefers-color-scheme: dark)");this.systemIsDark=e.matches}}init(e){this.persistence=e;const t=this.persistence.getItem("cv-theme-pref");var n;("auto"===(n=t)||"light"===n||"dark"===n)&&(this.mode=t)}setMode(e){this.mode=e,this.persistence&&this.persistence.setItem("cv-theme-pref",e)}#W=He(()=>"auto"===this.mode?this.systemIsDark?"dark":"light":this.mode);get currentTheme(){return ln(this.#W)}set currentTheme(e){Ge(this.#W,e)}};class ts{static parseURL(){const e=new URLSearchParams(window.location.search).get("view");let t=null;if(e)try{t=this.decodeState(e)}catch(e){console.warn("Failed to decode view state from URL:",e)}return t}static updateURL(e){if("undefined"==typeof window||!window.history)return;const t=new URL(window.location.href);if(t.searchParams.delete("view"),e){const n=this.encodeState(e);n&&t.searchParams.set("view",n)}const n=t.pathname+(t.search||"")+(t.hash||"");window.history.replaceState({},"",n)}static clearURL(){this.updateURL(null)}static generateShareableURL(e){const t=new URL(window.location.href);if(t.searchParams.delete("view"),e){const n=this.encodeState(e);n&&t.searchParams.set("view",n)}return t.toString()}static encodeState(e){try{const t={};e.shownToggles&&e.shownToggles.length>0&&(t.t=e.shownToggles),e.peekToggles&&e.peekToggles.length>0&&(t.p=e.peekToggles),e.tabs&&Object.keys(e.tabs).length>0&&(t.g=Object.entries(e.tabs)),e.focus&&e.focus.length>0&&(t.f=e.focus);const n=JSON.stringify(t);let r;r="function"==typeof btoa?btoa(n):globalThis.Buffer.from(n,"utf-8").toString("base64");return r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}catch(e){return console.warn("Failed to encode state:",e),null}}static decodeState(e){try{let t,n=e.replace(/-/g,"+").replace(/_/g,"/");for(;n.length%4;)n+="=";t="function"==typeof atob?atob(n):globalThis.Buffer.from(n,"base64").toString("utf-8");const r=JSON.parse(t);if(!r||"object"!=typeof r)throw new Error("Invalid compact state structure");const s={shownToggles:Array.isArray(r.t)?r.t:[],peekToggles:Array.isArray(r.p)?r.p:[]};if(Array.isArray(r.g)){s.tabs={};for(const[e,t]of r.g)"string"==typeof e&&"string"==typeof t&&(s.tabs[e]=t)}return Array.isArray(r.f)&&(s.focus=r.f),s}catch(e){return console.warn("Failed to decode view state:",e),null}}}const ns=new class{#Z=Ue(Ke([]));get items(){return ln(this.#Z)}set items(e){Ge(this.#Z,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 rs(e,t){ns.show(e,t)}var ss=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],os=["difference","intersection","symmetricDifference","union"],is=!1;class as extends Set{#Y=new Map;#K=Ue(0);#J=Ue(0);#X=Xt||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#J.v=super.size}is||this.#Q()}#ee(e){return Xt===this.#X?Ue(e):De(e)}#Q(){is=!0;var e=as.prototype,t=Set.prototype;for(const n of ss)e[n]=function(...e){return ln(this.#K),t[n].apply(this,e)};for(const n of os)e[n]=function(...e){ln(this.#K);var r=t[n].apply(this,e);return new as(r)}}has(e){var t=super.has(e),n=this.#Y,r=n.get(e);if(void 0===r){if(!t)return ln(this.#K),!1;r=this.#ee(!0),n.set(e,r)}return ln(r),t}add(e){return super.has(e)||(super.add(e),Ge(this.#J,super.size),Ze(this.#K)),this}delete(e){var t=super.delete(e),n=this.#Y,r=n.get(e);return void 0!==r&&(n.delete(e),Ge(r,!1)),t&&(Ge(this.#J,super.size),Ze(this.#K)),t}clear(){if(0!==super.size){super.clear();var e=this.#Y;for(var t of e.values())Ge(t,!1);e.clear(),Ge(this.#J,0),Ze(this.#K)}}keys(){return this.values()}values(){return ln(this.#K),super.values()}entries(){return ln(this.#K),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return ln(this.#J)}}class ls extends Map{#Y=new Map;#K=Ue(0);#J=Ue(0);#X=Xt||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#J.v=super.size}}#ee(e){return Xt===this.#X?Ue(e):De(e)}has(e){var t=this.#Y,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return ln(this.#K),!1;n=this.#ee(0),t.set(e,n)}return ln(n),!0}forEach(e,t){this.#te(),super.forEach(e,t)}get(e){var t=this.#Y,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void ln(this.#K);n=this.#ee(0),t.set(e,n)}return ln(n),super.get(e)}set(e,t){var n=this.#Y,r=n.get(e),s=super.get(e),o=super.set(e,t),i=this.#K;if(void 0===r)r=this.#ee(0),n.set(e,r),Ge(this.#J,super.size),Ze(i);else if(s!==t){Ze(r);var a=null===i.reactions?null:new Set(i.reactions);(null===a||!r.reactions?.every(e=>a.has(e)))&&Ze(i)}return o}delete(e){var t=this.#Y,n=t.get(e),r=super.delete(e);return void 0!==n&&(t.delete(e),Ge(this.#J,super.size),Ge(n,-1),Ze(this.#K)),r}clear(){if(0!==super.size){super.clear();var e=this.#Y;for(var t of(Ge(this.#J,0),e.values()))Ge(t,-1);Ze(this.#K),e.clear()}}#te(){ln(this.#K);var e=this.#Y;if(this.#J.v!==e.size)for(var t of super.keys())if(!e.has(t)){var n=this.#ee(0);e.set(t,n)}for([,n]of this.#Y)ln(n)}keys(){return ln(this.#K),super.keys()}values(){return this.#te(),super.values()}entries(){return this.#te(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return ln(this.#J),super.size}}const cs=Symbol();class ds extends URLSearchParams{#K=Ue(0);#ne=function(){return hs}();#re=!1;#se(){if(!this.#ne||this.#re)return;this.#re=!0;const e=this.toString();this.#ne.search=e&&`?${e}`,this.#re=!1}[cs](e){if(!this.#re){this.#re=!0;for(const e of[...super.keys()])super.delete(e);for(const[t,n]of e)super.append(t,n);Ze(this.#K),this.#re=!1}}append(e,t){super.append(e,t),this.#se(),Ze(this.#K)}delete(e,t){var n=super.has(e,t);super.delete(e,t),n&&(this.#se(),Ze(this.#K))}get(e){return ln(this.#K),super.get(e)}getAll(e){return ln(this.#K),super.getAll(e)}has(e,t){return ln(this.#K),super.has(e,t)}keys(){return ln(this.#K),super.keys()}set(e,t){var n=super.getAll(e).join("");super.set(e,t),n!==super.getAll(e).join("")&&(this.#se(),Ze(this.#K))}sort(){super.sort(),this.#se(),Ze(this.#K)}toString(){return ln(this.#K),super.toString()}values(){return ln(this.#K),super.values()}entries(){return ln(this.#K),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return ln(this.#K),super.size}}let hs=null;class us extends URL{#oe=Ue(super.protocol);#ie=Ue(super.username);#ae=Ue(super.password);#le=Ue(super.hostname);#ce=Ue(super.port);#de=Ue(super.pathname);#he=Ue(super.hash);#ue=Ue(super.search);#pe;constructor(e,t){super(e=new URL(e,t)),hs=this,this.#pe=new ds(e.searchParams),hs=null}get hash(){return ln(this.#he)}set hash(e){super.hash=e,Ge(this.#he,super.hash)}get host(){return ln(this.#le),ln(this.#ce),super.host}set host(e){super.host=e,Ge(this.#le,super.hostname),Ge(this.#ce,super.port)}get hostname(){return ln(this.#le)}set hostname(e){super.hostname=e,Ge(this.#le,super.hostname)}get href(){return ln(this.#oe),ln(this.#ie),ln(this.#ae),ln(this.#le),ln(this.#ce),ln(this.#de),ln(this.#he),ln(this.#ue),super.href}set href(e){super.href=e,Ge(this.#oe,super.protocol),Ge(this.#ie,super.username),Ge(this.#ae,super.password),Ge(this.#le,super.hostname),Ge(this.#ce,super.port),Ge(this.#de,super.pathname),Ge(this.#he,super.hash),Ge(this.#ue,super.search),this.#pe[cs](super.searchParams)}get password(){return ln(this.#ae)}set password(e){super.password=e,Ge(this.#ae,super.password)}get pathname(){return ln(this.#de)}set pathname(e){super.pathname=e,Ge(this.#de,super.pathname)}get port(){return ln(this.#ce)}set port(e){super.port=e,Ge(this.#ce,super.port)}get protocol(){return ln(this.#oe)}set protocol(e){super.protocol=e,Ge(this.#oe,super.protocol)}get search(){return ln(this.#ue)}set search(e){super.search=e,Ge(this.#ue,e),this.#pe[cs](super.searchParams)}get username(){return ln(this.#ie)}set username(e){super.username=e,Ge(this.#ie,super.username)}get origin(){return ln(this.#oe),ln(this.#le),ln(this.#ce),super.origin}get searchParams(){return this.#pe}toString(){return this.href}toJSON(){return this.href}}const ps=new class{_definitions=new ls;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}},vs="cv-user-variables";const fs=new class{#ve=Ue(Ke({}));get values(){return ln(this.#ve)}set values(e){Ge(this.#ve,e,!0)}persistence;constructor(){}init(e){this.persistence=e,this.loadSavedPlaceholderValues()}loadSavedPlaceholderValues(){if(!this.persistence)return;const e=this.persistence.getItem(vs);if(e)try{this.values=JSON.parse(e)}catch(e){console.warn("[CustomViews] Failed to parse user variables:",e)}}getValue(e){return this.values[e]}set(e,t){this.values[e]=t,this.persistValue()}persistValue(){this.persistence&&this.persistence.setItem(vs,JSON.stringify(this.values))}};function gs(){const e=document.querySelector("header");if(!e)return 0;const t=window.getComputedStyle(e);return["fixed","sticky"].includes(t.position)?e.getBoundingClientRect().height:0}function bs(e){const t=gs(),n=e.getBoundingClientRect().top+window.scrollY-t-20;window.scrollTo({top:n,behavior:"smooth"})}var ms=_n('<p class="description svelte-gwkhja"> </p>'),ws=_n('<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 ys={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;}"};mn(["change"]);var xs=_n('<p class="description svelte-uub3h8"> </p>'),ks=_n("<option> </option>"),_s=_n('<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 Cs={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);}"};function Ss(e,t){ie(t,!0),nr(e,Cs);let n=Mr(t,"activeTabId",15,""),r=Mr(t,"onchange",3,()=>{});var s=_s(),o=at(s),i=at(o),a=at(i,!0);J(i);var l=ct(i,2),c=e=>{var n=xs(),r=at(n,!0);J(n),_t(()=>An(r,t.group.description)),En(e,n)};Nn(l,e=>{t.group.description&&e(c)}),J(o);var d,h=ct(o,2);h.__change=function(e){const s=e.target;n(s.value),r()({groupId:t.group.groupId,tabId:n()})},Fn(h,21,()=>t.group.tabs,e=>e.tabId,(e,t)=>{var n=ks(),r=at(n,!0);J(n);var s={};_t(()=>{An(r,ln(t).label||ln(t).tabId),s!==(s=ln(t).tabId)&&(n.value=(n.__value=ln(t).tabId)??"")}),En(e,n)}),J(h),function(e){var t=new MutationObserver(()=>{dr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),bt(()=>{t.disconnect()})}(h),J(s),_t(()=>{gr(i,"for",`tab-group-${t.group.groupId??""}`),An(a,t.group.label||t.group.groupId),gr(h,"id",`tab-group-${t.group.groupId??""}`),d!==(d=n())&&(h.value=(h.__value=n())??"",dr(h,n()))}),En(e,s),ae()}mn(["change"]);var Es=_n('<div class="placeholder-item svelte-1vp05mb"><label class="placeholder-label svelte-1vp05mb"> </label> <input class="placeholder-input svelte-1vp05mb" type="text"/></div>');const $s={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);}"};mn(["input"]);var Ts=_n("<button>Customize</button>"),Ls=_n('<p class="description svelte-16uy9h6"> </p>'),As=_n('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Toggles</div> <div class="toggles-container svelte-16uy9h6"></div></div>'),Ms=_n('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Placeholders</div> <div class="placeholders-container svelte-16uy9h6"></div></div>'),Ps=_n('<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>'),zs=_n("<!> <!> <!>",1),Is=_n('<div class="tab-content active svelte-16uy9h6"><!> <!> <!></div>'),Hs=_n('<button class="share-action-btn copy-url-btn svelte-16uy9h6"><span class="btn-icon svelte-16uy9h6"><!></span> <span><!></span></button>'),Rs=_n('<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>'),qs=_n('<button class="reset-btn svelte-16uy9h6" title="Reset to Default"><span><!></span> <span>Reset</span></button>'),Os=_n("<div></div>"),Ns=_n('<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/customviews-js/customviews" 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 js={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 /* Theme Selector */.theme-selector.svelte-16uy9h6 {display:flex;background:var(--cv-input-bg);border:1px solid var(--cv-input-border);border-radius:0.5rem;padding:0.25rem;gap:0.25rem;}.theme-btn.svelte-16uy9h6 {flex:1;display:flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem;border:none;background:transparent;color:var(--cv-text-secondary);border-radius:0.375rem;cursor:pointer;font-size:0.875rem;font-weight:500;transition:all 0.2s ease;}.theme-btn.svelte-16uy9h6:hover {background:var(--cv-bg-hover);color:var(--cv-text);}.theme-btn.active.svelte-16uy9h6 {background:var(--cv-primary);color:white;box-shadow:var(--cv-shadow-sm);}\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 Vs(e,t){ie(t,!0),nr(e,js);let n=Mr(t,"title",3,"Customize View"),r=Mr(t,"description",3,""),s=Mr(t,"showReset",3,!0),o=Mr(t,"showTabGroups",3,!0),i=Mr(t,"isResetting",3,!1),a=Mr(t,"onclose",3,()=>{}),l=Mr(t,"onreset",3,()=>{}),c=Mr(t,"onstartShare",3,()=>{});const d=He(()=>t.controller.store),h=He(()=>ln(d).isTabGroupNavHeadingVisible),u=He(()=>ln(d).menuToggles),p=He(()=>ln(d).menuTabGroups),v=He(()=>ln(d).configSectionOrder);let f=He(()=>ln(d).state.shownToggles??[]),g=He(()=>ln(d).state.peekToggles??[]),b=He(()=>ln(d).state.tabs??{}),m=He(()=>ps.definitions.filter(e=>!e.hiddenFromSettings&&(!e.isLocal||ln(d).detectedPlaceholders.has(e.name)))),w=He(()=>fs.values),y=He(()=>ln(u).length>0||ln(m).length>0||o()&&ln(p).length>0),x=Ue("customize"),k=Ue(!1),_=Ue(""),C=Ue(0),S=Ue(0);function E(e,t){Ge(_,t?'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n <path d="M245 37.0001V39.5001H250V37.0001H247.5H245ZM250 13.0001C250 11.6194 248.881 10.5001 247.5 10.5001C246.119 10.5001 245 11.6194 245 13.0001H247.5H250ZM250 31.0001C250 29.6194 248.881 28.5001 247.5 28.5001C246.119 28.5001 245 29.6194 245 31.0001H247.5H250ZM245 19.0001C245 20.3808 246.119 21.5001 247.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"/>\n <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"/>\n <path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n </svg>':e?'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n <line x1="247.5" y1="43.0001" x2="247.5" y2="13.0001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n </svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181" fill="currentColor">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62" x2="77" y2="62" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8887" x2="77" y2="77.8887" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4453" x2="221" y2="97.4453" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n </svg>',!0)}function $(e){E(ln(h),e)}function T(){ln(d).isTabGroupNavHeadingVisible=!ln(h)}function L(e){const{toggleId:t,value:n}=e,r=ln(d).state.shownToggles||[],s=ln(d).state.peekToggles||[],o=r.filter(e=>e!==t),i=s.filter(e=>e!==t);"show"===n&&o.push(t),"peek"===n&&i.push(t),ln(d).setToggles(o,i)}function A(e){const{groupId:t,tabId:n}=e,r=function(e){const t=gs(),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");ln(d).setPinnedTab(t,n),r&&queueMicrotask(()=>{bs(r)})}function M(e){fs.set(e.name,e.value)}async function P(){const e=ts.generateShareableURL(ln(d).state);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),rs("Link copied to clipboard!"),Ge(k,!0),setTimeout(()=>{Ge(k,!1)},2e3)}catch(e){console.error("Copy failed:",e),rs("Failed to copy URL. Please copy manually.")}}mt(()=>{ln(y)||"customize"!==ln(x)||Ge(x,"share")}),mt(()=>{"customize"===ln(x)&&ln(C)>ln(S)&&Ge(S,ln(C),!0)}),mt(()=>{E(ln(h),!1)});var z=Ns();z.__click=e=>{e.target===e.currentTarget&&a()()};var I=at(z),H=at(I),R=at(H),q=at(R);Gn(at(q),Wr),J(q);var O=ct(q,2),N=at(O,!0);J(O),J(R);var j=ct(R,2);j.__click=function(...e){a()?.apply(this,e)},Gn(at(j),Zr),J(j),J(H);var V=ct(H,2);let F;var D=at(V),U=at(D),B=e=>{var t=Ts();t.__click=()=>Ge(x,"customize"),_t(()=>ar(t,0,"tab "+("customize"===ln(x)?"active":""),"svelte-16uy9h6")),En(e,t)};Nn(U,e=>{ln(y)&&e(B)});var G=ct(U,2);G.__click=()=>Ge(x,"share"),J(D);var W=ct(D,2),Z=e=>{var t=Is(),n=at(t),s=e=>{var t=Ls(),n=at(t,!0);J(t),_t(()=>An(n,r())),En(e,t)};Nn(n,e=>{r()&&e(s)});var i=ct(n,2);Fn(i,16,()=>ln(v),e=>e,(e,t)=>{var n=zs(),r=lt(n),s=e=>{var t=As(),n=ct(at(t),2);Fn(n,21,()=>ln(u),e=>e.toggleId,(e,t)=>{{let n=He(()=>{return e=ln(t).toggleId,n=ln(f),r=ln(g),n.includes(e)?"show":r.includes(e)?"peek":"hide";var e,n,r});!function(e,t){ie(t,!0),nr(e,ys);const n=[];let r=Mr(t,"value",15,"show"),s=Mr(t,"onchange",3,()=>{});var o=ws(),i=at(o),a=at(i),l=at(a),c=at(l,!0);J(l);var d=ct(l,2),h=e=>{var n=ms(),r=at(n,!0);J(n),_t(()=>An(r,t.toggle.description)),En(e,n)};Nn(d,e=>{t.toggle.description&&e(h)}),J(a);var u=ct(a,2),p=at(u),v=at(p);vr(v),v.__change=()=>s()({toggleId:t.toggle.toggleId,value:"hide"}),v.value=v.__value="hide",X(2),J(p);var f=ct(p,2),g=at(f);vr(g),g.__change=()=>s()({toggleId:t.toggle.toggleId,value:"peek"}),g.value=g.__value="peek",X(2),J(f);var b=ct(f,2),m=at(b);vr(m),m.__change=()=>s()({toggleId:t.toggle.toggleId,value:"show"}),m.value=m.__value="show",X(2),J(b),J(u),J(i),J(o),_t(()=>{An(c,t.toggle.label||t.toggle.toggleId),gr(v,"name",`cv-toggle-${t.toggle.toggleId??""}`),gr(g,"name",`cv-toggle-${t.toggle.toggleId??""}`),gr(m,"name",`cv-toggle-${t.toggle.toggleId??""}`)}),yr(n,[],v,r,r),yr(n,[],g,r,r),yr(n,[],m,r,r),En(e,o),ae()}(e,{get toggle(){return ln(t)},get value(){return ln(n)},onchange:L})}}),J(n),J(t),En(e,t)};Nn(r,e=>{"toggles"===t&&ln(u).length>0&&e(s)});var i=ct(r,2),a=e=>{var t=Ms(),n=ct(at(t),2);Fn(n,21,()=>ln(m),e=>e.name,(e,t)=>{{let n=He(()=>ln(w)[ln(t).name]??ln(t).defaultValue??"");!function(e,t){ie(t,!0),nr(e,$s);let n=Mr(t,"value",15,""),r=Mr(t,"onchange",3,()=>{});const s=He(()=>`cv-placeholder-${t.definition.name.replace(/[^a-zA-Z0-9-_]/g,"-")}`);var o=Es(),i=at(o),a=at(i,!0);J(i);var l=ct(i,2);vr(l),l.__input=function(e){const s=e.target;n(s.value),r()({name:t.definition.name,value:s.value})},J(o),_t(()=>{gr(i,"for",ln(s)),An(a,t.definition.settingsLabel||t.definition.name),gr(l,"id",ln(s)),gr(l,"placeholder",t.definition.settingsHint||""),fr(l,n())}),En(e,o),ae()}(e,{get definition(){return ln(t)},get value(){return ln(n)},onchange:M})}}),J(n),J(t),En(e,t)};Nn(i,e=>{"placeholders"===t&&ln(m).length>0&&e(a)});var l=ct(i,2),c=e=>{var t=Ps(),n=ct(at(t),2),r=at(n),s=at(r),o=at(s),i=at(o);Gn(at(i),()=>ln(_)),J(i),J(o);var a=ct(o,4),l=at(a);vr(l),l.__change=T,X(4),J(a),J(s),J(r);var c=ct(r,2);Fn(c,21,()=>ln(p),e=>e.groupId,(e,t)=>{{let n=He(()=>ln(b)[ln(t).groupId]||ln(t).tabs[0]?.tabId);Ss(e,{get group(){return ln(t)},get activeTabId(){return ln(n)},onchange:A})}}),J(c),J(n),J(t),_t(()=>{return e=l,t=!ln(h),void((n=br(e)).checked!==(n.checked=t??void 0)&&(e.checked=t));var e,t,n}),bn("mouseenter",r,()=>$(!0)),bn("mouseleave",r,()=>$(!1)),En(e,t)};Nn(l,e=>{"tabGroups"===t&&o()&&ln(p).length>0&&e(c)}),En(e,n)}),Nn(ct(i,2),e=>{}),J(t),er(1,t,()=>Dr,()=>({duration:150})),En(e,t)},Y=e=>{var t=Rs(),n=at(t),r=ct(at(n),2);r.__click=()=>c()();var s=at(r);Gn(at(s),Xr),J(s),X(2),J(r);var o=ct(r,2),i=e=>{var t=Hs();t.__click=P;var n=at(t),r=at(n),s=e=>{var t=Sn();Gn(lt(t),Jr),En(e,t)},o=e=>{var t=Sn();Gn(lt(t),Kr),En(e,t)};Nn(r,e=>{ln(k)?e(s):e(o,!1)}),J(n);var i=ct(n,2),a=at(i),l=e=>{En(e,Cn("Copied!"))},c=e=>{En(e,Cn("Copy Shareable URL of Settings"))};Nn(a,e=>{ln(k)?e(l):e(c,!1)}),J(i),J(t),En(e,t)};Nn(o,e=>{ln(y)&&e(i)}),J(n),J(t),er(1,t,()=>Dr,()=>({duration:150})),En(e,t)};Nn(W,e=>{"customize"===ln(x)?e(Z):e(Y,!1)}),J(V);var K=ct(V,2),Q=at(K),ee=e=>{var t=qs();t.__click=function(...e){l()?.apply(this,e)};var n=at(t);Gn(at(n),Yr),J(n),X(2),J(t),_t(()=>ar(n,0,"reset-btn-icon "+(i()?"spinning":""),"svelte-16uy9h6")),En(e,t)},te=e=>{En(e,Os())};Nn(Q,e=>{s()?e(ee):e(te,!1)});var ne=ct(Q,2);Gn(at(ne),Qr),X(2),J(ne),ct(ne,2).__click=function(...e){a()?.apply(this,e)},J(K),J(I),J(z),_t(()=>{An(N,n()),F=cr(V,"",F,{"min-height":"share"===ln(x)&&ln(S)>0?`${ln(S)}px`:void 0}),ar(G,0,"tab "+("share"===ln(x)?"active":""),"svelte-16uy9h6")}),Cr(V,"clientHeight",e=>Ge(C,e)),er(3,I,()=>Gr,()=>({duration:200,start:.9})),er(3,z,()=>Dr,()=>({duration:200})),En(e,z),ae()}function Fs(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 Ds(e){return e.trim().replace(/\s+/g," ")}function Us(e){const t=e.tagName,n=Ds(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:Fs(n),elementId:e.id};return r&&(a.parentId=r),a}function Bs(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 Gs(e){if(!e)return[];if(e.includes(" "))return Ws(e);if(!/^[A-Za-z0-9+/]*={0,2}$/.test(e))return Ws(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 Ws(e)}}function Ws(e){return e.split(/[ +,]+/).filter(e=>e.length>0).map(e=>({tag:"ANY",index:0,textSnippet:"",textHash:0,elementId:e}))}mn(["click","change"]);function Zs(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(Fs(Ds(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=Ds(n.textContent||"");if(Fs(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 Ys=["HEADER","NAV","FOOTER","SCRIPT","STYLE"],Ks=[],Js="data-cv-share-ignore",Xs="div, p, blockquote, pre, li, h1, h2, h3, h4, h5, h6, table, span, tr, cv-tabgroup, cv-toggle",Qs="cv-share-selected",eo="cv-highlight-target",to="cv-share-selected-hide",no="cv-highlight-target-hide",ro="cv-share-selected-highlight",so="cv-highlight-target-mode",oo=["flex-body","content-wrapper","app"];function io(e){if(e.id&&oo.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 ao=new class{#fe=Ue(!1);get isActive(){return ln(this.#fe)}set isActive(e){Ge(this.#fe,e,!0)}#ge=Ue("show");get selectionMode(){return ln(this.#ge)}set selectionMode(e){Ge(this.#ge,e,!0)}#be=Ue(Ke(new as));get selectedElements(){return ln(this.#be)}set selectedElements(e){Ge(this.#be,e,!0)}#me=Ue(null);get currentHoverTarget(){return ln(this.#me)}set currentHoverTarget(e){Ge(this.#me,e,!0)}#we=He(()=>this.selectedElements.size);get shareCount(){return ln(this.#we)}set shareCount(e){Ge(this.#we,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 as(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(no):"highlight"===this.selectionMode?e.classList.add(so):e.classList.add(eo)}_removeHighlightClass(e){e.classList.remove(eo,no,so)}_addSelectionClass(e){"hide"===this.selectionMode?e.classList.add(to):"highlight"===this.selectionMode?e.classList.add(ro):e.classList.add(Qs)}_removeSelectionClass(e){e.classList.remove(Qs,to,ro)}generateLink(){if(0===this.selectedElements.size)return void rs("Please select at least one item.");const e=Array.from(this.selectedElements).map(e=>Us(e));let t;try{t=Bs(e)}catch{return void rs("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(()=>{rs("Link copied to clipboard!")}).catch(()=>{rs("Failed to copy to clipboard")})}previewLink(){if(0===this.selectedElements.size)return void rs("Please select at least one item.");const e=Bs(Array.from(this.selectedElements).map(e=>Us(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 lo(e){const t=e-1;return t*t*t+1}function co(e,{from:t,to:n},r={}){var{delay:s=0,duration:o=e=>120*Math.sqrt(e),easing:i=lo}=r,a=getComputedStyle(e),l="none"===a.transform?"":a.transform,[c,d]=a.transformOrigin.split(" ").map(parseFloat);c/=e.clientWidth,d/=e.clientHeight;var h=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),u=e.clientWidth/n.width/h,p=e.clientHeight/n.height/h,v=t.left+t.width*c,f=t.top+t.height*d,g=n.left+n.width*c,b=n.top+n.height*d,m=(v-g)*u,w=(f-b)*p,y=t.width/n.width,x=t.height/n.height;return{delay:s,duration:"function"==typeof o?o(Math.sqrt(m*m+w*w)):o,easing:i,css:(e,t)=>`transform: ${l} translate(${t*m}px, ${t*w}px) scale(${e+t*y}, ${e+t*x});`}}re=!0;var ho=_n('<div role="alert" aria-live="polite"> </div>'),uo=_n('<div class="toast-container svelte-zemmny"></div>');const po={hash:"svelte-zemmny",code:".toast-container.svelte-zemmny {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-zemmny {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 vo(e,t){ie(t,!1),nr(e,po),$r();var n=uo();Fn(n,13,()=>ns.items,e=>e.id,(e,t)=>{var n=ho(),r=at(n,!0);J(n),_t(()=>{ar(n,0,"cv-toast-notification toast-item","svelte-zemmny"),An(r,ln(t).message)}),er(1,n,()=>Ur,()=>({y:-20,duration:300})),er(2,n,()=>Dr,()=>({duration:200})),function(e,t,n){var r,s,o,i=Dt.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=tr(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,()=>co,null),En(e,n)}),J(n),En(e,n),ae()}Ir(vo,{},[],[],!0);var fo=_n('<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 go={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 }"};mn(["click"]);var bo=_n('<span class="id-badge svelte-64gpkh" title="ID detection active"> </span>'),mo=_n('<button class="action-btn up svelte-64gpkh" title="Select Parent">↰</button>'),wo=_n('<div class="hover-helper svelte-64gpkh"><div class="info svelte-64gpkh"><span class="tag svelte-64gpkh"> </span> <!></div> <button> </button> <!></div>');const yo={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;}"};mn(["click"]);var xo=_n('<div><span class="selection-label svelte-1dbf58w"> </span></div>'),ko=_n('<div class="share-overlay-ui"><!> <!> <!></div>');const _o={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 Co(e,t){ie(t,!0),nr(e,_o);let n=Mr(t,"excludedTags",19,()=>["HEADER","NAV","FOOTER"]),r=Mr(t,"excludedIds",19,()=>[]),s=He(()=>new Set(n().map(e=>e.toUpperCase()))),o=He(()=>new Set(r()));mt(()=>(document.body.classList.add("cv-share-active"),()=>{document.body.classList.remove("cv-share-active")}));let i=Ue(!1),a=Ue(null),l=Ue(null),c=!1,d=[],h=He(()=>{if(!ln(a)||!ln(l)||!ln(i))return null;return{left:Math.min(ln(a).x,ln(l).x),top:Math.min(ln(a).y,ln(l).y),width:Math.abs(ln(l).x-ln(a).x),height:Math.abs(ln(l).y-ln(a).y)}});function u(e){return function(e,t,n){let r=e;for(;r;){if(r.hasAttribute(Js))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,ln(s),ln(o))}var p=ko();bn("mouseover",Qe,function(e){if(!ao.isActive||ln(i))return;const t=e.target;if(t.closest(".hover-helper")||t.closest(".floating-bar"))return;if(u(t))return;const n=t.closest(Xs);if(!n)return void ao.setHoverTarget(null);const r=n;let s=r.parentElement,o=null;for(;s;){if(ao.selectedElements.has(s)){o=s;break}s=s.parentElement}if(o)ao.setHoverTarget(o);else if(io(r))ao.setHoverTarget(null);else if(ao.currentHoverTarget!==r){if(ao.currentHoverTarget&&ao.currentHoverTarget.contains(r))return;ao.setHoverTarget(r)}}),bn("mousedown",Qe,function(e){if(!ao.isActive)return;const t=e.target;t.closest(".floating-bar")||t.closest(".hover-helper")||window.matchMedia("(pointer: coarse)").matches||(e.preventDefault(),Ge(a,{x:e.clientX,y:e.clientY},!0),Ge(l,{x:e.clientX,y:e.clientY},!0),Ge(i,!1),c=!1)}),bn("mousemove",Qe,function(e){if(!ln(a))return;Ge(l,{x:e.clientX,y:e.clientY},!0);const t=e.clientX-ln(a).x,n=e.clientY-ln(a).y;Math.hypot(t,n)>12&&(Ge(i,!0),ao.setHoverTarget(null))}),bn("mouseup",Qe,function(){if(ln(i)&&ln(a)&&ln(l)){const e=Math.abs(ln(l).x-ln(a).x),t=Math.abs(ln(l).y-ln(a).y);if(e<10||t<10)return Ge(i,!1),Ge(a,null),void Ge(l,null);const n=Math.min(ln(a).x,ln(l).x),r=Math.min(ln(a).y,ln(l).y),s=n+e,o=r+t;0===d.length&&(d=Array.from(document.querySelectorAll(Xs)));const h=[];d.forEach(e=>{const t=e;if(u(t))return;const i=t.getBoundingClientRect();i.left>=n&&i.right<=s&&i.top>=r&&i.bottom<=o&&!io(t)&&h.push(t)}),h.length>0&&ao.toggleMultipleElements(h),c=!0}Ge(i,!1),Ge(a,null),Ge(l,null)}),bn("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=ao.currentHoverTarget;n&&ao.toggleElementSelection(n)},!0),bn("keydown",Qe,function(e){"Escape"===e.key&&(e.preventDefault(),ao.toggleActive(!1))});var v=at(p);!function(e,t){ie(t,!1),nr(e,go),$r();var n=fo(),r=at(n),s=at(r);s.__click=()=>ao.setSelectionMode("show");var o=ct(s,2);o.__click=()=>ao.setSelectionMode("hide");var i=ct(o,2);i.__click=()=>ao.setSelectionMode("highlight"),J(r);var a=ct(r,4),l=at(a);J(a);var c=ct(a,2);c.__click=function(){ao.clearAllSelections()};var d=ct(c,2);d.__click=function(){ao.previewLink()};var h=ct(d,2);h.__click=function(){ao.generateLink()},ct(h,2).__click=function(){ao.toggleActive(!1)},J(n),_t(()=>{ar(s,0,"mode-btn "+("show"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(s,"aria-pressed","show"===ao.selectionMode),ar(o,0,"mode-btn "+("hide"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(o,"aria-pressed","hide"===ao.selectionMode),ar(i,0,"mode-btn "+("highlight"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(i,"aria-pressed","highlight"===ao.selectionMode),An(l,`${ao.shareCount??""} item${1===ao.shareCount?"":"s"} to\n ${"show"===ao.selectionMode?"show":"highlight"===ao.selectionMode?"highlight":"hide"}`)}),er(3,n,()=>Ur,()=>({y:50,duration:200})),En(e,n),ae()}(v,{});var f=ct(v,2);!function(e,t){ie(t,!0),nr(e,yo);let n=He(()=>ao.currentHoverTarget),r=He(()=>ln(n)&&ao.selectedElements.has(ln(n))),s=Ue("display: none;"),o=Ue("TAG"),i=Ue(null),a=Ue(!1),l=Ue(null);function c(e){let t=e.parentElement;for(;t;){if(t.matches(Xs)&&!io(t))return t;t=t.parentElement}return null}function d(e){e.stopPropagation(),ln(n)&&ao.toggleElementSelection(ln(n))}mt(()=>{const e=ao.currentHoverTarget;if(e){const t=hn(()=>ln(l));if(t)Ge(s,t,!0),Ge(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),Ge(s,`top: ${n}px; left: ${r}px;`)}Ge(o,e.tagName,!0),Ge(i,e.id||null,!0),Ge(a,!!c(e))}else Ge(s,"display: none;"),Ge(l,null)});let h=Ue(0);function u(e){if(e.stopPropagation(),!ln(n))return;const t=c(ln(n));t&&(Ge(l,`${ln(s)} min-width: ${ln(h)}px;`),ao.setHoverTarget(t))}var p=Sn(),v=lt(p),f=e=>{var t=wo(),n=at(t),l=at(n),c=at(l,!0);J(l);var p=ct(l,2),v=e=>{var t=bo(),n=at(t);J(t),_t(()=>An(n,`#${ln(i)??""}`)),En(e,t)};Nn(p,e=>{ln(i)&&e(v)}),J(n);var f=ct(n,2);f.__click=d;var g=at(f,!0);J(f);var b=ct(f,2),m=e=>{var t=mo();t.__click=u,En(e,t)};Nn(b,e=>{ln(a)&&e(m)}),J(t),_t(()=>{cr(t,ln(s)),An(c,ln(o)),ar(f,0,"action-btn "+(ln(r)?"deselect":"select"),"svelte-64gpkh"),gr(f,"title",ln(r)?"Deselect":"Select"),An(g,ln(r)?"✕":"✓")}),Cr(t,"clientWidth",e=>Ge(h,e)),er(3,t,()=>Dr,()=>({duration:100})),En(e,t)};Nn(v,e=>{ln(n)&&e(f)}),En(e,p),ae()}(f,{});var g=ct(f,2),b=e=>{var t=xo(),n=at(t),r=at(n,!0);J(n),J(t),_t(()=>{ar(t,0,"selection-box "+("hide"===ao.selectionMode?"hide-mode":"highlight"===ao.selectionMode?"highlight-mode":""),"svelte-1dbf58w"),cr(t,`left: ${ln(h).left??""}px; top: ${ln(h).top??""}px; width: ${ln(h).width??""}px; height: ${ln(h).height??""}px;`),An(r,"hide"===ao.selectionMode?"Select to hide":"highlight"===ao.selectionMode?"Select to highlight":"Select to show")}),En(e,t)};Nn(g,e=>{ln(h)&&e(b)}),J(p),En(e,p),ae()}const So=new class{#fe=Ue(!1);get isActive(){return ln(this.#fe)}set isActive(e){Ge(this.#fe,e,!0)}setIsActive(e){this.isActive=e}exit(){this.isActive=!1}};var Eo=_n('<div id="cv-exit-focus-banner" class="svelte-1yqpn7e"><span>You are viewing a focused selection.</span> <button class="svelte-1yqpn7e">Show Full Page</button></div>');const $o={hash:"svelte-1yqpn7e",code:"#cv-exit-focus-banner.svelte-1yqpn7e {position:fixed;top:0;left:0;right:0;background-color:#0078d4;color:white;padding:10px 20px;display:flex;align-items:center;justify-content:center;gap:16px;z-index:9000; /* Below Toast (usually 9999+) */font-family:system-ui, sans-serif;box-shadow:0 2px 8px rgba(0, 0, 0, 0.2);}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;}"};mn(["click"]);class To{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:Mo(e,t)}}class Lo{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:Mo(e,t)}}class Ao{static SHARE_MODES=["show","hide","highlight"];parseForMatch(e){const t=new URLSearchParams(e.search);for(const n of Ao.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?Mo(e,t):null}}function Mo(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 Po{static rules=[new To,new Lo,new Ao];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 Mo(e,t)}}class zo{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=Po.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=Po.getCleanedUrl(window.location,e);window.history.replaceState({},"",t)}}}const Io="cv-intro-shown";class Ho{#ye=Ue(!1);get showCallout(){return ln(this.#ye)}set showCallout(e){Ge(this.#ye,e,!0)}#xe=Ue(!1);get showPulse(){return ln(this.#xe)}set showPulse(e){Ge(this.#xe,e,!0)}getPersistence;getOptions;hasChecked=!1;constructor(e,t){this.getPersistence="function"==typeof e?e:()=>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.getPersistence().getItem(Io)||setTimeout(()=>{this.showCallout=!0,this.showPulse=!0},1e3)}dismiss(){this.showCallout=!1,this.showPulse=!1,this.getPersistence().setItem(Io,"true")}}var Ro=_n('<div class="cv-widget-root" data-cv-share-ignore=""><!> <!> <!> <!> <!> <!></div>');const qo={hash:"svelte-ylk7wm",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);}\n\n /* Global Focus Service Styles */.cv-show-mode,\n .cv-highlight-mode {margin-top:50px !important;}.cv-hidden {display:none !important;}"};function Oo(e,t){ie(t,!0),nr(e,qo);const n=He(()=>t.controller.store),r=He(()=>t.controller.store.config),s=He(()=>t.options.settingsEnabled??!0),o=new Ho(()=>t.controller.persistenceManager,()=>t.options.callout),i=new zo({onOpenModal:p,onStartShare:g,checkSettingsEnabled:()=>ln(s)});let a=Ue(!1),l=Ue(!1),c=Ue(void 0);const d=He(()=>ln(r).shareExclusions||{}),h=He(()=>[...Ys,...ln(d).tags||[]]),u=He(()=>[...Ks,...ln(d).ids||[]]);function p(){ln(s)&&(o.dismiss(),Ge(a,!0))}function v(){Ge(a,!1)}function f(){Ge(l,!0),t.controller.resetToDefault(),ln(c)?.resetPosition(),rs("Settings reset to default"),setTimeout(()=>{Ge(l,!1),ln(c)?.resetPosition()},600)}function g(e="show"){v(),ao.setSelectionMode(e),ao.toggleActive(!0)}On(()=>(es.init(t.controller.persistenceManager),i.init(),()=>i.destroy())),mt(()=>{o.init(ln(n).hasPageElements,ln(s))});const b=He(()=>ln(s)&&(ln(n).hasMenuOptions||t.options.panel.showTabGroups||ln(a)));var m=Ro(),w=at(m),y=e=>{{let n=He(()=>t.options.callout?.message),r=He(()=>t.options.callout?.enablePulse),s=He(()=>t.options.callout?.backgroundColor),i=He(()=>t.options.callout?.textColor);!function(e,t){nr(e,Rr);let n=Mr(t,"position",3,"middle-left"),r=Mr(t,"message",3,"Customize your reading experience here."),s=Mr(t,"onclose",3,()=>{}),o=Mr(t,"enablePulse",3,!0),i=Mr(t,"backgroundColor",3,void 0),a=Mr(t,"textColor",3,void 0);var l=Hr(),c=at(l);let d;var h=at(c);h.__click=function(...e){s()?.apply(this,e)};var u=ct(h,2),p=at(u,!0);J(u),J(c),J(l),_t(()=>{ar(l,0,`cv-callout-wrapper pos-${n()??""}`,"svelte-ysaqmb"),ar(c,0,"cv-callout "+(o()?"cv-pulse":""),"svelte-ysaqmb"),d=cr(c,"",d,{"--cv-callout-bg":i(),"--cv-callout-text":a()}),An(p,r())}),En(e,l)}(e,{get position(){return t.options.icon.position},get message(){return ln(n)},get enablePulse(){return ln(r)},get backgroundColor(){return ln(s)},get textColor(){return ln(i)},onclose:()=>o.dismiss()})}};Nn(w,e=>{o.showCallout&&ln(s)&&e(y)});var x=ct(w,2);vo(x,{});var k=ct(x,2),_=e=>{Co(e,{get excludedTags(){return ln(h)},get excludedIds(){return ln(u)}})};Nn(k,e=>{ao.isActive&&e(_)});var C=ct(k,2);!function(e,t){function n(){So.exit()}ie(t,!1),nr(e,$o),$r();var r=Sn(),s=lt(r),o=e=>{var t=Eo();ct(at(t),2).__click=n,J(t),er(3,t,()=>Br,()=>({duration:250})),En(e,t)};Nn(s,e=>{So.isActive&&e(o)}),En(e,r),ae()}(C,{});var S=ct(C,2),E=e=>{{let n=He(()=>t.options.icon?.color),r=He(()=>t.options.icon?.backgroundColor),s=He(()=>t.options.icon?.opacity),i=He(()=>t.options.icon?.scale);Er(Nr(e,{get position(){return t.options.icon.position},get title(){return t.options.panel.title},get pulse(){return o.showPulse},onclick:p,get iconColor(){return ln(n)},get backgroundColor(){return ln(r)},get opacity(){return ln(s)},get scale(){return ln(i)},get persistence(){return t.controller.persistenceManager}}),e=>Ge(c,e,!0),()=>ln(c))}};Nn(S,e=>{ln(b)&&t.options.icon.show&&e(E)});var $=ct(S,2),T=e=>{Vs(e,{get controller(){return t.controller},get title(){return t.options.panel.title},get description(){return t.options.panel.description},get showReset(){return t.options.panel.showReset},get showTabGroups(){return t.options.panel.showTabGroups},get isResetting(){return ln(l)},onclose:v,onreset:f,onstartShare:g})};Nn($,e=>{ln(s)&&ln(a)&&e(T)}),J(m),_t(()=>gr(m,"data-theme",es.currentTheme)),En(e,m),ae()}class No{app=null;options;constructor(e){this.options={controller:e.controller,container:e.container||document.body,settingsEnabled:e.settingsEnabled??!0,theme:e.theme||"light",panel:{title:e.panel?.title||"Customize View",description:e.panel?.description||"",showTabGroups:e.panel?.showTabGroups??!0,showReset:e.panel?.showReset??!0},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=Mn(Oo,{target:this.options.container,props:{controller:this.options.controller,options:this.options}}))}destroy(){this.app&&(Rn(this.app),this.app=null)}}class jo{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("customviews-state",JSON.stringify(e))}getPersistedState(){const e=this.getItem("customviews-state");if(!e)return null;try{return JSON.parse(e)}catch(e){return console.error("Failed to parse persisted state:",e),null}}clearAll(){this.removeItem("customviews-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()}}var Vo=_n('<div class="cv-context-divider svelte-1a535nn" role="button" tabindex="0"> </div>');const Fo={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 Do(e,t){ie(t,!0),nr(e,Fo);let n=Mr(t,"hiddenCount",3,0);function r(){t.onExpand&&t.onExpand()}var s=Vo();s.__click=r,s.__keydown=e=>"Enter"===e.key&&r();var o=at(s);J(s),_t(()=>An(o,`... ${n()??""} section${n()>1?"s":""} hidden (Click to expand) ...`)),En(e,s),ae()}mn(["click","keydown"]);var Uo=_n('<div class="cv-highlight-box svelte-1mz0neo"></div> <div> </div>',1),Bo=_n('<div class="cv-highlight-overlay svelte-1mz0neo"></div>');const Go={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 Wo(e,t){ie(t,!0),nr(e,Go);let n=He(()=>t.box.rects);var r=Bo();Fn(r,21,()=>ln(n),e=>`${e.top}-${e.left}-${e.width}-${e.height}`,(e,t)=>{const n=He(()=>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"}(ln(t)));var r=Uo(),s=lt(r),o=ct(s,2),i=at(o,!0);J(o),_t((e,r)=>{cr(s,`top: ${ln(t).top??""}px; left: ${ln(t).left??""}px; width: ${ln(t).width??""}px; height: ${ln(t).height??""}px;`),ar(o,0,`cv-highlight-arrow ${ln(n)??""}`,"svelte-1mz0neo"),cr(o,e),An(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}(ln(t),ln(n)),()=>function(e){switch(e){case"left":return"→";case"right":return"←";case"top":return"↓";case"bottom":return"↑"}return""}(ln(n))]),En(e,r)}),J(r),En(e,r),ae()}function Zo(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,h=d+t.width,u=c+t.height;c<o&&(o=c),d<i&&(i=d),h>a&&(a=h),u>l&&(l=u)});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 Yo="cv-highlight",Ko="cv-highlight-mode",Jo="cv-highlight-overlay";class Xo{#ke=Ue(Ke([]));get rects(){return ln(this.#ke)}set rects(e){Ge(this.#ke,e,!0)}}class Qo{rootEl;overlayApp;state=new Xo;resizeObserver;activeTargets=[];onWindowResize=()=>this.updatePositions();constructor(e){this.rootEl=e,this.resizeObserver=new ResizeObserver(()=>{this.updatePositions()})}apply(e){const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some highlighted sections could not be found."),void this.exit();n.length<t.length&&rs("Some highlighted sections could not be found."),So.setIsActive(!0),document.body.classList.add(Ko),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(()=>{bs(r)})})}exit(){document.body.classList.remove(Ko),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.onWindowResize),this.activeTargets=[],this.state.rects=[];const e=document.getElementById(Jo);this.overlayApp&&(Rn(this.overlayApp),this.overlayApp=void 0),e&&e.remove()}renderHighlightOverlay(){let e=document.getElementById(Jo);e||(e=document.createElement("div"),e.id=Jo,document.body.appendChild(e)),e.innerHTML="",this.updatePositions(),this.overlayApp&&Rn(this.overlayApp),this.overlayApp=Mn(Wo,{target:e,props:{box:this.state}})}updatePositions(){if(0===this.activeTargets.length)return void(this.state.rects=[]);const e=function(e){const t=new ls;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){Zo(r,i,t,s,o);continue}const e=new as(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&&(Zo(r,a,t,s,o),a=[]);a.length>0&&Zo(r,a,t,s,o)}return r}(e,e=>e.getBoundingClientRect(),()=>({scrollTop:window.pageYOffset||document.documentElement.scrollTop,scrollLeft:window.pageXOffset||document.documentElement.scrollLeft}))}}const ei="cv-show",ti="cv-hide",ni="cv-show-mode",ri="cv-hidden",si="cv-show-element";class oi{rootEl;hiddenElements=new as;dividers=new as;excludedTags;excludedIds;unsubscribe;url=new us(window.location.href);highlightService;constructor(e,t){this.rootEl=e;const n=t.shareExclusions?.tags||[],r=t.shareExclusions?.ids||[];this.excludedTags=new as([...Ys,...n].map(e=>e.toUpperCase())),this.excludedIds=new as([...Ks,...r]),this.highlightService=new Qo(this.rootEl),this.unsubscribe=yt(()=>{mt(()=>{window.location.href!==this.url.href&&window.history.pushState({},"",this.url.href)}),mt(()=>{const e=this.url.searchParams.get(ei),t=this.url.searchParams.get(ti),n=this.url.searchParams.get(Yo);hn(()=>{e?this.applyShowMode(e):t?this.applyHideMode(t):n?this.applyHighlightMode(n):(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode()})}),mt(()=>{So.isActive||!document.body.classList.contains(ni)&&!document.body.classList.contains(Ko)||this.exitShowMode()})}),window.addEventListener("popstate",this.handlePopState)}handlePopState=()=>{this.url.href=window.location.href};applyShowMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1);const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&rs("Some shared sections could not be found."),So.setIsActive(!0),document.body.classList.add(ni),this.renderShowView(n)}applyHideMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1);const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&rs("Some shared sections could not be found."),So.setIsActive(!0),document.body.classList.add(ni),this.renderHiddenView(n)}applyHighlightMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1),this.highlightService.apply(e)}renderHiddenView(e){e.forEach(e=>{e.classList.add(ri),this.hiddenElements.add(e)});const t=new as;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(si));const t=function(e,t,n){const r=new as,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(`[${Js}]`))}(e,{hiddenElements:this.hiddenElements,excludedTags:this.excludedTags,excludedIds:this.excludedIds}));t.forEach(e=>{e.classList.add(ri),this.hiddenElements.add(e)});const n=new as;e.forEach(e=>{let t=e;for(;t&&t!==document.body&&t!==document.documentElement;)n.add(t),t=t.parentElement});const r=new as;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(ri));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=Mn(Do,{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(ri)&&(s.classList.remove(ri),this.hiddenElements.delete(s)),s=s.nextElementSibling,o++;Rn(n),this.dividers.delete(n),r.remove(),0===this.hiddenElements.size&&So.exit()}exitShowMode(e=!0){document.body.classList.remove(ni,Ko),this.hiddenElements.forEach(e=>e.classList.remove(ri)),this.hiddenElements.clear(),this.dividers.forEach(e=>Rn(e)),this.dividers.clear(),document.querySelectorAll(".cv-divider-wrapper").forEach(e=>e.remove());document.querySelectorAll(`.${si}`).forEach(e=>e.classList.remove(si)),this.highlightService.exit(),So.isActive&&So.setIsActive(!1),e&&(this.url.searchParams.has(ei)&&this.url.searchParams.delete(ei),this.url.searchParams.has(ti)&&this.url.searchParams.delete(ti),this.url.searchParams.has(Yo)&&this.url.searchParams.delete(Yo))}destroy(){this.exitShowMode(),this.unsubscribe(),window.removeEventListener("popstate",this.handlePopState)}}function ii(e){return["toggles","tabGroups","placeholders"].includes(e)}const ai=new class{#_e=Ue(Ke({}));get config(){return ln(this.#_e)}set config(e){Ge(this.#_e,e,!0)}#Ce=Ue(Ke([]));get configSectionOrder(){return ln(this.#Ce)}set configSectionOrder(e){Ge(this.#Ce,e,!0)}#Se=Ue(Ke({shownToggles:[],peekToggles:[],tabs:{}}));get state(){return ln(this.#Se)}set state(e){Ge(this.#Se,e,!0)}#Ee=Ue(Ke(new as));get detectedToggles(){return ln(this.#Ee)}set detectedToggles(e){Ge(this.#Ee,e,!0)}#$e=Ue(Ke(new as));get detectedTabGroups(){return ln(this.#$e)}set detectedTabGroups(e){Ge(this.#$e,e,!0)}#Te=Ue(Ke(new as));get detectedPlaceholders(){return ln(this.#Te)}set detectedPlaceholders(e){Ge(this.#Te,e,!0)}#Le=Ue(!0);get isTabGroupNavHeadingVisible(){return ln(this.#Le)}set isTabGroupNavHeadingVisible(e){Ge(this.#Le,e,!0)}#Ae=Ue(void 0);get assetsManager(){return ln(this.#Ae)}set assetsManager(e){Ge(this.#Ae,e,!0)}#Me=He(()=>this.config.toggles?this.config.toggles.filter(e=>!e.isLocal||this.detectedToggles.has(e.toggleId)):[]);get menuToggles(){return ln(this.#Me)}set menuToggles(e){Ge(this.#Me,e)}#Pe=He(()=>this.config.tabGroups?this.config.tabGroups.filter(e=>!e.isLocal||this.detectedTabGroups.has(e.groupId)):[]);get menuTabGroups(){return ln(this.#Pe)}set menuTabGroups(e){Ge(this.#Pe,e)}#ze=He(()=>this.menuToggles.length>0||this.menuTabGroups.length>0);get hasMenuOptions(){return ln(this.#ze)}set hasMenuOptions(e){Ge(this.#ze,e)}#Ie=He(()=>this.detectedToggles.size>0||this.detectedTabGroups.size>0);get hasPageElements(){return ln(this.#Ie)}set hasPageElements(e){Ge(this.#Ie,e)}constructor(e={}){this.config=e,this.state=this.computeDefaultState()}setPinnedTab(e,t){this.state.tabs||(this.state.tabs={}),this.state.tabs[e]=t,this.updatePlaceholderFromTabInput(e,t)}setToggles(e,t){this.state.shownToggles=e,this.state.peekToggles=t}applyState(e){const t=this.computeDefaultState();this.state={shownToggles:e.shownToggles??t.shownToggles??[],peekToggles:e.peekToggles??t.peekToggles??[],tabs:{...t.tabs,...e.tabs}}}reset(){this.state=this.computeDefaultState()}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()}setAssetsManager(e){this.assetsManager=e}registerPlaceholderFromTabGroup(e){if(!e.placeholderId)return;const t=e.placeholderId,n=ps.get(t);if(n)return void("config"===n.source?console.warn(`[CustomViews] 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(`[CustomViews] 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.`));ps.register({name:t,settingsLabel:e.label??e.groupId,hiddenFromSettings:!0,source:"tabgroup",ownerTabGroupId:e.groupId});const r=this.state.tabs?.[e.groupId];r&&this.updatePlaceholderFromTabInput(e.groupId,r)}updatePlaceholderFromTabInput(e,t){const n=this.config.tabGroups?.find(t=>t.groupId===e);if(!n||!n.placeholderId)return;if(!ps.has(n.placeholderId))return;const r=n.tabs.find(e=>e.tabId===t);if(!r)return;const s=r.placeholderValue??"";fs.set(n.placeholderId,s)}computeDefaultState(){const e=[],t=[],n={};return this.config.toggles&&this.config.toggles.forEach(n=>{"peek"===n.default?t.push(n.toggleId):"hide"===n.default||e.push(n.toggleId)}),this.config.tabGroups&&this.config.tabGroups.forEach(e=>{if(e.default)n[e.groupId]=e.default;else if(e.tabs&&e.tabs.length>0){const t=e.tabs[0];t?.tabId&&(n[e.groupId]=t.tabId)}}),{shownToggles:e,peekToggles:t,tabs:n}}}({});const li=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/g,ci=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/;class di{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:ci.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);t.forEach(e=>{di.processTextNode(e)})}static scanAttributeBindings(e){e.querySelectorAll(".cv-bind, [data-cv-bind]").forEach(e=>{e instanceof HTMLElement&&di.processElementAttributes(e)})}static processTextNode(e){const t=e.nodeValue||"";let n,r=0;const s=document.createDocumentFragment();let o=!1;for(li.lastIndex=0;null!==(n=li.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),ai.registerPlaceholder(a)}r=li.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&&ci.test(r.value)&&(t[r.name]=r.value,n=!0);if(n){e.dataset.cvAttrTemplates=JSON.stringify(t);const n=new RegExp(li.source,"g");Object.values(t).forEach(e=>{let t;for(n.lastIndex=0;null!==(t=n.exec(e));)!t[1]&&t[2]&&ai.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=di.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=ps.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(li,(e,r,s,o)=>{if(r)return`[[${s}]]`;let i=di.resolveValue(s,o,t);return void 0===i?`[[${s}]]`:(!n||"href"!==n&&"src"!==n||di.isFullUrl(i)||di.isRelativeUrl(i)||(i=encodeURIComponent(i)),i)})}}class hi{store;rootEl;persistenceManager;focusService;showUrlEnabled;observer;destroyEffectRoot;popstateHandler;constructor(e){this.rootEl=e.rootEl||document.body,this.persistenceManager=new jo(e.storageKey),this.showUrlEnabled=e.showUrl??!1,this.store=function(e){Object.assign(ai.config,e);const t=ai.computeDefaultState();return ai.state.shownToggles=t.shownToggles??[],ai.state.peekToggles=t.peekToggles??[],ai.state.tabs=t.tabs??{},e.placeholders&&e.placeholders.forEach(e=>{ps.register({...e,source:"config"})}),ai.configSectionOrder=Object.keys(e).filter(ii),e.tabGroups&&e.tabGroups.forEach(e=>{ai.registerPlaceholderFromTabGroup(e)}),ai}(e.config),this.store.setAssetsManager(e.assetsManager),this.resolveInitialState(),this.focusService=new oi(this.rootEl,{shareExclusions:e.config.shareExclusions||{}})}resolveInitialState(){const e=ts.parseURL();if(e)return void this.store.applyState(e);const t=this.persistenceManager.getPersistedState();t&&this.store.applyState(t)}init(){const e=this.persistenceManager.getPersistedTabNavVisibility();null!==e&&(this.store.isTabGroupNavHeadingVisible=e),fs.init(this.persistenceManager),this.store.clearDetectedPlaceholders(),di.scanAndHydrate(this.rootEl),this.setUpObserver(),this.destroyEffectRoot=yt(()=>{mt(()=>{this.showUrlEnabled?ts.updateURL(this.store.state):ts.clearURL()}),mt(()=>{this.persistenceManager.persistState(this.store.state),this.persistenceManager.persistTabNavVisibility(this.store.isTabGroupNavHeadingVisible)}),mt(()=>{di.updateAll(fs.values)})}),this.popstateHandler=()=>{const e=ts.parseURL();e&&this.store.applyState(e)},window.addEventListener("popstate",this.popstateHandler)}setUpObserver(){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?di.scanAndHydrate(e):e.nodeType===Node.TEXT_NODE&&e.parentElement&&e.nodeValue?.includes("[[")&&e.nodeValue?.includes("]]")&&di.scanAndHydrate(e.parentElement)}resetToDefault(){this.persistenceManager.clearAll(),this.store.reset(),this.store.isTabGroupNavHeadingVisible=!0,ts.clearURL()}destroy(){this.observer?.disconnect(),this.destroyEffectRoot?.(),this.popstateHandler&&window.removeEventListener("popstate",this.popstateHandler),this.focusService.destroy()}}class ui{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}}}function pi(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("[CustomViews] Unknown asset type:",s)}}var vi=_n('<div class="cv-toggle-label svelte-1dbwn3b"> </div>'),fi=_n('<button class="cv-expand-btn svelte-1dbwn3b"><!></button>'),gi=_n('<div><!> <div class="cv-toggle-content svelte-1dbwn3b"><div class="cv-toggle-inner svelte-1dbwn3b"><!></div></div> <!></div>');const bi={hash:"svelte-1dbwn3b",code:":host {display:block;position:relative;z-index:1;overflow:visible;}\n\n /* Host visibility control */:host([hidden]) {display:none;}.cv-toggle-wrapper.svelte-1dbwn3b {position:relative;width:100%;transition:all 0.3s ease;margin-bottom:4px;}.cv-toggle-wrapper.hidden.svelte-1dbwn3b {margin-bottom:0;}.cv-toggle-wrapper.peek-mode.svelte-1dbwn3b {margin-bottom:24px;}.cv-toggle-content.svelte-1dbwn3b {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-1dbwn3b {display:flow-root; /* Ensures margins of children are contained */}\n\n /* Hidden State */.hidden.svelte-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {opacity:0;pointer-events:none;}\n\n /* Bordered State */.has-border.svelte-1dbwn3b {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-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {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-1dbwn3b {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-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {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-1dbwn3b {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-1dbwn3b .cv-toggle-label:where(.svelte-1dbwn3b) {top:-10px;left:0;}\n\n /* Expand Button */.cv-expand-btn.svelte-1dbwn3b {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-1dbwn3b: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-1dbwn3b svg {display:block;opacity:0.6;width:24px;height:24px;transition:opacity 0.2s;}.cv-expand-btn.svelte-1dbwn3b:hover svg {opacity:1;}"};mn(["click"]),customElements.define("cv-toggle",Ir(function(e,t){ie(t,!0),nr(e,bi);let n=Mr(t,"toggleId",7,""),r=Mr(t,"assetId",7,""),s=Mr(t,"showPeekBorder",7,!1),o=Mr(t,"showLabel",7,!1),i=He(()=>(n()||"").split(/\s+/).filter(Boolean)),a=He(()=>ai.config.toggles?.find(e=>e.toggleId===ln(i)[0]));mt(()=>{ln(i).forEach(e=>ai.registerToggle(e))});let l,c,d=He(()=>ln(a)?ln(a).label||ln(i)[0]:""),h=Ue(!1),u=Ue(!1),p=Ue(!1),v=Ue(0),f=He(()=>{if(!ai.config.toggles)return!0;const e=ai.state.shownToggles??[];return ln(i).some(t=>e.includes(t))}),g=He(()=>{const e=ai.state.peekToggles??[];return!ln(f)&&ln(i).some(t=>e.includes(t))}),b=Ue(!1);mt(()=>{if(!l)return;const e=new ResizeObserver(()=>{c&&Ge(v,c.offsetHeight,!0),ln(v)>0&&(ln(v)<=70?Ge(b,!0):ln(b)||Ge(b,!1))});return c&&(e.observe(c),Ge(v,c.offsetHeight,!0)),()=>{e.disconnect()}});let m=He(()=>ln(f)||ln(g)&&ln(h)||ln(g)&&ln(b));mt(()=>{ln(m),Ge(u,!1)});let w=He(()=>!ln(f)&&ln(g)&&!ln(h)&&!ln(b)),y=He(()=>!ln(f)&&!ln(g)),x=He(()=>ln(y)?"0px":ln(u)&&ln(m)?"none":ln(w)?"70px":ln(m)?ln(v)>0?`${ln(v)}px`:"9999px":"0px");function k(e){e.stopPropagation(),Ge(h,!ln(h))}mt(()=>{ln(m)&&r()&&!ln(p)&&ai.assetsManager&&l&&(pi(l,r(),ai.assetsManager),Ge(p,!0))});var _={get toggleId(){return n()},set toggleId(e=""){n(e),_e()},get assetId(){return r()},set assetId(e=""){r(e),_e()},get showPeekBorder(){return s()},set showPeekBorder(e=!1){s(e),_e()},get showLabel(){return o()},set showLabel(e=!1){o(e),_e()}},C=gi();let S;var E=at(C),$=e=>{var t=vi(),n=at(t,!0);J(t),_t(()=>An(n,ln(d))),En(e,t)};Nn(E,e=>{o()&&ln(d)&&!ln(y)&&e($)});var T=ct(E,2);let L;var A=at(T);Wn(at(A),t,"default",{}),J(A),Er(A,e=>c=e,()=>c),J(T),Er(T,e=>l=e,()=>l);var M=ct(T,2),P=e=>{var t=fi();t.__click=k,Gn(at(t),()=>ln(h)?'<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg>':'<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'),J(t),_t(()=>gr(t,"aria-label",ln(h)?"Collapse content":"Expand content")),En(e,t)};return Nn(M,e=>{ln(g)&&!ln(b)&&e(P)}),J(C),_t(()=>{S=ar(C,0,"cv-toggle-wrapper svelte-1dbwn3b",null,S,{expanded:ln(m)&&!ln(w),peeking:ln(w),"peek-mode":ln(g),hidden:ln(y),"has-border":s()&&ln(g)}),L=cr(T,"",L,{"max-height":ln(x)})}),bn("transitionend",T,function(e){"max-height"===e.propertyName&&e.target===l&&ln(m)&&Ge(u,!0)}),En(e,C),ae(_)},{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 mi=_n("<div><!></div>");const wi={hash:"svelte-1hy6z32",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-1hy6z32 {display:none;\n animation: svelte-1hy6z32-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-1hy6z32 {display:block;}\n\n /* Hide cv-tab-header source element; content is extracted to nav link */.svelte-1hy6z32::slotted(cv-tab-header) {display:none !important;}\n\n /* Allow cv-tab-body to flow naturally */.svelte-1hy6z32::slotted(cv-tab-body) {display:block;}\n\n @keyframes svelte-1hy6z32-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }"};customElements.define("cv-tab",Ir(function(e,t){ie(t,!0),nr(e,wi);let n=Mr(t,"active",7,!1);var r={get active(){return n()},set active(e=!1){n(e),_e()}},s=mi();let o;return Wn(at(s),t,"default",{}),J(s),_t(()=>o=ar(s,0,"cv-tab-content svelte-1hy6z32",null,o,{active:n()})),En(e,s),ae(r)},{tabId:{attribute:"tab-id",reflect:!0,type:"String"},header:{attribute:"header",reflect:!0,type:"String"},active:{}},["default"],[],!0));var yi=_n('<li class="nav-item svelte-xqnrrx"><a role="tab" title="Double-click a tab to \'pin\' it in all similar tab groups."><span class="cv-tab-header-container svelte-xqnrrx"><span class="cv-tab-header-text svelte-xqnrrx"><!></span> <span class="cv-tab-pin-icon svelte-xqnrrx"><!></span></span></a></li>'),xi=_n('<ul class="cv-tabs-nav nav-tabs svelte-xqnrrx" role="tablist"></ul>'),ki=_n('<link rel="stylesheet"/>'),_i=_n('<div class="cv-tabgroup-container"><!> <!> <div class="cv-tabgroup-content"><!></div> <div class="cv-tabgroup-bottom-border svelte-xqnrrx"></div></div>');const Ci={hash:"svelte-xqnrrx",code:":host {display:block;margin-bottom:24px;}\n\n /* Tab navigation styles */ul.nav-tabs.svelte-xqnrrx {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-xqnrrx {margin-bottom:-1px;list-style:none;display:flex;align-items:stretch;}.nav-link.svelte-xqnrrx {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-xqnrrx p {margin:0;display:inline;}.nav-link.svelte-xqnrrx:hover,\n .nav-link.svelte-xqnrrx:focus {border-color:#e9ecef #e9ecef #dee2e6;isolation:isolate;}.nav-link.active.svelte-xqnrrx {color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff;}.nav-link.svelte-xqnrrx:focus {outline:0;}.cv-tab-header-container.svelte-xqnrrx {display:flex;align-items:center;gap:6px;}.cv-tab-header-text.svelte-xqnrrx {flex:1;}.cv-tab-pin-icon.svelte-xqnrrx {display:inline-flex;align-items:center;line-height:0;flex-shrink:0;}.cv-tab-pin-icon.svelte-xqnrrx svg {vertical-align:middle;width:14px;height:14px;}.cv-tabgroup-bottom-border.svelte-xqnrrx {border-bottom:1px solid #dee2e6;}\n\n @media print {ul.cv-tabs-nav.svelte-xqnrrx {display:none !important;}\n }"};mn(["click","dblclick"]),customElements.define("cv-tabgroup",Ir(function(e,t){ie(t,!0),nr(e,Ci);let n=Mr(t,"groupId",7);mt(()=>{n()&&ai.registerTabGroup(n())});let r=Ue(Ke([])),s=Ue(void 0),o=Ue(null),i=Ue(!1),a=Ue(""),l=He(()=>{const e=ai.state.tabs??{};return n()&&e[n()]?e[n()]:null}),c=Ue(null);mt(()=>{ln(l)!==ln(c)&&(Ge(c,ln(l),!0),ln(l)&&ln(a)!==ln(l)&&(Ge(a,ln(l),!0),v()))});let d=He(()=>ai.isTabGroupNavHeadingVisible);const h=function(e=!1){return`\n <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" opacity="${e?"1":"0.6"}" xmlns="http://www.w3.org/2000/svg">\n <g transform="rotate(45 8 8)">\n <path d="M10.5 2H12V0H4V2H5.5V6L4 7.5V9H7.2V15H8.8V9H12V7.5L10.5 6V2Z"/>\n </g>\n </svg>\n `.trim()}(!0);function u(e){return e.split(/[\s|]+/).filter(e=>""!==e.trim()).map(e=>e.trim())}function p(){if(!ln(o))return;const e=ln(o).assignedElements().filter(e=>"cv-tab"===e.tagName.toLowerCase());if(Ge(r,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=u(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),!ln(i)&&ln(r).length>0){if(ln(a))v();else{const e=ln(r)[0].id;Ge(a,e,!0)}Ge(i,!0)}else ln(i)&&v()}function v(){ln(r).length&&ln(r).forEach(e=>{const t=u(e.rawId).includes(ln(a));e.element.active=t})}On(()=>{ln(s)&&(Ge(o,ln(s).querySelector("slot"),!0),ln(o)&&(ln(o).addEventListener("slotchange",p),p()))});var f={get groupId(){return n()},set groupId(e){n(e),_e()}},g=_i(),b=at(g),m=e=>{var t=xi();Fn(t,21,()=>ln(r),e=>e.id,(e,t)=>{const r=He(()=>u(ln(t).rawId)),s=He(()=>ln(r).includes(ln(a))),o=He(()=>ln(l)&&ln(r).includes(ln(l)));var i=yi(),c=at(i);let d;c.__click=e=>function(e,t){t.preventDefault(),ln(a)!==e&&(Ge(a,e,!0),v())}(ln(t).id,e),c.__dblclick=e=>function(e,t){t.preventDefault(),n()&&ai.setPinnedTab(n(),e)}(ln(t).id,e);var p=at(c),f=at(p);Gn(at(f),()=>ln(t).header),J(f);var g=ct(f,2);let b;Gn(at(g),()=>h),J(g),J(p),J(c),J(i),_t(()=>{d=ar(c,0,"nav-link svelte-xqnrrx",null,d,{active:ln(s)}),gr(c,"href","#"+ln(t).id),gr(c,"aria-selected",ln(s)),gr(c,"data-tab-id",ln(t).id),gr(c,"data-raw-tab-id",ln(t).rawId),gr(c,"data-group-id",n()),b=cr(g,"",b,{display:ln(o)?"inline-flex":"none"})}),En(e,i)}),J(t),En(e,t)};Nn(b,e=>{ln(r).length>0&&ln(d)&&e(m)});var w=ct(b,2);Fn(w,16,()=>Array.from(document.querySelectorAll('link[rel="stylesheet"]')),e=>e.href,(e,t)=>{var n=ki();_t(()=>gr(n,"href",t.href)),En(e,n)});var y=ct(w,2);return Wn(at(y),t,"default",{}),J(y),Er(y,e=>Ge(s,e),()=>ln(s)),X(2),J(g),En(e,g),ae(f)},{groupId:{attribute:"group-id",reflect:!0,type:"String"}},["default"],[],!0));const Si={hash:"svelte-1vo4bld",code:":host {display:none; /* Semantic container only, usually read by parent and hidden */}"};customElements.define("cv-tab-header",Ir(function(e,t){nr(e,Si);var n=Sn();Wn(lt(n),t,"default",{}),En(e,n)},{},["default"],[],!0));const Ei={hash:"svelte-1gw0vk2",code:":host {display:block;}"};customElements.define("cv-tab-body",Ir(function(e,t){nr(e,Ei);var n=Sn();Wn(lt(n),t,"default",{}),En(e,n)},{},["default"],[],!0));var $i=_n('<span class="cv-var"> </span>');const Ti={hash:"svelte-1tffxwo",code:":host {display:inline;}"};customElements.define("cv-placeholder",Ir(function(e,t){ie(t,!0),nr(e,Ti);let n=Mr(t,"name",7),r=Mr(t,"fallback",7),s=He(()=>{if(!n())return"";const e=fs.values[n()];if(void 0!==e&&""!==e)return e;if(r())return r();const t=ps.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=ln(s)}}var i={get name(){return n()},set name(e){n(e),_e()},get fallback(){return r()},set fallback(e){r(e),_e()}},a=$i(),l=at(a,!0);return J(a),rr(a,()=>o),_t(()=>An(l,ln(s))),En(e,a),ae(i)},{name:{},fallback:{}},[],[],!0));var Li=_n('<label class="placeholder-label svelte-dpk3ag"> </label>'),Ai=_n('<div><!> <input type="text"/></div>');const Mi={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 Pi(){"undefined"!=typeof window&&(window.__customViewsInitialized?console.info("[CustomViews] Auto-init skipped: already initialized."):document.addEventListener("DOMContentLoaded",async function(){if(!window.__customViewsInitInProgress&&!window.__customViewsInitialized){window.__customViewsInitInProgress=!0;try{const{baseURL:e,configPath:n}=function(){let e=document.currentScript;const t={baseURL:"",configPath:"/customviews.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(/(?:custom[-_]views|@customviews-js\/customviews)(?:\.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(`[CustomViews] Config file not found at ${s}. Using defaults.`),r)}catch(e){return console.error("[CustomViews] Error loading config file:",e),r}}(n,e),s=e||r.baseUrl||"";let o;if(r.assetsJsonPath){const e=t(r.assetsJsonPath,s);try{const t=await(await fetch(e)).json();o=new ui(t,s)}catch(t){console.error(`[CustomViews] Failed to load assets JSON from ${e}:`,t),o=new ui({},s)}}else o=new ui({},s);const i={assetsManager:o,config:r.config||{},rootEl:document.body,showUrl:r.showUrl||!1,storageKey:r.storageKey},a=new hi(i);a.init(),function(e,t){const n=!1!==t.settings?.enabled,r=new No({controller:e,settingsEnabled:n,...t.settings});r.render()}(a,r),window.__customViewsInitialized=!0,window.__customViewsInitInProgress=!1}catch(e){window.__customViewsInitInProgress=!1,console.error("[CustomViews] Auto-initialization error:",e)}}}))}mn(["input"]),customElements.define("cv-placeholder-input",Ir(function(e,t){ie(t,!0),nr(e,Mi);let n=Mr(t,"name",7),r=Mr(t,"label",7),s=Mr(t,"hint",7),o=Mr(t,"layout",7,"inline"),i=Mr(t,"appearance",7,"outline"),a=Mr(t,"width",7),l=He(o),c=He(()=>fs.values[n()]??""),d=He(()=>{if(r())return r();const e=ps.get(n());return e?"inline"!==ln(l)&&e.settingsLabel?e.settingsLabel:e.settingsLabel||n():n()}),h=He(()=>{if(s())return s();const e=ps.get(n());return e?.settingsHint||""}),u=He(()=>n().replace(/[^a-zA-Z0-9_-]/g,"_")),p=He(()=>{if("inline"!==ln(l)||"auto-grow"!==a())return;const e=(ln(c)||ln(h)).length;return Math.max(e,4)});var v={get name(){return n()},set name(e){n(e),_e()},get label(){return r()},set label(e){r(e),_e()},get hint(){return s()},set hint(e){s(e),_e()},get layout(){return o()},set layout(e="inline"){o(e),_e()},get appearance(){return i()},set appearance(e="outline"){i(e),_e()},get width(){return a()},set width(e){a(e),_e()}},f=Ai();let g;var b=at(f),m=e=>{var t=Li(),n=at(t,!0);J(t),_t(()=>{gr(t,"for",`cv-input-${ln(u)??""}`),An(n,ln(d))}),En(e,t)};Nn(b,e=>{"inline"!==ln(l)&&ln(d)&&e(m)});var w=ct(b,2);return vr(w),w.__input=function(e){const t=e.target;fs.set(n(),t.value)},J(f),_t(()=>{ar(f,0,`cv-input-wrapper ${ln(l)??""}`,"svelte-dpk3ag"),g=cr(f,"",g,{"--cv-input-width":"auto-grow"===a()?"auto":a()}),gr(w,"id",`cv-input-${ln(u)??""}`),ar(w,0,`placeholder-input ${i()??""}`,"svelte-dpk3ag"),gr(w,"placeholder",ln(h)),fr(w,ln(c)),gr(w,"aria-label","inline"===ln(l)?ln(d):void 0),gr(w,"size",ln(p))}),En(e,f),ae(v)},{name:{},label:{},hint:{},layout:{},appearance:{},width:{}},[],[],!0)),"undefined"!=typeof window&&Pi(),e.initializeFromScript=Pi});
|
|
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).CustomViews={})}(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,h=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyDescriptors,p=Object.prototype,v=Array.prototype,f=Object.getPrototypeOf,g=Object.isExtensible;const b=()=>{};function m(e){return e()}function w(e){for(var t=0;t<e.length;t++)e[t]()}function y(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const x=1<<24,k=16,_=32,C=64,S=128,E=512,$=1024,L=2048,T=4096,A=8192,M=16384,P=32768,z=65536,I=1<<17,H=1<<18,q=1<<19,R=1<<25,O=32768,N=1<<21,j=1<<23,V=Symbol("$state"),F=Symbol("legacy props"),D=Symbol(""),U=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function B(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let G,W=!1;function Z(e){W=e}function Y(e){if(null===e)throw B(),r;return G=e}function K(){return Y(it(G))}function J(e){if(W){if(null!==it(G))throw B(),r;G=e}}function X(e=1){if(W){for(var t=e,n=G;t--;)n=it(n);G=n}}function Q(e=!0){for(var t=0,r=G;;){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 B(),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=[],w(e)}function he(e){if(0===ce.length&&!xe){var t=ce;queueMicrotask(()=>{t===ce&&de()})}ce.push(e)}function ue(){for(;ce.length>0;)de()}function pe(e){var t=Dt;if(null===t)return jt.f|=j,e;if(0===(t.f&P)){if(0===(t.f&S))throw e;t.b.error(e)}else ve(e,t)}function ve(e,t){for(;null!==t;){if(0!==(t.f&S))try{return void t.b.error(e)}catch(t){e=t}t=t.parent}throw e}const fe=new Set;let ge=null,be=null,me=[],we=null,ye=!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,$e(t.render_effects),$e(t.effects),this.#s?.resolve()),be=null}#a(e,t){e.f^=$;for(var n=e.first;null!==n;){var r=n.f,s=!!(96&r),o=s&&0!==(r&$)||0!==(r&A)||this.skipped_effects.has(n);if(0!==(n.f&S)&&n.b?.is_pending()&&(t={parent:t,effect:n,effects:[],render_effects:[]}),!o&&null!==n.fn){s?n.f^=$:4&r?t.effects.push(n):tn(n)&&(0!==(n.f&k)&&this.#o.add(n),an(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&L)?this.#o.add(t):0!==(t.f&T)&&this.#i.add(t),this.#d(t.deps),pn(t,$)}#d(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&O)&&(t.f^=O,this.#d(t.deps))}capture(e,t){this.previous.has(e)||this.previous.set(e,t),0===(e.f&j)&&(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(Ce(),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.#h()}#h(){if(fe.size>1){this.previous.clear();var e=be,t=!0,n={parent:null,effect:null,effects:[],render_effects:[]};for(const e of fe){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)Le(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,fe.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),pn(e,L),Ae(e);for(const e of this.#i)pn(e,T),Ae(e);this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#s??=y()).promise}static ensure(){if(null===ge){const e=ge=new ke;fe.add(ge),xe||ke.enqueue(()=>{ge===e&&e.flush()})}return ge}static enqueue(e){he(e)}apply(){}}function _e(e){var t=xe;xe=!0;try{for(;;){if(ue(),0===me.length&&(ge?.flush(),0===me.length))return void(we=null);Ce()}}finally{xe=t}}function Ce(){var e=qt;ye=!0;try{var t=0;for(Rt(!0);me.length>0;){var n=ke.ensure();if(t++>1e3)o,Se();n.process(me),Ve.clear()}}finally{ye=!1,Rt(e),we=null}}function Se(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){ve(e,we)}}let Ee=null;function $e(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&tn(r)&&(Ee=new Set,an(r),null===r.deps&&null===r.first&&null===r.nodes&&(null===r.teardown&&null===r.ac?At(r):r.fn=null),Ee?.size>0)){Ve.clear();for(const e of Ee){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ee.has(n)&&(Ee.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||an(n)}}Ee.clear()}}Ee=null}}function Le(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?Le(s,t,n,r):4194320&e&&0===(e&L)&&Te(s,t,r)&&(pn(s,L),Ae(s))}}function Te(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&&Te(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Ae(e){for(var t=we=e;null!==t.parent;){var n=(t=t.parent).f;if(ye&&t===Dt&&0!==(n&k)&&0===(n&H))return;if(96&n){if(0===(n&$))return;t.f^=$}}me.push(t)}class Me{parent;#n=!1;#u;#p=W?G:null;#v;#f;#g;#b=null;#m=null;#w=null;#y=null;#x=null;#k=0;#_=0;#C=!1;#S=null;#E=function(e){let t,n=0,r=De(0);return()=>{gt()&&(ln(r),kt(()=>(0===n&&(t=hn(()=>e(()=>Ze(r)))),n+=1,()=>{he(()=>{n-=1,0===n&&(t?.(),t=void 0,Ze(r))})})))}}(()=>(this.#S=De(this.#k),()=>{this.#S=null}));constructor(e,t,r){this.#u=e,this.#v=t,this.#f=r,this.parent=Dt.b,this.#n=!!this.#v.pending,this.#g=Ct(()=>{if(Dt.b=this,W){const e=this.#p;K();8===e.nodeType&&e.data===n?this.#$():this.#L()}else{var e=this.#T();try{this.#b=St(()=>r(e))}catch(e){this.error(e)}this.#_>0?this.#A():this.#n=!1}return()=>{this.#x?.remove()}},589952),W&&(this.#u=G)}#L(){try{this.#b=St(()=>this.#f(this.#u))}catch(e){this.error(e)}this.#n=!1}#$(){const e=this.#v.pending;e&&(this.#m=St(()=>e(this.#u)),ke.enqueue(()=>{var e=this.#T();this.#b=this.#M(()=>(ke.ensure(),St(()=>this.#f(e)))),this.#_>0?this.#A():(Mt(this.#m,()=>{this.#m=null}),this.#n=!1)}))}#T(){var e=this.#u;return this.#n&&(this.#x=st(),this.#u.before(this.#x),e=this.#x),e}is_pending(){return this.#n||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#v.pending}#M(e){var t=Dt,n=jt,r=se;Ut(this.#g),Ft(this.#g),oe(this.#g.ctx);try{return e()}catch(e){return pe(e),null}finally{Ut(t),Ft(n),oe(r)}}#A(){const e=this.#v.pending;null!==this.#b&&(this.#y=document.createDocumentFragment(),this.#y.append(this.#x),Ht(this.#b,this.#y)),null===this.#m&&(this.#m=St(()=>e(this.#u)))}#P(e){this.has_pending_snippet()?(this.#_+=e,0===this.#_&&(this.#n=!1,this.#m&&Mt(this.#m,()=>{this.#m=null}),this.#y&&(this.#u.before(this.#y),this.#y=null))):this.parent&&this.parent.#P(e)}update_pending_count(e){this.#P(e),this.#k+=e,this.#S&&We(this.#S,this.#k)}get_effect_pending(){return this.#E(),ln(this.#S)}error(e){var t=this.#v.onerror;let n=this.#v.failed;if(this.#C||!t&&!n)throw e;this.#b&&(Lt(this.#b),this.#b=null),this.#m&&(Lt(this.#m),this.#m=null),this.#w&&(Lt(this.#w),this.#w=null),W&&(Y(this.#p),X(),Y(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.#w&&Mt(this.#w,()=>{this.#w=null}),this.#n=this.has_pending_snippet(),this.#b=this.#M(()=>(this.#C=!1,St(()=>this.#f(this.#u)))),this.#_>0?this.#A():this.#n=!1)};var i=jt;try{Ft(null),s=!0,t?.(e,o),s=!1}catch(e){ve(e,this.#g&&this.#g.parent)}finally{Ft(i)}n&&he(()=>{this.#w=this.#M(()=>{ke.ensure(),this.#C=!0;try{return St(()=>{n(this.#u,()=>e,()=>o)})}catch(e){return ve(e,this.#g.parent),null}finally{this.#C=!1}})})}}function Pe(e,t,n,r){const o=le()?Ie:qe;if(0!==n.length||0!==e.length){var i,a,l,c,d=ge,h=Dt,u=(i=Dt,a=jt,l=se,c=ge,function(e=!0){Ut(i),Ft(a),oe(l),e&&c?.activate()});e.length>0?Promise.all(e).then(()=>{u();try{return p()}finally{d?.deactivate(),ze()}}):p()}else r(t.map(o));function p(){Promise.all(n.map(e=>function(e){let t=Dt;null===t&&function(){throw new Error("https://svelte.dev/e/async_derived_orphan")}();var n=t.b,r=void 0,o=De(s),i=!jt,a=new Map;return function(e){ft(4718592,e,!0)}(()=>{var t=y();r=t.promise;try{Promise.resolve(e()).then(t.resolve,t.reject).then(()=>{s===ge&&s.committed&&s.deactivate(),ze()})}catch(e){t.reject(e),ze()}var s=ge;if(i){var l=!n.is_pending();n.update_pending_count(1),s.increment(l),a.get(s)?.reject(U),a.delete(s),a.set(s,t)}const c=(e,t=void 0)=>{if(s.activate(),t)t!==U&&(o.f|=j,We(o,t));else{0!==(o.f&j)&&(o.f^=j),We(o,e);for(const[e,t]of a){if(a.delete(e),e===s)break;t.reject(U)}}i&&(n.update_pending_count(-1),s.decrement(l))};t.promise.then(c,e=>c(null,e||"unknown"))}),bt(()=>{for(const e of a.values())e.reject(U)}),new Promise(e=>{function t(n){function s(){n===r?e(o):t(r)}n.then(s,s)}t(r)})}(e))).then(e=>{u();try{r([...t.map(o),...e])}catch(e){0===(h.f&M)&&ve(e,h)}d?.deactivate(),ze()}).catch(e=>{ve(e,h)})}}function ze(){Ut(null),Ft(null),oe(null)}function Ie(e){var t=null!==jt&&2&jt.f?jt:null;null!==Dt&&(Dt.f|=q);return{ctx:se,deps:null,effects:null,equals:te,f:2050,fn:e,reactions:null,rv:0,v:s,wv:0,parent:t??Dt,ac:null}}function He(e){const t=Ie(e);return Gt(t),t}function qe(e){const t=Ie(e);return t.equals=ne,t}function Re(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)Lt(t[n])}}function Oe(e){var t,n=Dt;Ut(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&M)?t:null;t=t.parent}return null}(e));try{e.f&=-32769,Re(e),t=rn(e)}finally{Ut(n)}return t}function Ne(e){var t=Oe(e);(e.equals(t)||(ge?.is_fork||(e.v=t),e.wv=en()),Ot)||(null!==be?(gt()||ge?.is_fork)&&be.set(e,t):pn(e,0===(e.f&E)?T:$))}let je=new Set;const Ve=new Map;let Fe=!1;function De(e,t){return{f:0,v:e,reactions:null,equals:te,rv:0,wv:0}}function Ue(e,t){const n=De(e);return Gt(n),n}function Be(e,t=!1,n=!0){const r=De(e);return t||(r.equals=ne),re&&n&&null!==se&&null!==se.l&&(se.l.s??=[]).push(r),r}function Ge(e,t,n=!1){return null!==jt&&(!Vt||0!==(jt.f&I))&&le()&&4325394&jt.f&&!Bt?.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;Ot?Ve.set(e,t):Ve.set(e,n),e.v=t;var r=ke.ensure();r.capture(e,n),2&e.f&&(0!==(e.f&L)&&Oe(e),pn(e,0!==(e.f&E)?$:T)),e.wv=en(),Ye(e,L),!le()||null===Dt||0===(Dt.f&$)||96&Dt.f||(null===Yt?function(e){Yt=e}([e]):Yt.push(e)),!r.is_fork&&je.size>0&&!Fe&&function(){Fe=!1;var e=qt;Rt(!0);const t=Array.from(je);try{for(const e of t)0!==(e.f&$)&&pn(e,T),tn(e)&&an(e)}finally{Rt(e)}je.clear()}()}return t}function Ze(e){Ge(e,e.v+1)}function Ye(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!==Dt){var l=0===(a&L);if(l&&pn(i,t),2&a){var c=i;be?.delete(c),0===(a&O)&&(a&E&&(i.f|=O),Ye(c,T))}else l&&(0!==(a&k)&&null!==Ee&&Ee.add(i),Ae(i))}}}function Ke(e){if("object"!=typeof e||null===e||V in e)return e;const t=f(e);if(t!==p&&t!==v)return e;var n=new Map,r=i(e),o=Ue(0),a=Xt,l=e=>{if(Xt===a)return e();var t=jt,n=Xt;Ft(null),Qt(a);var r=e();return Ft(t),Qt(n),r};return r&&n.set("length",Ue(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=Ue(r.value);return n.set(t,e),e}):Ge(s,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(void 0===r){if(t in e){const e=l(()=>Ue(s));n.set(t,e),Ze(o)}}else Ge(r,s),Ze(o);return!0},get(t,r,o){if(r===V)return e;var i=n.get(r),a=r in t;if(void 0!==i||a&&!h(t,r)?.writable||(i=l(()=>Ue(Ke(a?t[r]:s))),n.set(r,i)),void 0!==i){var c=ln(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=ln(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===V)return!0;var r=n.get(t),o=void 0!==r&&r.v!==s||Reflect.has(e,t);if((void 0!==r||null!==Dt&&(!o||h(e,t)?.writable))&&(void 0===r&&(r=l(()=>Ue(o?Ke(e[t]):s)),n.set(t,r)),ln(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 u=i;u<c.v;u+=1){var p=n.get(u+"");void 0!==p?Ge(p,s):u in e&&(p=l(()=>Ue(s)),n.set(u+"",p))}void 0===c?d&&!h(e,t)?.writable||(Ge(c=l(()=>Ue(void 0)),Ke(i)),n.set(t,c)):(d=c.v!==s,Ge(c,l(()=>Ke(i))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(a,i),!d){if(r&&"string"==typeof t){var f=n.get("length"),g=Number(t);Number.isInteger(g)&&g>=f.v&&Ge(f,g+1)}Ze(o)}return!0},ownKeys(e){ln(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 Je(e){try{if(null!==e&&"object"==typeof e&&V in e)return e[V]}catch{}return e}function Xe(e,t){return Object.is(Je(e),Je(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=h(t,"firstChild").get,nt=h(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(G);if(null===n)n=G.appendChild(st());else if(t&&3!==n.nodeType){var r=st();return n?.before(r),Y(r),r}return Y(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!==G?.nodeType){var r=st();return G?.before(r),Y(r),r}return G}function ct(e,t=1,n=!1){let r=W?G: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),Y(o),o}return Y(r),r}function dt(e){e.textContent=""}let ht=!1;function ut(){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 pt(e){var t=jt,n=Dt;Ft(null),Ut(null);try{return e()}finally{Ft(t),Ut(n)}}function vt(e){null===Dt&&(null===jt&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),Ot&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function ft(e,t,n){var r=Dt;null!==r&&0!==(r.f&A)&&(e|=A);var s={ctx:se,deps:null,nodes:null,f:e|L|E,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{an(s),s.f|=P}catch(o){throw Lt(s),o}else null!==t&&Ae(s);var o=s;if(n&&null===o.deps&&null===o.teardown&&null===o.nodes&&o.first===o.last&&0===(o.f&q)&&(o=o.first,0!==(e&k)&&0!==(e&z)&&null!==o&&(o.f|=z)),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!==jt&&2&jt.f&&0===(e&C))){var i=jt;(i.effects??=[]).push(o)}return s}function gt(){return null!==jt&&!Vt}function bt(e){const t=ft(8,null,!1);return pn(t,$),t.teardown=e,t}function mt(e){vt();var t=Dt.f;if(!(!jt&&0!==(t&_)&&0===(t&P)))return wt(e);var n=se;(n.e??=[]).push(e)}function wt(e){return ft(1048580,e,!1)}function yt(e){ke.ensure();const t=ft(524352,e,!0);return()=>{Lt(t)}}function xt(e){return ft(4,e,!1)}function kt(e,t=0){return ft(8|t,e,!0)}function _t(e,t=[],n=[],r=[]){Pe(r,t,n,t=>{ft(8,()=>e(...t.map(ln)),!0)})}function Ct(e,t=0){return ft(k|t,e,!0)}function St(e){return ft(524320,e,!0)}function Et(e){var t=e.teardown;if(null!==t){const e=Ot,n=jt;Nt(!0),Ft(null);try{t.call(null)}finally{Nt(e),Ft(n)}}}function $t(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&pt(()=>{e.abort(U)});var r=n.next;0!==(n.f&C)?n.parent=null:Lt(n,t),n=r}}function Lt(e,t=!0){var n=!1;!t&&0===(e.f&H)||null===e.nodes||null===e.nodes.end||(Tt(e.nodes.start,e.nodes.end),n=!0),$t(e,t&&!n),on(e,0),pn(e,M);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&&At(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Tt(e,t){for(;null!==e;){var n=e===t?null:it(e);e.remove(),e=n}}function At(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=[];Pt(e,r,!0);var s=()=>{n&&Lt(e),t&&t()},o=r.length;if(o>0){var i=()=>--o||s();for(var a of r)a.out(i)}else s()}function Pt(e,t,n){if(0===(e.f&A)){e.f^=A;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;Pt(s,t,!!(0!==(s.f&z)||0!==(s.f&_)&&0!==(e.f&k))&&n),s=o}}}function zt(e){It(e,!0)}function It(e,t){if(0!==(e.f&A)){e.f^=A,0===(e.f&$)&&(pn(e,L),Ae(e));for(var n=e.first;null!==n;){var r=n.next;It(n,!!(0!==(n.f&z)||0!==(n.f&_))&&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 Ht(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 qt=!1;function Rt(e){qt=e}let Ot=!1;function Nt(e){Ot=e}let jt=null,Vt=!1;function Ft(e){jt=e}let Dt=null;function Ut(e){Dt=e}let Bt=null;function Gt(e){null!==jt&&(null===Bt?Bt=[e]:Bt.push(e))}let Wt=null,Zt=0,Yt=null;let Kt=1,Jt=0,Xt=Jt;function Qt(e){Xt=e}function en(){return++Kt}function tn(e){var t=e.f;if(0!==(t&L))return!0;if(2&t&&(e.f&=-32769),0!==(t&T)){var n=e.deps;if(null!==n)for(var r=n.length,s=0;s<r;s++){var o=n[s];if(tn(o)&&Ne(o),o.wv>e.wv)return!0}0!==(t&E)&&null===be&&pn(e,$)}return!1}function nn(e,t,n=!0){var r=e.reactions;if(null!==r&&!Bt?.includes(e))for(var s=0;s<r.length;s++){var o=r[s];2&o.f?nn(o,t,!1):t===o&&(n?pn(o,L):0!==(o.f&$)&&pn(o,T),Ae(o))}}function rn(e){var t=Wt,n=Zt,r=Yt,s=jt,o=Bt,i=se,a=Vt,l=Xt,c=e.f;Wt=null,Zt=0,Yt=null,jt=96&c?null:e,Bt=null,oe(e.ctx),Vt=!1,Xt=++Jt,null!==e.ac&&(pt(()=>{e.ac.abort(U)}),e.ac=null);try{e.f|=N;var d=(0,e.fn)(),h=e.deps;if(null!==Wt){var u;if(on(e,Zt),null!==h&&Zt>0)for(h.length=Zt+Wt.length,u=0;u<Wt.length;u++)h[Zt+u]=Wt[u];else e.deps=h=Wt;if(gt()&&0!==(e.f&E))for(u=Zt;u<h.length;u++)(h[u].reactions??=[]).push(e)}else null!==h&&Zt<h.length&&(on(e,Zt),h.length=Zt);if(le()&&null!==Yt&&!Vt&&null!==h&&!(6146&e.f))for(u=0;u<Yt.length;u++)nn(Yt[u],e);return null!==s&&s!==e&&(Jt++,null!==Yt&&(null===r?r=Yt:r.push(...Yt))),0!==(e.f&j)&&(e.f^=j),d}catch(e){return pe(e)}finally{e.f^=N,Wt=t,Zt=n,Yt=r,jt=s,Bt=o,oe(i),Vt=a,Xt=l}}function sn(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===Wt||!Wt.includes(t))&&(pn(t,T),0!==(t.f&E)&&(t.f^=E,t.f&=-32769),Re(t),on(t,0))}function on(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)sn(e,n[r])}function an(e){var t=e.f;if(0===(t&M)){pn(e,$);var n=Dt,r=qt;Dt=e,qt=!0;try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&_)&&Lt(t),t=n}}(e):$t(e),Et(e);var s=rn(e);e.teardown="function"==typeof s?s:null,e.wv=Kt}finally{qt=r,Dt=n}}}function ln(e){var t=!!(2&e.f);if(null!==jt&&!Vt&&(!(null!==Dt&&0!==(Dt.f&M))&&!Bt?.includes(e))){var n=jt.deps;if(0!==(jt.f&N))e.rv<Jt&&(e.rv=Jt,null===Wt&&null!==n&&n[Zt]===e?Zt++:null===Wt?Wt=[e]:Wt.includes(e)||Wt.push(e));else{(jt.deps??=[]).push(e);var r=e.reactions;null===r?e.reactions=[jt]:r.includes(jt)||r.push(jt)}}if(Ot){if(Ve.has(e))return Ve.get(e);if(t){var s=e,o=s.v;return(0===(s.f&$)&&null!==s.reactions||dn(s))&&(o=Oe(s)),Ve.set(s,o),o}}else t&&(!be?.has(e)||ge?.is_fork&&!gt())&&(tn(s=e)&&Ne(s),qt&>()&&0===(s.f&E)&&cn(s));if(be?.has(e))return be.get(e);if(0!==(e.f&j))throw e.v;return e.v}function cn(e){if(null!==e.deps){e.f^=E;for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&E)&&cn(t)}}function dn(e){if(e.v===s)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(Ve.has(t))return!0;if(2&t.f&&dn(t))return!0}return!1}function hn(e){var t=Vt;try{return Vt=!0,e()}finally{Vt=t}}const un=-7169;function pn(e,t){e.f=e.f&un|t}function vn(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{vn(e[n],t)}catch(e){}const n=f(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=u(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const fn=new Set,gn=new Set;function bn(e,t,n,r,s){var o={capture:r,passive:s},i=function(e,t,n,r={}){function s(e){if(r.capture||yn.call(t,e),!e.cancelBubble)return pt(()=>n?.call(this,e))}return e.startsWith("pointer")||e.startsWith("touch")||"wheel"===e?he(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}(e,t,n,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bt(()=>{t.removeEventListener(e,i,o)})}function mn(e){for(var t=0;t<e.length;t++)fn.add(e[t]);for(var n of gn)n(e)}let wn=null;function yn(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;wn=e;var i=0,a=wn===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 h=jt,u=Dt;Ft(null),Ut(null);try{for(var p,v=[];null!==o;){var f=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?v.push(e):p=e}if(e.cancelBubble||f===t||null===f)break;o=f}if(p){for(let e of v)queueMicrotask(()=>{throw e});throw p}}finally{e.__root=t,delete e.currentTarget,Ft(h),Ut(u)}}}function xn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","\x3c!----\x3e"),t.content}function kn(e,t){var n=Dt;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function _n(e,t){var n,r=!!(1&t),s=!!(2&t),o=!e.startsWith("<!>");return()=>{if(W)return kn(G,null),G;void 0===n&&(n=xn(o?e:"<!>"+e),r||(n=ot(n)));var t=s||et?document.importNode(n,!0):n.cloneNode(!0);r?kn(ot(t),t.lastChild):kn(t,t);return t}}function Cn(e=""){if(!W){var t=st(e+"");return kn(t,t),t}var n=G;return 3!==n.nodeType&&(n.before(n=st()),Y(n)),kn(n,n),n}function Sn(){if(W)return kn(G,null),G;var e=document.createDocumentFragment(),t=document.createComment(""),n=st();return e.append(t,n),kn(t,n),e}function En(e,t){if(W){var n=Dt;return 0!==(n.f&P)&&null!==n.nodes.end||(n.nodes.end=G),void K()}null!==e&&e.before(t)}const $n=["touchstart","touchmove"];function Ln(e){return $n.includes(e)}let Tn=!0;function An(e,t){var n=null==t?"":"object"==typeof t?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Mn(e,t){return In(e,t)}function Pn(e,t){rt(),t.intro=t.intro??!1;const n=t.target,s=W,o=G;try{for(var i=ot(n);i&&(8!==i.nodeType||"["!==i.data);)i=it(i);if(!i)throw r;Z(!0),Y(i);const s=In(e,{...t,anchor:i});return Z(!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),Z(!1),Mn(e,t)}finally{Z(s),Y(o)}}const zn=new Map;function In(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=Ln(r);t.addEventListener(r,yn,{passive:s});var o=zn.get(r);void 0===o?(document.addEventListener(r,yn,{passive:s}),zn.set(r,1)):zn.set(r,o+1)}}};d(l(fn)),gn.add(d);var h=void 0,u=function(e){ke.ensure();const t=ft(524352,e,!0);return(e={})=>new Promise(n=>{e.outro?Mt(t,()=>{Lt(t),n(void 0)}):(Lt(t),n(void 0))})}(()=>{var l=n??t.appendChild(st());return function(e,t,n){new Me(e,t,n)}(l,{pending:()=>{}},t=>{i&&(ie({}),se.c=i);if(o&&(s.$$events=o),W&&kn(t,null),Tn=a,h=e(t,s)||{},Tn=!0,W&&(Dt.nodes.end=G,null===G||8!==G.nodeType||"]"!==G.data))throw B(),r;i&&ae()}),()=>{for(var e of c){t.removeEventListener(e,yn);var r=zn.get(e);0===--r?(document.removeEventListener(e,yn),zn.delete(e)):zn.set(e,r)}gn.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Hn.set(h,u),h}let Hn=new WeakMap;function qn(e,t){const n=Hn.get(e);return n?(Hn.delete(e),n(t)):Promise.resolve()}class Rn{anchor;#z=new Map;#I=new Map;#H=new Map;#q=new Set;#R=!0;constructor(e,t=!0){this.anchor=e,this.#R=t}#h=()=>{var e=ge;if(this.#z.has(e)){var t=this.#z.get(e),n=this.#I.get(t);if(n)zt(n),this.#q.delete(t);else{var r=this.#H.get(t);r&&(this.#I.set(t,r.effect),this.#H.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#z){if(this.#z.delete(t),t===e)break;const r=this.#H.get(n);r&&(Lt(r.effect),this.#H.delete(n))}for(const[e,r]of this.#I){if(e===t||this.#q.has(e))continue;const s=()=>{if(Array.from(this.#z.values()).includes(e)){var t=document.createDocumentFragment();Ht(r,t),t.append(st()),this.#H.set(e,{effect:r,fragment:t})}else Lt(r);this.#q.delete(e),this.#I.delete(e)};this.#R||!n?(this.#q.add(e),Mt(r,s,!1)):s()}}};#O=e=>{this.#z.delete(e);const t=Array.from(this.#z.values());for(const[e,n]of this.#H)t.includes(e)||(Lt(n.effect),this.#H.delete(e))};ensure(e,t){var n=ge;!t||this.#I.has(e)||this.#H.has(e)||this.#I.set(e,St(()=>t(this.anchor)));this.#z.set(n,e),W&&(this.anchor=G),this.#h()}}function On(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):mt(()=>{const t=hn(e);if("function"==typeof t)return t})}function Nn(e,t,r=!1){W&&K();var s=new Rn(e);function o(t,r){if(W){if(t===(ee(e)===n)){var o=Q();return Y(o),s.anchor=o,Z(!1),s.ensure(t,r),void Z(!0)}}s.ensure(t,r)}Ct(()=>{var e=!1;t((t,n=!0)=>{e=!0,o(n,t)}),e||o(!1,null)},r?z:0)}function jn(e,t=!0){for(var n=0;n<e.length;n++)Lt(e[n],t)}var Vn;function Fn(e,t,r,s,o,a=null){var c=e,d=new Map;if(!!(4&t)){var h=e;c=W?Y(ot(h)):h.appendChild(st())}W&&K();var u,p=null,v=qe(()=>{var e=r();return i(e)?e:null==e?[]:l(e)}),f=!0;function g(){b.fallback=p,function(e,t,n,r,s){var o,i,a,c,d,h=!!(8&r),u=t.length,p=e.items,v=e.effect.first,f=null,g=[],b=[];if(h)for(d=0;d<u;d+=1)a=s(t[d],d),0===((c=p.get(a).e).f&R)&&(c.nodes?.a?.measure(),(i??=new Set).add(c));for(d=0;d<u;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&R)){if(c.f^=R,c!==v){var m=f?f.next:v;c===e.effect.last&&(e.effect.last=c.prev),c.prev&&(c.prev.next=c.next),c.next&&(c.next.prev=c.prev),Bn(e,f,c),Bn(e,c,m),Un(c,m,n),g=[],b=[],v=(f=c).next;continue}Un(c,null,n)}if(0!==(c.f&A)&&(zt(c),h&&(c.nodes?.a?.unfix(),(i??=new Set).delete(c))),c!==v){if(void 0!==o&&o.has(c)){if(g.length<b.length){var w,y=b[0];f=y.prev;var x=g[0],k=g[g.length-1];for(w=0;w<g.length;w+=1)Un(g[w],y,n);for(w=0;w<b.length;w+=1)o.delete(b[w]);Bn(e,x.prev,k.next),Bn(e,f,x),Bn(e,k,y),v=y,f=k,d-=1,g=[],b=[]}else o.delete(c),Un(c,v,n),Bn(e,c.prev,c.next),Bn(e,c,null===f?e.effect.first:f.next),Bn(e,f,c),f=c;continue}for(g=[],b=[];null!==v&&v!==c;)(o??=new Set).add(v),b.push(v),v=v.next;if(null===v)continue}0===(c.f&R)&&g.push(c),f=c,v=c.next}if(null!==e.outrogroups){for(const t of e.outrogroups)0===t.pending.size&&(jn(l(t.done)),e.outrogroups?.delete(t));0===e.outrogroups.size&&(e.outrogroups=null)}if(null!==v||void 0!==o){var _=[];if(void 0!==o)for(c of o)0===(c.f&A)&&_.push(c);for(;null!==v;)0===(v.f&A)&&v!==e.fallback&&_.push(v),v=v.next;var C=_.length;if(C>0){var S=4&r&&0===u?n:null;if(h){for(d=0;d<C;d+=1)_[d].nodes?.a?.measure();for(d=0;d<C;d+=1)_[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;jn(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()}jn(t,!a)}else r={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(r)}(e,_,S)}}h&&he(()=>{if(void 0!==i)for(c of i)c.nodes?.a?.apply()})}(b,u,c,t,s),null!==p&&(0===u.length?0===(p.f&R)?zt(p):(p.f^=R,Un(p,null,c)):Mt(p,()=>{p=null}))}var b={effect:Ct(()=>{var e=(u=ln(v)).length;let i=!1;W&&(ee(c)===n!==(0===e)&&(Y(c=Q()),Z(!1),i=!0));for(var l=new Set,h=0;h<e;h+=1){W&&8===G.nodeType&&"]"===G.data&&(c=G,i=!0,Z(!1));var b=u[h],m=s(b,h),w=f?null:d.get(m);w?(w.v&&We(w.v,b),w.i&&We(w.i,h)):(w=Dn(d,f?c:Vn??=st(),b,m,h,o,t,r),f||(w.e.f|=R),d.set(m,w)),l.add(m)}0===e&&a&&!p&&(f?p=St(()=>a(c)):(p=St(()=>a(Vn??=st()))).f|=R),W&&e>0&&Y(Q()),f||g(),i&&Z(!0),ln(v)}),items:d,outrogroups:null,fallback:p};f=!1,W&&(c=G)}function Dn(e,t,n,r,s,o,i,a){var l=1&i?16&i?De(n):Be(n,!1,!1):null,c=2&i?De(s):null;return{v:l,i:c,e:St(()=>(o(t,l??n,c??s,a),()=>{e.delete(r)}))}}function Un(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,o=t&&0===(t.f&R)?t.nodes.start:n;null!==r;){var i=it(r);if(o.before(r),r===s)return;r=i}}function Bn(e,t,n){null===t?e.effect.first=n:t.next=n,null===n?e.effect.last=t:n.prev=t}function Gn(e,t,n=!1,s=!1,o=!1){var i=e,a="";_t(()=>{var e=Dt;if(a!==(a=t()??"")){if(null!==e.nodes&&(Tt(e.nodes.start,e.nodes.end),e.nodes=null),""!==a){if(W){G.data;for(var o=K(),l=o;null!==o&&(8!==o.nodeType||""!==o.data);)l=o,o=it(o);if(null===o)throw B(),r;return kn(G,l),void(i=Y(o))}var c=a+"";n?c=`<svg>${c}</svg>`:s&&(c=`<math>${c}</math>`);var d=xn(c);if((n||s)&&(d=ot(d)),kn(ot(d),d.lastChild),n||s)for(;ot(d);)i.before(ot(d));else i.before(d)}}else W&&K()})}function Wn(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 Zn={tick:e=>requestAnimationFrame(e),now:()=>performance.now(),tasks:new Set};function Yn(){const e=Zn.now();Zn.tasks.forEach(t=>{t.c(e)||(Zn.tasks.delete(t),t.f())}),0!==Zn.tasks.size&&Zn.tick(Yn)}function Kn(e,t){pt(()=>{e.dispatchEvent(new CustomEvent(t))})}function Jn(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 Xn(e){const t={},n=e.split(";");for(const e of n){const[n,r]=e.split(":");if(!n||void 0===r)break;t[Jn(n.trim())]=r.trim()}return t}const Qn=e=>e;function er(e,t,n,r){var s,o,i,a=!!(1&e),l=!!(2&e),c=!!(4&e),d=a&&l?"both":a?"in":"out",h=t.inert,u=t.style.overflow;function p(){return pt(()=>s??=n()(t,r?.()??{},{direction:d}))}var v={is_global:c,in(){if(t.inert=h,!a)return i?.abort(),void i?.reset?.();l||o?.abort(),Kn(t,"introstart"),o=tr(t,p(),i,1,()=>{Kn(t,"introend"),o?.abort(),o=s=void 0,t.style.overflow=u})},out(e){if(!l)return e?.(),void(s=void 0);t.inert=!0,Kn(t,"outrostart"),i=tr(t,p(),o,0,()=>{Kn(t,"outroend"),e?.()})},stop:()=>{o?.abort(),i?.abort()}},f=Dt;if((f.nodes.t??=[]).push(v),a&&Tn){var g=c;if(!g){for(var b=f.parent;b&&0!==(b.f&z);)for(;(b=b.parent)&&0===(b.f&k););g=!b||0!==(b.f&P)}g&&xt(()=>{hn(()=>v.in())})}}function tr(e,t,n,r,s){var o=1===r;if("function"==typeof t){var i,a=!1;return he(()=>{if(!a){var l=t({direction:o?"in":"out"});i=tr(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:h=Qn}=t;var u=[];if(o&&void 0===n&&(d&&d(0,1),c)){var p=Xn(c(0,1));u.push(p,p)}var v=()=>1-r,f=e.animate(u,{duration:l,fill:"forwards"});return f.onfinish=()=>{f.cancel();var o=n?.t()??1-r;n?.abort();var i=r-o,a=t.duration*Math.abs(i),l=[];if(a>0){var u=!1;if(c)for(var p=Math.ceil(a/(1e3/60)),g=0;g<=p;g+=1){var b=o+i*h(g/p),m=Xn(c(b,1-b));l.push(m),u||="hidden"===m.overflow}u&&(e.style.overflow="hidden"),v=()=>{var e=f.currentTime;return o+i*h(e/a)},d&&function(e){let t;0===Zn.tasks.size&&Zn.tick(Yn),new Promise(n=>{Zn.tasks.add(t={c:e,f:n})})}(()=>{if("running"!==f.playState)return!1;var e=v();return d(e,1-e),!0})}(f=e.animate(l,{duration:a,fill:"forwards"})).onfinish=()=>{v=()=>r,d?.(r,1-r),s()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=b)},deactivate:()=>{s=b},reset:()=>{0===r&&d?.(1,0)},t:()=>v()}}function nr(e,t){xt(()=>{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 rr(e,t){var n,r=void 0;!function(e,t=0){ft(x|t,e,!0)}(()=>{r!==(r=t())&&(n&&(Lt(n),n=null),r&&(n=St(()=>{xt(()=>r(e))})))})}const sr=[..." \t\n\r\f \v\ufeff"];function or(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 ir(e){return"-"!==e[0]||"-"!==e[1]?e.toLowerCase():e}function ar(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&&!sr.includes(r[i-1])||a!==r.length&&!sr.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"):e.className=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 lr(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 cr(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(ir)),r&&l.push(...Object.keys(r).map(ir));var c=0,d=-1;const t=e.length;for(var h=0;h<t;h++){var u=e[h];if(a?"/"===u&&"*"===e[h-1]&&(a=!1):o?o===u&&(o=!1):"/"===u&&"*"===e[h+1]?a=!0:'"'===u||"'"===u?o=u:"("===u?i++:")"===u&&i--,!a&&!1===o&&0===i)if(":"===u&&-1===d)d=h;else if(";"===u||h===t-1){if(-1!==d){var p=ir(e.substring(c,d).trim());l.includes(p)||(";"!==u&&h++,s+=" "+e.substring(c,h).trim()+";")}c=h+1,d=-1}}}return n&&(s+=or(n)),r&&(s+=or(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)?(lr(e,n?.[0],r[0]),lr(e,n?.[1],r[1],"important")):lr(e,n,r));return r}function dr(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(hr(r))}else{for(r of e.options){if(Xe(hr(r),t))return void(r.selected=!0)}n&&void 0===t||(e.selectedIndex=-1)}}function hr(e){return"__value"in e?e.__value:e.value}const ur=Symbol("is custom element"),pr=Symbol("is html");function vr(e){if(W){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;gr(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var r=e.checked;gr(e,"checked",null),e.checked=r}}};e.__on_r=n,he(n),ut()}}function fr(e,t){var n=br(e);n.value!==(n.value=t??void 0)&&(e.value!==t||0===t&&"PROGRESS"===e.nodeName)&&(e.value=t??"")}function gr(e,t,n,r){var s=br(e);W&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&"LINK"===e.nodeName)||s[t]!==(s[t]=n)&&("loading"===t&&(e[D]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,r=mr.get(n);if(r)return r;mr.set(n,r=[]);var s=e,o=Element.prototype;for(;o!==s;){for(var i in t=u(s))t[i].set&&r.push(i);s=f(s)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function br(e){return e.__attributes??={[ur]:e.nodeName.includes("-"),[pr]:"http://www.w3.org/1999/xhtml"===e.namespaceURI}}var mr=new Map;const wr=new Set;function yr(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,()=>pt(n));const s=e.__on_r;e.__on_r=s?()=>{s(),r(!0)}:()=>r(!0),ut()}(n,"change",()=>{var e=n.__value;o&&(e=xr(i,e,n.checked)),s(e)},()=>s(o?[]:null)),kt(()=>{var e=r();W&&n.defaultChecked!==n.checked?a=!0:o?(e=e||[],n.checked=e.includes(n.__value)):n.checked=Xe(n.__value,e)}),bt(()=>{var e=i.indexOf(n);-1!==e&&i.splice(e,1)}),wr.has(i)||(wr.add(i),he(()=>{i.sort((e,t)=>4===e.compareDocumentPosition(t)?-1:1),wr.delete(i)})),he(()=>{if(a){var e;if(o)e=xr(i,e,n.checked);else{var t=i.find(e=>e.checked);e=t?.__value}s(e)}})}function xr(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 kr{#N=new WeakMap;#j;#V;static entries=new WeakMap;constructor(e){this.#V=e}observe(e,t){var n=this.#N.get(e)||new Set;return n.add(t),this.#N.set(e,n),this.#F().observe(e,this.#V),()=>{var n=this.#N.get(e);n.delete(t),0===n.size&&(this.#N.delete(e),this.#j.unobserve(e))}}#F(){return this.#j??(this.#j=new ResizeObserver(e=>{for(var t of e)for(var n of(kr.entries.set(t.target,t),this.#N.get(t.target)||[]))n(t)}))}}var _r=new kr({box:"border-box"});function Cr(e,t,n){var r=_r.observe(e,()=>n(e[t]));xt(()=>(hn(()=>n(e[t])),r))}function Sr(e,t){return e===t||e?.[V]===t}function Er(e={},t,n,r){return xt(()=>{var r,s;return kt(()=>{r=s,s=[],hn(()=>{e!==n(...s)&&(t(e,...s),r&&Sr(n(...r),e)&&t(null,...r))})}),()=>{he(()=>{s&&Sr(n(...s),e)&&t(null,...s)})}}),e}function $r(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(V in e)vn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&V in n&&vn(n)}}(t.s);if(e){let e=0,n={};const s=Ie(()=>{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=()=>ln(s)}var s;n.b.length&&(s=()=>{Lr(t,r),w(n.b)},vt(),ft(1048584,s,!0)),mt(()=>{const e=hn(()=>n.m.map(m));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&mt(()=>{Lr(t,r),w(n.a)})}function Lr(e,t){if(e.l.s)for(const t of e.l.s)ln(t);t()}let Tr,Ar=!1;function Mr(e,t,n,r){var s,o,i=!re||!!(2&n),a=!!(8&n),l=!!(16&n),c=r,d=!0,u=()=>(d&&(d=!1,c=l?hn(r):r),c);if(a){var p=V in e||F in e;s=h(e,t)?.set??(p&&t in e?n=>e[t]=n:void 0)}var v,f=!1;if(a?[o,f]=function(e){var t=Ar;try{return Ar=!1,[e(),Ar]}finally{Ar=t}}(()=>e[t]):o=e[t],void 0===o&&void 0!==r&&(o=u(),s&&(i&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),s(o))),v=i?()=>{var n=e[t];return void 0===n?u():(d=!0,n)}:()=>{var n=e[t];return void 0!==n&&(c=void 0),void 0===n?c:n},i&&!(4&n))return v;if(s){var g=e.$$legacy;return function(e,t){return arguments.length>0?(i&&t&&!g&&!f||s(t?v():e),e):v()}}var b=!1,m=(1&n?Ie:qe)(()=>(b=!1,v()));a&&ln(m);var w=Dt;return function(e,t){if(arguments.length>0){const n=t?ln(m):i&&a?Ke(e):e;return Ge(m,n),b=!0,void 0!==c&&(c=n),e}return Ot&&b||0!==(w.f&M)?m.v:ln(m)}}class Pr{#D;#U;constructor(e){var t=new Map,n=(e,n)=>{var r=Be(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>ln(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===F||(ln(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,s)=>(Ge(t.get(r)??n(r,s),s),Reflect.set(e,r,s))});this.#U=(e.hydrate?Pn:Mn)(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||_e(),this.#D=r.$$events;for(const e of Object.keys(this.#U))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&d(this,e,{get(){return this.#U[e]},set(t){this.#U[e]=t},enumerable:!0});this.#U.$set=e=>{Object.assign(r,e)},this.#U.$destroy=()=>{qn(this.#U)}}$set(e){this.#U.$set(e)}$on(e,t){this.#D[e]=this.#D[e]||[];const n=(...e)=>t.call(this,...e);return this.#D[e].push(n),()=>{this.#D[e]=this.#D[e].filter(e=>e!==n)}}$destroy(){this.#U.$destroy()}}function zr(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 Ir(e,t,n,r,s,o){let i=class extends Tr{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=zr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var s=h(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&&(Tr=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),En(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]=zr(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 Pr(e)),this.$$me=yt(()=>{kt(()=>{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=zr(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 h=this.$$c.$on(l,d);this.$$l_u.set(d,h)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=zr(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});var Hr=_n('<div><div role="alert"><button class="close-btn svelte-ysaqmb" aria-label="Dismiss intro">×</button> <p class="text svelte-ysaqmb"> </p></div></div>');const qr={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 }"};mn(["click"]);var Rr=_n('<div role="button" tabindex="0" aria-label="Open Custom Views Settings"><span class="cv-gear svelte-122ln5">⚙</span></div>');const Or={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 Nr(e,t){ie(t,!0),nr(e,Or);let n=Mr(t,"position",3,"middle-left"),r=Mr(t,"title",3,"Customize View"),s=Mr(t,"pulse",3,!1),o=Mr(t,"onclick",3,void 0),i=Mr(t,"iconColor",3,void 0),a=Mr(t,"backgroundColor",3,void 0),l=Mr(t,"opacity",3,void 0),c=Mr(t,"scale",3,void 0),d=Mr(t,"persistence",3,void 0);const h="cv-settings-icon-offset",u=10;let p,v,f=Ue(!1),g=0,b=0,m=Ue(0),w=!1,y=-1/0,x=1/0;function k(){if(!p)return;const e=p.getBoundingClientRect(),t=e.top-ln(m),n=e.height,r=10-t,s=window.innerHeight-10-t-n,o=Math.max(r,Math.min(s,ln(m)));o!==ln(m)&&(Ge(m,o,!0),E())}function _(e){Ge(f,!0),g=e,b=ln(m),w=!1,function(){if(!p)return;const e=p.getBoundingClientRect(),t=e.top-ln(m),n=e.height;y=u-t,x=window.innerHeight-u-t-n}()}function C(e){if(!ln(f))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-g,r=b+n;Ge(m,Math.max(y,Math.min(x,r)),!0),Math.abs(n)>5&&(w=!0)}function S(){ln(f)&&(Ge(f,!1),E())}function E(){d()&&d().setItem(h,ln(m).toString())}function $(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}On(()=>{if(d()){const e=d().getItem(h);e&&Ge(m,parseFloat(e),!0)}return window.addEventListener("mousemove",C),window.addEventListener("mouseup",S),window.addEventListener("touchmove",C,{passive:!1}),window.addEventListener("touchend",S),window.addEventListener("resize",k),v=setTimeout(k,0),()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",S),window.removeEventListener("touchmove",C),window.removeEventListener("touchend",S),window.removeEventListener("resize",k),clearTimeout(v)}});var L={resetPosition:function(){Ge(m,0),b=0,d()&&d().removeItem(h)}},T=Rr();let A;return T.__mousedown=function(e){0===e.button&&_(e.clientY)},T.__touchstart=function(e){1===e.touches.length&&_(e.touches[0].clientY)},T.__click=function(e){if(w)return e.stopImmediatePropagation(),e.preventDefault(),void(w=!1);o()&&o()()},T.__keydown=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),o()&&o()())},Er(T,e=>p=e,()=>p),_t(e=>{ar(T,0,`cv-settings-icon cv-settings-${n()??""} ${s()?"cv-pulse":""}`,"svelte-122ln5"),gr(T,"title",r()),A=cr(T,"",A,e)},[()=>({"--cv-icon-color":i(),"--cv-icon-bg":a(),"--cv-icon-opacity":l(),transform:$(n(),ln(m),c()),cursor:ln(f)?"grabbing":"grab"})]),En(e,T),ae(L)}mn(["mousedown","touchstart","click","keydown"]);const jr=e=>e;function Vr(e){const t=e-1;return t*t*t+1}function Fr(e){const t="string"==typeof e&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function Dr(e,{delay:t=0,duration:n=400,easing:r=jr}={}){const s=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:e=>"opacity: "+e*s}}function Ur(e,{delay:t=0,duration:n=400,easing:r=Vr,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),[h,u]=Fr(s),[p,v]=Fr(o);return{delay:t,duration:n,easing:r,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*h}${u}, ${(1-e)*p}${v});\n\t\t\topacity: ${l-d*t}`}}function Br(e,{delay:t=0,duration:n=400,easing:r=Vr,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)}`),h=parseFloat(o[`padding${d[0]}`]),u=parseFloat(o[`padding${d[1]}`]),p=parseFloat(o[`margin${d[0]}`]),v=parseFloat(o[`margin${d[1]}`]),f=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*h}px;padding-${c[1]}: ${e*u}px;margin-${c[0]}: ${e*p}px;margin-${c[1]}: ${e*v}px;border-${c[0]}-width: ${e*f}px;border-${c[1]}-width: ${e*g}px;min-${a}: 0`}}function Gr(e,{delay:t=0,duration:n=400,easing:r=Vr,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`}}function Wr(){return'<svg class="cv-modal-icon-svg" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n <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"/>\n</svg>'}function Zr(){return'<svg class="cv-modal-close-icon" fill="currentColor" height="20px" viewBox="0 0 256 256" width="20px" xmlns="http://www.w3.org/2000/svg">\n <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>\n </svg>'}function Yr(){return'<svg class="cv-btn-icon" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n <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 fill="none" d="M0 0h24v24H0z"/>\n </svg>'}function Kr(){return'<svg 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 <g id="surface1">\n <path d="M 11.273438 0 L 2.546875 0 C 1.746094 0 1.089844 0.613281 1.089844\n 1.363281 L 1.089844 10.910156 L 2.546875 10.910156 L 2.546875 1.363281 L 11.273438\n 1.363281 Z M 13.453125 2.726562 L 5.453125 2.726562 C 4.65625 2.726562 4 3.339844 4\n 4.089844 L 4 13.636719 C 4 14.386719 4.65625 15 5.453125 15 L 13.453125 15 C 14.253906\n 15 14.910156 14.386719 14.910156 13.636719 L 14.910156 4.089844 C 14.910156 3.339844\n 14.253906 2.726562 13.453125 2.726562 Z M 13.453125 13.636719 L 5.453125 13.636719 L\n 5.453125 4.089844 L 13.453125 4.089844 Z M 13.453125 13.636719 "></path>\n </g>\n </svg>'}function Jr(){return'<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="2 2 22 22" fill="currentColor">\n <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 \n L 9 18.40625 L 9.71875 17.71875 L 20.71875 6.71875 Z"></path>\n </svg>'}function Xr(){return'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <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"/>\n <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"/>\n </svg>'}function Qr(){return'<svg viewBox="0 0 98 96" width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="currentColor">\n <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"/>\n </svg>'}const es=new class{#B=Ue("light");get mode(){return ln(this.#B)}set mode(e){Ge(this.#B,e,!0)}#G=Ue(!1);get systemIsDark(){return ln(this.#G)}set systemIsDark(e){Ge(this.#G,e,!0)}persistence;constructor(){if("undefined"!=typeof window){const e=window.matchMedia("(prefers-color-scheme: dark)");this.systemIsDark=e.matches}}init(e){this.persistence=e;const t=this.persistence.getItem("cv-theme-pref");var n;("auto"===(n=t)||"light"===n||"dark"===n)&&(this.mode=t)}setMode(e){this.mode=e,this.persistence&&this.persistence.setItem("cv-theme-pref",e)}#W=He(()=>"auto"===this.mode?this.systemIsDark?"dark":"light":this.mode);get currentTheme(){return ln(this.#W)}set currentTheme(e){Ge(this.#W,e)}};class ts{static parseURL(){const e=new URLSearchParams(window.location.search).get("view");let t=null;if(e)try{t=this.decodeState(e)}catch(e){console.warn("Failed to decode view state from URL:",e)}return t}static updateURL(e){if("undefined"==typeof window||!window.history)return;const t=new URL(window.location.href);if(t.searchParams.delete("view"),e){const n=this.encodeState(e);n&&t.searchParams.set("view",n)}const n=t.pathname+(t.search||"")+(t.hash||"");window.history.replaceState({},"",n)}static clearURL(){this.updateURL(null)}static generateShareableURL(e){const t=new URL(window.location.href);if(t.searchParams.delete("view"),e){const n=this.encodeState(e);n&&t.searchParams.set("view",n)}return t.toString()}static encodeState(e){try{const t={};e.shownToggles&&e.shownToggles.length>0&&(t.t=e.shownToggles),e.peekToggles&&e.peekToggles.length>0&&(t.p=e.peekToggles),e.tabs&&Object.keys(e.tabs).length>0&&(t.g=Object.entries(e.tabs)),e.focus&&e.focus.length>0&&(t.f=e.focus);const n=JSON.stringify(t);let r;r="function"==typeof btoa?btoa(n):globalThis.Buffer.from(n,"utf-8").toString("base64");return r.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}catch(e){return console.warn("Failed to encode state:",e),null}}static decodeState(e){try{let t,n=e.replace(/-/g,"+").replace(/_/g,"/");for(;n.length%4;)n+="=";t="function"==typeof atob?atob(n):globalThis.Buffer.from(n,"base64").toString("utf-8");const r=JSON.parse(t);if(!r||"object"!=typeof r)throw new Error("Invalid compact state structure");const s={shownToggles:Array.isArray(r.t)?r.t:[],peekToggles:Array.isArray(r.p)?r.p:[]};if(Array.isArray(r.g)){s.tabs={};for(const[e,t]of r.g)"string"==typeof e&&"string"==typeof t&&(s.tabs[e]=t)}return Array.isArray(r.f)&&(s.focus=r.f),s}catch(e){return console.warn("Failed to decode view state:",e),null}}}const ns=new class{#Z=Ue(Ke([]));get items(){return ln(this.#Z)}set items(e){Ge(this.#Z,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 rs(e,t){ns.show(e,t)}var ss=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],os=["difference","intersection","symmetricDifference","union"],is=!1;class as extends Set{#Y=new Map;#K=Ue(0);#J=Ue(0);#X=Xt||-1;constructor(e){if(super(),e){for(var t of e)super.add(t);this.#J.v=super.size}is||this.#Q()}#ee(e){return Xt===this.#X?Ue(e):De(e)}#Q(){is=!0;var e=as.prototype,t=Set.prototype;for(const n of ss)e[n]=function(...e){return ln(this.#K),t[n].apply(this,e)};for(const n of os)e[n]=function(...e){ln(this.#K);var r=t[n].apply(this,e);return new as(r)}}has(e){var t=super.has(e),n=this.#Y,r=n.get(e);if(void 0===r){if(!t)return ln(this.#K),!1;r=this.#ee(!0),n.set(e,r)}return ln(r),t}add(e){return super.has(e)||(super.add(e),Ge(this.#J,super.size),Ze(this.#K)),this}delete(e){var t=super.delete(e),n=this.#Y,r=n.get(e);return void 0!==r&&(n.delete(e),Ge(r,!1)),t&&(Ge(this.#J,super.size),Ze(this.#K)),t}clear(){if(0!==super.size){super.clear();var e=this.#Y;for(var t of e.values())Ge(t,!1);e.clear(),Ge(this.#J,0),Ze(this.#K)}}keys(){return this.values()}values(){return ln(this.#K),super.values()}entries(){return ln(this.#K),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return ln(this.#J)}}class ls extends Map{#Y=new Map;#K=Ue(0);#J=Ue(0);#X=Xt||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#J.v=super.size}}#ee(e){return Xt===this.#X?Ue(e):De(e)}has(e){var t=this.#Y,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return ln(this.#K),!1;n=this.#ee(0),t.set(e,n)}return ln(n),!0}forEach(e,t){this.#te(),super.forEach(e,t)}get(e){var t=this.#Y,n=t.get(e);if(void 0===n){if(void 0===super.get(e))return void ln(this.#K);n=this.#ee(0),t.set(e,n)}return ln(n),super.get(e)}set(e,t){var n=this.#Y,r=n.get(e),s=super.get(e),o=super.set(e,t),i=this.#K;if(void 0===r)r=this.#ee(0),n.set(e,r),Ge(this.#J,super.size),Ze(i);else if(s!==t){Ze(r);var a=null===i.reactions?null:new Set(i.reactions);(null===a||!r.reactions?.every(e=>a.has(e)))&&Ze(i)}return o}delete(e){var t=this.#Y,n=t.get(e),r=super.delete(e);return void 0!==n&&(t.delete(e),Ge(this.#J,super.size),Ge(n,-1),Ze(this.#K)),r}clear(){if(0!==super.size){super.clear();var e=this.#Y;for(var t of(Ge(this.#J,0),e.values()))Ge(t,-1);Ze(this.#K),e.clear()}}#te(){ln(this.#K);var e=this.#Y;if(this.#J.v!==e.size)for(var t of super.keys())if(!e.has(t)){var n=this.#ee(0);e.set(t,n)}for([,n]of this.#Y)ln(n)}keys(){return ln(this.#K),super.keys()}values(){return this.#te(),super.values()}entries(){return this.#te(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return ln(this.#J),super.size}}const cs=Symbol();class ds extends URLSearchParams{#K=Ue(0);#ne=function(){return hs}();#re=!1;#se(){if(!this.#ne||this.#re)return;this.#re=!0;const e=this.toString();this.#ne.search=e&&`?${e}`,this.#re=!1}[cs](e){if(!this.#re){this.#re=!0;for(const e of[...super.keys()])super.delete(e);for(const[t,n]of e)super.append(t,n);Ze(this.#K),this.#re=!1}}append(e,t){super.append(e,t),this.#se(),Ze(this.#K)}delete(e,t){var n=super.has(e,t);super.delete(e,t),n&&(this.#se(),Ze(this.#K))}get(e){return ln(this.#K),super.get(e)}getAll(e){return ln(this.#K),super.getAll(e)}has(e,t){return ln(this.#K),super.has(e,t)}keys(){return ln(this.#K),super.keys()}set(e,t){var n=super.getAll(e).join("");super.set(e,t),n!==super.getAll(e).join("")&&(this.#se(),Ze(this.#K))}sort(){super.sort(),this.#se(),Ze(this.#K)}toString(){return ln(this.#K),super.toString()}values(){return ln(this.#K),super.values()}entries(){return ln(this.#K),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return ln(this.#K),super.size}}let hs=null;class us extends URL{#oe=Ue(super.protocol);#ie=Ue(super.username);#ae=Ue(super.password);#le=Ue(super.hostname);#ce=Ue(super.port);#de=Ue(super.pathname);#he=Ue(super.hash);#ue=Ue(super.search);#pe;constructor(e,t){super(e=new URL(e,t)),hs=this,this.#pe=new ds(e.searchParams),hs=null}get hash(){return ln(this.#he)}set hash(e){super.hash=e,Ge(this.#he,super.hash)}get host(){return ln(this.#le),ln(this.#ce),super.host}set host(e){super.host=e,Ge(this.#le,super.hostname),Ge(this.#ce,super.port)}get hostname(){return ln(this.#le)}set hostname(e){super.hostname=e,Ge(this.#le,super.hostname)}get href(){return ln(this.#oe),ln(this.#ie),ln(this.#ae),ln(this.#le),ln(this.#ce),ln(this.#de),ln(this.#he),ln(this.#ue),super.href}set href(e){super.href=e,Ge(this.#oe,super.protocol),Ge(this.#ie,super.username),Ge(this.#ae,super.password),Ge(this.#le,super.hostname),Ge(this.#ce,super.port),Ge(this.#de,super.pathname),Ge(this.#he,super.hash),Ge(this.#ue,super.search),this.#pe[cs](super.searchParams)}get password(){return ln(this.#ae)}set password(e){super.password=e,Ge(this.#ae,super.password)}get pathname(){return ln(this.#de)}set pathname(e){super.pathname=e,Ge(this.#de,super.pathname)}get port(){return ln(this.#ce)}set port(e){super.port=e,Ge(this.#ce,super.port)}get protocol(){return ln(this.#oe)}set protocol(e){super.protocol=e,Ge(this.#oe,super.protocol)}get search(){return ln(this.#ue)}set search(e){super.search=e,Ge(this.#ue,e),this.#pe[cs](super.searchParams)}get username(){return ln(this.#ie)}set username(e){super.username=e,Ge(this.#ie,super.username)}get origin(){return ln(this.#oe),ln(this.#le),ln(this.#ce),super.origin}get searchParams(){return this.#pe}toString(){return this.href}toJSON(){return this.href}}const ps=new class{_definitions=new ls;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}},vs="cv-user-variables";const fs=new class{#ve=Ue(Ke({}));get values(){return ln(this.#ve)}set values(e){Ge(this.#ve,e,!0)}persistence;constructor(){}init(e){this.persistence=e,this.loadSavedPlaceholderValues()}loadSavedPlaceholderValues(){if(!this.persistence)return;const e=this.persistence.getItem(vs);if(e)try{this.values=JSON.parse(e)}catch(e){console.warn("[CustomViews] Failed to parse user variables:",e)}}getValue(e){return this.values[e]}set(e,t){this.values[e]=t,this.persistValue()}persistValue(){this.persistence&&this.persistence.setItem(vs,JSON.stringify(this.values))}reset(){this.values={},this.persistValue()}};function gs(){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 bs(e){const t=gs(),n=e.getBoundingClientRect().top+window.scrollY-t-20;window.scrollTo({top:n,behavior:"smooth"})}var ms=_n('<p class="description svelte-gwkhja"> </p>'),ws=_n('<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 ys={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;}"};mn(["change"]);var xs=_n('<p class="description svelte-uub3h8"> </p>'),ks=_n("<option> </option>"),_s=_n('<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 Cs={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);}"};function Ss(e,t){ie(t,!0),nr(e,Cs);let n=Mr(t,"activeTabId",15,""),r=Mr(t,"onchange",3,()=>{});var s=_s(),o=at(s),i=at(o),a=at(i,!0);J(i);var l=ct(i,2),c=e=>{var n=xs(),r=at(n,!0);J(n),_t(()=>An(r,t.group.description)),En(e,n)};Nn(l,e=>{t.group.description&&e(c)}),J(o);var d,h=ct(o,2);h.__change=function(e){const s=e.target;n(s.value),r()({groupId:t.group.groupId,tabId:n()})},Fn(h,21,()=>t.group.tabs,e=>e.tabId,(e,t)=>{var n=ks(),r=at(n,!0);J(n);var s={};_t(()=>{An(r,ln(t).label||ln(t).tabId),s!==(s=ln(t).tabId)&&(n.value=(n.__value=ln(t).tabId)??"")}),En(e,n)}),J(h),function(e){var t=new MutationObserver(()=>{dr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),bt(()=>{t.disconnect()})}(h),J(s),_t(()=>{gr(i,"for",`tab-group-${t.group.groupId??""}`),An(a,t.group.label||t.group.groupId),gr(h,"id",`tab-group-${t.group.groupId??""}`),d!==(d=n())&&(h.value=(h.__value=n())??"",dr(h,n()))}),En(e,s),ae()}mn(["change"]);var Es=_n('<div class="placeholder-item svelte-1vp05mb"><label class="placeholder-label svelte-1vp05mb"> </label> <input class="placeholder-input svelte-1vp05mb" type="text"/></div>');const $s={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);}"};mn(["input"]);var Ls=_n("<button>Customize</button>"),Ts=_n('<p class="description svelte-16uy9h6"> </p>'),As=_n('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Toggles</div> <div class="toggles-container svelte-16uy9h6"></div></div>'),Ms=_n('<div class="section svelte-16uy9h6"><div class="section-heading svelte-16uy9h6">Placeholders</div> <div class="placeholders-container svelte-16uy9h6"></div></div>'),Ps=_n('<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>'),zs=_n("<!> <!> <!>",1),Is=_n('<div class="tab-content active svelte-16uy9h6"><!> <!> <!></div>'),Hs=_n('<button class="share-action-btn copy-url-btn svelte-16uy9h6"><span class="btn-icon svelte-16uy9h6"><!></span> <span><!></span></button>'),qs=_n('<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>'),Rs=_n('<button class="reset-btn svelte-16uy9h6" title="Reset to Default"><span><!></span> <span>Reset</span></button>'),Os=_n("<div></div>"),Ns=_n('<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/customviews-js/customviews" 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 js={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 /* Theme Selector */.theme-selector.svelte-16uy9h6 {display:flex;background:var(--cv-input-bg);border:1px solid var(--cv-input-border);border-radius:0.5rem;padding:0.25rem;gap:0.25rem;}.theme-btn.svelte-16uy9h6 {flex:1;display:flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem;border:none;background:transparent;color:var(--cv-text-secondary);border-radius:0.375rem;cursor:pointer;font-size:0.875rem;font-weight:500;transition:all 0.2s ease;}.theme-btn.svelte-16uy9h6:hover {background:var(--cv-bg-hover);color:var(--cv-text);}.theme-btn.active.svelte-16uy9h6 {background:var(--cv-primary);color:white;box-shadow:var(--cv-shadow-sm);}\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 Vs(e,t){ie(t,!0),nr(e,js);let n=Mr(t,"title",3,"Customize View"),r=Mr(t,"description",3,""),s=Mr(t,"showReset",3,!0),o=Mr(t,"showTabGroups",3,!0),i=Mr(t,"isResetting",3,!1),a=Mr(t,"onclose",3,()=>{}),l=Mr(t,"onreset",3,()=>{}),c=Mr(t,"onstartShare",3,()=>{});const d=He(()=>t.controller.store),h=He(()=>ln(d).isTabGroupNavHeadingVisible),u=He(()=>ln(d).menuToggles),p=He(()=>ln(d).menuTabGroups),v=He(()=>ln(d).configSectionOrder);let f=He(()=>ln(d).state.shownToggles??[]),g=He(()=>ln(d).state.peekToggles??[]),b=He(()=>ln(d).state.tabs??{}),m=He(()=>ps.definitions.filter(e=>!e.hiddenFromSettings&&(!e.isLocal||ln(d).detectedPlaceholders.has(e.name)))),w=He(()=>fs.values),y=He(()=>ln(u).length>0||ln(m).length>0||o()&&ln(p).length>0),x=Ue("customize"),k=Ue(!1),_=Ue(""),C=Ue(0),S=Ue(0);function E(e,t){Ge(_,t?'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n <path d="M245 37.0001V39.5001H250V37.0001H247.5H245ZM250 13.0001C250 11.6194 248.881 10.5001 247.5 10.5001C246.119 10.5001 245 11.6194 245 13.0001H247.5H250ZM250 31.0001C250 29.6194 248.881 28.5001 247.5 28.5001C246.119 28.5001 245 29.6194 245 31.0001H247.5H250ZM245 19.0001C245 20.3808 246.119 21.5001 247.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"/>\n <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"/>\n <path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n <path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round" stroke-dasharray="10 10"/>\n </svg>':e?'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62.0001" x2="77" y2="62.0001" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8888" x2="77" y2="77.8888" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4454" x2="221" y2="97.4454" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n <line x1="247.5" y1="43.0001" x2="247.5" y2="13.0001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M185 12.5001L247 12.5001" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <line x1="204.09" y1="36.6095" x2="181.698" y2="10.0228" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M125 9.50012L181 9.50012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M144.305 35.2579L120.095 6.56679" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M120 6.50037L64 6.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M87.1957 36.1024L59 2.50008" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M59 2.50037L3 2.50037" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n <path d="M2.5 38.5001L2.5 3.00012" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>\n </svg>':'<svg xmlns="http://www.w3.org/2000/svg" width="250" height="181" viewBox="0 0 250 181" fill="currentColor">\n <rect y="34.5001" width="250" height="146" rx="4" stroke="currentColor" stroke-width="10" fill="none"/>\n <line x1="27" y1="62" x2="77" y2="62" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="77.8887" x2="77" y2="77.8887" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="97.4453" x2="221" y2="97.4453" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="114.555" x2="221" y2="114.555" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="132.889" x2="221" y2="132.889" stroke="currentColor" stroke-width="5"/>\n <line x1="27" y1="150" x2="221" y2="150" stroke="currentColor" stroke-width="5"/>\n </svg>',!0)}function $(e){E(ln(h),e)}function L(){ln(d).isTabGroupNavHeadingVisible=!ln(h)}function T(e){const{toggleId:t,value:n}=e,r=ln(d).state.shownToggles||[],s=ln(d).state.peekToggles||[],o=r.filter(e=>e!==t),i=s.filter(e=>e!==t);"show"===n&&o.push(t),"peek"===n&&i.push(t),ln(d).setToggles(o,i)}function A(e){const{groupId:t,tabId:n}=e,r=function(e){const t=gs(),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");ln(d).setPinnedTab(t,n),r&&queueMicrotask(()=>{bs(r)})}function M(e){fs.set(e.name,e.value)}async function P(){const e=ts.generateShareableURL(ln(d).state);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),rs("Link copied to clipboard!"),Ge(k,!0),setTimeout(()=>{Ge(k,!1)},2e3)}catch(e){console.error("Copy failed:",e),rs("Failed to copy URL. Please copy manually.")}}mt(()=>{ln(y)||"customize"!==ln(x)||Ge(x,"share")}),mt(()=>{"customize"===ln(x)&&ln(C)>ln(S)&&Ge(S,ln(C),!0)}),mt(()=>{E(ln(h),!1)});var z=Ns();z.__click=e=>{e.target===e.currentTarget&&a()()};var I=at(z),H=at(I),q=at(H),R=at(q);Gn(at(R),Wr),J(R);var O=ct(R,2),N=at(O,!0);J(O),J(q);var j=ct(q,2);j.__click=function(...e){a()?.apply(this,e)},Gn(at(j),Zr),J(j),J(H);var V=ct(H,2);let F;var D=at(V),U=at(D),B=e=>{var t=Ls();t.__click=()=>Ge(x,"customize"),_t(()=>ar(t,0,"tab "+("customize"===ln(x)?"active":""),"svelte-16uy9h6")),En(e,t)};Nn(U,e=>{ln(y)&&e(B)});var G=ct(U,2);G.__click=()=>Ge(x,"share"),J(D);var W=ct(D,2),Z=e=>{var t=Is(),n=at(t),s=e=>{var t=Ts(),n=at(t,!0);J(t),_t(()=>An(n,r())),En(e,t)};Nn(n,e=>{r()&&e(s)});var i=ct(n,2);Fn(i,16,()=>ln(v),e=>e,(e,t)=>{var n=zs(),r=lt(n),s=e=>{var t=As(),n=ct(at(t),2);Fn(n,21,()=>ln(u),e=>e.toggleId,(e,t)=>{{let n=He(()=>{return e=ln(t).toggleId,n=ln(f),r=ln(g),n.includes(e)?"show":r.includes(e)?"peek":"hide";var e,n,r});!function(e,t){ie(t,!0),nr(e,ys);const n=[];let r=Mr(t,"value",15,"show"),s=Mr(t,"onchange",3,()=>{});var o=ws(),i=at(o),a=at(i),l=at(a),c=at(l,!0);J(l);var d=ct(l,2),h=e=>{var n=ms(),r=at(n,!0);J(n),_t(()=>An(r,t.toggle.description)),En(e,n)};Nn(d,e=>{t.toggle.description&&e(h)}),J(a);var u=ct(a,2),p=at(u),v=at(p);vr(v),v.__change=()=>s()({toggleId:t.toggle.toggleId,value:"hide"}),v.value=v.__value="hide",X(2),J(p);var f=ct(p,2),g=at(f);vr(g),g.__change=()=>s()({toggleId:t.toggle.toggleId,value:"peek"}),g.value=g.__value="peek",X(2),J(f);var b=ct(f,2),m=at(b);vr(m),m.__change=()=>s()({toggleId:t.toggle.toggleId,value:"show"}),m.value=m.__value="show",X(2),J(b),J(u),J(i),J(o),_t(()=>{An(c,t.toggle.label||t.toggle.toggleId),gr(v,"name",`cv-toggle-${t.toggle.toggleId??""}`),gr(g,"name",`cv-toggle-${t.toggle.toggleId??""}`),gr(m,"name",`cv-toggle-${t.toggle.toggleId??""}`)}),yr(n,[],v,r,r),yr(n,[],g,r,r),yr(n,[],m,r,r),En(e,o),ae()}(e,{get toggle(){return ln(t)},get value(){return ln(n)},onchange:T})}}),J(n),J(t),En(e,t)};Nn(r,e=>{"toggles"===t&&ln(u).length>0&&e(s)});var i=ct(r,2),a=e=>{var t=Ms(),n=ct(at(t),2);Fn(n,21,()=>ln(m),e=>e.name,(e,t)=>{{let n=He(()=>ln(w)[ln(t).name]??ln(t).defaultValue??"");!function(e,t){ie(t,!0),nr(e,$s);let n=Mr(t,"value",15,""),r=Mr(t,"onchange",3,()=>{});const s=He(()=>`cv-placeholder-${t.definition.name.replace(/[^a-zA-Z0-9-_]/g,"-")}`);var o=Es(),i=at(o),a=at(i,!0);J(i);var l=ct(i,2);vr(l),l.__input=function(e){const s=e.target;n(s.value),r()({name:t.definition.name,value:s.value})},J(o),_t(()=>{gr(i,"for",ln(s)),An(a,t.definition.settingsLabel||t.definition.name),gr(l,"id",ln(s)),gr(l,"placeholder",t.definition.settingsHint||""),fr(l,n())}),En(e,o),ae()}(e,{get definition(){return ln(t)},get value(){return ln(n)},onchange:M})}}),J(n),J(t),En(e,t)};Nn(i,e=>{"placeholders"===t&&ln(m).length>0&&e(a)});var l=ct(i,2),c=e=>{var t=Ps(),n=ct(at(t),2),r=at(n),s=at(r),o=at(s),i=at(o);Gn(at(i),()=>ln(_)),J(i),J(o);var a=ct(o,4),l=at(a);vr(l),l.__change=L,X(4),J(a),J(s),J(r);var c=ct(r,2);Fn(c,21,()=>ln(p),e=>e.groupId,(e,t)=>{{let n=He(()=>ln(b)[ln(t).groupId]||ln(t).tabs[0]?.tabId);Ss(e,{get group(){return ln(t)},get activeTabId(){return ln(n)},onchange:A})}}),J(c),J(n),J(t),_t(()=>{return e=l,t=!ln(h),void((n=br(e)).checked!==(n.checked=t??void 0)&&(e.checked=t));var e,t,n}),bn("mouseenter",r,()=>$(!0)),bn("mouseleave",r,()=>$(!1)),En(e,t)};Nn(l,e=>{"tabGroups"===t&&o()&&ln(p).length>0&&e(c)}),En(e,n)}),Nn(ct(i,2),e=>{}),J(t),er(1,t,()=>Dr,()=>({duration:150})),En(e,t)},Y=e=>{var t=qs(),n=at(t),r=ct(at(n),2);r.__click=()=>c()();var s=at(r);Gn(at(s),Xr),J(s),X(2),J(r);var o=ct(r,2),i=e=>{var t=Hs();t.__click=P;var n=at(t),r=at(n),s=e=>{var t=Sn();Gn(lt(t),Jr),En(e,t)},o=e=>{var t=Sn();Gn(lt(t),Kr),En(e,t)};Nn(r,e=>{ln(k)?e(s):e(o,!1)}),J(n);var i=ct(n,2),a=at(i),l=e=>{En(e,Cn("Copied!"))},c=e=>{En(e,Cn("Copy Shareable URL of Settings"))};Nn(a,e=>{ln(k)?e(l):e(c,!1)}),J(i),J(t),En(e,t)};Nn(o,e=>{ln(y)&&e(i)}),J(n),J(t),er(1,t,()=>Dr,()=>({duration:150})),En(e,t)};Nn(W,e=>{"customize"===ln(x)?e(Z):e(Y,!1)}),J(V);var K=ct(V,2),Q=at(K),ee=e=>{var t=Rs();t.__click=function(...e){l()?.apply(this,e)};var n=at(t);Gn(at(n),Yr),J(n),X(2),J(t),_t(()=>ar(n,0,"reset-btn-icon "+(i()?"spinning":""),"svelte-16uy9h6")),En(e,t)},te=e=>{En(e,Os())};Nn(Q,e=>{s()?e(ee):e(te,!1)});var ne=ct(Q,2);Gn(at(ne),Qr),X(2),J(ne),ct(ne,2).__click=function(...e){a()?.apply(this,e)},J(K),J(I),J(z),_t(()=>{An(N,n()),F=cr(V,"",F,{"min-height":"share"===ln(x)&&ln(S)>0?`${ln(S)}px`:void 0}),ar(G,0,"tab "+("share"===ln(x)?"active":""),"svelte-16uy9h6")}),Cr(V,"clientHeight",e=>Ge(C,e)),er(3,I,()=>Gr,()=>({duration:200,start:.9})),er(3,z,()=>Dr,()=>({duration:200})),En(e,z),ae()}function Fs(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 Ds(e){return e.trim().replace(/\s+/g," ")}function Us(e){const t=e.tagName,n=Ds(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:Fs(n),elementId:e.id};return r&&(a.parentId=r),a}function Bs(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 Gs(e){if(!e)return[];if(e.includes(" "))return Ws(e);if(!/^[A-Za-z0-9+/]*={0,2}$/.test(e))return Ws(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 Ws(e)}}function Ws(e){return e.split(/[ +,]+/).filter(e=>e.length>0).map(e=>({tag:"ANY",index:0,textSnippet:"",textHash:0,elementId:e}))}mn(["click","change"]);function Zs(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(Fs(Ds(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=Ds(n.textContent||"");if(Fs(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 Ys=["HEADER","NAV","FOOTER","SCRIPT","STYLE"],Ks=[],Js="data-cv-share-ignore",Xs="div, p, blockquote, pre, li, h1, h2, h3, h4, h5, h6, table, span, tr, cv-tabgroup, cv-toggle",Qs="cv-share-selected",eo="cv-highlight-target",to="cv-share-selected-hide",no="cv-highlight-target-hide",ro="cv-share-selected-highlight",so="cv-highlight-target-mode",oo=["flex-body","content-wrapper","app"];function io(e){if(e.id&&oo.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 ao=new class{#fe=Ue(!1);get isActive(){return ln(this.#fe)}set isActive(e){Ge(this.#fe,e,!0)}#ge=Ue("show");get selectionMode(){return ln(this.#ge)}set selectionMode(e){Ge(this.#ge,e,!0)}#be=Ue(Ke(new as));get selectedElements(){return ln(this.#be)}set selectedElements(e){Ge(this.#be,e,!0)}#me=Ue(null);get currentHoverTarget(){return ln(this.#me)}set currentHoverTarget(e){Ge(this.#me,e,!0)}#we=He(()=>this.selectedElements.size);get shareCount(){return ln(this.#we)}set shareCount(e){Ge(this.#we,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 as(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(no):"highlight"===this.selectionMode?e.classList.add(so):e.classList.add(eo)}_removeHighlightClass(e){e.classList.remove(eo,no,so)}_addSelectionClass(e){"hide"===this.selectionMode?e.classList.add(to):"highlight"===this.selectionMode?e.classList.add(ro):e.classList.add(Qs)}_removeSelectionClass(e){e.classList.remove(Qs,to,ro)}generateLink(){if(0===this.selectedElements.size)return void rs("Please select at least one item.");const e=Array.from(this.selectedElements).map(e=>Us(e));let t;try{t=Bs(e)}catch{return void rs("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(()=>{rs("Link copied to clipboard!")}).catch(()=>{rs("Failed to copy to clipboard")})}previewLink(){if(0===this.selectedElements.size)return void rs("Please select at least one item.");const e=Bs(Array.from(this.selectedElements).map(e=>Us(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 lo(e){const t=e-1;return t*t*t+1}function co(e,{from:t,to:n},r={}){var{delay:s=0,duration:o=e=>120*Math.sqrt(e),easing:i=lo}=r,a=getComputedStyle(e),l="none"===a.transform?"":a.transform,[c,d]=a.transformOrigin.split(" ").map(parseFloat);c/=e.clientWidth,d/=e.clientHeight;var h=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),u=e.clientWidth/n.width/h,p=e.clientHeight/n.height/h,v=t.left+t.width*c,f=t.top+t.height*d,g=n.left+n.width*c,b=n.top+n.height*d,m=(v-g)*u,w=(f-b)*p,y=t.width/n.width,x=t.height/n.height;return{delay:s,duration:"function"==typeof o?o(Math.sqrt(m*m+w*w)):o,easing:i,css:(e,t)=>`transform: ${l} translate(${t*m}px, ${t*w}px) scale(${e+t*y}, ${e+t*x});`}}re=!0;var ho=_n('<div role="alert" aria-live="polite"> </div>'),uo=_n('<div class="toast-container svelte-zemmny"></div>');const po={hash:"svelte-zemmny",code:".toast-container.svelte-zemmny {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-zemmny {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 vo(e,t){ie(t,!1),nr(e,po),$r();var n=uo();Fn(n,13,()=>ns.items,e=>e.id,(e,t)=>{var n=ho(),r=at(n,!0);J(n),_t(()=>{ar(n,0,"cv-toast-notification toast-item","svelte-zemmny"),An(r,ln(t).message)}),er(1,n,()=>Ur,()=>({y:-20,duration:300})),er(2,n,()=>Dr,()=>({duration:200})),function(e,t,n){var r,s,o,i=Dt.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=tr(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,()=>co,null),En(e,n)}),J(n),En(e,n),ae()}Ir(vo,{},[],[],!0);var fo=_n('<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 go={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 }"};mn(["click"]);var bo=_n('<span class="id-badge svelte-64gpkh" title="ID detection active"> </span>'),mo=_n('<button class="action-btn up svelte-64gpkh" title="Select Parent">↰</button>'),wo=_n('<div class="hover-helper svelte-64gpkh"><div class="info svelte-64gpkh"><span class="tag svelte-64gpkh"> </span> <!></div> <button> </button> <!></div>');const yo={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;}"};mn(["click"]);var xo=_n('<div><span class="selection-label svelte-1dbf58w"> </span></div>'),ko=_n('<div class="share-overlay-ui"><!> <!> <!></div>');const _o={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 Co(e,t){ie(t,!0),nr(e,_o);let n=Mr(t,"excludedTags",19,()=>["HEADER","NAV","FOOTER"]),r=Mr(t,"excludedIds",19,()=>[]),s=He(()=>new Set(n().map(e=>e.toUpperCase()))),o=He(()=>new Set(r()));mt(()=>(document.body.classList.add("cv-share-active"),()=>{document.body.classList.remove("cv-share-active")}));let i=Ue(!1),a=Ue(null),l=Ue(null),c=!1,d=[],h=He(()=>{if(!ln(a)||!ln(l)||!ln(i))return null;return{left:Math.min(ln(a).x,ln(l).x),top:Math.min(ln(a).y,ln(l).y),width:Math.abs(ln(l).x-ln(a).x),height:Math.abs(ln(l).y-ln(a).y)}});function u(e){return function(e,t,n){let r=e;for(;r;){if(r.hasAttribute(Js))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,ln(s),ln(o))}var p=ko();bn("mouseover",Qe,function(e){if(!ao.isActive||ln(i))return;const t=e.target;if(t.closest(".hover-helper")||t.closest(".floating-bar"))return;if(u(t))return;const n=t.closest(Xs);if(!n)return void ao.setHoverTarget(null);const r=n;let s=r.parentElement,o=null;for(;s;){if(ao.selectedElements.has(s)){o=s;break}s=s.parentElement}if(o)ao.setHoverTarget(o);else if(io(r))ao.setHoverTarget(null);else if(ao.currentHoverTarget!==r){if(ao.currentHoverTarget&&ao.currentHoverTarget.contains(r))return;ao.setHoverTarget(r)}}),bn("mousedown",Qe,function(e){if(!ao.isActive)return;const t=e.target;t.closest(".floating-bar")||t.closest(".hover-helper")||window.matchMedia("(pointer: coarse)").matches||(e.preventDefault(),Ge(a,{x:e.clientX,y:e.clientY},!0),Ge(l,{x:e.clientX,y:e.clientY},!0),Ge(i,!1),c=!1)}),bn("mousemove",Qe,function(e){if(!ln(a))return;Ge(l,{x:e.clientX,y:e.clientY},!0);const t=e.clientX-ln(a).x,n=e.clientY-ln(a).y;Math.hypot(t,n)>12&&(Ge(i,!0),ao.setHoverTarget(null))}),bn("mouseup",Qe,function(){if(ln(i)&&ln(a)&&ln(l)){const e=Math.abs(ln(l).x-ln(a).x),t=Math.abs(ln(l).y-ln(a).y);if(e<10||t<10)return Ge(i,!1),Ge(a,null),void Ge(l,null);const n=Math.min(ln(a).x,ln(l).x),r=Math.min(ln(a).y,ln(l).y),s=n+e,o=r+t;0===d.length&&(d=Array.from(document.querySelectorAll(Xs)));const h=[];d.forEach(e=>{const t=e;if(u(t))return;const i=t.getBoundingClientRect();i.left>=n&&i.right<=s&&i.top>=r&&i.bottom<=o&&!io(t)&&h.push(t)}),h.length>0&&ao.toggleMultipleElements(h),c=!0}Ge(i,!1),Ge(a,null),Ge(l,null)}),bn("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=ao.currentHoverTarget;n&&ao.toggleElementSelection(n)},!0),bn("keydown",Qe,function(e){"Escape"===e.key&&(e.preventDefault(),ao.toggleActive(!1))});var v=at(p);!function(e,t){ie(t,!1),nr(e,go),$r();var n=fo(),r=at(n),s=at(r);s.__click=()=>ao.setSelectionMode("show");var o=ct(s,2);o.__click=()=>ao.setSelectionMode("hide");var i=ct(o,2);i.__click=()=>ao.setSelectionMode("highlight"),J(r);var a=ct(r,4),l=at(a);J(a);var c=ct(a,2);c.__click=function(){ao.clearAllSelections()};var d=ct(c,2);d.__click=function(){ao.previewLink()};var h=ct(d,2);h.__click=function(){ao.generateLink()},ct(h,2).__click=function(){ao.toggleActive(!1)},J(n),_t(()=>{ar(s,0,"mode-btn "+("show"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(s,"aria-pressed","show"===ao.selectionMode),ar(o,0,"mode-btn "+("hide"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(o,"aria-pressed","hide"===ao.selectionMode),ar(i,0,"mode-btn "+("highlight"===ao.selectionMode?"active":""),"svelte-bs8cbd"),gr(i,"aria-pressed","highlight"===ao.selectionMode),An(l,`${ao.shareCount??""} item${1===ao.shareCount?"":"s"} to\n ${"show"===ao.selectionMode?"show":"highlight"===ao.selectionMode?"highlight":"hide"}`)}),er(3,n,()=>Ur,()=>({y:50,duration:200})),En(e,n),ae()}(v,{});var f=ct(v,2);!function(e,t){ie(t,!0),nr(e,yo);let n=He(()=>ao.currentHoverTarget),r=He(()=>ln(n)&&ao.selectedElements.has(ln(n))),s=Ue("display: none;"),o=Ue("TAG"),i=Ue(null),a=Ue(!1),l=Ue(null);function c(e){let t=e.parentElement;for(;t;){if(t.matches(Xs)&&!io(t))return t;t=t.parentElement}return null}function d(e){e.stopPropagation(),ln(n)&&ao.toggleElementSelection(ln(n))}mt(()=>{const e=ao.currentHoverTarget;if(e){const t=hn(()=>ln(l));if(t)Ge(s,t,!0),Ge(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),Ge(s,`top: ${n}px; left: ${r}px;`)}Ge(o,e.tagName,!0),Ge(i,e.id||null,!0),Ge(a,!!c(e))}else Ge(s,"display: none;"),Ge(l,null)});let h=Ue(0);function u(e){if(e.stopPropagation(),!ln(n))return;const t=c(ln(n));t&&(Ge(l,`${ln(s)} min-width: ${ln(h)}px;`),ao.setHoverTarget(t))}var p=Sn(),v=lt(p),f=e=>{var t=wo(),n=at(t),l=at(n),c=at(l,!0);J(l);var p=ct(l,2),v=e=>{var t=bo(),n=at(t);J(t),_t(()=>An(n,`#${ln(i)??""}`)),En(e,t)};Nn(p,e=>{ln(i)&&e(v)}),J(n);var f=ct(n,2);f.__click=d;var g=at(f,!0);J(f);var b=ct(f,2),m=e=>{var t=mo();t.__click=u,En(e,t)};Nn(b,e=>{ln(a)&&e(m)}),J(t),_t(()=>{cr(t,ln(s)),An(c,ln(o)),ar(f,0,"action-btn "+(ln(r)?"deselect":"select"),"svelte-64gpkh"),gr(f,"title",ln(r)?"Deselect":"Select"),An(g,ln(r)?"✕":"✓")}),Cr(t,"clientWidth",e=>Ge(h,e)),er(3,t,()=>Dr,()=>({duration:100})),En(e,t)};Nn(v,e=>{ln(n)&&e(f)}),En(e,p),ae()}(f,{});var g=ct(f,2),b=e=>{var t=xo(),n=at(t),r=at(n,!0);J(n),J(t),_t(()=>{ar(t,0,"selection-box "+("hide"===ao.selectionMode?"hide-mode":"highlight"===ao.selectionMode?"highlight-mode":""),"svelte-1dbf58w"),cr(t,`left: ${ln(h).left??""}px; top: ${ln(h).top??""}px; width: ${ln(h).width??""}px; height: ${ln(h).height??""}px;`),An(r,"hide"===ao.selectionMode?"Select to hide":"highlight"===ao.selectionMode?"Select to highlight":"Select to show")}),En(e,t)};Nn(g,e=>{ln(h)&&e(b)}),J(p),En(e,p),ae()}const So=new class{#fe=Ue(!1);get isActive(){return ln(this.#fe)}set isActive(e){Ge(this.#fe,e,!0)}setIsActive(e){this.isActive=e}exit(){this.isActive=!1}};var Eo=_n('<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 $o={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;}"};mn(["click"]);class Lo{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:Mo(e,t)}}class To{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:Mo(e,t)}}class Ao{static SHARE_MODES=["show","hide","highlight"];parseForMatch(e){const t=new URLSearchParams(e.search);for(const n of Ao.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?Mo(e,t):null}}function Mo(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 Po{static rules=[new Lo,new To,new Ao];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 Mo(e,t)}}class zo{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=Po.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=Po.getCleanedUrl(window.location,e);window.history.replaceState({},"",t)}}}const Io="cv-intro-shown";class Ho{#ye=Ue(!1);get showCallout(){return ln(this.#ye)}set showCallout(e){Ge(this.#ye,e,!0)}#xe=Ue(!1);get showPulse(){return ln(this.#xe)}set showPulse(e){Ge(this.#xe,e,!0)}getPersistence;getOptions;hasChecked=!1;constructor(e,t){this.getPersistence="function"==typeof e?e:()=>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.getPersistence().getItem(Io)||setTimeout(()=>{this.showCallout=!0,this.showPulse=!0},1e3)}dismiss(){this.showCallout=!1,this.showPulse=!1,this.getPersistence().setItem(Io,"true")}}var qo=_n('<div class="cv-widget-root" data-cv-share-ignore=""><!> <!> <!> <!> <!> <!></div>');const Ro={hash:"svelte-ylk7wm",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 Oo(e,t){ie(t,!0),nr(e,Ro);const n=He(()=>t.controller.store),r=He(()=>t.controller.store.config),s=He(()=>t.options.settingsEnabled??!0),o=new Ho(()=>t.controller.persistenceManager,()=>t.options.callout),i=new zo({onOpenModal:p,onStartShare:g,checkSettingsEnabled:()=>ln(s)});let a=Ue(!1),l=Ue(!1),c=Ue(void 0);const d=He(()=>ln(r).shareExclusions||{}),h=He(()=>[...Ys,...ln(d).tags||[]]),u=He(()=>[...Ks,...ln(d).ids||[]]);function p(){ln(s)&&(o.dismiss(),Ge(a,!0))}function v(){Ge(a,!1)}function f(){Ge(l,!0),t.controller.resetToDefault(),ln(c)?.resetPosition(),rs("Settings reset to default"),setTimeout(()=>{Ge(l,!1),ln(c)?.resetPosition()},600)}function g(e="show"){v(),ao.setSelectionMode(e),ao.toggleActive(!0)}On(()=>(es.init(t.controller.persistenceManager),i.init(),()=>i.destroy())),mt(()=>{o.init(ln(n).hasPageElements,ln(s))});const b=He(()=>ln(s)&&(ln(n).hasMenuOptions||t.options.panel.showTabGroups||ln(a)));var m=qo(),w=at(m),y=e=>{{let n=He(()=>t.options.callout?.message),r=He(()=>t.options.callout?.enablePulse),s=He(()=>t.options.callout?.backgroundColor),i=He(()=>t.options.callout?.textColor);!function(e,t){nr(e,qr);let n=Mr(t,"position",3,"middle-left"),r=Mr(t,"message",3,"Customize your reading experience here."),s=Mr(t,"onclose",3,()=>{}),o=Mr(t,"enablePulse",3,!0),i=Mr(t,"backgroundColor",3,void 0),a=Mr(t,"textColor",3,void 0);var l=Hr(),c=at(l);let d;var h=at(c);h.__click=function(...e){s()?.apply(this,e)};var u=ct(h,2),p=at(u,!0);J(u),J(c),J(l),_t(()=>{ar(l,0,`cv-callout-wrapper pos-${n()??""}`,"svelte-ysaqmb"),ar(c,0,"cv-callout "+(o()?"cv-pulse":""),"svelte-ysaqmb"),d=cr(c,"",d,{"--cv-callout-bg":i(),"--cv-callout-text":a()}),An(p,r())}),En(e,l)}(e,{get position(){return t.options.icon.position},get message(){return ln(n)},get enablePulse(){return ln(r)},get backgroundColor(){return ln(s)},get textColor(){return ln(i)},onclose:()=>o.dismiss()})}};Nn(w,e=>{o.showCallout&&ln(s)&&e(y)});var x=ct(w,2);vo(x,{});var k=ct(x,2),_=e=>{Co(e,{get excludedTags(){return ln(h)},get excludedIds(){return ln(u)}})};Nn(k,e=>{ao.isActive&&e(_)});var C=ct(k,2);!function(e,t){function n(){So.exit()}ie(t,!1),nr(e,$o),$r();var r=Sn(),s=lt(r),o=e=>{var t=Eo(),r=at(t);ct(at(r),2).__click=n,J(r),J(t),er(3,t,()=>Br,()=>({duration:250})),En(e,t)};Nn(s,e=>{So.isActive&&e(o)}),En(e,r),ae()}(C,{});var S=ct(C,2),E=e=>{{let n=He(()=>t.options.icon?.color),r=He(()=>t.options.icon?.backgroundColor),s=He(()=>t.options.icon?.opacity),i=He(()=>t.options.icon?.scale);Er(Nr(e,{get position(){return t.options.icon.position},get title(){return t.options.panel.title},get pulse(){return o.showPulse},onclick:p,get iconColor(){return ln(n)},get backgroundColor(){return ln(r)},get opacity(){return ln(s)},get scale(){return ln(i)},get persistence(){return t.controller.persistenceManager}}),e=>Ge(c,e,!0),()=>ln(c))}};Nn(S,e=>{ln(b)&&t.options.icon.show&&e(E)});var $=ct(S,2),L=e=>{Vs(e,{get controller(){return t.controller},get title(){return t.options.panel.title},get description(){return t.options.panel.description},get showReset(){return t.options.panel.showReset},get showTabGroups(){return t.options.panel.showTabGroups},get isResetting(){return ln(l)},onclose:v,onreset:f,onstartShare:g})};Nn($,e=>{ln(s)&&ln(a)&&e(L)}),J(m),_t(()=>gr(m,"data-theme",es.currentTheme)),En(e,m),ae()}class No{app=null;options;constructor(e){this.options={controller:e.controller,container:e.container||document.body,settingsEnabled:e.settingsEnabled??!0,theme:e.theme||"light",panel:{title:e.panel?.title||"Customize View",description:e.panel?.description||"",showTabGroups:e.panel?.showTabGroups??!0,showReset:e.panel?.showReset??!0},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=Mn(Oo,{target:this.options.container,props:{controller:this.options.controller,options:this.options}}))}destroy(){this.app&&(qn(this.app),this.app=null)}}class jo{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("customviews-state",JSON.stringify(e))}getPersistedState(){const e=this.getItem("customviews-state");if(!e)return null;try{return JSON.parse(e)}catch(e){return console.error("Failed to parse persisted state:",e),null}}clearAll(){this.removeItem("customviews-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()}}var Vo=_n('<div class="cv-context-divider svelte-1a535nn" role="button" tabindex="0"> </div>');const Fo={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 Do(e,t){ie(t,!0),nr(e,Fo);let n=Mr(t,"hiddenCount",3,0);function r(){t.onExpand&&t.onExpand()}var s=Vo();s.__click=r,s.__keydown=e=>"Enter"===e.key&&r();var o=at(s);J(s),_t(()=>An(o,`... ${n()??""} section${n()>1?"s":""} hidden (Click to expand) ...`)),En(e,s),ae()}mn(["click","keydown"]);var Uo=_n('<div class="cv-highlight-box svelte-1mz0neo"></div> <div> </div>',1),Bo=_n('<div class="cv-highlight-overlay svelte-1mz0neo"></div>');const Go={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 Wo(e,t){ie(t,!0),nr(e,Go);let n=He(()=>t.box.rects);var r=Bo();Fn(r,21,()=>ln(n),e=>`${e.top}-${e.left}-${e.width}-${e.height}`,(e,t)=>{const n=He(()=>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"}(ln(t)));var r=Uo(),s=lt(r),o=ct(s,2),i=at(o,!0);J(o),_t((e,r)=>{cr(s,`top: ${ln(t).top??""}px; left: ${ln(t).left??""}px; width: ${ln(t).width??""}px; height: ${ln(t).height??""}px;`),ar(o,0,`cv-highlight-arrow ${ln(n)??""}`,"svelte-1mz0neo"),cr(o,e),An(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}(ln(t),ln(n)),()=>function(e){switch(e){case"left":return"→";case"right":return"←";case"top":return"↓";case"bottom":return"↑"}return""}(ln(n))]),En(e,r)}),J(r),En(e,r),ae()}function Zo(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,h=d+t.width,u=c+t.height;c<o&&(o=c),d<i&&(i=d),h>a&&(a=h),u>l&&(l=u)});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 Yo="cv-highlight",Ko="cv-highlight-mode",Jo="cv-highlight-overlay";class Xo{#ke=Ue(Ke([]));get rects(){return ln(this.#ke)}set rects(e){Ge(this.#ke,e,!0)}}class Qo{rootEl;overlayApp;state=new Xo;resizeObserver;activeTargets=[];onWindowResize=()=>this.updatePositions();constructor(e){this.rootEl=e,this.resizeObserver=new ResizeObserver(()=>{this.updatePositions()})}apply(e){const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some highlighted sections could not be found."),void this.exit();n.length<t.length&&rs("Some highlighted sections could not be found."),So.setIsActive(!0),document.body.classList.add(Ko),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(()=>{bs(r)})})}exit(){document.body.classList.remove(Ko),this.resizeObserver.disconnect(),window.removeEventListener("resize",this.onWindowResize),this.activeTargets=[],this.state.rects=[];const e=document.getElementById(Jo);this.overlayApp&&(qn(this.overlayApp),this.overlayApp=void 0),e&&e.remove()}renderHighlightOverlay(){let e=document.getElementById(Jo);e||(e=document.createElement("div"),e.id=Jo,document.body.appendChild(e)),e.innerHTML="",this.updatePositions(),this.overlayApp&&qn(this.overlayApp),this.overlayApp=Mn(Wo,{target:e,props:{box:this.state}})}updatePositions(){if(0===this.activeTargets.length)return void(this.state.rects=[]);const e=function(e){const t=new ls;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){Zo(r,i,t,s,o);continue}const e=new as(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&&(Zo(r,a,t,s,o),a=[]);a.length>0&&Zo(r,a,t,s,o)}return r}(e,e=>e.getBoundingClientRect(),()=>({scrollTop:window.pageYOffset||document.documentElement.scrollTop,scrollLeft:window.pageXOffset||document.documentElement.scrollLeft}))}}const ei="cv-show",ti="cv-hide",ni="cv-show-mode",ri="cv-hidden",si="cv-show-element";class oi{rootEl;hiddenElements=new as;dividers=new as;excludedTags;excludedIds;unsubscribe;url=new us(window.location.href);highlightService;constructor(e,t){this.rootEl=e;const n=t.shareExclusions?.tags||[],r=t.shareExclusions?.ids||[];this.excludedTags=new as([...Ys,...n].map(e=>e.toUpperCase())),this.excludedIds=new as([...Ks,...r]),this.highlightService=new Qo(this.rootEl),this.unsubscribe=yt(()=>{mt(()=>{window.location.href!==this.url.href&&window.history.pushState({},"",this.url.href)}),mt(()=>{const e=this.url.searchParams.get(ei),t=this.url.searchParams.get(ti),n=this.url.searchParams.get(Yo);hn(()=>{e?this.applyShowMode(e):t?this.applyHideMode(t):n?this.applyHighlightMode(n):(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode()})}),mt(()=>{So.isActive||!document.body.classList.contains(ni)&&!document.body.classList.contains(Ko)||this.exitShowMode()})}),window.addEventListener("popstate",this.handlePopState)}handlePopState=()=>{this.url.href=window.location.href};applyShowMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1);const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&rs("Some shared sections could not be found."),So.setIsActive(!0),document.body.classList.add(ni),this.renderShowView(n)}applyHideMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1);const t=Gs(e);if(!t||0===t.length)return;const n=[];if(t.forEach(e=>{const t=Zs(this.rootEl,e);t&&t.length>0&&n.push(...t)}),0===n.length)return rs("Some shared sections could not be found."),void this.exitShowMode();n.length<t.length&&rs("Some shared sections could not be found."),So.setIsActive(!0),document.body.classList.add(ni),this.renderHiddenView(n)}applyHighlightMode(e){(document.body.classList.contains(ni)||document.body.classList.contains(Ko))&&this.exitShowMode(!1),this.highlightService.apply(e)}renderHiddenView(e){e.forEach(e=>{e.classList.add(ri),this.hiddenElements.add(e)});const t=new as;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(si));const t=function(e,t,n){const r=new as,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(`[${Js}]`))}(e,{hiddenElements:this.hiddenElements,excludedTags:this.excludedTags,excludedIds:this.excludedIds}));t.forEach(e=>{e.classList.add(ri),this.hiddenElements.add(e)});const n=new as;e.forEach(e=>{let t=e;for(;t&&t!==document.body&&t!==document.documentElement;)n.add(t),t=t.parentElement});const r=new as;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(ri));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=Mn(Do,{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(ri)&&(s.classList.remove(ri),this.hiddenElements.delete(s)),s=s.nextElementSibling,o++;qn(n),this.dividers.delete(n),r.remove(),0===this.hiddenElements.size&&So.exit()}exitShowMode(e=!0){document.body.classList.remove(ni,Ko),this.hiddenElements.forEach(e=>e.classList.remove(ri)),this.hiddenElements.clear(),this.dividers.forEach(e=>qn(e)),this.dividers.clear(),document.querySelectorAll(".cv-divider-wrapper").forEach(e=>e.remove());document.querySelectorAll(`.${si}`).forEach(e=>e.classList.remove(si)),this.highlightService.exit(),So.isActive&&So.setIsActive(!1),e&&(this.url.searchParams.has(ei)&&this.url.searchParams.delete(ei),this.url.searchParams.has(ti)&&this.url.searchParams.delete(ti),this.url.searchParams.has(Yo)&&this.url.searchParams.delete(Yo))}destroy(){this.exitShowMode(),this.unsubscribe(),window.removeEventListener("popstate",this.handlePopState)}}function ii(e){return["toggles","tabGroups","placeholders"].includes(e)}const ai=new class{#_e=Ue(Ke({}));get config(){return ln(this.#_e)}set config(e){Ge(this.#_e,e,!0)}#Ce=Ue(Ke([]));get configSectionOrder(){return ln(this.#Ce)}set configSectionOrder(e){Ge(this.#Ce,e,!0)}#Se=Ue(Ke({shownToggles:[],peekToggles:[],tabs:{}}));get state(){return ln(this.#Se)}set state(e){Ge(this.#Se,e,!0)}#Ee=Ue(Ke(new as));get detectedToggles(){return ln(this.#Ee)}set detectedToggles(e){Ge(this.#Ee,e,!0)}#$e=Ue(Ke(new as));get detectedTabGroups(){return ln(this.#$e)}set detectedTabGroups(e){Ge(this.#$e,e,!0)}#Le=Ue(Ke(new as));get detectedPlaceholders(){return ln(this.#Le)}set detectedPlaceholders(e){Ge(this.#Le,e,!0)}#Te=Ue(!0);get isTabGroupNavHeadingVisible(){return ln(this.#Te)}set isTabGroupNavHeadingVisible(e){Ge(this.#Te,e,!0)}#Ae=Ue(void 0);get assetsManager(){return ln(this.#Ae)}set assetsManager(e){Ge(this.#Ae,e,!0)}#Me=He(()=>this.config.toggles?this.config.toggles.filter(e=>!e.isLocal||this.detectedToggles.has(e.toggleId)):[]);get menuToggles(){return ln(this.#Me)}set menuToggles(e){Ge(this.#Me,e)}#Pe=He(()=>this.config.tabGroups?this.config.tabGroups.filter(e=>!e.isLocal||this.detectedTabGroups.has(e.groupId)):[]);get menuTabGroups(){return ln(this.#Pe)}set menuTabGroups(e){Ge(this.#Pe,e)}#ze=He(()=>this.menuToggles.length>0||this.menuTabGroups.length>0);get hasMenuOptions(){return ln(this.#ze)}set hasMenuOptions(e){Ge(this.#ze,e)}#Ie=He(()=>this.detectedToggles.size>0||this.detectedTabGroups.size>0);get hasPageElements(){return ln(this.#Ie)}set hasPageElements(e){Ge(this.#Ie,e)}constructor(e={}){this.config=e,this.state=this.computeDefaultState()}setPinnedTab(e,t){this.state.tabs||(this.state.tabs={}),this.state.tabs[e]=t,this.updatePlaceholderFromTabInput(e,t)}setToggles(e,t){this.state.shownToggles=e,this.state.peekToggles=t}applyState(e){const t=this.computeDefaultState();this.state={shownToggles:e.shownToggles??t.shownToggles??[],peekToggles:e.peekToggles??t.peekToggles??[],tabs:{...t.tabs,...e.tabs}}}reset(){this.state=this.computeDefaultState()}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()}setAssetsManager(e){this.assetsManager=e}registerPlaceholderFromTabGroup(e){if(!e.placeholderId)return;const t=e.placeholderId,n=ps.get(t);if(n)return void("config"===n.source?console.warn(`[CustomViews] 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(`[CustomViews] 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.`));ps.register({name:t,settingsLabel:e.label??e.groupId,hiddenFromSettings:!0,source:"tabgroup",ownerTabGroupId:e.groupId});const r=this.state.tabs?.[e.groupId];r&&this.updatePlaceholderFromTabInput(e.groupId,r)}updatePlaceholderFromTabInput(e,t){const n=this.config.tabGroups?.find(t=>t.groupId===e);if(!n||!n.placeholderId)return;if(!ps.has(n.placeholderId))return;const r=n.tabs.find(e=>e.tabId===t);if(!r)return;const s=r.placeholderValue??"";fs.set(n.placeholderId,s)}computeDefaultState(){const e=[],t=[],n={};return this.config.toggles&&this.config.toggles.forEach(n=>{"peek"===n.default?t.push(n.toggleId):"hide"===n.default||e.push(n.toggleId)}),this.config.tabGroups&&this.config.tabGroups.forEach(e=>{if(e.default)n[e.groupId]=e.default;else if(e.tabs&&e.tabs.length>0){const t=e.tabs[0];t?.tabId&&(n[e.groupId]=t.tabId)}}),{shownToggles:e,peekToggles:t,tabs:n}}}({});const li=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/g,ci=/(\\)?\[\[\s*([a-zA-Z0-9_-]+)(?:\s*:\s*(.*?))?\s*\]\]/;class di{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:ci.test(e.nodeValue||"")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);t.forEach(e=>{di.processTextNode(e)})}static scanAttributeBindings(e){e.querySelectorAll(".cv-bind, [data-cv-bind]").forEach(e=>{e instanceof HTMLElement&&di.processElementAttributes(e)})}static processTextNode(e){const t=e.nodeValue||"";let n,r=0;const s=document.createDocumentFragment();let o=!1;for(li.lastIndex=0;null!==(n=li.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),ai.registerPlaceholder(a)}r=li.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&&ci.test(r.value)&&(t[r.name]=r.value,n=!0);if(n){e.dataset.cvAttrTemplates=JSON.stringify(t);const n=new RegExp(li.source,"g");Object.values(t).forEach(e=>{let t;for(n.lastIndex=0;null!==(t=n.exec(e));)!t[1]&&t[2]&&ai.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=di.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=ps.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(li,(e,r,s,o)=>{if(r)return`[[${s}]]`;let i=di.resolveValue(s,o,t);return void 0===i?`[[${s}]]`:(!n||"href"!==n&&"src"!==n||di.isFullUrl(i)||di.isRelativeUrl(i)||(i=encodeURIComponent(i)),i)})}}class hi{store;rootEl;persistenceManager;focusService;showUrlEnabled;observer;destroyEffectRoot;popstateHandler;constructor(e){this.rootEl=e.rootEl||document.body,this.persistenceManager=new jo(e.storageKey),this.showUrlEnabled=e.showUrl??!1,this.store=function(e){Object.assign(ai.config,e);const t=ai.computeDefaultState();return ai.state.shownToggles=t.shownToggles??[],ai.state.peekToggles=t.peekToggles??[],ai.state.tabs=t.tabs??{},e.placeholders&&e.placeholders.forEach(e=>{ps.register({...e,source:"config"})}),ai.configSectionOrder=Object.keys(e).filter(ii),e.tabGroups&&e.tabGroups.forEach(e=>{ai.registerPlaceholderFromTabGroup(e)}),ai}(e.config),this.store.setAssetsManager(e.assetsManager),this.resolveInitialState(),this.focusService=new oi(this.rootEl,{shareExclusions:e.config.shareExclusions||{}})}resolveInitialState(){const e=ts.parseURL();if(e)return void this.store.applyState(e);const t=this.persistenceManager.getPersistedState();t&&this.store.applyState(t)}init(){const e=this.persistenceManager.getPersistedTabNavVisibility();null!==e&&(this.store.isTabGroupNavHeadingVisible=e),fs.init(this.persistenceManager),this.store.clearDetectedPlaceholders(),di.scanAndHydrate(this.rootEl),this.setUpObserver(),this.destroyEffectRoot=yt(()=>{mt(()=>{this.showUrlEnabled?ts.updateURL(this.store.state):ts.clearURL()}),mt(()=>{this.persistenceManager.persistState(this.store.state),this.persistenceManager.persistTabNavVisibility(this.store.isTabGroupNavHeadingVisible)}),mt(()=>{di.updateAll(fs.values)})}),this.popstateHandler=()=>{const e=ts.parseURL();e&&this.store.applyState(e)},window.addEventListener("popstate",this.popstateHandler)}setUpObserver(){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?di.scanAndHydrate(e):e.nodeType===Node.TEXT_NODE&&e.parentElement&&e.nodeValue?.includes("[[")&&e.nodeValue?.includes("]]")&&di.scanAndHydrate(e.parentElement)}resetToDefault(){this.persistenceManager.clearAll(),this.store.reset(),this.store.isTabGroupNavHeadingVisible=!0,fs.reset(),ts.clearURL()}destroy(){this.observer?.disconnect(),this.destroyEffectRoot?.(),this.popstateHandler&&window.removeEventListener("popstate",this.popstateHandler),this.focusService.destroy()}}class ui{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}}}function pi(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("[CustomViews] Unknown asset type:",s)}}var vi=_n('<div class="cv-toggle-label svelte-1dbwn3b"> </div>'),fi=_n('<button class="cv-expand-btn svelte-1dbwn3b"><!></button>'),gi=_n('<div><!> <div class="cv-toggle-content svelte-1dbwn3b"><div class="cv-toggle-inner svelte-1dbwn3b"><!></div></div> <!></div>');const bi={hash:"svelte-1dbwn3b",code:":host {display:block;position:relative;z-index:1;overflow:visible;}\n\n /* Host visibility control */:host([hidden]) {display:none;}.cv-toggle-wrapper.svelte-1dbwn3b {position:relative;width:100%;transition:all 0.3s ease;margin-bottom:4px;}.cv-toggle-wrapper.hidden.svelte-1dbwn3b {margin-bottom:0;}.cv-toggle-wrapper.peek-mode.svelte-1dbwn3b {margin-bottom:24px;}.cv-toggle-content.svelte-1dbwn3b {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-1dbwn3b {display:flow-root; /* Ensures margins of children are contained */}\n\n /* Hidden State */.hidden.svelte-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {opacity:0;pointer-events:none;}\n\n /* Bordered State */.has-border.svelte-1dbwn3b {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-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {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-1dbwn3b {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-1dbwn3b .cv-toggle-content:where(.svelte-1dbwn3b) {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-1dbwn3b {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-1dbwn3b .cv-toggle-label:where(.svelte-1dbwn3b) {top:-10px;left:0;}\n\n /* Expand Button */.cv-expand-btn.svelte-1dbwn3b {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-1dbwn3b: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-1dbwn3b svg {display:block;opacity:0.6;width:24px;height:24px;transition:opacity 0.2s;}.cv-expand-btn.svelte-1dbwn3b:hover svg {opacity:1;}"};mn(["click"]),customElements.define("cv-toggle",Ir(function(e,t){ie(t,!0),nr(e,bi);let n=Mr(t,"toggleId",7,""),r=Mr(t,"assetId",7,""),s=Mr(t,"showPeekBorder",7,!1),o=Mr(t,"showLabel",7,!1),i=He(()=>(n()||"").split(/\s+/).filter(Boolean)),a=He(()=>ai.config.toggles?.find(e=>e.toggleId===ln(i)[0]));mt(()=>{ln(i).forEach(e=>ai.registerToggle(e))});let l,c,d=He(()=>ln(a)?ln(a).label||ln(i)[0]:""),h=Ue(!1),u=Ue(!1),p=Ue(!1),v=Ue(0),f=He(()=>{if(!ai.config.toggles)return!0;const e=ai.state.shownToggles??[];return ln(i).some(t=>e.includes(t))}),g=He(()=>{const e=ai.state.peekToggles??[];return!ln(f)&&ln(i).some(t=>e.includes(t))}),b=Ue(!1);mt(()=>{if(!l)return;const e=new ResizeObserver(()=>{c&&Ge(v,c.offsetHeight,!0),ln(v)>0&&(ln(v)<=70?Ge(b,!0):ln(b)||Ge(b,!1))});return c&&(e.observe(c),Ge(v,c.offsetHeight,!0)),()=>{e.disconnect()}});let m=He(()=>ln(f)||ln(g)&&ln(h)||ln(g)&&ln(b));mt(()=>{ln(m),Ge(u,!1)});let w=He(()=>!ln(f)&&ln(g)&&!ln(h)&&!ln(b)),y=He(()=>!ln(f)&&!ln(g)),x=He(()=>ln(y)?"0px":ln(u)&&ln(m)?"none":ln(w)?"70px":ln(m)?ln(v)>0?`${ln(v)}px`:"9999px":"0px");function k(e){e.stopPropagation(),Ge(h,!ln(h))}mt(()=>{ln(m)&&r()&&!ln(p)&&ai.assetsManager&&l&&(pi(l,r(),ai.assetsManager),Ge(p,!0))});var _={get toggleId(){return n()},set toggleId(e=""){n(e),_e()},get assetId(){return r()},set assetId(e=""){r(e),_e()},get showPeekBorder(){return s()},set showPeekBorder(e=!1){s(e),_e()},get showLabel(){return o()},set showLabel(e=!1){o(e),_e()}},C=gi();let S;var E=at(C),$=e=>{var t=vi(),n=at(t,!0);J(t),_t(()=>An(n,ln(d))),En(e,t)};Nn(E,e=>{o()&&ln(d)&&!ln(y)&&e($)});var L=ct(E,2);let T;var A=at(L);Wn(at(A),t,"default",{}),J(A),Er(A,e=>c=e,()=>c),J(L),Er(L,e=>l=e,()=>l);var M=ct(L,2),P=e=>{var t=fi();t.__click=k,Gn(at(t),()=>ln(h)?'<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="18 15 12 9 6 15"></polyline></svg>':'<svg viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>'),J(t),_t(()=>gr(t,"aria-label",ln(h)?"Collapse content":"Expand content")),En(e,t)};return Nn(M,e=>{ln(g)&&!ln(b)&&e(P)}),J(C),_t(()=>{S=ar(C,0,"cv-toggle-wrapper svelte-1dbwn3b",null,S,{expanded:ln(m)&&!ln(w),peeking:ln(w),"peek-mode":ln(g),hidden:ln(y),"has-border":s()&&ln(g)}),T=cr(L,"",T,{"max-height":ln(x)})}),bn("transitionend",L,function(e){"max-height"===e.propertyName&&e.target===l&&ln(m)&&Ge(u,!0)}),En(e,C),ae(_)},{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 mi=_n("<div><!></div>");const wi={hash:"svelte-1hy6z32",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-1hy6z32 {display:none;\n animation: svelte-1hy6z32-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-1hy6z32 {display:block;}\n\n /* Hide cv-tab-header source element; content is extracted to nav link */.svelte-1hy6z32::slotted(cv-tab-header) {display:none !important;}\n\n /* Allow cv-tab-body to flow naturally */.svelte-1hy6z32::slotted(cv-tab-body) {display:block;}\n\n @keyframes svelte-1hy6z32-fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }"};customElements.define("cv-tab",Ir(function(e,t){ie(t,!0),nr(e,wi);let n=Mr(t,"active",7,!1);var r={get active(){return n()},set active(e=!1){n(e),_e()}},s=mi();let o;return Wn(at(s),t,"default",{}),J(s),_t(()=>o=ar(s,0,"cv-tab-content svelte-1hy6z32",null,o,{active:n()})),En(e,s),ae(r)},{tabId:{attribute:"tab-id",reflect:!0,type:"String"},header:{attribute:"header",reflect:!0,type:"String"},active:{}},["default"],[],!0));var yi=_n('<li class="nav-item svelte-xqnrrx"><a role="tab" title="Double-click a tab to \'pin\' it in all similar tab groups."><span class="cv-tab-header-container svelte-xqnrrx"><span class="cv-tab-header-text svelte-xqnrrx"><!></span> <span class="cv-tab-pin-icon svelte-xqnrrx"><!></span></span></a></li>'),xi=_n('<ul class="cv-tabs-nav nav-tabs svelte-xqnrrx" role="tablist"></ul>'),ki=_n('<link rel="stylesheet"/>'),_i=_n('<div class="cv-tabgroup-container"><!> <!> <div class="cv-tabgroup-content"><!></div> <div class="cv-tabgroup-bottom-border svelte-xqnrrx"></div></div>');const Ci={hash:"svelte-xqnrrx",code:":host {display:block;margin-bottom:24px;}\n\n /* Tab navigation styles */ul.nav-tabs.svelte-xqnrrx {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-xqnrrx {margin-bottom:-1px;list-style:none;display:flex;align-items:stretch;}.nav-link.svelte-xqnrrx {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-xqnrrx p {margin:0;display:inline;}.nav-link.svelte-xqnrrx:hover,\n .nav-link.svelte-xqnrrx:focus {border-color:#e9ecef #e9ecef #dee2e6;isolation:isolate;}.nav-link.active.svelte-xqnrrx {color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff;}.nav-link.svelte-xqnrrx:focus {outline:0;}.cv-tab-header-container.svelte-xqnrrx {display:flex;align-items:center;gap:6px;}.cv-tab-header-text.svelte-xqnrrx {flex:1;}.cv-tab-pin-icon.svelte-xqnrrx {display:inline-flex;align-items:center;line-height:0;flex-shrink:0;}.cv-tab-pin-icon.svelte-xqnrrx svg {vertical-align:middle;width:14px;height:14px;}.cv-tabgroup-bottom-border.svelte-xqnrrx {border-bottom:1px solid #dee2e6;}\n\n @media print {ul.cv-tabs-nav.svelte-xqnrrx {display:none !important;}\n }"};mn(["click","dblclick"]),customElements.define("cv-tabgroup",Ir(function(e,t){ie(t,!0),nr(e,Ci);let n=Mr(t,"groupId",7);mt(()=>{n()&&ai.registerTabGroup(n())});let r=Ue(Ke([])),s=Ue(void 0),o=Ue(null),i=Ue(!1),a=Ue(""),l=He(()=>{const e=ai.state.tabs??{};return n()&&e[n()]?e[n()]:null}),c=Ue(null);mt(()=>{ln(l)!==ln(c)&&(Ge(c,ln(l),!0),ln(l)&&ln(a)!==ln(l)&&(Ge(a,ln(l),!0),v()))});let d=He(()=>ai.isTabGroupNavHeadingVisible);const h=function(e=!1){return`\n <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" opacity="${e?"1":"0.6"}" xmlns="http://www.w3.org/2000/svg">\n <g transform="rotate(45 8 8)">\n <path d="M10.5 2H12V0H4V2H5.5V6L4 7.5V9H7.2V15H8.8V9H12V7.5L10.5 6V2Z"/>\n </g>\n </svg>\n `.trim()}(!0);function u(e){return e.split(/[\s|]+/).filter(e=>""!==e.trim()).map(e=>e.trim())}function p(){if(!ln(o))return;const e=ln(o).assignedElements().filter(e=>"cv-tab"===e.tagName.toLowerCase());if(Ge(r,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=u(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),!ln(i)&&ln(r).length>0){if(ln(a))v();else{const e=ln(r)[0].id;Ge(a,e,!0)}Ge(i,!0)}else ln(i)&&v()}function v(){ln(r).length&&ln(r).forEach(e=>{const t=u(e.rawId).includes(ln(a));e.element.active=t})}On(()=>{ln(s)&&(Ge(o,ln(s).querySelector("slot"),!0),ln(o)&&(ln(o).addEventListener("slotchange",p),p()))});var f={get groupId(){return n()},set groupId(e){n(e),_e()}},g=_i(),b=at(g),m=e=>{var t=xi();Fn(t,21,()=>ln(r),e=>e.id,(e,t)=>{const r=He(()=>u(ln(t).rawId)),s=He(()=>ln(r).includes(ln(a))),o=He(()=>ln(l)&&ln(r).includes(ln(l)));var i=yi(),c=at(i);let d;c.__click=e=>function(e,t){t.preventDefault(),ln(a)!==e&&(Ge(a,e,!0),v())}(ln(t).id,e),c.__dblclick=e=>function(e,t){t.preventDefault(),n()&&ai.setPinnedTab(n(),e)}(ln(t).id,e);var p=at(c),f=at(p);Gn(at(f),()=>ln(t).header),J(f);var g=ct(f,2);let b;Gn(at(g),()=>h),J(g),J(p),J(c),J(i),_t(()=>{d=ar(c,0,"nav-link svelte-xqnrrx",null,d,{active:ln(s)}),gr(c,"href","#"+ln(t).id),gr(c,"aria-selected",ln(s)),gr(c,"data-tab-id",ln(t).id),gr(c,"data-raw-tab-id",ln(t).rawId),gr(c,"data-group-id",n()),b=cr(g,"",b,{display:ln(o)?"inline-flex":"none"})}),En(e,i)}),J(t),En(e,t)};Nn(b,e=>{ln(r).length>0&&ln(d)&&e(m)});var w=ct(b,2);Fn(w,16,()=>Array.from(document.querySelectorAll('link[rel="stylesheet"]')),e=>e.href,(e,t)=>{var n=ki();_t(()=>gr(n,"href",t.href)),En(e,n)});var y=ct(w,2);return Wn(at(y),t,"default",{}),J(y),Er(y,e=>Ge(s,e),()=>ln(s)),X(2),J(g),En(e,g),ae(f)},{groupId:{attribute:"group-id",reflect:!0,type:"String"}},["default"],[],!0));const Si={hash:"svelte-1vo4bld",code:":host {display:none; /* Semantic container only, usually read by parent and hidden */}"};customElements.define("cv-tab-header",Ir(function(e,t){nr(e,Si);var n=Sn();Wn(lt(n),t,"default",{}),En(e,n)},{},["default"],[],!0));const Ei={hash:"svelte-1gw0vk2",code:":host {display:block;}"};customElements.define("cv-tab-body",Ir(function(e,t){nr(e,Ei);var n=Sn();Wn(lt(n),t,"default",{}),En(e,n)},{},["default"],[],!0));var $i=_n('<span class="cv-var"> </span>');const Li={hash:"svelte-1tffxwo",code:":host {display:inline;}"};customElements.define("cv-placeholder",Ir(function(e,t){ie(t,!0),nr(e,Li);let n=Mr(t,"name",7),r=Mr(t,"fallback",7),s=He(()=>{if(!n())return"";const e=fs.values[n()];if(void 0!==e&&""!==e)return e;if(r())return r();const t=ps.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=ln(s)}}var i={get name(){return n()},set name(e){n(e),_e()},get fallback(){return r()},set fallback(e){r(e),_e()}},a=$i(),l=at(a,!0);return J(a),rr(a,()=>o),_t(()=>An(l,ln(s))),En(e,a),ae(i)},{name:{},fallback:{}},[],[],!0));var Ti=_n('<label class="placeholder-label svelte-dpk3ag"> </label>'),Ai=_n('<div><!> <input type="text"/></div>');const Mi={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 Pi(){"undefined"!=typeof window&&(window.__customViewsInitialized?console.info("[CustomViews] Auto-init skipped: already initialized."):document.addEventListener("DOMContentLoaded",async function(){if(!window.__customViewsInitInProgress&&!window.__customViewsInitialized){window.__customViewsInitInProgress=!0;try{const{baseURL:e,configPath:n}=function(){let e=document.currentScript;const t={baseURL:"",configPath:"/customviews.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(/(?:custom[-_]views|@customviews-js\/customviews)(?:\.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(`[CustomViews] Config file not found at ${s}. Using defaults.`),r)}catch(e){return console.error("[CustomViews] Error loading config file:",e),r}}(n,e),s=e||r.baseUrl||"";let o;if(r.assetsJsonPath){const e=t(r.assetsJsonPath,s);try{const t=await(await fetch(e)).json();o=new ui(t,s)}catch(t){console.error(`[CustomViews] Failed to load assets JSON from ${e}:`,t),o=new ui({},s)}}else o=new ui({},s);const i={assetsManager:o,config:r.config||{},rootEl:document.body,showUrl:r.showUrl||!1,storageKey:r.storageKey},a=new hi(i);a.init(),function(e,t){const n=!1!==t.settings?.enabled,r=new No({controller:e,settingsEnabled:n,...t.settings});r.render()}(a,r),window.__customViewsInitialized=!0,window.__customViewsInitInProgress=!1}catch(e){window.__customViewsInitInProgress=!1,console.error("[CustomViews] Auto-initialization error:",e)}}}))}mn(["input"]),customElements.define("cv-placeholder-input",Ir(function(e,t){ie(t,!0),nr(e,Mi);let n=Mr(t,"name",7),r=Mr(t,"label",7),s=Mr(t,"hint",7),o=Mr(t,"layout",7,"inline"),i=Mr(t,"appearance",7,"outline"),a=Mr(t,"width",7),l=He(o),c=He(()=>fs.values[n()]??""),d=He(()=>{if(r())return r();const e=ps.get(n());return e?"inline"!==ln(l)&&e.settingsLabel?e.settingsLabel:e.settingsLabel||n():n()}),h=He(()=>{if(s())return s();const e=ps.get(n());return e?.settingsHint||""}),u=He(()=>n().replace(/[^a-zA-Z0-9_-]/g,"_")),p=He(()=>{if("inline"!==ln(l)||"auto-grow"!==a())return;const e=(ln(c)||ln(h)).length;return Math.max(e,4)});var v={get name(){return n()},set name(e){n(e),_e()},get label(){return r()},set label(e){r(e),_e()},get hint(){return s()},set hint(e){s(e),_e()},get layout(){return o()},set layout(e="inline"){o(e),_e()},get appearance(){return i()},set appearance(e="outline"){i(e),_e()},get width(){return a()},set width(e){a(e),_e()}},f=Ai();let g;var b=at(f),m=e=>{var t=Ti(),n=at(t,!0);J(t),_t(()=>{gr(t,"for",`cv-input-${ln(u)??""}`),An(n,ln(d))}),En(e,t)};Nn(b,e=>{"inline"!==ln(l)&&ln(d)&&e(m)});var w=ct(b,2);return vr(w),w.__input=function(e){const t=e.target;fs.set(n(),t.value)},J(f),_t(()=>{ar(f,0,`cv-input-wrapper ${ln(l)??""}`,"svelte-dpk3ag"),g=cr(f,"",g,{"--cv-input-width":"auto-grow"===a()?"auto":a()}),gr(w,"id",`cv-input-${ln(u)??""}`),ar(w,0,`placeholder-input ${i()??""}`,"svelte-dpk3ag"),gr(w,"placeholder",ln(h)),fr(w,ln(c)),gr(w,"aria-label","inline"===ln(l)?ln(d):void 0),gr(w,"size",ln(p))}),En(e,f),ae(v)},{name:{},label:{},hint:{},layout:{},appearance:{},width:{}},[],[],!0)),"undefined"!=typeof window&&Pi(),e.initializeFromScript=Pi});
|
|
7
7
|
//# sourceMappingURL=custom-views.min.js.map
|