(function(kt,Ke){typeof exports=="object"&&typeof module<"u"?module.exports=Ke():typeof define=="function"&&define.amd?define(Ke):(kt=typeof globalThis<"u"?globalThis:kt||self,kt.offers_block=Ke())})(this,(function(){"use strict";var Ke=Array.isArray,si=Array.prototype.indexOf,sn=Array.from,ii=Object.defineProperty,ut=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyDescriptors,oi=Object.prototype,ai=Array.prototype,on=Object.getPrototypeOf,Jn=Object.isExtensible;function ui(e){return e()}function an(e){for(var t=0;t{e=r,t=s});return{promise:n,resolve:e,reject:t}}const N=2,Gn=4,Dt=8,me=16,ye=32,ke=64,Nt=128,ue=512,M=1024,W=2048,ge=4096,G=8192,De=16384,un=32768,Ne=65536,Xn=1<<17,Yn=1<<18,ze=1<<19,Zn=1<<20,Me=32768,ln=1<<21,cn=1<<22,Oe=1<<23,lt=Symbol("$state"),li=Symbol(""),$e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function fn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ci(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function fi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function di(e){throw new Error("https://svelte.dev/e/effect_orphan")}function pi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function yi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function gi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const _i=1,bi=2,wi=16,Ei=2,j=Symbol(),Si="http://www.w3.org/1999/xhtml";function Oi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function er(e){return e===this.v}function Ri(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!Ri(e,this.v)}let ct=!1,zu=!1;function Ci(){ct=!0}let A=null;function Ve(e){A=e}function nr(e){return rr().get(e)}function Ti(e,t){return rr().set(e,t),t}function ft(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:ct&&!t?{s:null,u:null,$:[]}:null}}function ht(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)wr(r)}return t.i=!0,A=t.p,{}}function dt(){return!ct||A!==null&&A.l===null}function rr(e){return A===null&&fn(),A.c??=new Map(xi(A)||void 0)}function xi(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let Je=[];function Ai(){var e=Je;Je=[],an(e)}function hn(e){if(Je.length===0){var t=Je;queueMicrotask(()=>{t===Je&&Ai()})}Je.push(e)}function sr(e){var t=x;if(t===null)return C.f|=Oe,e;if((t.f&un)===0){if((t.f&Nt)===0)throw e;t.b.error(e)}else We(e,t)}function We(e,t){for(;t!==null;){if((t.f&Nt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Mt=new Set;let D=null,X=null,Re=[],dn=null,pn=!1;class fe{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#s=0;#r=null;#a=[];#o=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#s>0}process(t){Re=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#c(),this.is_deferred()?(this.#u(n.effects),this.#u(n.render_effects),this.#u(n.block_effects)):(D=null,ir(n.render_effects),ir(n.effects),this.#r?.resolve()),X=null}#i(t,n){t.f^=M;for(var r=t.first;r!==null;){var s=r.f,i=(s&(ye|ke))!==0,o=i&&(s&M)!==0,a=o||(s&G)!==0||this.skipped_effects.has(r);if((r.f&Nt)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!a&&r.fn!==null){i?r.f^=M:(s&Gn)!==0?n.effects.push(r):_t(r)&&((r.f&me)!==0&&n.block_effects.push(r),bt(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#u(n.effects),this.#u(n.render_effects),this.#u(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#u(t){for(const n of t)((n.f&W)!==0?this.#a:this.#o).push(n),this.#l(n.deps),U(n,M)}#l(t){if(t!==null)for(const n of t)(n.f&N)===0||(n.f&Me)===0||(n.f^=Me,this.#l(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&Oe)===0&&(this.current.set(t,t.v),X?.set(t,t.v))}activate(){D=this,this.apply()}deactivate(){D===this&&(D=null,X=null)}flush(){if(this.activate(),Re.length>0){if(Pi(),D!==null&&D!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#c(){if(this.#s===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#f()}#f(){if(Mt.size>1){this.previous.clear();var t=X,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Mt){if(s===this){n=!1;continue}const i=[];for(const[a,l]of this.current){if(s.current.has(a))if(n&&l!==s.current.get(a))s.current.set(a,l);else continue;i.push(a)}if(i.length===0)continue;const o=[...s.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){const a=new Set,l=new Map;for(const u of i)or(u,o,a,l);if(Re.length>0){D=s,s.apply();for(const u of Re)s.#i(u,r);Re=[],s.deactivate()}}}D=null,X=t}this.committed=!0,Mt.delete(this)}increment(t){this.#n+=1,t&&(this.#s+=1)}decrement(t){this.#n-=1,t&&(this.#s-=1),this.revive()}revive(){for(const t of this.#a)U(t,W),je(t);for(const t of this.#o)U(t,ge),je(t);this.#a=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#r??=Wn()).promise}static ensure(){if(D===null){const t=D=new fe;Mt.add(D),fe.enqueue(()=>{D===t&&t.flush()})}return D}static enqueue(t){hn(t)}apply(){}}function Pi(){var e=Le;pn=!0;try{var t=0;for(Ar(!0);Re.length>0;){var n=fe.ensure();if(t++>1e3){var r,s;Fi()}n.process(Re),Ce.clear()}}finally{pn=!1,Ar(e),dn=null}}function Fi(){try{pi()}catch(e){We(e,dn)}}let _e=null;function ir(e){var t=e.length;if(t!==0){for(var n=0;n0)){Ce.clear();for(const s of _e){if((s.f&(De|G))!==0)continue;const i=[s];let o=s.parent;for(;o!==null;)_e.has(o)&&(_e.delete(o),i.push(o)),o=o.parent;for(let a=i.length-1;a>=0;a--){const l=i[a];(l.f&(De|G))===0&&bt(l)}}_e.clear()}}_e=null}}function or(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&N)!==0?or(s,t,n,r):(i&(cn|me))!==0&&(i&W)===0&&ar(s,t,r)&&(U(s,W),je(s))}}function ar(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&N)!==0&&ar(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function je(e){for(var t=dn=e;t.parent!==null;){t=t.parent;var n=t.f;if(pn&&t===x&&(n&me)!==0&&(n&Yn)===0)return;if((n&(ke|ye))!==0){if((n&M)===0)return;t.f^=M}}Re.push(t)}function ki(e){let t=0,n=Te(0),r;return()=>{Lt()&&(_(n),Ji(()=>(t===0&&(r=Ze(()=>e(()=>xe(n)))),t+=1,()=>{hn(()=>{t-=1,t===0&&(r?.(),r=void 0,xe(n))})})))}}var Di=Ne|ze|Nt;function Ni(e,t,n){new Mi(e,t,n)}class Mi{parent;#t=!1;#e;#n=null;#s;#r;#a;#o=null;#i=null;#u=null;#l=null;#c=null;#f=0;#h=0;#d=!1;#p=null;#v=ki(()=>(this.#p=Te(this.#f),()=>{this.#p=null}));constructor(t,n,r){this.#e=t,this.#s=n,this.#r=r,this.parent=x.b,this.#t=!!this.#s.pending,this.#a=qt(()=>{x.b=this;{var s=this.#g();try{this.#o=ee(()=>r(s))}catch(i){this.error(i)}this.#h>0?this.#y():this.#t=!1}return()=>{this.#c?.remove()}},Di)}#b(){try{this.#o=ee(()=>this.#r(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#s.pending;t&&(this.#i=ee(()=>t(this.#e)),fe.enqueue(()=>{var n=this.#g();this.#o=this.#m(()=>(fe.ensure(),ee(()=>this.#r(n)))),this.#h>0?this.#y():(Xe(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#c=Ae(),this.#e.before(this.#c),t=this.#c),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#s.pending}#m(t){var n=x,r=C,s=A;de(this.#a),z(this.#a),Ve(this.#a.ctx);try{return t()}catch(i){return sr(i),null}finally{de(n),z(r),Ve(s)}}#y(){const t=this.#s.pending;this.#o!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#c),xr(this.#o,this.#l)),this.#i===null&&(this.#i=ee(()=>t(this.#e)))}#_(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t);return}this.#h+=t,this.#h===0&&(this.#t=!1,this.#i&&Xe(this.#i,()=>{this.#i=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#_(t),this.#f+=t,this.#p&&pt(this.#p,this.#f)}get_effect_pending(){return this.#v(),_(this.#p)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(this.#d||!n&&!r)throw t;this.#o&&(K(this.#o),this.#o=null),this.#i&&(K(this.#i),this.#i=null),this.#u&&(K(this.#u),this.#u=null);var s=!1,i=!1;const o=()=>{if(s){Oi();return}s=!0,i&&gi(),fe.ensure(),this.#f=0,this.#u!==null&&Xe(this.#u,()=>{this.#u=null}),this.#t=this.has_pending_snippet(),this.#o=this.#m(()=>(this.#d=!1,ee(()=>this.#r(this.#e)))),this.#h>0?this.#y():this.#t=!1};var a=C;try{z(null),i=!0,n?.(t,o),i=!1}catch(l){We(l,this.#a&&this.#a.parent)}finally{z(a)}r&&hn(()=>{this.#u=this.#m(()=>{fe.ensure(),this.#d=!0;try{return ee(()=>{r(this.#e,()=>t,()=>o)})}catch(l){return We(l,this.#a.parent),null}finally{this.#d=!1}})})}}function ji(e,t,n,r){const s=dt()?Ut:lr;if(n.length===0&&e.length===0){r(t.map(s));return}var i=D,o=x,a=Ui();function l(){Promise.all(n.map(u=>Li(u))).then(u=>{a();try{r([...t.map(s),...u])}catch(c){(o.f&De)===0&&We(c,o)}i?.deactivate(),jt()}).catch(u=>{We(u,o)})}e.length>0?Promise.all(e).then(()=>{a();try{return l()}finally{i?.deactivate(),jt()}}):l()}function Ui(){var e=x,t=C,n=A,r=D;return function(i=!0){de(e),z(t),Ve(n),i&&r?.activate()}}function jt(){de(null),z(null),Ve(null)}function Ut(e){var t=N|W,n=C!==null&&(C.f&N)!==0?C:null;return x!==null&&(x.f|=ze),{ctx:A,deps:null,effects:null,equals:er,f:t,fn:e,reactions:null,rv:0,v:j,wv:0,parent:n??x,ac:null}}function Li(e,t){let n=x;n===null&&ci();var r=n.b,s=void 0,i=Te(j),o=!C,a=new Map;return Vi(()=>{var l=Wn();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===D&&u.committed&&u.deactivate(),jt()})}catch(h){l.reject(h),jt()}var u=D;if(o){var c=!r.is_pending();r.update_pending_count(1),u.increment(c),a.get(u)?.reject($e),a.delete(u),a.set(u,l)}const p=(h,y=void 0)=>{if(u.activate(),y)y!==$e&&(i.f|=Oe,pt(i,y));else{(i.f&Oe)!==0&&(i.f^=Oe),pt(i,h);for(const[d,v]of a){if(a.delete(d),d===u)break;v.reject($e)}}o&&(r.update_pending_count(-1),u.decrement(c))};l.promise.then(p,h=>p(null,h||"unknown"))}),zi(()=>{for(const l of a.values())l.reject($e)}),new Promise(l=>{function u(c){function p(){c===s?l(i):u(s)}c.then(p,p)}u(s)})}function ur(e){const t=Ut(e);return Fr(t),t}function lr(e){const t=Ut(e);return t.equals=tr,t}function cr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n0&&!hr&&Bi()}return t}function Bi(){hr=!1;const e=Array.from(mn);for(const t of e)(t.f&M)!==0&&U(t,ge),_t(t)&&bt(t);mn.clear()}function xe(e){q(e,e.v+1)}function dr(e,t){var n=e.reactions;if(n!==null)for(var r=dt(),s=n.length,i=0;i{if(Ee===i)return a();var l=C,u=Ee;z(null),Dr(i);var c=a();return z(l),Dr(u),c};return r&&n.set("length",Q(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&vi();var c=n.get(l);return c===void 0?c=o(()=>{var p=Q(u.value);return n.set(l,p),p}):q(c,u.value,!0),!0},deleteProperty(a,l){var u=n.get(l);if(u===void 0){if(l in a){const c=o(()=>Q(j));n.set(l,c),xe(s)}}else q(u,j),xe(s);return!0},get(a,l,u){if(l===lt)return e;var c=n.get(l),p=l in a;if(c===void 0&&(!p||ut(a,l)?.writable)&&(c=o(()=>{var y=Ge(p?a[l]:j),d=Q(y);return d}),n.set(l,c)),c!==void 0){var h=_(c);return h===j?void 0:h}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var c=n.get(l);c&&(u.value=_(c))}else if(u===void 0){var p=n.get(l),h=p?.v;if(p!==void 0&&h!==j)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,l){if(l===lt)return!0;var u=n.get(l),c=u!==void 0&&u.v!==j||Reflect.has(a,l);if(u!==void 0||x!==null&&(!c||ut(a,l)?.writable)){u===void 0&&(u=o(()=>{var h=c?Ge(a[l]):j,y=Q(h);return y}),n.set(l,u));var p=_(u);if(p===j)return!1}return c},set(a,l,u,c){var p=n.get(l),h=l in a;if(r&&l==="length")for(var y=u;yQ(j)),n.set(y+"",d))}if(p===void 0)(!h||ut(a,l)?.writable)&&(p=o(()=>Q(void 0)),q(p,Ge(u)),n.set(l,p));else{h=p.v!==j;var v=o(()=>Ge(u));q(p,v)}var m=Reflect.getOwnPropertyDescriptor(a,l);if(m?.set&&m.set.call(c,u),!h){if(r&&typeof l=="string"){var g=n.get("length"),b=Number(l);Number.isInteger(b)&&b>=g.v&&q(g,b+1)}xe(s)}return!0},ownKeys(a){_(s);var l=Reflect.ownKeys(a).filter(p=>{var h=n.get(p);return h===void 0||h.v!==j});for(var[u,c]of n)c.v!==j&&!(u in a)&&l.push(u);return l},setPrototypeOf(){mi()}})}var pr,vr,mr,yr;function Hi(){if(pr===void 0){pr=window,vr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;mr=ut(t,"firstChild").get,yr=ut(t,"nextSibling").get,Jn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Jn(n)&&(n.__t=void 0)}}function Ae(e=""){return document.createTextNode(e)}function yn(e){return mr.call(e)}function vt(e){return yr.call(e)}function Z(e,t){return yn(e)}function mt(e,t=!1){{var n=yn(e);return n instanceof Comment&&n.data===""?vt(n):n}}function Ue(e,t=1,n=!1){let r=e;for(;t--;)r=vt(r);return r}function Qi(e){e.textContent=""}function gr(){return!1}function _r(e){var t=C,n=x;z(null),de(null);try{return e()}finally{z(t),de(n)}}function br(e){x===null&&(C===null&&di(),hi()),Ye&&fi()}function Ki(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function be(e,t,n){var r=x;r!==null&&(r.f&G)!==0&&(e|=G);var s={ctx:A,deps:null,nodes_start:null,nodes_end:null,f:e|W|ue,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{bt(s),s.f|=un}catch(a){throw K(s),a}else t!==null&&je(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&ze)===0&&(i=i.first,(e&me)!==0&&(e&Ne)!==0&&i!==null&&(i.f|=Ne)),i!==null&&(i.parent=r,r!==null&&Ki(i,r),C!==null&&(C.f&N)!==0&&(e&ke)===0)){var o=C;(o.effects??=[]).push(i)}return s}function Lt(){return C!==null&&!he}function zi(e){const t=be(Dt,null,!1);return U(t,M),t.teardown=e,t}function yt(e){br();var t=x.f,n=!C&&(t&ye)!==0&&(t&un)===0;if(n){var r=A;(r.e??=[]).push(e)}else return wr(e)}function wr(e){return be(Gn|Zn,e,!1)}function Er(e){return br(),be(Dt|Zn,e,!0)}function $i(e){fe.ensure();const t=be(ke|ze,e,!0);return(n={})=>new Promise(r=>{n.outro?Xe(t,()=>{K(t),r(void 0)}):(K(t),r(void 0))})}function Vi(e){return be(cn|ze,e,!0)}function Ji(e,t=0){return be(Dt|t,e,!0)}function It(e,t=[],n=[],r=[]){ji(r,t,n,s=>{be(Dt,()=>e(...s.map(_)),!0)})}function qt(e,t=0){var n=be(me|t,e,!0);return n}function ee(e){return be(ye|ze,e,!0)}function Sr(e){var t=e.teardown;if(t!==null){const n=Ye,r=C;Pr(!0),z(null);try{t.call(null)}finally{Pr(n),z(r)}}}function Or(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&_r(()=>{s.abort($e)});var r=n.next;(n.f&ke)!==0?n.parent=null:K(n,t),n=r}}function Wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ye)===0&&K(t),t=n}}function K(e,t=!0){var n=!1;(t||(e.f&Yn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Gi(e.nodes_start,e.nodes_end),n=!0),Or(e,t&&!n),Bt(e,0),U(e,De);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Sr(e);var s=e.parent;s!==null&&s.first!==null&&Rr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Gi(e,t){for(;e!==null;){var n=e===t?null:vt(e);e.remove(),e=n}}function Rr(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 Xe(e,t,n=!0){var r=[];gn(e,r,!0),Cr(r,()=>{n&&K(e),t&&t()})}function Cr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function gn(e,t,n){if((e.f&G)===0){if(e.f^=G,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&Ne)!==0||(r.f&ye)!==0&&(e.f&me)!==0;gn(r,t,i?n:!1),r=s}}}function _n(e){Tr(e,!0)}function Tr(e,t){if((e.f&G)!==0){e.f^=G,(e.f&M)===0&&(U(e,W),je(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ne)!==0||(n.f&ye)!==0;Tr(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function xr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:vt(n);t.append(n),n=s}}let Le=!1;function Ar(e){Le=e}let Ye=!1;function Pr(e){Ye=e}let C=null,he=!1;function z(e){C=e}let x=null;function de(e){x=e}let we=null;function Fr(e){C!==null&&(we===null?we=[e]:we.push(e))}let B=null,Y=0,te=null;function Xi(e){te=e}let kr=1,gt=0,Ee=gt;function Dr(e){Ee=e}function Nr(){return++kr}function _t(e){var t=e.f;if((t&W)!==0)return!0;if(t&N&&(e.f&=~Me),(t&ge)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;se.wv)return!0}(t&ue)!==0&&X===null&&U(e,M)}return!1}function Mr(e,t,n=!0){var r=e.reactions;if(r!==null&&!we?.includes(e))for(var s=0;s{e.ac.abort($e)}),e.ac=null);try{e.f|=ln;var c=e.fn,p=c(),h=e.deps;if(B!==null){var y;if(Bt(e,Y),h!==null&&Y>0)for(h.length=Y+B.length,y=0;y{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,z(c),de(p)}}}function so(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("",""),t.content}function Br(e,t){var n=x;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Se(e,t){var n=(t&Ei)!==0,r,s=!e.startsWith("");return()=>{r===void 0&&(r=so(s?e:""+e),r=yn(r));var i=n||vr?document.importNode(r,!0):r.cloneNode(!0);return Br(i,i),i}}function wt(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ae();return e.append(t,n),Br(t,n),e}function $(e,t){e!==null&&e.before(t)}function Et(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function io(e,t){return oo(e,t)}const et=new Map;function oo(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:o=!0}){Hi();var a=new Set,l=p=>{for(var h=0;h{var p=n??t.appendChild(Ae());return Ni(p,{pending:()=>{}},h=>{if(i){ft({});var y=A;y.c=i}s&&(r.$$events=s),u=e(h,r)||{},i&&ht()}),()=>{for(var h of a){t.removeEventListener(h,Ht);var y=et.get(h);--y===0?(document.removeEventListener(h,Ht),et.delete(h)):et.set(h,y)}wn.delete(l),p!==n&&p.parentNode?.removeChild(p)}});return ao.set(u,c),u}let ao=new WeakMap;class Hr{anchor;#t=new Map;#e=new Map;#n=new Map;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=()=>{var t=D;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)_n(r);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,o]of this.#t){if(this.#t.delete(i),i===t)break;const a=this.#n.get(o);a&&(K(a.effect),this.#n.delete(o))}for(const[i,o]of this.#e){if(i===n)continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var u=document.createDocumentFragment();xr(o,u),u.append(Ae()),this.#n.set(i,{effect:o,fragment:u})}else K(o);this.#e.delete(i)};this.#s||!r?Xe(o,a,!1):a()}}};#a=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(K(s.effect),this.#n.delete(r))};ensure(t,n){var r=D,s=gr();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),o=Ae();i.append(o),this.#n.set(t,{effect:ee(()=>n(o)),fragment:i})}else this.#e.set(t,ee(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[a,l]of this.#e)a===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[a,l]of this.#n)a===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#r),r.ondiscard(this.#a)}else this.#r()}}function Ie(e,t,n=!1){var r=new Hr(e),s=n?Ne:0;function i(o,a){r.ensure(o,a)}qt(()=>{var o=!1;t((a,l=!0)=>{o=!0,i(l,a)}),o||i(!1,null)},s)}function uo(e,t){return t}function lo(e,t,n){for(var r=[],s=t.length,i=0;i{var o=r.length===0&&n!==null;if(o){var a=n,l=a.parentNode;Qi(l),l.append(a),e.items.clear(),pe(e,t[0].prev,t[s-1].next)}for(var u=0;u{var v=n();return Ke(v)?v:v==null?[]:sn(v)}),p,h=!0;function y(){fo(d,p,a,o,t,r),u!==null&&(p.length===0?(u.fragment?(o.before(u.fragment),u.fragment=null):_n(u.effect),d.first=u.effect):Xe(u.effect,()=>{u=null}))}var d=qt(()=>{p=_(c);for(var v=p.length,m=new Set,g=D,b=null,w=gr(),O=0;Oi(o))};else{var R=document.createDocumentFragment(),k=Ae();R.append(k),u={fragment:R,effect:ee(()=>i(k))}}for(const[H,ce]of a.items)m.has(H)||g.skipped_effects.add(ce.e);h||(w?(g.oncommit(y),g.ondiscard(()=>{})):y()),_(c)});h=!1}function fo(e,t,n,r,s,i){var o=t.length,a=n.items,l=n.first,u,c=null,p=[],h=[],y,d,v,m;for(m=0;m0){var R=o===0?r:null;lo(n,F,R)}}e.first=n.first&&n.first.e,e.last=c&&c.e,c&&(c.e.next=null)}function ho(e,t,n,r,s,i,o,a){var l=(o&_i)!==0,u=(o&wi)===0,c=l?u?qi(n,!1,!1):Te(n):n,p=(o&bi)===0?s:Te(s),h={i:p,v:c,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var y=document.createDocumentFragment();y.append(e=Ae())}return h.e=ee(()=>i(e,c,p,a)),h.e.prev=t&&t.e,t!==null&&(t.next=h,t.e.next=h.e),h}finally{}}function En(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var o=vt(i);s.before(i),i=o}}function pe(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function po(e,t,...n){var r=new Hr(e);qt(()=>{const s=t()??null;r.ensure(s,s&&(i=>s(i,...n)))},Ne)}const Qr=[...` \r\f \v\uFEFF`];function vo(e,t,n){var r=""+e;if(n){for(var s in n)if(n[s])r=r?r+" "+s:s;else if(r.length)for(var i=s.length,o=0;(o=r.indexOf(s,o))>=0;){var a=o+i;(o===0||Qr.includes(r[o-1]))&&(a===r.length||Qr.includes(r[a]))?r=(o===0?"":r.substring(0,o))+r.substring(a+1):o=a}}return r===""?null:r}function mo(e,t,n,r,s,i){var o=e.__className;if(o!==n||o===void 0){var a=vo(n,r,i);a==null?e.removeAttribute("class"):e.className=a,e.__className=n}else if(i&&s!==i)for(var l in i){var u=!!i[l];(s==null||u!==!!s[l])&&e.classList.toggle(l,u)}return i}const yo=Symbol("is custom element"),go=Symbol("is html");function St(e,t,n,r){var s=_o(e);s[t]!==(s[t]=n)&&(t==="loading"&&(e[li]=n),n==null?e.removeAttribute(t):typeof n!="string"&&bo(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _o(e){return e.__attributes??={[yo]:e.nodeName.includes("-"),[go]:e.namespaceURI===Si}}var Kr=new Map;function bo(e){var t=e.getAttribute("is")||e.nodeName,n=Kr.get(t);if(n)return n;Kr.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Vn(s);for(var o in r)r[o].set&&n.push(o);s=on(s)}return n}function zr(e=!1){const t=A,n=t.l.u;if(!n)return;let r=()=>eo(t.s);if(e){let s=0,i={};const o=Ut(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==i[u]&&(i[u]=l[u],a=!0);return a&&s++,s});r=()=>_(o)}n.b.length&&Er(()=>{$r(t,r),an(n.b)}),yt(()=>{const s=Ze(()=>n.m.map(ui));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&yt(()=>{$r(t,r),an(n.a)})}function $r(e,t){if(e.l.s)for(const n of e.l.s)_(n);t()}function wo(e,t,n,r){var s=r,i=!0,o=()=>(i&&(i=!1,s=Ze(r)),s),a;a=e[t],a===void 0&&r!==void 0&&(a=o());var l;return l=()=>{var u=e[t];return u===void 0?o():(i=!0,u)},l}function Vr(e){A===null&&fn(),ct&&A.l!==null?So(A).m.push(e):yt(()=>{const t=Ze(e);if(typeof t=="function")return t})}function Eo(e){A===null&&fn(),Vr(()=>()=>Ze(e))}function So(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Oo="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Oo),Ci();var Ot=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ro={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Co=class{#t=Ro;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},qe=new Co;function To(e){setTimeout(e,0)}var tt=typeof window>"u"||"Deno"in globalThis;function ne(){}function xo(e,t){return typeof e=="function"?e(t):e}function Sn(e){return typeof e=="number"&&e>=0&&e!==1/0}function Jr(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pe(e,t){return typeof e=="function"?e(t):e}function re(e,t){return typeof e=="function"?e(t):e}function Wr(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(o){if(r){if(t.queryHash!==On(o,t.options))return!1}else if(!Ct(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||s&&s!==t.state.fetchStatus||i&&!i(t))}function Gr(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Rt(t.options.mutationKey)!==Rt(i))return!1}else if(!Ct(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function On(e,t){return(t?.queryKeyHashFn||Rt)(e)}function Rt(e){return JSON.stringify(e,(t,n)=>Cn(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function Ct(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ct(e[n],t[n])):!1}var Ao=Object.prototype.hasOwnProperty;function Xr(e,t){if(e===t)return e;const n=Yr(e)&&Yr(t);if(!n&&!(Cn(e)&&Cn(t)))return t;const s=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),o=i.length,a=n?new Array(o):{};let l=0;for(let u=0;u{qe.setTimeout(t,e)})}function Tn(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Xr(e,t):t}function Fo(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ko(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var xn=Symbol();function es(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===xn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Do=class extends Ot{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!tt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},An=new Do;function Pn(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}var No=To;function Mo(){let e=[],t=0,n=a=>{a()},r=a=>{a()},s=No;const i=a=>{t?e.push(a):s(()=>{n(a)})},o=()=>{const a=e;e=[],a.length&&s(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{s=a}}}var L=Mo(),jo=class extends Ot{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!tt&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Qt=new jo;function Uo(e){return Math.min(1e3*2**e,3e4)}function ts(e){return(e??"online")==="online"?Qt.isOnline():!0}var Fn=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ns(e){let t=!1,n=0,r;const s=Pn(),i=()=>s.status!=="pending",o=v=>{if(!i()){const m=new Fn(v);h(m),e.onCancel?.(m)}},a=()=>{t=!0},l=()=>{t=!1},u=()=>An.isFocused()&&(e.networkMode==="always"||Qt.isOnline())&&e.canRun(),c=()=>ts(e.networkMode)&&e.canRun(),p=v=>{i()||(r?.(),s.resolve(v))},h=v=>{i()||(r?.(),s.reject(v))},y=()=>new Promise(v=>{r=m=>{(i()||u())&&v(m)},e.onPause?.()}).then(()=>{r=void 0,i()||e.onContinue?.()}),d=()=>{if(i())return;let v;const m=n===0?e.initialPromise:void 0;try{v=m??e.fn()}catch(g){v=Promise.reject(g)}Promise.resolve(v).then(p).catch(g=>{if(i())return;const b=e.retry??(tt?0:3),w=e.retryDelay??Uo,O=typeof w=="function"?w(n,g):w,T=b===!0||typeof b=="number"&&nu()?void 0:y()).then(()=>{t?h(g):d()})})};return{promise:s,status:()=>s.status,cancel:o,continue:()=>(r?.(),s),cancelRetry:a,continueRetry:l,canStart:c,start:()=>(c()?d():y().then(d),s)}}var rs=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Sn(this.gcTime)&&(this.#t=qe.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(tt?1/0:300*1e3))}clearGcTimeout(){this.#t&&(qe.clearTimeout(this.#t),this.#t=void 0)}},Lo=class extends rs{#t;#e;#n;#s;#r;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=os(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=os(this.options);t.data!==void 0&&(this.setState(is(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Tn(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(ne).catch(ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>re(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Pe(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Jr(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#o?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const n=new AbortController,r=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},s=()=>{const a=es(this.options,t),u=(()=>{const c={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(c),c})();return this.#o=!1,this.options.persister?this.options.persister(a,u,this):a(u)},o=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:s};return r(a),a})();this.options.behavior?.onFetch(o,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#i({type:"fetch",meta:o.fetchOptions?.meta}),this.#r=ns({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:a=>{a instanceof Fn&&a.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const a=await this.#r.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#n.config.onSuccess?.(a,this),this.#n.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof Fn){if(a.silent)return this.#r.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#n.config.onError?.(a,this),this.#n.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...ss(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...is(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const s=e.error;return{...n,error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),L.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function ss(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ts(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function is(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function os(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Io=class extends Ot{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=Pn(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#s=void 0;#r;#a;#o;#i;#u;#l;#c;#f;#h;#d;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),as(this.#e,this.options)?this.#v():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kn(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kn(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#_(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof re(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#E(),this.#e.setOptions(this.options),t._defaulted&&!Rn(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&us(this.#e,n,this.options,t)&&this.#v(),this.updateResult(),r&&(this.#e!==n||re(this.options.enabled,this.#e)!==re(t.enabled,this.#e)||Pe(this.options.staleTime,this.#e)!==Pe(t.staleTime,this.#e))&&this.#b();const s=this.#w();r&&(this.#e!==n||re(this.options.enabled,this.#e)!==re(t.enabled,this.#e)||s!==this.#d)&&this.#g(s)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return Bo(this,n)&&(this.#s=n,this.#a=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#v({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#v(e){this.#E();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ne)),t}#b(){this.#y();const e=Pe(this.options.staleTime,this.#e);if(tt||this.#s.isStale||!Sn(e))return;const n=Jr(this.#s.dataUpdatedAt,e)+1;this.#f=qe.setTimeout(()=>{this.#s.isStale||this.updateResult()},n)}#w(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(e){this.#_(),this.#d=e,!(tt||re(this.options.enabled,this.#e)===!1||!Sn(this.#d)||this.#d===0)&&(this.#h=qe.setInterval(()=>{(this.options.refetchIntervalInBackground||An.isFocused())&&this.#v()},this.#d))}#m(){this.#b(),this.#g(this.#w())}#y(){this.#f&&(qe.clearTimeout(this.#f),this.#f=void 0)}#_(){this.#h&&(qe.clearInterval(this.#h),this.#h=void 0)}createResult(e,t){const n=this.#e,r=this.options,s=this.#s,i=this.#r,o=this.#a,l=e!==n?e.state:this.#n,{state:u}=e;let c={...u},p=!1,h;if(t._optimisticResults){const R=this.hasListeners(),k=!R&&as(e,t),H=R&&us(e,n,t,r);(k||H)&&(c={...c,...ss(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:y,errorUpdatedAt:d,status:v}=c;h=c.data;let m=!1;if(t.placeholderData!==void 0&&h===void 0&&v==="pending"){let R;s?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(R=s.data,m=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,R!==void 0&&(v="success",h=Tn(s?.data,R,t),p=!0)}if(t.select&&h!==void 0&&!m)if(s&&h===i?.data&&t.select===this.#u)h=this.#l;else try{this.#u=t.select,h=t.select(h),h=Tn(s?.data,h,t),this.#l=h,this.#i=null}catch(R){this.#i=R}this.#i&&(y=this.#i,h=this.#l,d=Date.now(),v="error");const g=c.fetchStatus==="fetching",b=v==="pending",w=v==="error",O=b&&g,T=h!==void 0,S={status:v,fetchStatus:c.fetchStatus,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:O,isLoading:O,data:h,dataUpdatedAt:c.dataUpdatedAt,error:y,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!b,isLoadingError:w&&!T,isPaused:c.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:w&&T,isStale:Dn(e,t),refetch:this.refetch,promise:this.#o,isEnabled:re(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const R=ce=>{S.status==="error"?ce.reject(S.error):S.data!==void 0&&ce.resolve(S.data)},k=()=>{const ce=this.#o=S.promise=Pn();R(ce)},H=this.#o;switch(H.status){case"pending":e.queryHash===n.queryHash&&R(H);break;case"fulfilled":(S.status==="error"||S.data!==H.value)&&k();break;case"rejected":(S.status!=="error"||S.error!==H.reason)&&k();break}}return S}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#a=this.options,this.#r.data!==void 0&&(this.#c=this.#e),Rn(t,e))return;this.#s=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,s=typeof r=="function"?r():r;if(s==="all"||!s&&!this.#p.size)return!0;const i=new Set(s??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#s).some(o=>{const a=o;return this.#s[a]!==e[a]&&i.has(a)})};this.#S({listeners:n()})}#E(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#S(e){L.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qo(e,t){return re(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function as(e,t){return qo(e,t)||e.state.data!==void 0&&kn(e,t,t.refetchOnMount)}function kn(e,t,n){if(re(t.enabled,e)!==!1&&Pe(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Dn(e,t)}return!1}function us(e,t,n,r){return(e!==t||re(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Dn(e,n)}function Dn(e,t){return re(t.enabled,e)!==!1&&e.isStaleByTime(Pe(t.staleTime,e))}function Bo(e,t){return!Rn(e.getCurrentResult(),t)}function ls(e){return{onFetch:(t,n)=>{const r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const p=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},h=es(t.options,t.fetchOptions),y=async(d,v,m)=>{if(c)return Promise.reject();if(v==null&&d.pages.length)return Promise.resolve(d);const b=(()=>{const F={client:t.client,queryKey:t.queryKey,pageParam:v,direction:m?"backward":"forward",meta:t.options.meta};return p(F),F})(),w=await h(b),{maxPages:O}=t.options,T=m?ko:Fo;return{pages:T(d.pages,w,O),pageParams:T(d.pageParams,v,O)}};if(s&&i.length){const d=s==="backward",v=d?Ho:cs,m={pages:i,pageParams:o},g=v(r,m);a=await y(m,g,d)}else{const d=e??i.length;do{const v=l===0?o[0]??r.initialPageParam:cs(r,a);if(l>0&&v==null)break;a=await y(a,v),l++}while(lt.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function cs(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ho(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Qo=class extends rs{#t;#e;#n;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||Ko(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=ns({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(i,o)=>{this.#r({type:"failed",failureCount:i,error:o})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",s=!this.#s.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:s}),await this.#n.config.onMutate?.(e,this,n);const o=await this.options.onMutate?.(e,n);o!==this.state.context&&this.#r({type:"pending",context:o,variables:e,isPaused:s})}const i=await this.#s.start();return await this.#n.config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),this.#r({type:"success",data:i}),i}catch(i){try{throw await this.#n.config.onError?.(i,e,this.state.context,this,n),await this.options.onError?.(i,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,i,e,this.state.context,n),i}finally{this.#r({type:"error",error:i})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),L.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function Ko(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zo=class extends Ot{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new Qo({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Kt(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Kt(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Kt(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Kt(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){L.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Gr(t,n))}findAll(e={}){return this.getAll().filter(t=>Gr(e,t))}notify(e){L.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return L.batch(()=>Promise.all(e.map(t=>t.continue().catch(ne))))}};function Kt(e){return e.options.scope?.id}var $o=class extends Ot{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,s=t.queryHash??On(r,t);let i=this.get(s);return i||(i=new Lo({client:e,queryKey:r,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){L.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Wr(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Wr(e,n)):t}notify(e){L.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){L.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){L.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},fs=class{#t;#e;#n;#s;#r;#a;#o;#i;constructor(e={}){this.#t=e.queryCache||new $o,this.#e=e.mutationCache||new zo,this.#n=e.defaultOptions||{},this.#s=new Map,this.#r=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=An.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Qt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pe(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#t.get(r.queryHash)?.state.data,o=xo(t,i);if(o!==void 0)return this.#t.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return L.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;L.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return L.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=L.batch(()=>this.#t.findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(ne).catch(ne)}invalidateQueries(e,t={}){return L.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=L.batch(()=>this.#t.findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(ne)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ne)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Pe(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ne).catch(ne)}fetchInfiniteQuery(e){return e.behavior=ls(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ne).catch(ne)}ensureInfiniteQueryData(e){return e.behavior=ls(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Qt.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#s.set(Rt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{Ct(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(Rt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Ct(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=On(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}};const hs=Symbol("QueryClient"),Vo=()=>{const e=nr(hs);if(!e)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return e},Jo=e=>{Ti(hs,e)},Wo=Symbol("isRestoring"),Go=()=>{try{return nr(Wo)??{current:!1}}catch{return{current:!1}}};function Xo(){return Go()}function Yo(e){return Vo()}var Zo=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],ea=["difference","intersection","symmetricDifference","union"],ds=!1;class zt extends Set{#t=new Map;#e=Q(0);#n=Q(0);#s=Ee||-1;constructor(t){if(super(),t){for(var n of t)super.add(n);this.#n.v=super.size}ds||this.#a()}#r(t){return Ee===this.#s?Q(t):Te(t)}#a(){ds=!0;var t=zt.prototype,n=Set.prototype;for(const r of Zo)t[r]=function(...s){return _(this.#e),n[r].apply(this,s)};for(const r of ea)t[r]=function(...s){_(this.#e);var i=n[r].apply(this,s);return new zt(i)}}has(t){var n=super.has(t),r=this.#t,s=r.get(t);if(s===void 0){if(!n)return _(this.#e),!1;s=this.#r(!0),r.set(t,s)}return _(s),n}add(t){return super.has(t)||(super.add(t),q(this.#n,super.size),xe(this.#e)),this}delete(t){var n=super.delete(t),r=this.#t,s=r.get(t);return s!==void 0&&(r.delete(t),q(s,!1)),n&&(q(this.#n,super.size),xe(this.#e)),n}clear(){if(super.size!==0){super.clear();var t=this.#t;for(var n of t.values())q(n,!1);t.clear(),q(this.#n,0),xe(this.#e)}}keys(){return this.values()}values(){return _(this.#e),super.values()}entries(){return _(this.#e),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return _(this.#n)}}function ta(e){const t=Array.isArray(e)?[]:{},n=new zt,r=new Proxy(t,{set(i,o,a,l){if(n.delete(o),o in i)return Reflect.set(i,o,a,l);let u=Q(a);return Object.defineProperty(i,o,{configurable:!0,enumerable:!0,get:()=>_(u)&&ra(_(u))?_(u)():_(u),set:c=>{q(u,c)}}),!0},has:(i,o)=>n.has(o)?!1:o in i,ownKeys(i){return Reflect.ownKeys(i).filter(o=>!n.has(o))},getOwnPropertyDescriptor(i,o){if(!n.has(o))return Reflect.getOwnPropertyDescriptor(i,o)},deleteProperty(i,o){return o in i?(i[o]=void 0,n.add(o),Array.isArray(i)&&i.length--,!0):!1}});function s(i){const o=Object.keys(r),a=Object.keys(i),l=o.filter(u=>!a.includes(u));for(const u of l)delete r[u];for(const u of a)r[u]=na(()=>i[u])}return s(e),[r,s]}const ps=Symbol("LazyValue");function na(e){return e[ps]=!0,e}function ra(e){return!!e[ps]}function sa(e,t){switch(e){case"post":yt(t);break;case"pre":Er(t);break}}const Nn=(e,t,n)=>{let r=!1,s=Array.isArray(e)?[]:void 0;sa(t,()=>{const i=Array.isArray(e)?e.map(a=>a()):e();if(!r){r=!0,s=i;return}const o=Ze(()=>n(i,s));return s=i,o})};function ia(e,t,n){const r=ur(()=>Yo()),s=Xo(),i=ur(()=>{const c=_(r).defaultQueryOptions(e());return c._optimisticResults=s.current?"isRestoring":"optimistic",c});let o=Q(Ge(new t(_(r),_(i))));Nn(()=>_(r),"pre",()=>{q(o,new t(_(r),_(i)),!0)});function a(){const c=_(o).getOptimisticResult(_(i));return _(i).notifyOnChangeProps?c:_(o).trackResult(c)}const[l,u]=ta(a());return yt(()=>{const c=s.current?()=>{}:_(o).subscribe(()=>u(a()));return _(o).updateResult(),c}),Nn(()=>_(i),"pre",()=>{_(o).setOptions(_(i))}),Nn(()=>[_(i),_(o)],"pre",()=>{u(a())}),l}function vs(e,t){return ia(e,Io)}function oa(e,t){ft(t,!0);const n=wo(t,"client",19,()=>new fs);Vr(()=>{n().mount()}),Jo(n()),Eo(()=>{n().unmount()});var r=wt(),s=mt(r);po(s,()=>t.children),$(e,r),ht()}function ms(e,t){return function(){return e.apply(t,arguments)}}const{toString:aa}=Object.prototype,{getPrototypeOf:Mn}=Object,{iterator:$t,toStringTag:ys}=Symbol,Vt=(e=>t=>{const n=aa.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),le=e=>(e=e.toLowerCase(),t=>Vt(t)===e),Jt=e=>t=>typeof t===e,{isArray:nt}=Array,rt=Jt("undefined");function Tt(e){return e!==null&&!rt(e)&&e.constructor!==null&&!rt(e.constructor)&&V(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gs=le("ArrayBuffer");function ua(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gs(e.buffer),t}const la=Jt("string"),V=Jt("function"),_s=Jt("number"),xt=e=>e!==null&&typeof e=="object",ca=e=>e===!0||e===!1,Wt=e=>{if(Vt(e)!=="object")return!1;const t=Mn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ys in e)&&!($t in e)},fa=e=>{if(!xt(e)||Tt(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ha=le("Date"),da=le("File"),pa=le("Blob"),va=le("FileList"),ma=e=>xt(e)&&V(e.pipe),ya=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||V(e.append)&&((t=Vt(e))==="formdata"||t==="object"&&V(e.toString)&&e.toString()==="[object FormData]"))},ga=le("URLSearchParams"),[_a,ba,wa,Ea]=["ReadableStream","Request","Response","Headers"].map(le),Sa=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function At(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),nt(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Be=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ws=e=>!rt(e)&&e!==Be;function jn(){const{caseless:e,skipUndefined:t}=ws(this)&&this||{},n={},r=(s,i)=>{const o=e&&bs(n,i)||i;Wt(n[o])&&Wt(s)?n[o]=jn(n[o],s):Wt(s)?n[o]=jn({},s):nt(s)?n[o]=s.slice():(!t||!rt(s))&&(n[o]=s)};for(let s=0,i=arguments.length;s(At(t,(s,i)=>{n&&V(s)?e[i]=ms(s,n):e[i]=s},{allOwnKeys:r}),e),Ra=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ca=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ta=(e,t,n,r)=>{let s,i,o;const a={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)o=s[i],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Mn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xa=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Aa=e=>{if(!e)return null;if(nt(e))return e;let t=e.length;if(!_s(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Pa=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mn(Uint8Array)),Fa=(e,t)=>{const r=(e&&e[$t]).call(e);let s;for(;(s=r.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},ka=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Da=le("HTMLFormElement"),Na=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Es=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ma=le("RegExp"),Ss=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};At(n,(s,i)=>{let o;(o=t(s,i,e))!==!1&&(r[i]=o||s)}),Object.defineProperties(e,r)},ja=e=>{Ss(e,(t,n)=>{if(V(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(V(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ua=(e,t)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return nt(e)?r(e):r(String(e).split(t)),n},La=()=>{},Ia=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qa(e){return!!(e&&V(e.append)&&e[ys]==="FormData"&&e[$t])}const Ba=e=>{const t=new Array(10),n=(r,s)=>{if(xt(r)){if(t.indexOf(r)>=0)return;if(Tt(r))return r;if(!("toJSON"in r)){t[s]=r;const i=nt(r)?[]:{};return At(r,(o,a)=>{const l=n(o,s+1);!rt(l)&&(i[a]=l)}),t[s]=void 0,i}}return r};return n(e,0)},Ha=le("AsyncFunction"),Qa=e=>e&&(xt(e)||V(e))&&V(e.then)&&V(e.catch),Os=((e,t)=>e?setImmediate:t?((n,r)=>(Be.addEventListener("message",({source:s,data:i})=>{s===Be&&i===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Be.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",V(Be.postMessage)),Ka=typeof queueMicrotask<"u"?queueMicrotask.bind(Be):typeof process<"u"&&process.nextTick||Os,f={isArray:nt,isArrayBuffer:gs,isBuffer:Tt,isFormData:ya,isArrayBufferView:ua,isString:la,isNumber:_s,isBoolean:ca,isObject:xt,isPlainObject:Wt,isEmptyObject:fa,isReadableStream:_a,isRequest:ba,isResponse:wa,isHeaders:Ea,isUndefined:rt,isDate:ha,isFile:da,isBlob:pa,isRegExp:Ma,isFunction:V,isStream:ma,isURLSearchParams:ga,isTypedArray:Pa,isFileList:va,forEach:At,merge:jn,extend:Oa,trim:Sa,stripBOM:Ra,inherits:Ca,toFlatObject:Ta,kindOf:Vt,kindOfTest:le,endsWith:xa,toArray:Aa,forEachEntry:Fa,matchAll:ka,isHTMLForm:Da,hasOwnProperty:Es,hasOwnProp:Es,reduceDescriptors:Ss,freezeMethods:ja,toObjectSet:Ua,toCamelCase:Na,noop:La,toFiniteNumber:Ia,findKey:bs,global:Be,isContextDefined:ws,isSpecCompliantForm:qa,toJSONObject:Ba,isAsyncFn:Ha,isThenable:Qa,setImmediate:Os,asap:Ka,isIterable:e=>e!=null&&V(e[$t])};function E(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}f.inherits(E,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:f.toJSONObject(this.config),code:this.code,status:this.status}}});const Rs=E.prototype,Cs={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Cs[e]={value:e}}),Object.defineProperties(E,Cs),Object.defineProperty(Rs,"isAxiosError",{value:!0}),E.from=(e,t,n,r,s,i)=>{const o=Object.create(Rs);f.toFlatObject(e,o,function(c){return c!==Error.prototype},u=>u!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return E.call(o,a,l,n,r,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const za=null;function Un(e){return f.isPlainObject(e)||f.isArray(e)}function Ts(e){return f.endsWith(e,"[]")?e.slice(0,-2):e}function xs(e,t,n){return e?e.concat(t).map(function(s,i){return s=Ts(s),!n&&i?"["+s+"]":s}).join(n?".":""):t}function $a(e){return f.isArray(e)&&!e.some(Un)}const Va=f.toFlatObject(f,{},null,function(t){return/^is[A-Z]/.test(t)});function Gt(e,t,n){if(!f.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=f.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!f.isUndefined(m[v])});const r=n.metaTokens,s=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&f.isSpecCompliantForm(t);if(!f.isFunction(s))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(f.isDate(d))return d.toISOString();if(f.isBoolean(d))return d.toString();if(!l&&f.isBlob(d))throw new E("Blob is not supported. Use a Buffer instead.");return f.isArrayBuffer(d)||f.isTypedArray(d)?l&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,v,m){let g=d;if(d&&!m&&typeof d=="object"){if(f.endsWith(v,"{}"))v=r?v:v.slice(0,-2),d=JSON.stringify(d);else if(f.isArray(d)&&$a(d)||(f.isFileList(d)||f.endsWith(v,"[]"))&&(g=f.toArray(d)))return v=Ts(v),g.forEach(function(w,O){!(f.isUndefined(w)||w===null)&&t.append(o===!0?xs([v],O,i):o===null?v:v+"[]",u(w))}),!1}return Un(d)?!0:(t.append(xs(m,v,i),u(d)),!1)}const p=[],h=Object.assign(Va,{defaultVisitor:c,convertValue:u,isVisitable:Un});function y(d,v){if(!f.isUndefined(d)){if(p.indexOf(d)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(d),f.forEach(d,function(g,b){(!(f.isUndefined(g)||g===null)&&s.call(t,g,f.isString(b)?b.trim():b,v,h))===!0&&y(g,v?v.concat(b):[b])}),p.pop()}}if(!f.isObject(e))throw new TypeError("data must be an object");return y(e),t}function As(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ln(e,t){this._pairs=[],e&&Gt(e,this,t)}const Ps=Ln.prototype;Ps.append=function(t,n){this._pairs.push([t,n])},Ps.toString=function(t){const n=t?function(r){return t.call(this,r,As)}:As;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Ja(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Fs(e,t,n){if(!t)return e;const r=n&&n.encode||Ja;f.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let i;if(s?i=s(t,n):i=f.isURLSearchParams(t)?t.toString():new Ln(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ks{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){f.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Ds={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wa={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Ln,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},In=typeof window<"u"&&typeof document<"u",qn=typeof navigator=="object"&&navigator||void 0,Ga=In&&(!qn||["ReactNative","NativeScript","NS"].indexOf(qn.product)<0),Xa=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ya=In&&window.location.href||"http://localhost",I={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:In,hasStandardBrowserEnv:Ga,hasStandardBrowserWebWorkerEnv:Xa,navigator:qn,origin:Ya},Symbol.toStringTag,{value:"Module"})),...Wa};function Za(e,t){return Gt(e,new I.classes.URLSearchParams,{visitor:function(n,r,s,i){return I.isNode&&f.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function eu(e){return f.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tu(e){const t={},n=Object.keys(e);let r;const s=n.length;let i;for(r=0;r=n.length;return o=!o&&f.isArray(s)?s.length:o,l?(f.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!a):((!s[o]||!f.isObject(s[o]))&&(s[o]=[]),t(n,r,s[o],i)&&f.isArray(s[o])&&(s[o]=tu(s[o])),!a)}if(f.isFormData(e)&&f.isFunction(e.entries)){const n={};return f.forEachEntry(e,(r,s)=>{t(eu(r),s,n,0)}),n}return null}function nu(e,t,n){if(f.isString(e))try{return(t||JSON.parse)(e),f.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Pt={transitional:Ds,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=f.isObject(t);if(i&&f.isHTMLForm(t)&&(t=new FormData(t)),f.isFormData(t))return s?JSON.stringify(Ns(t)):t;if(f.isArrayBuffer(t)||f.isBuffer(t)||f.isStream(t)||f.isFile(t)||f.isBlob(t)||f.isReadableStream(t))return t;if(f.isArrayBufferView(t))return t.buffer;if(f.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Za(t,this.formSerializer).toString();if((a=f.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Gt(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),nu(t)):t}],transformResponse:[function(t){const n=this.transitional||Pt.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(f.isResponse(t)||f.isReadableStream(t))return t;if(t&&f.isString(t)&&(r&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?E.from(a,E.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:I.classes.FormData,Blob:I.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};f.forEach(["delete","get","head","post","put","patch"],e=>{Pt.headers[e]={}});const ru=f.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),su=e=>{const t={};let n,r,s;return e&&e.split(` `).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&ru[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ms=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function Xt(e){return e===!1||e==null?e:f.isArray(e)?e.map(Xt):String(e)}function iu(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const ou=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bn(e,t,n,r,s){if(f.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!f.isString(t)){if(f.isString(r))return t.indexOf(r)!==-1;if(f.isRegExp(r))return r.test(t)}}function au(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function uu(e,t){const n=f.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}let J=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,u){const c=Ft(l);if(!c)throw new Error("header name must be a non-empty string");const p=f.findKey(s,c);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||l]=Xt(a))}const o=(a,l)=>f.forEach(a,(u,c)=>i(u,c,l));if(f.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(f.isString(t)&&(t=t.trim())&&!ou(t))o(su(t),n);else if(f.isObject(t)&&f.isIterable(t)){let a={},l,u;for(const c of t){if(!f.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[u=c[0]]=(l=a[u])?f.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Ft(t),t){const r=f.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return iu(s);if(f.isFunction(n))return n.call(this,s,r);if(f.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ft(t),t){const r=f.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Bn(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=Ft(o),o){const a=f.findKey(r,o);a&&(!n||Bn(r,r[a],a,n))&&(delete r[a],s=!0)}}return f.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Bn(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return f.forEach(this,(s,i)=>{const o=f.findKey(r,i);if(o){n[o]=Xt(s),delete n[i];return}const a=t?au(i):String(i).trim();a!==i&&delete n[i],n[a]=Xt(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return f.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&f.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Ms]=this[Ms]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=Ft(o);r[a]||(uu(s,o),r[a]=!0)}return f.isArray(t)?t.forEach(i):i(t),this}};J.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),f.reduceDescriptors(J.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),f.freezeMethods(J);function Hn(e,t){const n=this||Pt,r=t||n,s=J.from(r.headers);let i=r.data;return f.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function js(e){return!!(e&&e.__CANCEL__)}function st(e,t,n){E.call(this,e??"canceled",E.ERR_CANCELED,t,n),this.name="CanceledError"}f.inherits(st,E,{__CANCEL__:!0});function Us(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new E("Request failed with status code "+n.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function lu(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function cu(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[s]=l,r[s]=u;let p=i,h=0;for(;p!==s;)h+=n[p++],p=p%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),u-o{n=c,s=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const c=Date.now(),p=c-n;p>=r?o(u,c):(s=u,i||(i=setTimeout(()=>{i=null,o(s)},r-p)))},()=>s&&o(s)]}const Yt=(e,t,n=3)=>{let r=0;const s=cu(50,250);return fu(i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,l=o-r,u=s(l),c=o<=a;r=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},n)},Ls=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Is=e=>(...t)=>f.asap(()=>e(...t)),hu=I.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,I.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(I.origin),I.navigator&&/(msie|trident)/i.test(I.navigator.userAgent)):()=>!0,du=I.hasStandardBrowserEnv?{write(e,t,n,r,s,i,o){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];f.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),f.isString(r)&&a.push(`path=${r}`),f.isString(s)&&a.push(`domain=${s}`),i===!0&&a.push("secure"),f.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function pu(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vu(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qs(e,t,n){let r=!pu(t);return e&&(r||n==!1)?vu(e,t):t}const Bs=e=>e instanceof J?{...e}:e;function He(e,t){t=t||{};const n={};function r(u,c,p,h){return f.isPlainObject(u)&&f.isPlainObject(c)?f.merge.call({caseless:h},u,c):f.isPlainObject(c)?f.merge({},c):f.isArray(c)?c.slice():c}function s(u,c,p,h){if(f.isUndefined(c)){if(!f.isUndefined(u))return r(void 0,u,p,h)}else return r(u,c,p,h)}function i(u,c){if(!f.isUndefined(c))return r(void 0,c)}function o(u,c){if(f.isUndefined(c)){if(!f.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,p){if(p in t)return r(u,c);if(p in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c,p)=>s(Bs(u),Bs(c),p,!0)};return f.forEach(Object.keys({...e,...t}),function(c){const p=l[c]||s,h=p(e[c],t[c],c);f.isUndefined(h)&&p!==a||(n[c]=h)}),n}const Hs=e=>{const t=He({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:i,headers:o,auth:a}=t;if(t.headers=o=J.from(o),t.url=Fs(qs(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),f.isFormData(n)){if(I.hasStandardBrowserEnv||I.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(f.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([c,p])=>{u.includes(c.toLowerCase())&&o.set(c,p)})}}if(I.hasStandardBrowserEnv&&(r&&f.isFunction(r)&&(r=r(t)),r||r!==!1&&hu(t.url))){const l=s&&i&&du.read(i);l&&o.set(s,l)}return t},mu=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const s=Hs(e);let i=s.data;const o=J.from(s.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=s,c,p,h,y,d;function v(){y&&y(),d&&d(),s.cancelToken&&s.cancelToken.unsubscribe(c),s.signal&&s.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(s.method.toUpperCase(),s.url,!0),m.timeout=s.timeout;function g(){if(!m)return;const w=J.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),T={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};Us(function(S){n(S),v()},function(S){r(S),v()},T),m=null}"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(g)},m.onabort=function(){m&&(r(new E("Request aborted",E.ECONNABORTED,e,m)),m=null)},m.onerror=function(O){const T=O&&O.message?O.message:"Network Error",F=new E(T,E.ERR_NETWORK,e,m);F.event=O||null,r(F),m=null},m.ontimeout=function(){let O=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Ds;s.timeoutErrorMessage&&(O=s.timeoutErrorMessage),r(new E(O,T.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,e,m)),m=null},i===void 0&&o.setContentType(null),"setRequestHeader"in m&&f.forEach(o.toJSON(),function(O,T){m.setRequestHeader(T,O)}),f.isUndefined(s.withCredentials)||(m.withCredentials=!!s.withCredentials),a&&a!=="json"&&(m.responseType=s.responseType),u&&([h,d]=Yt(u,!0),m.addEventListener("progress",h)),l&&m.upload&&([p,y]=Yt(l),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(c=w=>{m&&(r(!w||w.type?new st(null,e,m):w),m.abort(),m=null)},s.cancelToken&&s.cancelToken.subscribe(c),s.signal&&(s.signal.aborted?c():s.signal.addEventListener("abort",c)));const b=lu(s.url);if(b&&I.protocols.indexOf(b)===-1){r(new E("Unsupported protocol "+b+":",E.ERR_BAD_REQUEST,e));return}m.send(i||null)})},yu=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const i=function(u){if(!s){s=!0,a();const c=u instanceof Error?u:this.reason;r.abort(c instanceof E?c:new st(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,i(new E(`timeout ${t} of ms exceeded`,E.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>f.asap(a),l}},gu=function*(e,t){let n=e.byteLength;if(n{const s=_u(e,t);let i=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await s.next();if(u){a(),l.close();return}let p=c.byteLength;if(n){let h=i+=p;n(h)}l.enqueue(new Uint8Array(c))}catch(u){throw a(u),u}},cancel(l){return a(l),s.return()}},{highWaterMark:2})},Ks=64*1024,{isFunction:Zt}=f,wu=(({Request:e,Response:t})=>({Request:e,Response:t}))(f.global),{ReadableStream:zs,TextEncoder:$s}=f.global,Vs=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Eu=e=>{e=f.merge.call({skipUndefined:!0},wu,e);const{fetch:t,Request:n,Response:r}=e,s=t?Zt(t):typeof fetch=="function",i=Zt(n),o=Zt(r);if(!s)return!1;const a=s&&Zt(zs),l=s&&(typeof $s=="function"?(d=>v=>d.encode(v))(new $s):async d=>new Uint8Array(await new n(d).arrayBuffer())),u=i&&a&&Vs(()=>{let d=!1;const v=new n(I.origin,{body:new zs,method:"POST",get duplex(){return d=!0,"half"}}).headers.has("Content-Type");return d&&!v}),c=o&&a&&Vs(()=>f.isReadableStream(new r("").body)),p={stream:c&&(d=>d.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(d=>{!p[d]&&(p[d]=(v,m)=>{let g=v&&v[d];if(g)return g.call(v);throw new E(`Response type '${d}' is not supported`,E.ERR_NOT_SUPPORT,m)})});const h=async d=>{if(d==null)return 0;if(f.isBlob(d))return d.size;if(f.isSpecCompliantForm(d))return(await new n(I.origin,{method:"POST",body:d}).arrayBuffer()).byteLength;if(f.isArrayBufferView(d)||f.isArrayBuffer(d))return d.byteLength;if(f.isURLSearchParams(d)&&(d=d+""),f.isString(d))return(await l(d)).byteLength},y=async(d,v)=>{const m=f.toFiniteNumber(d.getContentLength());return m??h(v)};return async d=>{let{url:v,method:m,data:g,signal:b,cancelToken:w,timeout:O,onDownloadProgress:T,onUploadProgress:F,responseType:S,headers:R,withCredentials:k="same-origin",fetchOptions:H}=Hs(d),ce=t||fetch;S=S?(S+"").toLowerCase():"text";let it=yu([b,w&&w.toAbortSignal()],O),se=null;const ie=it&&it.unsubscribe&&(()=>{it.unsubscribe()});let nn;try{if(F&&u&&m!=="get"&&m!=="head"&&(nn=await y(R,g))!==0){let Fe=new n(v,{method:"POST",body:g,duplex:"half"}),at;if(f.isFormData(g)&&(at=Fe.headers.get("content-type"))&&R.setContentType(at),Fe.body){const[$n,rn]=Ls(nn,Yt(Is(F)));g=Qs(Fe.body,Ks,$n,rn)}}f.isString(k)||(k=k?"include":"omit");const oe=i&&"credentials"in n.prototype,ot={...H,signal:it,method:m.toUpperCase(),headers:R.normalize().toJSON(),body:g,duplex:"half",credentials:oe?k:void 0};se=i&&new n(v,ot);let ae=await(i?ce(se,H):ce(v,ot));const ti=c&&(S==="stream"||S==="response");if(c&&(T||ti&&ie)){const Fe={};["status","statusText","headers"].forEach(ni=>{Fe[ni]=ae[ni]});const at=f.toFiniteNumber(ae.headers.get("content-length")),[$n,rn]=T&&Ls(at,Yt(Is(T),!0))||[];ae=new r(Qs(ae.body,Ks,$n,()=>{rn&&rn(),ie&&ie()}),Fe)}S=S||"text";let Ku=await p[f.findKey(p,S)||"text"](ae,d);return!ti&&ie&&ie(),await new Promise((Fe,at)=>{Us(Fe,at,{data:Ku,headers:J.from(ae.headers),status:ae.status,statusText:ae.statusText,config:d,request:se})})}catch(oe){throw ie&&ie(),oe&&oe.name==="TypeError"&&/Load failed|fetch/i.test(oe.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,d,se),{cause:oe.cause||oe}):E.from(oe,oe&&oe.code,d,se)}}},Su=new Map,Js=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:s}=t,i=[r,s,n];let o=i.length,a=o,l,u,c=Su;for(;a--;)l=i[a],u=c.get(l),u===void 0&&c.set(l,u=a?new Map:Eu(t)),c=u;return u};Js();const Qn={http:za,xhr:mu,fetch:{get:Js}};f.forEach(Qn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ws=e=>`- ${e}`,Ou=e=>f.isFunction(e)||e===null||e===!1;function Ru(e,t){e=f.isArray(e)?e:[e];const{length:n}=e;let r,s;const i={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since : `+o.map(Ws).join(` `):" "+Ws(o[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s}const Gs={getAdapter:Ru,adapters:Qn};function Kn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new st(null,e)}function Xs(e){return Kn(e),e.headers=J.from(e.headers),e.data=Hn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gs.getAdapter(e.adapter||Pt.adapter,e)(e).then(function(r){return Kn(e),r.data=Hn.call(e,e.transformResponse,r),r.headers=J.from(r.headers),r},function(r){return js(r)||(Kn(e),r&&r.response&&(r.response.data=Hn.call(e,e.transformResponse,r.response),r.response.headers=J.from(r.response.headers))),Promise.reject(r)})}const Ys="1.13.2",en={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{en[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Zs={};en.transitional=function(t,n,r){function s(i,o){return"[Axios v"+Ys+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,a)=>{if(t===!1)throw new E(s(o," has been removed"+(n?" in "+n:"")),E.ERR_DEPRECATED);return n&&!Zs[o]&&(Zs[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}},en.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Cu(e,t,n){if(typeof e!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const i=r[s],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new E("option "+i+" must be "+l,E.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new E("Unknown option "+i,E.ERR_BAD_OPTION)}}const tn={assertOptions:Cu,validators:en},ve=tn.validators;let Qe=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ks,response:new ks}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=He(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&tn.assertOptions(r,{silentJSONParsing:ve.transitional(ve.boolean),forcedJSONParsing:ve.transitional(ve.boolean),clarifyTimeoutError:ve.transitional(ve.boolean)},!1),s!=null&&(f.isFunction(s)?n.paramsSerializer={serialize:s}:tn.assertOptions(s,{encode:ve.function,serialize:ve.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),tn.assertOptions(n,{baseUrl:ve.spelling("baseURL"),withXsrfToken:ve.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&f.merge(i.common,i[n.method]);i&&f.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),n.headers=J.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,p=0,h;if(!l){const d=[Xs.bind(this),void 0];for(d.unshift(...a),d.push(...u),h=d.length,c=Promise.resolve(n);p{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const o=new Promise(a=>{r.subscribe(a),i=a}).then(s);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,a){r.reason||(r.reason=new st(i,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ri(function(s){t=s}),cancel:t}}};function xu(e){return function(n){return e.apply(null,n)}}function Au(e){return f.isObject(e)&&e.isAxiosError===!0}const zn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(zn).forEach(([e,t])=>{zn[t]=e});function ei(e){const t=new Qe(e),n=ms(Qe.prototype.request,t);return f.extend(n,Qe.prototype,t,{allOwnKeys:!0}),f.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ei(He(e,s))},n}const P=ei(Pt);P.Axios=Qe,P.CanceledError=st,P.CancelToken=Tu,P.isCancel=js,P.VERSION=Ys,P.toFormData=Gt,P.AxiosError=E,P.Cancel=P.CanceledError,P.all=function(t){return Promise.all(t)},P.spread=xu,P.isAxiosError=Au,P.mergeConfig=He,P.AxiosHeaders=J,P.formToJSON=e=>Ns(f.isHTMLForm(e)?new FormData(e):e),P.getAdapter=Gs.getAdapter,P.HttpStatusCode=zn,P.default=P;const{Axios:Yu,AxiosError:Zu,CanceledError:el,isCancel:tl,CancelToken:nl,VERSION:rl,all:sl,Cancel:il,isAxiosError:ol,spread:al,toFormData:ul,AxiosHeaders:ll,HttpStatusCode:cl,formToJSON:fl,getAdapter:hl,mergeConfig:dl}=P,Pu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4%208H12M12%208L9.33333%205M12%208L9.33333%2011'%20stroke='white'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Fu="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.1148%2010.6847C11.8278%2010.9718%2011.3624%2010.9718%2011.0754%2010.6847L8.16508%207.77445L5.2548%2010.6847C4.96777%2010.9718%204.50239%2010.9718%204.21535%2010.6847C3.92832%2010.3977%203.92832%209.93231%204.21535%209.64528L7.64535%206.21528C7.93239%205.92824%208.39777%205.92824%208.6848%206.21528L12.1148%209.64528C12.4018%209.93231%2012.4018%2010.3977%2012.1148%2010.6847Z'%20fill='%23667085'/%3e%3c/svg%3e";var ku=Se('
'),Du=Se('
Error loading logo
'),Nu=Se(''),Mu=Se('

'),ju=Se('
');function Uu(e,t){ft(t,!0);let n=Q(!1);const r=vs(()=>({queryKey:["bookmaker",t.offer.bookmaker],queryFn:async()=>{const R=await P.get(`https://betsy.com.au/wp-json/wp/v2/bookmaker/${t.offer.bookmaker}`);return(await P.get(`https://betsy.com.au/wp-json/wp/v2/media/${R.data.acf.bookmaker_logo}`)).data.source_url}}));var s=ju(),i=Z(s),o=Z(i),a=Z(o);{var l=R=>{var k=ku();$(R,k)},u=R=>{var k=wt(),H=mt(k);{var ce=se=>{var ie=Du();$(se,ie)},it=se=>{var ie=wt(),nn=mt(ie);{var oe=ot=>{var ae=Nu();It(()=>{St(ae,"src",r.data),St(ae,"alt",t.offer.bookmaker)}),$(ot,ae)};Ie(nn,ot=>{r.data&&ot(oe)},!0)}$(se,ie)};Ie(H,se=>{r.isError?se(ce):se(it,!1)},!0)}$(R,k)};Ie(a,R=>{r.isLoading?R(l):R(u,!1)})}var c=Ue(a,2),p=Z(c),h=Ue(o,2),y=Z(h),d=Ue(y),v=Ue(i,2),m=Z(v);m.__click=()=>q(n,!_(n));var g=Ue(Z(m),2),b=Z(g),w=Z(b),O=Ue(b,2);let T;var F=Ue(m,2);{var S=R=>{var k=Mu(),H=Z(k);It(()=>Et(H,t.offer.offer_details)),$(R,k)};Ie(F,R=>{_(n)&&R(S)})}It(()=>{Et(p,t.offer.offer_name),St(h,"href",t.offer.offer_link),Et(y,`${t.offer.cta_button??""} `),St(d,"src",Pu),Et(w,_(n)?"Hide":"Show"),St(O,"src",Fu),T=mo(O,1,"chevron-icon svelte-jxc0qg",null,T,{rotated:_(n)})}),$(e,s),ht()}ro(["click"]);var Lu=Se('
Loading offers...
'),Iu=Se('
'),qu=Se('
'),Bu=Se('
');function Hu(e,t){ft(t,!1);const n=vs(()=>({queryKey:["offers"],queryFn:async()=>{const{data:a}=await P.get("https://betsy.com.au/wp-json/wp/v2/offers");return a.map(l=>l.acf)}}));zr();var r=Bu(),s=Z(r);{var i=a=>{var l=Lu();$(a,l)},o=a=>{var l=wt(),u=mt(l);{var c=h=>{var y=Iu(),d=Z(y);It(()=>Et(d,`Error: ${n.error?.message??""}`)),$(h,y)},p=h=>{var y=wt(),d=mt(y);{var v=m=>{var g=qu();co(g,5,()=>n.data,uo,(b,w)=>{Uu(b,{get offer(){return _(w)}})}),$(m,g)};Ie(d,m=>{n.data&&m(v)},!0)}$(h,y)};Ie(u,h=>{n.isError?h(c):h(p,!1)},!0)}$(a,l)};Ie(s,a=>{n.isLoading?a(i):a(o,!1)})}$(e,r),ht()}function Qu(e,t){ft(t,!1);const n=new fs;zr(),oa(e,{get client(){return n},children:(r,s)=>{Hu(r,{})},$$slots:{default:!0}}),ht()}return io(Qu,{target:document.getElementById("offers-block")})}));