faucet-server 0.0.7 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +227 -34
- package/dist/cli.js +15 -6
- package/dist/cli.js.map +1 -1
- package/package.json +4 -4
- package/src/cli.ts +24 -7
- package/static/assets/index-Bw0D3FDR.js +2 -0
- package/static/index.html +1 -2
- package/static/assets/ccip-CxJTLEIo.js +0 -1
- package/static/assets/index--19BogPu.js +0 -37
- package/static/assets/utils-DUS54ir-.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){return e()}function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var h=1<<24,g=1024,_=2048,v=4096,y=8192,ee=16384,te=32768,ne=1<<25,re=65536,b=1<<19,x=1<<20,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),S=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},de=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function fe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function C(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function me(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function he(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ge(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function w(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function T(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function _e(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function ve(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function E(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var ye={},D=Symbol(),be=`http://www.w3.org/1999/xhtml`;function xe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Se(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function Ce(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var O=!1;function we(e){O=e}var k;function Te(e){if(e===null)throw xe(),ye;return k=e}function Ee(){return Te(en(k))}function A(e){if(O){if(en(k)!==null)throw xe(),ye;k=e}}function j(e=1){if(O){for(var t=e,n=k;t--;)n=en(n);k=n}}function De(e=!0){for(var t=0,n=k;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=en(n);e&&n.remove(),n=i}}function Oe(e){if(!e||e.nodeType!==8)throw xe(),ye;return e.data}function ke(e){return e===this.v}function Ae(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function je(e){return!Ae(e,this.v)}var Me=!1,Ne=!1;function Pe(){Ne=!0}var M=null;function Fe(e){M=e}function Ie(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:H,l:Ne&&!t?{s:null,u:null,$:[]}:null}}function Le(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)hn(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Re(){return!Ne||M!==null&&M.l===null}var ze=[];function Be(){var e=ze;ze=[],p(e)}function Ve(e){if(ze.length===0&&!et){var t=ze;queueMicrotask(()=>{t===ze&&Be()})}ze.push(e)}function He(){for(;ze.length>0;)Be()}function Ue(e){var t=H;if(t===null)return V.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;We(e,t)}function We(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Ge=~(_|v|g);function N(e,t){e.f=e.f&Ge|t}function Ke(e){e.f&512||e.deps===null?N(e,g):N(e,v)}function qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,qe(t.deps))}function Je(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),qe(e.deps),N(e,g)}var Ye=!1,Xe=!1;function Ze(e){var t=Xe;try{return Xe=!1,[e(),Xe]}finally{Xe=t}}var Qe=new Set,P=null,F=null,$e=null,et=!1,tt=!1,nt=null,rt=null,it=0,at=1,ot=class e{id=at++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=[];#s=new Set;#c=new Set;#l=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(let n of this.#d)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#l.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){this.#l.delete(e);for(var n of t.d)N(n,_),this.schedule(n);for(n of t.m)N(n,v),this.schedule(n)}}#m(){if(it++>1e3&&(Qe.delete(this),ct()),!this.#f()){for(let e of this.#s)this.#c.delete(e),N(e,_),this.schedule(e);for(let e of this.#c)N(e,v),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=nt=[],r=[],i=rt=[];for(let e of t)try{this.#h(e,n,r)}catch(t){throw ht(e),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(nt=null,rt=null,this.#f()||this.#p()){this.#g(r),this.#g(n);for(let[e,t]of this.#l)mt(e,t)}else{this.#n.size===0&&Qe.delete(this),this.#s.clear(),this.#c.clear();for(let e of this.#e)e(this);this.#e.clear(),ut(r),ut(n),this.#i?.resolve()}var o=P;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(Qe.add(o),o.#m()),Qe.has(this)||this.#_()}#h(e,t,n){e.f^=g;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#l.has(r))&&r.fn!==null){a?r.f^=g:i&4?t.push(r):Me&&i&16777224?n.push(r):Qn(r)&&(i&16&&this.#c.add(r),rr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#g(e){for(var t=0;t<e.length;t+=1)Je(e[t],this.#s,this.#c)}capture(e,t,n=!1){t!==D&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),F?.set(e,e.v))}activate(){P=this}deactivate(){P=null,F=null}flush(){try{tt=!0,P=this,this.#m()}finally{it=0,$e=null,nt=null,rt=null,tt=!1,P=null,F=null,Ft.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),Qe.delete(this)}register_created_effect(e){this.#o.push(e)}#_(){for(let l of Qe){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){l.activate();var i=new Set,a=new Map;for(var o of t)dt(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#o)!(e.f&155648)&&ft(e,s,a)&&(e.f&4194320?(N(e,_),l.schedule(e)):l.#s.add(e));if(l.#a.length>0){l.apply();for(var c of l.#a)l.#h(c,[],[]);l.#a=[]}l.deactivate()}}for(let e of Qe)e.#d.has(this)&&(e.#d.delete(this),e.#d.size===0&&!e.#f()&&(e.activate(),e.#m()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,Ve(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#s.add(t);for(let e of t)this.#c.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(P===null){let t=P=new e;tt||(Qe.add(P),et||Ve(()=>{P===t&&t.flush()}))}return P}apply(){if(!Me||!this.is_fork&&Qe.size===1){F=null;return}F=new Map;for(let[e,[t]]of this.current)F.set(e,t);for(let n of Qe)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#d.add(n);else for(let[e,t]of n.previous)F.has(e)||F.set(e,t)}}schedule(e){if($e=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(nt!==null&&t===H&&(Me||(V===null||!(V.f&2))&&!Ye))return;if(n&96){if(!(n&1024))return;t.f^=g}}this.#a.push(t)}};function st(e){var t=et;et=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(He(),P===null)return n;P.flush()}}finally{et=t}}function ct(){try{ge()}catch(e){We(e,$e)}}var lt=null;function ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Qn(r)&&(lt=new Set,rr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&kn(r),lt?.size>0)){Ft.clear();for(let e of lt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)lt.has(n)&&(lt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||rr(n)}}lt.clear()}}lt=null}}function dt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?dt(i,t,n,r):e&4194320&&!(e&2048)&&ft(i,t,r)&&(N(i,_),pt(i))}}function ft(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&ft(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function pt(e){P.schedule(e)}function mt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,g);for(var n=e.first;n!==null;)mt(n,t),n=n.next}}function ht(e){N(e,g);for(var t=e.first;t!==null;)ht(t),t=t.next}function gt(e){let t=0,n=Lt(0),r;return()=>{fn()&&(W(n),bn(()=>(t===0&&(r=sr(()=>e(()=>Ht(n)))),t+=1,()=>{Ve(()=>{--t,t===0&&(r?.(),r=void 0,Ht(n))})})))}}var _t=re|b;function vt(e,t,n,r){new yt(e,t,n,r)}var yt=class{parent;is_pending=!1;transform_error;#e;#t=O?k:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=gt(()=>(this.#m=Lt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=H;t.b=this,t.f|=128,n(e)},this.parent=H.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Sn(()=>{if(O){let e=this.#t;Ee();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},_t),O&&(this.#e=k)}#g(){try{this.#a=wn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=wn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=wn(()=>e(this.#e)),Ve(()=>{var e=this.#c=document.createDocumentFragment(),t=Qt();e.append(t),this.#a=this.#x(()=>wn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,An(this.#o,()=>{this.#o=null}),this.#b(P))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=wn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Pn(this.#a,e);let t=this.#n.pending;this.#o=wn(()=>t(this.#e))}else this.#b(P)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Je(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=H,n=V,r=M;Vn(this.#i),Bn(this.#i),Fe(this.#i.ctx);try{return ot.ensure(),e()}catch(e){return Ue(e),null}finally{Vn(t),Bn(n),Fe(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&An(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ve(()=>{this.#d=!1,this.#m&&Bt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),W(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(B(this.#a),null),this.#o&&=(B(this.#o),null),this.#s&&=(B(this.#s),null),O&&(Te(this.#t),j(),Te(De()));var r=!1,i=!1;let a=()=>{if(r){Ce();return}r=!0,i&&E(),this.#s!==null&&An(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){We(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return wn(()=>{var t=H;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return We(e,this.#i.parent),null}}))};Ve(()=>{var t;try{t=this.transform_error(e)}catch(e){We(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>We(e,this.#i&&this.#i.parent)):o(t)})}};function bt(e,t,n,r){let i=Re()?wt:Dt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=H,s=xt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||We(e,o)}St()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ct();function d(){Promise.all(n.map(e=>Tt(e))).then(e=>l([...t.map(i),...e])).catch(e=>We(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),St()}):d()}function xt(){var e=H,t=V,n=M,r=P;return function(i=!0){Vn(e),Bn(t),Fe(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function St(e=!0){Vn(null),Bn(null),Fe(null),e&&P?.deactivate()}function Ct(){var e=H,t=e.b,n=P,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function wt(e){var t=2|_,n=V!==null&&V.f&2?V:null;return H!==null&&(H.f|=b),{ctx:M,deps:null,effects:null,equals:ke,f:t,fn:e,reactions:null,rv:0,v:D,wv:0,parent:n??H,ac:null}}function Tt(e,t,n){let r=H;r===null&&C();var i=void 0,a=Lt(D),o=!V,s=new Map;return yn(()=>{var t=H,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(St)}catch(e){n.reject(e),St()}var c=P;if(o){if(t.f&32768)var l=Ct();if(r.b.is_rendered())s.get(c)?.reject(S),s.delete(c);else{for(let e of s.values())e.reject(S);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===S),!(n===S||t.f&16384)){if(c.activate(),n)a.f|=se,Bt(a,n);else{a.f&8388608&&(a.f^=se),Bt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(S)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),pn(()=>{for(let e of s.values())e.reject(S)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Et(e){let t=wt(e);return Me||Un(t),t}function Dt(e){let t=wt(e);return t.equals=je,t}function Ot(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function kt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function At(e){var t,n=H;Vn(kt(e));try{e.f&=~ie,Ot(e),t=er(e)}finally{Vn(n)}return t}function jt(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Zn(),(!P?.is_fork||e.deps===null)&&(e.v=n,P?.capture(e,t,!0),e.deps===null))){N(e,g);return}Ln||(F===null?Ke(e):(fn()||P?.is_fork)&&F.set(e,n))}function Mt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(S),t.teardown=d,t.ac=null,nr(t,0),En(t))}function Nt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&rr(t)}var Pt=new Set,Ft=new Map,It=!1;function Lt(e,t){return{f:0,v:e,reactions:null,equals:ke,rv:0,wv:0}}function Rt(e,t){let n=Lt(e,t);return Un(n),n}function zt(e,t=!1,n=!0){let r=Lt(e);return t||(r.equals=je),Ne&&n&&M!==null&&M.l!==null&&(M.l.s??=[]).push(r),r}function I(e,t,r=!1){return V!==null&&(!zn||V.f&131072)&&Re()&&V.f&4325394&&(Hn===null||!n.call(Hn,e))&&ve(),Bt(e,r?Wt(t):t,rt)}function Bt(e,t,n=null){if(!e.equals(t)){var r=e.v;Ln?Ft.set(e,t):Ft.set(e,r),e.v=t;var i=ot.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&At(t),F===null&&Ke(t)}e.wv=Zn(),Ut(e,_,n),Re()&&H!==null&&H.f&1024&&!(H.f&96)&&(Gn===null?Kn([e]):Gn.push(e)),!i.is_fork&&Pt.size>0&&!It&&Vt()}return t}function Vt(){It=!1;for(let e of Pt)e.f&1024&&N(e,v),Qn(e)&&rr(e);Pt.clear()}function Ht(e){I(e,e.v+1)}function Ut(e,t,n){var r=e.reactions;if(r!==null)for(var i=Re(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===H)){var l=(c&_)===0;if(l&&N(s,t),c&2){var u=s;F?.delete(u),c&65536||(c&512&&(s.f|=ie),Ut(u,v,n))}else if(l){var d=s;c&16&<!==null&<.add(d),n===null?pt(d):n.push(d)}}}}function Wt(t){if(typeof t!=`object`||!t||ce in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=Rt(0),u=null,d=Yn,f=e=>{if(Yn===d)return e();var t=V,n=Yn;Bn(null),Xn(d);var r=e();return Bn(t),Xn(n),r};return i&&r.set(`length`,Rt(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&T();var i=r.get(t);return i===void 0?f(()=>{var e=Rt(n.value,u);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>Rt(D,u));r.set(t,e),Ht(o)}}else I(n,D),Ht(o);return!0},get(e,n,i){if(n===ce)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>Rt(Wt(s?e[n]:D),u)),r.set(n,o)),o!==void 0){var c=W(o);return c===D?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=W(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==D)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==D||Reflect.has(e,t);return(n!==void 0||H!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>Rt(i?Wt(e[t]):D,u)),r.set(t,n)),W(n)===D)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>Rt(D,u)),r.set(d+``,p)):I(p,D)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>Rt(void 0,u)),I(c,Wt(n)),r.set(t,c));else{l=c.v!==D;var m=f(()=>Wt(n));I(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}Ht(o)}return!0},ownKeys(e){W(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==D});for(var[n,i]of r)i.v!==D&&!(n in e)&&t.push(n);return t},setPrototypeOf(){_e()}})}function Gt(e){try{if(typeof e==`object`&&e&&ce in e)return e[ce]}catch{}return e}function Kt(e,t){return Object.is(Gt(e),Gt(t))}var qt,Jt,Yt,Xt;function Zt(){if(qt===void 0){qt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=a(t,`firstChild`).get,Xt=a(t,`nextSibling`).get,u(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),u(n)&&(n.__t=void 0)}}function Qt(e=``){return document.createTextNode(e)}function $t(e){return Yt.call(e)}function en(e){return Xt.call(e)}function L(e,t){if(!O)return $t(e);var n=$t(k);if(n===null)n=k.appendChild(Qt());else if(t&&n.nodeType!==3){var r=Qt();return n?.before(r),Te(r),r}return t&&rn(n),Te(n),n}function R(e,t=!1){if(!O){var n=$t(e);return n instanceof Comment&&n.data===``?en(n):n}if(t){if(k?.nodeType!==3){var r=Qt();return k?.before(r),Te(r),r}rn(k)}return k}function z(e,t=1,n=!1){let r=O?k:e;for(var i;t--;)i=r,r=en(r);if(!O)return r;if(n){if(r?.nodeType!==3){var a=Qt();return r===null?i?.after(a):r.before(a),Te(a),a}rn(r)}return Te(r),r}function tn(){return!Me||lt!==null?!1:(H.f&te)!==0}function nn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function rn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function an(e,t){if(t){let t=document.body;e.autofocus=!0,Ve(()=>{document.activeElement===t&&e.focus()})}}var on=!1;function sn(){on||(on=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function cn(e){var t=V,n=H;Bn(null),Vn(null);try{return e()}finally{Bn(t),Vn(n)}}function ln(e){H===null&&(V===null&&he(e),me()),Ln&&pe(e)}function un(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function dn(e,t){var n=H;n!==null&&n.f&8192&&(e|=y);var r={ctx:M,deps:null,nodes:null,f:e|_|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)nt===null?ot.ensure().schedule(r):nt.push(r);else if(t!==null){try{rr(r)}catch(e){throw B(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),V!==null&&V.f&2&&!(e&64))){var a=V;(a.effects??=[]).push(i)}return r}function fn(){return V!==null&&!zn}function pn(e){let t=dn(8,null);return N(t,g),t.teardown=e,t}function mn(e){ln(`$effect`);var t=H.f;if(!V&&t&32&&!(t&32768)){var n=M;(n.e??=[]).push(e)}else return hn(e)}function hn(e){return dn(4|x,e)}function gn(e){return ln(`$effect.pre`),dn(8|x,e)}function _n(e){ot.ensure();let t=dn(64|b,e);return(e={})=>new Promise(n=>{e.outro?An(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function vn(e){return dn(4,e)}function yn(e){return dn(oe|b,e)}function bn(e,t=0){return dn(8|t,e)}function xn(e,t=[],n=[],r=[]){bt(r,t,n,t=>{dn(8,()=>e(...t.map(W)))})}function Sn(e,t=0){return dn(16|t,e)}function Cn(e,t=0){return dn(h|t,e)}function wn(e){return dn(32|b,e)}function Tn(e){var t=e.teardown;if(t!==null){let e=Ln,n=V;Rn(!0),Bn(null);try{t.call(null)}finally{Rn(e),Bn(n)}}}function En(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cn(()=>{e.abort(S)});var r=n.next;n.f&64?n.parent=null:B(n,t),n=r}}function Dn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||B(t),t=n}}function B(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(On(e.nodes.start,e.nodes.end),n=!0),N(e,ne),En(e,t&&!n),nr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Tn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&kn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function On(e,t){for(;e!==null;){var n=e===t?null:en(e);e.remove(),e=n}}function kn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function An(e,t,n=!0){var r=[];jn(e,r,!0);var i=()=>{n&&B(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function jn(e,t,n){if(!(e.f&8192)){e.f^=y;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;jn(i,t,o?n:!1),i=a}}}function Mn(e){Nn(e,!0)}function Nn(e,t){if(e.f&8192){e.f^=y,e.f&1024||(N(e,_),ot.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Nn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Pn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:en(n);t.append(n),n=i}}var Fn=null,In=!1,Ln=!1;function Rn(e){Ln=e}var V=null,zn=!1;function Bn(e){V=e}var H=null;function Vn(e){H=e}var Hn=null;function Un(e){V!==null&&(!Me||V.f&2)&&(Hn===null?Hn=[e]:Hn.push(e))}var U=null,Wn=0,Gn=null;function Kn(e){Gn=e}var qn=1,Jn=0,Yn=Jn;function Xn(e){Yn=e}function Zn(){return++qn}function Qn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Qn(a)&&jt(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,g)}return!1}function $n(e,t,r=!0){var i=e.reactions;if(i!==null&&!(!Me&&Hn!==null&&n.call(Hn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?$n(o,t,!1):t===o&&(r?N(o,_):o.f&1024&&N(o,v),pt(o))}}function er(e){var t=U,n=Wn,r=Gn,i=V,a=Hn,o=M,s=zn,c=Yn,l=e.f;U=null,Wn=0,Gn=null,V=l&96?null:e,Hn=null,Fe(e.ctx),zn=!1,Yn=++Jn,e.ac!==null&&(cn(()=>{e.ac.abort(S)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=P?.is_fork;if(U!==null){var m;if(p||nr(e,Wn),f!==null&&Wn>0)for(f.length=Wn+U.length,m=0;m<U.length;m++)f[Wn+m]=U[m];else e.deps=f=U;if(fn()&&e.f&512)for(m=Wn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Wn<f.length&&(nr(e,Wn),f.length=Wn);if(Re()&&Gn!==null&&!zn&&f!==null&&!(e.f&6146))for(m=0;m<Gn.length;m++)$n(Gn[m],e);if(i!==null&&i!==e){if(Jn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Jn;if(t!==null)for(let e of t)e.rv=Jn;Gn!==null&&(r===null?r=Gn:r.push(...Gn))}return e.f&8388608&&(e.f^=se),d}catch(e){return Ue(e)}finally{e.f^=ae,U=t,Wn=n,Gn=r,V=i,Hn=a,Fe(o),zn=s,Yn=c}}function tr(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(U===null||!n.call(U,r))){var s=r;s.f&512&&(s.f^=512,s.f&=~ie),Ke(s),Mt(s),nr(s,0)}}function nr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)tr(e,n[r])}function rr(e){var t=e.f;if(!(t&16384)){N(e,g);var n=H,r=In;H=e,In=!0;try{t&16777232?Dn(e):En(e),Tn(e);var i=er(e);e.teardown=typeof i==`function`?i:null,e.wv=qn}finally{In=r,H=n}}}async function ir(){if(Me)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),st()}function W(e){var t=(e.f&2)!=0;if(Fn?.add(e),V!==null&&!zn&&!(H!==null&&H.f&16384)&&(Hn===null||!n.call(Hn,e))){var r=V.deps;if(V.f&2097152)e.rv<Jn&&(e.rv=Jn,U===null&&r!==null&&r[Wn]===e?Wn++:U===null?U=[e]:U.push(e));else{(V.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[V]:n.call(i,V)||i.push(V)}}if(Ln&&Ft.has(e))return Ft.get(e);if(t){var a=e;if(Ln){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||or(a))&&(o=At(a)),Ft.set(a,o),o}var s=(a.f&512)==0&&!zn&&V!==null&&(In||(V.f&512)!=0),c=(a.f&te)===0;Qn(a)&&(s&&(a.f|=512),jt(a)),s&&!c&&(Nt(a),ar(a))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function ar(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Nt(t),ar(t))}function or(e){if(e.v===D)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ft.has(t)||t.f&2&&or(t))return!0;return!1}function sr(e){var t=zn;try{return zn=!0,e()}finally{zn=t}}function cr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ce in e)lr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ce in n&&lr(n)}}}function lr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{lr(e[n],t)}catch{}let n=l(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=o(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function ur(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var dr=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function fr(e){return dr.includes(e)}var pr=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),mr={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function hr(e){return e=e.toLowerCase(),mr[e]??e}[...pr];var gr=[`touchstart`,`touchmove`];function _r(e){return gr.includes(e)}var vr=Symbol(`events`),yr=new Set,br=new Set;function xr(e,t,n,r={}){function i(e){if(r.capture||Tr.call(t,e),!e.cancelBubble)return cn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ve(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Sr(e,t,n){(t[vr]??={})[e]=n}function Cr(e){for(var t=0;t<e.length;t++)yr.add(e[t]);for(var n of br)n(e)}var wr=null;function Tr(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;wr=e;var s=0,c=wr===e&&e[vr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[vr]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=V,f=H;Bn(null),Vn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[vr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[vr]=t,delete e.currentTarget,Bn(d),Vn(f)}}}var Er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Dr(e){return Er?.createHTML(e)??e}function Or(e){var t=nn(`template`);return t.innerHTML=Dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function kr(e,t){var n=H;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function G(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(O)return kr(k,null),k;i===void 0&&(i=Or(a?e:`<!>`+e),n||(i=$t(i)));var t=r||Jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=$t(t),s=t.lastChild;kr(o,s)}else kr(t,t);return t}}function K(e=``){if(!O){var t=Qt(e+``);return kr(t,t),t}var n=k;return n.nodeType===3?rn(n):(n.before(n=Qt()),Te(n)),kr(n,n),n}function Ar(){if(O)return kr(k,null),k;var e=document.createDocumentFragment(),t=document.createComment(``),n=Qt();return e.append(t,n),kr(t,n),e}function q(e,t){if(O){var n=H;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=k),Ee();return}e!==null&&e.before(t)}function jr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Mr(e,t){return Pr(e,t)}var Nr=new Map;function Pr(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){Zt();var l=void 0,u=_n(()=>{var s=n??t.appendChild(Qt());vt(s,{pending:()=>{}},t=>{Ie({});var n=M;if(o&&(n.c=o),a&&(i.$$events=a),O&&kr(t,null),l=e(t,i)||{},O&&(H.nodes.end=k,k===null||k.nodeType!==8||k.data!==`]`))throw xe(),ye;Le()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=_r(r);for(let e of[t,document]){var a=Nr.get(e);a===void 0&&(a=new Map,Nr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(yr)),br.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Nr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Tr),r.delete(e),r.size===0&&Nr.delete(n)):r.set(e,i)}br.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Fr.set(l,u),l}var Fr=new WeakMap,Ir=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Mn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(B(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Pn(r,t),t.append(Qt()),this.#n.set(e,{effect:r,fragment:t})}else B(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),An(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(B(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=tn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Qt();i.append(a),this.#n.set(e,{effect:wn(()=>t(a)),fragment:i})}else this.#t.set(e,wn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else O&&(this.anchor=k),this.#a(n)}};function Lr(e,t,n=!1){var r;O&&(r=k,Ee());var i=new Ir(e),a=n?re:0;function o(e,t){if(O){var n=Oe(r);if(e!==parseInt(n.substring(1))){var a=De();Te(a),i.anchor=a,we(!1),i.ensure(e,t),we(!0);return}}i.ensure(e,t)}Sn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Rr(e,t,...n){var r=new Ir(e);Sn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},re)}function zr(e,t){var n=void 0,r;Cn(()=>{n!==(n=t())&&(r&&=(B(r),null),n&&(r=wn(()=>{vn(()=>n(e))})))})}function Br(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Br(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Vr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Br(e))&&(r&&(r+=` `),r+=t);return r}function Hr(e){return typeof e==`object`?Vr(e):e??``}var Ur=[...`
|
|
2
|
+
\r\f\xA0\v`];function Wr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ur.includes(r[o-1]))&&(s===r.length||Ur.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Gr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Kr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function qr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Kr)),i&&c.push(...Object.keys(i).map(Kr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Kr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Gr(r)),i&&(n+=Gr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Jr(e,t,n,r,i,a){var o=e.__className;if(O||o!==n||o===void 0){var s=Wr(n,r,a);(!O||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Yr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Xr(e,t,n,r){var i=e.__style;if(O||i!==t){var a=qr(t,r);(!O||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Yr(e,n?.[0],r[0]),Yr(e,n?.[1],r[1],`important`)):Yr(e,n,r));return r}function Zr(t,n,r=!1){if(t.multiple){if(n==null)return;if(!e(n))return Se();for(var i of t.options)i.selected=n.includes($r(i));return}for(i of t.options)if(Kt($r(i),n)){i.selected=!0;return}(!r||n!==void 0)&&(t.selectedIndex=-1)}function Qr(e){var t=new MutationObserver(()=>{Zr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),pn(()=>{t.disconnect()})}function $r(e){return`__value`in e?e.__value:e.value}var ei=Symbol(`class`),ti=Symbol(`style`),ni=Symbol(`is custom element`),ri=Symbol(`is html`),ii=de?`link`:`LINK`,ai=de?`input`:`INPUT`,oi=de?`option`:`OPTION`,si=de?`select`:`SELECT`;function ci(e){if(O){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;ui(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;ui(e,`checked`,null),e.checked=r}}};e.__on_r=n,Ve(n),sn()}}function li(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function ui(e,t,n,r){var i=pi(e);O&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ii)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&hi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function di(e,t,n,r,i=!1,a=!1){if(O&&i&&e.nodeName===ai){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||ci(o)}var s=pi(e),c=s[ni],l=!s[ri];let u=O&&c;u&&we(!1);var d=t||{},f=e.nodeName===oi;for(var p in t)p in n||(n[p]=null);n.class?n.class=Hr(n.class):(r||n[ei])&&(n.class=null),n[ti]&&(n.style??=null);var m=hi(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Jr(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[ei],n[ei]),d[i]=o,d[ei]=n[ei];continue}if(i===`style`){Xr(e,o,t?.[ti],n[ti]),d[i]=o,d[ti]=n[ti];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=fr(r);if(ur(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)Sr(r,e,o),Cr([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=xr(r,e,a,t)}}else if(i===`style`)ui(e,i,o);else if(i===`autofocus`)an(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)li(e,o);else{var v=i;l||(v=hr(v));var y=v===`defaultValue`||v===`defaultChecked`;if(o==null&&!c&&!y)if(s[i]=null,v===`value`||v===`checked`){let n=e,r=t===void 0;if(v===`value`){let e=n.defaultValue;n.removeAttribute(v),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(v),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else y||m.includes(v)&&(c||typeof o!=`string`)?(e[v]=o,v in s&&(s[v]=D)):typeof o!=`function`&&ui(e,v,o,a)}}}return u&&we(!0),d}function fi(e,t,n=[],r=[],i=[],a,o=!1,s=!1){bt(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===si,l=!1;if(Cn(()=>{var u=t(...n.map(W)),d=di(e,r,u,a,o,s);l&&c&&`value`in u&&Zr(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||B(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&B(i[t]),i[t]=wn(()=>zr(e,()=>f))),d[t]=f}r=d}),c){var u=e;vn(()=>{Zr(u,r.value,!0),Qr(u)})}l=!0})}function pi(e){return e.__attributes??={[ni]:e.nodeName.includes(`-`),[ri]:e.namespaceURI===be}}var mi=new Map;function hi(e){var t=e.getAttribute(`is`)||e.nodeName,n=mi.get(t);if(n)return n;mi.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&n.push(s);i=l(i)}return n}function gi(e,t){return e===t||e?.[ce]===t}function _i(e={},t,n,r){var i=M.r,a=H;return vn(()=>{var o,s;return bn(()=>{o=s,s=r?.()||[],sr(()=>{e!==n(...s)&&(t(e,...s),o&&gi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&gi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function vi(e=!1){let t=M,n=t.l.u;if(!n)return;let r=()=>cr(t.s);if(e){let e=0,n={},i=wt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>W(i)}n.b.length&&gn(()=>{yi(t,r),p(n.b)}),mn(()=>{let e=sr(()=>n.m.map(f));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&mn(()=>{yi(t,r),p(n.a)})}function yi(e,t){if(e.l.s)for(let t of e.l.s)W(t);t()}var bi={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function xi(e,t,n){return new Proxy({props:e,exclude:t},bi)}function J(e,t,n,r){var i=!Ne||(n&2)!=0,o=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?sr(r):r),c);let d;if(o){var f=ce in e||le in e;d=a(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;o?[p,m]=Ze(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&w(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?wt:Dt)(()=>(_=!1,h()));o&&W(v);var y=H;return(function(e,t){if(arguments.length>0){let n=t?W(v):i&&o?Wt(e):e;return I(v,n),_=!0,c!==void 0&&(c=n),e}return Ln&&_||y.f&16384?v.v:W(v)})}function Si(e){M===null&&fe(`onMount`),Ne&&M.l!==null?Ci(M).m.push(e):mn(()=>{let t=sr(e);if(typeof t==`function`)return t})}function Ci(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`),Pe();var wi=async(e,t)=>{if(await Ti(e,{id:t,type:`module`,async:!0,defer:!0}),window.procaptcha?.render===void 0)throw Error(`Render script does not contain the render function`);return window.procaptcha.render},Ti=async(e,t)=>{let n=document.createElement(`script`),r={src:e,...t};Object.assign(n,r),await Ei(document.head,n)},Ei=async(e,t)=>new Promise((n,r)=>{t.onload=()=>{n()},t.onerror=e=>{r(e)},e.appendChild(t)}),Di=(e=>{let t,n=async()=>(t||=await wi(e.scriptUrl,e.scriptId),t);return async(e,t)=>{let r=Object.assign({},t);await(await n())(e,r)}})({scriptUrl:`https://js.prosopo.io/js/procaptcha.bundle.js`,scriptId:`procaptcha-bundle`}),Oi=G(`<div></div>`);function ki(e,t){Ie(t,!0);let n=xi(t,[`$$slots`,`$$events`,`$$legacy`]),r=Et(()=>t.htmlAttributes||{}),i;Si(()=>{ir().then(()=>{Di(i,n)})});var a=Oi();fi(a,()=>({...W(r)})),_i(a,e=>i=e,()=>i),q(e,a),Le()}var Ai={gwei:9,wei:18};function ji(e,t){let n=e.toString(),r=n.startsWith(`-`);r&&(n=n.slice(1)),n=n.padStart(t,`0`);let[i,a]=[n.slice(0,n.length-t),n.slice(n.length-t)];return a=a.replace(/(0+)$/,``),`${r?`-`:``}${i||`0`}${a?`.${a}`:``}`}function Mi(e,t=`wei`){return ji(e,Ai[t])}var Ni=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Pi=(e,t)=>({classGroupId:e,validator:t}),Fi=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ii=`-`,Li=[],Ri=`arbitrary..`,zi=e=>{let t=Hi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Vi(e);let n=e.split(Ii);return Bi(n,n[0]===``&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ni(i,t):t:i||Li}return n[e]||Li}}},Bi=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Bi(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Ii):e.slice(t).join(Ii),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Vi=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ri+r:void 0})(),Hi=e=>{let{theme:t,classGroups:n}=e;return Ui(n,t)},Ui=(e,t)=>{let n=Fi();for(let r in e){let i=e[r];Wi(i,n,r,t)}return n},Wi=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Gi(i,t,n,r)}},Gi=(e,t,n,r)=>{if(typeof e==`string`){Ki(e,t,n);return}if(typeof e==`function`){qi(e,t,n,r);return}Ji(e,t,n,r)},Ki=(e,t,n)=>{let r=e===``?t:Yi(t,e);r.classGroupId=n},qi=(e,t,n,r)=>{if(Xi(e)){Wi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Pi(n,e))},Ji=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Wi(o,Yi(t,a),n,r)}},Yi=(e,t)=>{let n=e,r=t.split(Ii),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Fi(),n.nextPart.set(t,i)),n=i}return n},Xi=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Zi=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Qi=`!`,$i=`:`,ea=[],ta=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),na=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===$i){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Qi)?(c=s.slice(0,-1),l=!0):s.startsWith(Qi)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return ta(t,l,c,u)};if(t){let e=t+$i,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):ta(ea,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ra=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ia=e=>({cache:Zi(e.cacheSize),parseClassName:na(e),sortModifiers:ra(e),...zi(e)}),aa=/\s+/,oa=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a}=t,o=[],s=e.trim().split(aa),c=``;for(let e=s.length-1;e>=0;--e){let t=s[e],{isExternal:l,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(t);if(l){c=t+(c.length>0?` `+c:c);continue}let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=t+(c.length>0?` `+c:c);continue}if(h=r(f),!h){c=t+(c.length>0?` `+c:c);continue}m=!1}let g=u.length===0?``:u.length===1?u[0]:a(u).join(`:`),_=d?g+Qi:g,v=_+h;if(o.indexOf(v)>-1)continue;o.push(v);let y=i(h,m);for(let e=0;e<y.length;++e){let t=y[e];o.push(_+t)}c=t+(c.length>0?` `+c:c)}return c},sa=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=ca(n))&&(i&&(i+=` `),i+=r);return i},ca=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ca(e[r]))&&(n&&(n+=` `),n+=t);return n},la=(e,...t)=>{let n,r,i,a,o=o=>(n=ia(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=oa(e,n);return i(e,a),a};return a=o,(...e)=>a(sa(...e))},ua=[],Y=e=>{let t=t=>t[e]||ua;return t.isThemeGetter=!0,t},da=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pa=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ma=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ha=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ga=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_a=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,va=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ya=e=>pa.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),ba=e=>!!e&&Number.isInteger(Number(e)),xa=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),Sa=e=>ma.test(e),Ca=()=>!0,wa=e=>ha.test(e)&&!ga.test(e),Ta=()=>!1,Ea=e=>_a.test(e),Da=e=>va.test(e),Oa=e=>!Z(e)&&!Q(e),ka=e=>Wa(e,Ja,Ta),Z=e=>da.test(e),Aa=e=>Wa(e,Ya,wa),ja=e=>Wa(e,Xa,X),Ma=e=>Wa(e,Qa,Ca),Na=e=>Wa(e,Za,Ta),Pa=e=>Wa(e,Ka,Ta),Fa=e=>Wa(e,qa,Da),Ia=e=>Wa(e,$a,Ea),Q=e=>fa.test(e),La=e=>Ga(e,Ya),Ra=e=>Ga(e,Za),za=e=>Ga(e,Ka),Ba=e=>Ga(e,Ja),Va=e=>Ga(e,qa),Ha=e=>Ga(e,$a,!0),Ua=e=>Ga(e,Qa,!0),Wa=(e,t,n)=>{let r=da.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ga=(e,t,n=!1)=>{let r=fa.exec(e);return r?r[1]?t(r[1]):n:!1},Ka=e=>e===`position`||e===`percentage`,qa=e=>e===`image`||e===`url`,Ja=e=>e===`length`||e===`size`||e===`bg-size`,Ya=e=>e===`length`,Xa=e=>e===`number`,Za=e=>e===`family-name`,Qa=e=>e===`number`||e===`weight`,$a=e=>e===`shadow`,eo=()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],ee=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],te=()=>[...ee(),Q,Z],ne=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],re=()=>[`auto`,`contain`,`none`],b=()=>[Q,Z,c],x=()=>[ya,`full`,`auto`,...b()],ie=()=>[ba,`none`,`subgrid`,Q,Z],ae=()=>[`auto`,{span:[`full`,ba,Q,Z]},ba,Q,Z],oe=()=>[ba,`auto`,Q,Z],se=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ce=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],le=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ue=()=>[`auto`,...b()],S=()=>[ya,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...b()],de=()=>[ya,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...b()],fe=()=>[ya,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...b()],C=()=>[e,Q,Z],pe=()=>[...ee(),za,Pa,{position:[Q,Z]}],me=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],he=()=>[`auto`,`cover`,`contain`,Ba,ka,{size:[Q,Z]}],ge=()=>[xa,La,Aa],w=()=>[``,`none`,`full`,l,Q,Z],T=()=>[``,X,La,Aa],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],E=()=>[X,xa,za,Pa],ye=()=>[``,`none`,m,Q,Z],D=()=>[`none`,X,Q,Z],be=()=>[`none`,X,Q,Z],xe=()=>[X,Q,Z],Se=()=>[ya,`full`,...b()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Sa],breakpoint:[Sa],color:[Ca],container:[Sa],"drop-shadow":[Sa],ease:[`in`,`out`,`in-out`],font:[Oa],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Sa],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Sa],shadow:[Sa],spacing:[`px`,X],text:[Sa],"text-shadow":[Sa],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ya,Z,Q,g]}],container:[`container`],columns:[{columns:[X,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:te()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:re()}],"overscroll-x":[{"overscroll-x":re()}],"overscroll-y":[{"overscroll-y":re()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{"inset-s":x(),start:x()}],end:[{"inset-e":x(),end:x()}],"inset-bs":[{"inset-bs":x()}],"inset-be":[{"inset-be":x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ba,`auto`,Q,Z]}],basis:[{basis:[ya,`full`,`auto`,s,...b()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,ya,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[ba,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:b()}],"gap-x":[{"gap-x":b()}],"gap-y":[{"gap-y":b()}],"justify-content":[{justify:[...ce(),`normal`]}],"justify-items":[{"justify-items":[...le(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...le()]}],"align-content":[{content:[`normal`,...ce()]}],"align-items":[{items:[...le(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...le(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...le(),`baseline`]}],"place-self":[{"place-self":[`auto`,...le()]}],p:[{p:b()}],px:[{px:b()}],py:[{py:b()}],ps:[{ps:b()}],pe:[{pe:b()}],pbs:[{pbs:b()}],pbe:[{pbe:b()}],pt:[{pt:b()}],pr:[{pr:b()}],pb:[{pb:b()}],pl:[{pl:b()}],m:[{m:ue()}],mx:[{mx:ue()}],my:[{my:ue()}],ms:[{ms:ue()}],me:[{me:ue()}],mbs:[{mbs:ue()}],mbe:[{mbe:ue()}],mt:[{mt:ue()}],mr:[{mr:ue()}],mb:[{mb:ue()}],ml:[{ml:ue()}],"space-x":[{"space-x":b()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":b()}],"space-y-reverse":[`space-y-reverse`],size:[{size:S()}],"inline-size":[{inline:[`auto`,...de()]}],"min-inline-size":[{"min-inline":[`auto`,...de()]}],"max-inline-size":[{"max-inline":[`none`,...de()]}],"block-size":[{block:[`auto`,...fe()]}],"min-block-size":[{"min-block":[`auto`,...fe()]}],"max-block-size":[{"max-block":[`none`,...fe()]}],w:[{w:[s,`screen`,...S()]}],"min-w":[{"min-w":[s,`screen`,`none`,...S()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...S()]}],h:[{h:[`screen`,`lh`,...S()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...S()]}],"max-h":[{"max-h":[`screen`,`lh`,...S()]}],"font-size":[{text:[`base`,n,La,Aa]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ua,Ma]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,xa,Z]}],"font-family":[{font:[Ra,Na,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,ja]}],leading:[{leading:[a,...b()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,Aa]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:b()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:pe()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:he()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ba,Q,Z],radial:[``,Q,Z],conic:[ba,Q,Z]},Va,Fa]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:w()}],"rounded-s":[{"rounded-s":w()}],"rounded-e":[{"rounded-e":w()}],"rounded-t":[{"rounded-t":w()}],"rounded-r":[{"rounded-r":w()}],"rounded-b":[{"rounded-b":w()}],"rounded-l":[{"rounded-l":w()}],"rounded-ss":[{"rounded-ss":w()}],"rounded-se":[{"rounded-se":w()}],"rounded-ee":[{"rounded-ee":w()}],"rounded-es":[{"rounded-es":w()}],"rounded-tl":[{"rounded-tl":w()}],"rounded-tr":[{"rounded-tr":w()}],"rounded-br":[{"rounded-br":w()}],"rounded-bl":[{"rounded-bl":w()}],"border-w":[{border:T()}],"border-w-x":[{"border-x":T()}],"border-w-y":[{"border-y":T()}],"border-w-s":[{"border-s":T()}],"border-w-e":[{"border-e":T()}],"border-w-bs":[{"border-bs":T()}],"border-w-be":[{"border-be":T()}],"border-w-t":[{"border-t":T()}],"border-w-r":[{"border-r":T()}],"border-w-b":[{"border-b":T()}],"border-w-l":[{"border-l":T()}],"divide-x":[{"divide-x":T()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":T()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,La,Aa]}],"outline-color":[{outline:C()}],shadow:[{shadow:[``,`none`,u,Ha,Ia]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ha,Ia]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:T()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[X,Aa]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":T()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":[`none`,f,Ha,Ia]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":ee()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:pe()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:ye()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ha,Ia]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":b()}],"border-spacing-x":[{"border-spacing-x":b()}],"border-spacing-y":[{"border-spacing-y":b()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:D()}],"rotate-x":[{"rotate-x":D()}],"rotate-y":[{"rotate-y":D()}],"rotate-z":[{"rotate-z":D()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":[`scale-3d`],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":[`translate-none`],accent:[{accent:C()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:C()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":b()}],"scroll-mx":[{"scroll-mx":b()}],"scroll-my":[{"scroll-my":b()}],"scroll-ms":[{"scroll-ms":b()}],"scroll-me":[{"scroll-me":b()}],"scroll-mbs":[{"scroll-mbs":b()}],"scroll-mbe":[{"scroll-mbe":b()}],"scroll-mt":[{"scroll-mt":b()}],"scroll-mr":[{"scroll-mr":b()}],"scroll-mb":[{"scroll-mb":b()}],"scroll-ml":[{"scroll-ml":b()}],"scroll-p":[{"scroll-p":b()}],"scroll-px":[{"scroll-px":b()}],"scroll-py":[{"scroll-py":b()}],"scroll-ps":[{"scroll-ps":b()}],"scroll-pe":[{"scroll-pe":b()}],"scroll-pbs":[{"scroll-pbs":b()}],"scroll-pbe":[{"scroll-pbe":b()}],"scroll-pt":[{"scroll-pt":b()}],"scroll-pr":[{"scroll-pr":b()}],"scroll-pb":[{"scroll-pb":b()}],"scroll-pl":[{"scroll-pl":b()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...C()]}],"stroke-w":[{stroke:[X,La,Aa,ja]}],stroke:[{stroke:[`none`,...C()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}},to=(e,{cacheSize:t,prefix:n,experimentalParseClassName:r,extend:i={},override:a={}})=>(no(e,`cacheSize`,t),no(e,`prefix`,n),no(e,`experimentalParseClassName`,r),ro(e.theme,a.theme),ro(e.classGroups,a.classGroups),ro(e.conflictingClassGroups,a.conflictingClassGroups),ro(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),no(e,`orderSensitiveModifiers`,a.orderSensitiveModifiers),io(e.theme,i.theme),io(e.classGroups,i.classGroups),io(e.conflictingClassGroups,i.conflictingClassGroups),io(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),ao(e,i,`orderSensitiveModifiers`),e),no=(e,t,n)=>{n!==void 0&&(e[t]=n)},ro=(e,t)=>{if(t)for(let n in t)no(e,n,t[n])},io=(e,t)=>{if(t)for(let n in t)ao(e,t,n)},ao=(e,t,n)=>{let r=t[n];r!==void 0&&(e[n]=e[n]?e[n].concat(r):r)},oo=(e,...t)=>typeof e==`function`?la(eo,e,...t):la(()=>to(eo(),e),...t),so=la(eo);function co(...e){return so(Vr(e))}var lo=/\s+/g,uo=e=>typeof e!=`string`||!e?e:e.replace(lo,` `).trim(),fo=(...e)=>{let t=[],n=e=>{if(!e&&e!==0&&e!==0n)return;if(Array.isArray(e)){for(let t=0,r=e.length;t<r;t++)n(e[t]);return}let r=typeof e;if(r===`string`||r===`number`||r===`bigint`){if(r===`number`&&e!==e)return;t.push(String(e))}else if(r===`object`){let n=Object.keys(e);for(let r=0,i=n.length;r<i;r++){let i=n[r];e[i]&&t.push(i)}}};for(let t=0,r=e.length;t<r;t++){let r=e[t];r!=null&&n(r)}return t.length>0?uo(t.join(` `)):void 0},po=e=>e===!1?`false`:e===!0?`true`:e===0?`0`:e,$=e=>{if(!e||typeof e!=`object`)return!0;for(let t in e)return!1;return!0},mo=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){let a=n[i];if(!r.includes(a)||e[a]!==t[a])return!1}return!0},ho=(e,t)=>{for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];n in e?e[n]=fo(e[n],r):e[n]=r}return e},go=(e,t)=>{for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?go(r,t):r&&t.push(r)}},_o=(...e)=>{let t=[];go(e,t);let n=[];for(let e=0;e<t.length;e++)t[e]&&n.push(t[e]);return n},vo=(e,t)=>{let n={};for(let r in e){let i=e[r];if(r in t){let e=t[r];Array.isArray(i)||Array.isArray(e)?n[r]=_o(e,i):typeof i==`object`&&typeof e==`object`&&i&&e?n[r]=vo(i,e):n[r]=e+` `+i}else n[r]=i}for(let r in t)r in e||(n[r]=t[r]);return n},yo={twMerge:!0,twMergeConfig:{}};function bo(){let e=null,t={},n=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(e){t=e},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(e){n=e},reset(){e=null,t={},n=!1}}}var xo=bo(),So=e=>{let t=(t,n)=>{let{extend:r=null,slots:i={},variants:a={},compoundVariants:o=[],compoundSlots:s=[],defaultVariants:c={}}=t,l={...yo,...n},u=r?.base?fo(r.base,t?.base):t?.base,d=r?.variants&&!$(r.variants)?vo(a,r.variants):a,f=r?.defaultVariants&&!$(r.defaultVariants)?{...r.defaultVariants,...c}:c;!$(l.twMergeConfig)&&!mo(l.twMergeConfig,xo.cachedTwMergeConfig)&&(xo.didTwMergeConfigChange=!0,xo.cachedTwMergeConfig=l.twMergeConfig);let p=$(r?.slots),m=$(i)?{}:{base:fo(t?.base,p&&r?.base),...i},h=p?m:ho({...r?.slots},$(m)?{base:t?.base}:m),g=$(r?.compoundVariants)?o:_o(r?.compoundVariants,o),_=t=>{if($(d)&&$(i)&&p)return e(u,t?.class,t?.className)(l);if(g&&!Array.isArray(g))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof g}`);if(s&&!Array.isArray(s))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let n=(e,n=d,r=null,i=null)=>{let a=n[e];if(!a||$(a))return null;let o=i?.[e]??t?.[e];if(o===null)return null;let s=po(o);if(typeof s==`object`)return null;let c=f?.[e];return a[(s??po(c))||`false`]},r=()=>{if(!d)return null;let e=Object.keys(d),t=[];for(let r=0;r<e.length;r++){let i=n(e[r],d);i&&t.push(i)}return t},a=(e,t)=>{if(!d||typeof d!=`object`)return null;let r=[];for(let i in d){let a=n(i,d,e,t),o=e===`base`&&typeof a==`string`?a:a&&a[e];o&&r.push(o)}return r},o={};for(let e in t){let n=t[e];n!==void 0&&(o[e]=n)}let c=(e,n)=>{let r=typeof t?.[e]==`object`?{[e]:t[e]?.initial}:{};return{...f,...o,...r,...n}},m=(e=[],t)=>{let n=[],r=e.length;for(let i=0;i<r;i++){let{class:r,className:a,...o}=e[i],s=!0,l=c(null,t);for(let e in o){let t=o[e],n=l[e];if(Array.isArray(t)){if(!t.includes(n)){s=!1;break}}else{if((t==null||t===!1)&&(n==null||n===!1))continue;if(n!==t){s=!1;break}}}s&&(r&&n.push(r),a&&n.push(a))}return n},_=t=>{let n=m(g,t);if(!Array.isArray(n))return n;let r={},i=e;for(let e=0;e<n.length;e++){let t=n[e];if(typeof t==`string`)r.base=i(r.base,t)(l);else if(typeof t==`object`)for(let e in t)r[e]=i(r[e],t[e])(l)}return r},v=e=>{if(s.length<1)return null;let t={},n=c(null,e);for(let e=0;e<s.length;e++){let{slots:r=[],class:i,className:a,...o}=s[e];if(!$(o)){let e=!0;for(let t in o){let r=n[t],i=o[t];if(r===void 0||(Array.isArray(i)?!i.includes(r):i!==r)){e=!1;break}}if(!e)continue}for(let e=0;e<r.length;e++){let n=r[e];t[n]||(t[n]=[]),t[n].push([i,a])}}return t};if(!$(i)||!p){let t={};if(typeof h==`object`&&!$(h)){let n=e;for(let e in h)t[e]=t=>{let r=_(t),i=v(t);return n(h[e],a(e,t),r?r[e]:void 0,i?i[e]:void 0,t?.class,t?.className)(l)}}return t}return e(u,r(),m(g),t?.class,t?.className)(l)};return _.variantKeys=(()=>{if(!(!d||typeof d!=`object`))return Object.keys(d)})(),_.extend=r,_.base=u,_.slots=h,_.variants=d,_.defaultVariants=f,_.compoundSlots=s,_.compoundVariants=g,_};return{tv:t,createTV:e=>(n,r)=>t(n,r?vo(e,r):e)}},Co=e=>$(e)?so:oo({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),wo=(e,t)=>{let n=fo(e);return!n||!(t?.twMerge??!0)?n:((!xo.cachedTwMerge||xo.didTwMergeConfigChange)&&(xo.didTwMergeConfigChange=!1,xo.cachedTwMerge=Co(xo.cachedTwMergeConfig)),xo.cachedTwMerge(n)||void 0)},{createTV:To,tv:Eo}=So((...e)=>t=>wo(e,t)),Do=Eo({base:`focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground shadow-xs`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground`,destructive:`bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}}),Oo=G(`<a><!></a>`),ko=G(`<button><!></button>`);function Ao(e,t){Ie(t,!0);let n=J(t,`variant`,3,`default`),r=J(t,`size`,3,`default`),i=J(t,`ref`,15,null),a=J(t,`href`,3,void 0),o=J(t,`type`,3,`button`),s=xi(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`variant`,`size`,`ref`,`href`,`type`,`disabled`,`children`]);var c=Ar(),l=R(c),u=e=>{var o=Oo();fi(o,e=>({"data-slot":`button`,class:e,href:t.disabled?void 0:a(),"aria-disabled":t.disabled,role:t.disabled?`link`:void 0,tabindex:t.disabled?-1:void 0,...s}),[()=>co(Do({variant:n(),size:r()}),t.class)]),Rr(L(o),()=>t.children??d),A(o),_i(o,e=>i(e),()=>i()),q(e,o)},f=e=>{var a=ko();fi(a,e=>({"data-slot":`button`,class:e,type:o(),disabled:t.disabled,...s}),[()=>co(Do({variant:n(),size:r()}),t.class)]),Rr(L(a),()=>t.children??d),A(a),_i(a,e=>i(e),()=>i()),q(e,a)};Lr(l,e=>{a()?e(u):e(f,-1)}),q(e,c),Le()}var jo=G(`<div><!></div>`);function Mo(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=J(t,`size`,3,`default`),i=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]);var a=jo();fi(a,e=>({"data-slot":`card`,"data-size":r(),class:e,...i}),[()=>co(`ring-foreground/10 bg-card text-card-foreground gap-6 overflow-hidden rounded-xl py-6 text-sm shadow-xs ring-1 has-[>img:first-child]:pt-0 data-[size=sm]:gap-4 data-[size=sm]:py-4 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,t.class)]),Rr(L(a),()=>t.children??d),A(a),_i(a,e=>n(e),()=>n()),q(e,a),Le()}var No=G(`<div><!></div>`);function Po(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=No();fi(i,e=>({"data-slot":`card-content`,class:e,...r}),[()=>co(`px-6 group-data-[size=sm]/card:px-4`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var Fo=G(`<p><!></p>`);function Io(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=Fo();fi(i,e=>({"data-slot":`card-description`,class:e,...r}),[()=>co(`text-muted-foreground text-sm`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var Lo=G(`<div><!></div>`);function Ro(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=Lo();fi(i,e=>({"data-slot":`card-header`,class:e,...r}),[()=>co(`gap-1 rounded-t-xl px-6 group-data-[size=sm]/card:px-4 [.border-b]:pb-6 group-data-[size=sm]/card:[.border-b]:pb-4 group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var zo=G(`<div><!></div>`);function Bo(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=zo();fi(i,e=>({"data-slot":`card-title`,class:e,...r}),[()=>co(`text-base leading-normal font-medium group-data-[size=sm]/card:text-sm`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var Vo=Eo({base:`grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`,warning:`border-amber-200 bg-amber-50 text-amber-800 dark:border-amber-900 dark:bg-amber-950 dark:text-amber-200 *:data-[slot=alert-description]:text-amber-700 dark:*:data-[slot=alert-description]:text-amber-300 *:[svg]:text-current`,success:`border-green-200 bg-green-50 text-green-800 dark:border-green-900 dark:bg-green-950 dark:text-green-200 *:data-[slot=alert-description]:text-green-700 dark:*:data-[slot=alert-description]:text-green-300 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),Ho=G(`<div><!></div>`);function Uo(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=J(t,`variant`,3,`default`),i=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]);var a=Ho();fi(a,e=>({"data-slot":`alert`,role:`alert`,class:e,...i}),[()=>co(Vo({variant:r()}),t.class)]),Rr(L(a),()=>t.children??d),A(a),_i(a,e=>n(e),()=>n()),q(e,a),Le()}var Wo=G(`<div><!></div>`);function Go(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=Wo();fi(i,e=>({"data-slot":`alert-description`,class:e,...r}),[()=>co(`text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var Ko=G(`<div><!></div>`);function qo(e,t){Ie(t,!0);let n=J(t,`ref`,15,null),r=xi(t,[`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]);var i=Ko();fi(i,e=>({"data-slot":`alert-title`,class:e,...r}),[()=>co(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3`,t.class)]),Rr(L(i),()=>t.children??d),A(i),_i(i,e=>n(e),()=>n()),q(e,i),Le()}var Jo=G(`<!> <!>`,1),Yo=G(`<p>Please provide both <code class="rounded bg-muted px-1 py-0.5 font-mono text-sm">chainId</code> and <code class="rounded bg-muted px-1 py-0.5 font-mono text-sm">address</code> in the URL.</p> <p class="mt-2 text-xs">Example: <code class="rounded bg-muted px-1 py-0.5 font-mono">?chainId=11155111&address=0x...</code></p>`,1),Xo=G(`<!> <!>`,1),Zo=G(`<div class="flex items-center justify-center py-8"><div class="h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"></div></div>`),Qo=G(`<div class="flex items-center justify-between text-sm"><span class="text-muted-foreground">Amount</span> <span class="font-medium"> </span></div>`),$o=G(`<!> <!>`,1),es=G(`<!> <!>`,1),ts=G(`<div class="flex justify-center"><!></div>`),ns=G(`<!> <!>`,1),rs=G(`<!> <!>`,1),is=G(`<span class="mr-2 inline-block h-4 w-4 animate-spin rounded-full border-2 border-primary-foreground border-t-transparent"></span> Sending...`,1),as=G(`<div class="flex items-center gap-2 text-amber-600"><span class="inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent"></span> <span class="text-sm">Waiting for confirmation...</span></div>`),os=G(`<span class="block text-xs opacity-75">Closing window...</span>`),ss=G(`Transaction confirmed! <!>`,1),cs=G(`<!> <!>`,1),ls=G(`<div class="space-y-3 rounded-lg border bg-card p-4"><div class="space-y-1"><span class="text-sm font-medium text-muted-foreground">Transaction Hash</span> <code class="block break-all rounded bg-muted p-2 font-mono text-xs"> </code></div> <!></div>`),us=G(`<!> <!>`,1),ds=G(`<!> <!> <!>`,1),fs=G(`<div class="space-y-2 rounded-lg bg-muted p-4"><div class="flex items-center justify-between text-sm"><span class="text-muted-foreground">Chain ID</span> <span class="font-medium"> </span></div> <!> <div class="flex items-center justify-between text-sm"><span class="text-muted-foreground">Recipient</span> <code class="max-w-[200px] truncate rounded bg-background px-2 py-1 font-mono text-xs"> </code></div></div> <!> <!> <!>`,1),ps=G(`<!> <!>`,1),ms=G(`<div class="min-h-screen bg-background flex items-center justify-center p-4"><!></div>`);function hs(e,t){Ie(t,!1);let n=zt(!1),r=zt(!1),i=zt(``),a=zt(``),o=zt(``),s=zt(``),c=zt(``),l=zt(!1),u=zt(!1),d=zt(0),f=zt(!1),p=new URLSearchParams(window.location.search),m=p.get(`chainId`)||``,h=p.get(`address`)||``,g=p.get(`forceError`)===`true`,_=!m||!h;async function v(){try{I(n,(await(await fetch(`/api/config`)).json()).captchaDisabled===!0),W(n)&&I(a,`disabled`)}catch(e){console.error(`Failed to load config:`,e)}if(m)try{let e=await fetch(`/api/chain/${m}`),t=await e.json();e.ok?I(i,Mi(BigInt(t.amount))):(I(c,t.error||`Chain ${m} is not supported`),I(f,!0))}catch(e){console.error(`Failed to load chain config:`,e)}I(r,!0)}v();function y(e){I(f,!0),window.opener&&window.opener.postMessage({type:`faucet-error`,error:e},`*`)}function ee(){window.close()}let te=e=>{console.log(`captcha verified`,e),I(a,e),I(o,``),I(s,``),I(c,``)};async function ne(e){I(u,!0),I(d,0);let t=Date.now()+300*1e3;try{let n=`pending`;for(;n===`pending`;){if(Date.now()>t)throw Error(`Timed out waiting for the transaction to be included`);await new Promise(e=>setTimeout(e,2500));let r=await fetch(`/api/tx/${m}/${e}`);if(!r.ok)throw Error(`Failed to follow the transaction`);n=(await r.json()).status}if(n===`success`)I(d,1),I(o,`Transaction confirmed!`),window.opener&&(window.opener.postMessage({type:`faucet-success`,txHash:e,chainId:m,address:h},`*`),setTimeout(()=>{window.close()},500));else{let e=`Transaction failed on-chain`;I(c,e),y(e)}}catch(e){let t=e instanceof Error?e.message:`Failed to confirm transaction`;I(c,t),y(t)}finally{I(u,!1)}}let re=async()=>{if(!W(a)){I(c,`Please complete the captcha first`);return}if(!m||!h){I(c,`Missing chainId or address in URL parameters`);return}if(I(l,!0),I(o,``),I(s,``),I(c,``),I(d,0),g){await new Promise(e=>setTimeout(e,500));let e=`Simulated transaction failure (forceError=true)`;I(c,e),I(l,!1),y(e);return}try{let e=await fetch(`/api/claim`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({token:W(a),chainId:m,address:h})}),t=await e.json();if(e.ok&&t.success)I(s,t.txHash),I(o,`Transaction submitted, waiting for confirmation...`),I(l,!1),await ne(t.txHash);else{let e=t.error||`Claim failed`;I(c,e),y(e)}}catch(e){let t=e instanceof Error?e.message:`Unknown error`;I(c,t),y(t)}finally{I(l,!1)}};vi();var b=ms();Mo(L(b),{class:`w-full max-w-md`,children:(e,t)=>{var p=ps(),v=R(p);Ro(v,{class:`text-center`,children:(e,t)=>{var n=Jo(),r=R(n);Bo(r,{class:`text-2xl`,children:(e,t)=>{j(),q(e,K(`Faucet`))},$$slots:{default:!0}}),Io(z(r,2),{children:(e,t)=>{j(),q(e,K(`Request testnet tokens`))},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}}),Po(z(v,2),{class:`space-y-4`,children:(e,t)=>{var p=Ar(),v=R(p),y=e=>{Uo(e,{variant:`warning`,children:(e,t)=>{var n=Xo(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Missing Parameters`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{var n=Yo();j(2),q(e,n)},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})},ne=e=>{q(e,Zo())},b=e=>{var t=fs(),r=R(t),p=L(r),_=z(L(p),2),v=L(_,!0);A(_),A(p);var y=z(p,2),ne=e=>{var t=Qo(),n=z(L(t),2),r=L(n);A(n),A(t),xn(()=>jr(r,`${W(i)??``} ETH`)),q(e,t)};Lr(y,e=>{W(i)&&e(ne)});var b=z(y,2),x=z(L(b),2),ie=L(x,!0);A(x),A(b),A(r);var ae=z(r,2),oe=e=>{Uo(e,{variant:`destructive`,children:(e,t)=>{var n=$o(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Test Mode`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{j(),q(e,K(`forceError=true (transaction will fail)`))},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})};Lr(ae,e=>{g&&e(oe)});var se=z(ae,2),ce=e=>{Uo(e,{variant:`warning`,children:(e,t)=>{var n=es(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Development Mode`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{j(),q(e,K(`Captcha disabled for local development`))},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})},le=e=>{var t=ts();ki(L(t),{get siteKey(){return`5H9eTrTxkUrnuA3xqyzriku7KXW5rPZJBkCKB3E8DoVBcwf1`},language:`en`,callback:te,htmlAttributes:{class:`my-app__procaptcha`}}),A(t),q(e,t)};Lr(se,e=>{W(n)?e(ce):W(f)||e(le,1)});var ue=z(se,2),S=e=>{var t=rs(),n=R(t),r=e=>{Uo(e,{variant:`destructive`,children:(e,t)=>{var n=ns(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Error`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{j();var n=K();xn(()=>jr(n,W(c))),q(e,n)},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})};Lr(n,e=>{W(c)&&e(r)}),Ao(z(n,2),{onclick:ee,variant:`secondary`,class:`w-full`,children:(e,t)=>{j(),q(e,K(`Close`))},$$slots:{default:!0}}),q(e,t)},de=e=>{var t=ds(),n=R(t);{let e=Dt(()=>W(l)||W(u)||!W(a));Ao(n,{onclick:re,get disabled(){return W(e)},class:`w-full`,children:(e,t)=>{var n=Ar(),r=R(n),i=e=>{var t=is();j(),q(e,t)},a=e=>{q(e,K(`Claim Funds`))};Lr(r,e=>{W(l)?e(i):e(a,-1)}),q(e,n)},$$slots:{default:!0}})}var r=z(n,2),i=e=>{var t=ls(),n=L(t),r=z(L(n),2),i=L(r,!0);A(r),A(n);var a=z(n,2),o=e=>{q(e,as())},c=e=>{Uo(e,{variant:`success`,children:(e,t)=>{var n=cs(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Success`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{j();var n=ss(),r=z(R(n)),i=e=>{q(e,os())};Lr(r,e=>{window.opener&&e(i)}),q(e,n)},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})};Lr(a,e=>{W(u)?e(o):W(d)>0&&e(c,1)}),A(t),xn(()=>jr(i,W(s))),q(e,t)},p=e=>{Uo(e,{variant:`success`,children:(e,t)=>{Go(e,{children:(e,t)=>{j();var n=K();xn(()=>jr(n,W(o))),q(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};Lr(r,e=>{W(s)?e(i):W(o)&&!W(s)&&e(p,1)});var m=z(r,2),h=e=>{Uo(e,{variant:`destructive`,children:(e,t)=>{var n=us(),r=R(n);qo(r,{children:(e,t)=>{j(),q(e,K(`Error`))},$$slots:{default:!0}}),Go(z(r,2),{children:(e,t)=>{j();var n=K();xn(()=>jr(n,W(c))),q(e,n)},$$slots:{default:!0}}),q(e,n)},$$slots:{default:!0}})};Lr(m,e=>{W(c)&&!W(f)&&e(h)}),q(e,t)};Lr(ue,e=>{W(f)?e(S):e(de,-1)}),xn(()=>{jr(v,m),jr(ie,h)}),q(e,t)};Lr(v,e=>{_?e(y):W(r)?e(b,-1):e(ne,1)}),q(e,p)},$$slots:{default:!0}}),q(e,p)},$$slots:{default:!0}}),A(b),q(e,b),Le()}Mr(hs,{target:document.getElementById(`app`)});
|
package/static/index.html
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Faucet</title>
|
|
7
7
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
8
|
-
<script type="module" crossorigin src="/assets/index
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/assets/utils-DUS54ir-.js">
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Bw0D3FDR.js"></script>
|
|
10
9
|
<link rel="stylesheet" crossorigin href="/assets/index-1aRE43SC.css">
|
|
11
10
|
</head>
|
|
12
11
|
<body>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,d as n,f as r,i,l as a,o,r as s,s as c,t as l,u}from"./index--19BogPu.js";var d=class extends n{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:i,urls:a}){super(t.shortMessage||`An error occurred while fetching for an offchain result.`,{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?``:[],`Offchain Gateway Call:`,a&&[` Gateway URL(s):`,...a.map(e=>` ${o(e)}`)],` Sender: ${i}`,` Data: ${n}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat(),name:`OffchainLookupError`})}},f=class extends n{constructor({result:e,url:t}){super(`Offchain gateway response is malformed. Response data must be a hex value.`,{metaMessages:[`Gateway URL: ${o(t)}`,`Response: ${c(e)}`],name:`OffchainLookupResponseMalformedError`})}},p=class extends n{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:`OffchainLookupSenderMismatchError`})}},m=`0x556f1830`,h={name:`OffchainLookup`,type:`error`,inputs:[{name:`sender`,type:`address`},{name:`urls`,type:`string[]`},{name:`callData`,type:`bytes`},{name:`callbackFunction`,type:`bytes4`},{name:`extraData`,type:`bytes`}]};async function g(e,{blockNumber:n,blockTag:r,data:o,to:c}){let{args:f}=t({data:o,abi:[h]}),[m,g,v,y,b]=f,{ccipRead:x}=e,S=x&&typeof x?.request==`function`?x.request:_;try{if(!i(c,m))throw new p({sender:m,to:c});let{data:t}=await s(e,{blockNumber:n,blockTag:r,data:u([y,a([{type:`bytes`},{type:`bytes`}],[g.includes(`x-batch-gateway:true`)?await l({data:v,ccipRequest:S}):await S({data:v,sender:m,urls:g}),b])]),to:c});return t}catch(e){throw new d({callbackSelector:y,cause:e,data:o,extraData:b,sender:m,urls:g})}}async function _({data:t,sender:n,urls:i}){let a=Error(`An unknown error occurred.`);for(let o=0;o<i.length;o++){let s=i[o],l=s.includes(`{data}`)?`GET`:`POST`,u=l===`POST`?{data:t,sender:n}:void 0,d=l===`POST`?{"Content-Type":`application/json`}:{};try{let i=await fetch(s.replace(`{sender}`,n.toLowerCase()).replace(`{data}`,t),{body:JSON.stringify(u),headers:d,method:l}),o;if(o=i.headers.get(`Content-Type`)?.startsWith(`application/json`)?(await i.json()).data:await i.text(),!i.ok){a=new e({body:u,details:o?.error?c(o.error):i.statusText,headers:i.headers,status:i.status,url:s});continue}if(!r(o)){a=new f({result:o,url:s});continue}return o}catch(t){a=new e({body:u,details:t.message,url:s})}}throw a}export{g as offchainLookup,m as offchainLookupSignature};
|