@toa.io/extensions.exposition 1.0.0-alpha.331 → 1.0.0-alpha.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/exposition.octets/package.json +2 -2
- package/components/identity.federation/package.json +1 -1
- package/components/identity.tokens/manifest.toa.yaml +5 -0
- package/components/identity.tokens/operations/authenticate.js +10 -3
- package/components/identity.tokens/package.json +1 -1
- package/components/identity.tokens/source/authenticate.ts +11 -2
- package/components/identity.tokens/types/toa.d.ts +3 -1
- package/package.json +11 -10
- package/transpiled/HTTP/Context.d.ts +4 -0
- package/transpiled/HTTP/Context.js +4 -1
- package/transpiled/HTTP/Context.js.map +1 -1
- package/transpiled/HTTP/Server.d.ts +3 -1
- package/transpiled/HTTP/address.d.ts +5 -0
- package/transpiled/HTTP/address.js +11 -0
- package/transpiled/HTTP/address.js.map +1 -1
- package/transpiled/directives/auth/Authorization.js +3 -1
- package/transpiled/directives/auth/Authorization.js.map +1 -1
- package/transpiled/directives/auth/Refresh.d.ts +16 -0
- package/transpiled/directives/auth/Refresh.js +44 -0
- package/transpiled/directives/auth/Refresh.js.map +1 -0
- package/transpiled/directives/censor/Censor.d.ts +2 -2
- package/transpiled/directives/censor/Censor.js +4 -9
- package/transpiled/directives/censor/Censor.js.map +1 -1
- package/transpiled/directives/map/Client.d.ts +21 -0
- package/transpiled/directives/map/Client.js +33 -0
- package/transpiled/directives/map/Client.js.map +1 -0
- package/transpiled/directives/map/Headers.d.ts +2 -1
- package/transpiled/directives/map/Headers.js +2 -2
- package/transpiled/directives/map/Headers.js.map +1 -1
- package/transpiled/directives/map/Map.js +14 -4
- package/transpiled/directives/map/Map.js.map +1 -1
- package/transpiled/root.js +26 -0
- package/transpiled/root.js.map +1 -1
- package/ui/dist/_app/env.js +1 -1
- package/ui/dist/_app/immutable/chunks/-39mDws-.js +1 -0
- package/ui/dist/_app/immutable/chunks/1WXXcBlU.js +90 -0
- package/ui/dist/_app/immutable/chunks/BjwH--Q_.js +1 -0
- package/ui/dist/_app/immutable/chunks/Bt6Kyh95.js +2 -0
- package/ui/dist/_app/immutable/chunks/C3gnuDhG.js +3 -0
- package/ui/dist/_app/immutable/chunks/CRzLMJPS.js +1 -0
- package/ui/dist/_app/immutable/chunks/DYI4yOrv.js +6 -0
- package/ui/dist/_app/immutable/chunks/XKyaHtl9.js +1 -0
- package/ui/dist/_app/immutable/entry/app.C3gvpmYY.js +2 -0
- package/ui/dist/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
- package/ui/dist/_app/immutable/entry/start.BzTqgs51.js +2 -0
- package/ui/dist/_app/immutable/nodes/0.BufbmJeT.js +1 -0
- package/ui/dist/_app/immutable/nodes/1.Dn_85faQ.js +1 -0
- package/ui/dist/_app/immutable/nodes/2.DCLYeX2U.js +8 -0
- package/ui/dist/_app/immutable/nodes/3.aoe4R-SX.js +1 -0
- package/ui/dist/_app/immutable/nodes/4.B0CiB3ml.js +1 -0
- package/ui/dist/_app/immutable/nodes/5.BUrdbysb.js +1 -0
- package/ui/dist/_app/immutable/nodes/6.yNbGQqYT.js +1 -0
- package/ui/dist/_app/version.json +1 -1
- package/ui/dist/index.html +17 -14
- package/ui/dist/_app/immutable/chunks/BDckNUhP.js +0 -1
- package/ui/dist/_app/immutable/chunks/BEB0f03Q.js +0 -90
- package/ui/dist/_app/immutable/chunks/BVDJTrf4.js +0 -3
- package/ui/dist/_app/immutable/chunks/DbLTrkva.js +0 -1
- package/ui/dist/_app/immutable/chunks/xZbjwf2l.js +0 -6
- package/ui/dist/_app/immutable/chunks/xihTtKlq.js +0 -1
- package/ui/dist/_app/immutable/entry/app.DobJ2Iee.js +0 -2
- package/ui/dist/_app/immutable/entry/start.5KZbLLPV.js +0 -1
- package/ui/dist/_app/immutable/nodes/0.BcmlOx1v.js +0 -1
- package/ui/dist/_app/immutable/nodes/1.BzMQT6JK.js +0 -1
- package/ui/dist/_app/immutable/nodes/2.CbX5khSR.js +0 -8
- package/ui/dist/_app/immutable/nodes/3.BKJAedfV.js +0 -1
- package/ui/dist/_app/immutable/nodes/4.C-NuO1rS.js +0 -1
- package/ui/dist/_app/immutable/nodes/5.C2tdHzXF.js +0 -1
- package/ui/dist/_app/immutable/nodes/6.BWMOa3IU.js +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible;function x(e){return typeof e==`function`}var S=()=>{};function ee(e){return e()}function te(e){for(var t=0;t<e.length;t++)e[t]()}function ne(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function re(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var ie=1<<24,C=1024,w=2048,ae=4096,oe=8192,se=16384,ce=32768,le=1<<25,ue=65536,de=1<<18,fe=1<<19,pe=1<<20,me=1<<25,he=65536,ge=1<<21,_e=1<<22,ve=1<<23,ye=Symbol(`$state`),be=Symbol(`legacy props`),xe=Symbol(``),Se=Symbol(`proxy path`),Ce=Symbol(`attributes`),we=Symbol(`class`),Te=Symbol(`style`),Ee=Symbol(`text`),De=Symbol(`form reset`),Oe=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ke=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function Ae(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function je(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function Me(){throw Error(`https://svelte.dev/e/missing_context`)}function Ne(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function Pe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Fe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ie(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Le(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Re(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ze(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Be(){throw Error(`https://svelte.dev/e/fork_timing`)}function Ve(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function He(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ue(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function We(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ge(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ke(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function qe(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Je(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ye={},T=Symbol(`uninitialized`),Xe=`http://www.w3.org/1999/xhtml`,Ze=`http://www.w3.org/2000/svg`,Qe=`http://www.w3.org/1998/Math/MathML`,$e=`@attach`;function et(){console.warn(`https://svelte.dev/e/derived_inert`)}function tt(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function nt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function rt(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function it(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw nt(),Ye;return O=e}function A(){return k(B(O))}function at(e){if(E){if(B(O)!==null)throw nt(),Ye;O=e}}function ot(e=1){if(E){for(var t=e,n=O;t--;)n=B(n);O=n}}function st(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function ct(e){if(!e||e.nodeType!==8)throw nt(),Ye;return e.data}function lt(e){return e===this.v}function ut(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function dt(e){return!ut(e,this.v)}var ft=!1;function pt(){ft=!0}function mt(e,t){return e.label=t,ht(e.v,t),e}function ht(e,t){return e?.[Se]?.(t),e}function gt(e){return typeof e==`symbol`?`Symbol(${e.description})`:typeof e==`function`?`<function>`:typeof e==`object`&&e?`<object>`:String(e)}function _t(e,t,n){let r={};return[()=>(n(r)||Me(),e(r)),e=>t(r,e)]}function vt(e){let t=e.p;for(;t!==null&&t.c===null;)t=t.p;return t?.c??null}function yt(e,t){return e===null&&je(t),e.c??=new Map(vt(e)||void 0)}var j=null;function bt(e){j=e}function xt(){return _t(St,Ct,wt)}function St(e){return yt(j,`getContext`).get(e)}function Ct(e,t){return yt(j,`setContext`).set(e,t),t}function wt(e){return yt(j,`hasContext`).has(e)}function Tt(){return yt(j,`getAllContexts`)}function Et(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:q,l:ft&&!t?{s:null,u:null,$:[]}:null}}function Dt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)xr(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function Ot(){return!ft||j!==null&&j.l===null}var kt=[];function At(){var e=kt;kt=[],te(e)}function M(e){if(kt.length===0&&!On){var t=kt;queueMicrotask(()=>{t===kt&&At()})}kt.push(e)}function jt(){for(;kt.length>0;)At()}function Mt(e){var t=q;if(t===null)return W.f|=ve,e;if(!(t.f&32768)&&!(t.f&4))throw e;Nt(e,t)}function Nt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Pt=~(w|ae|C);function N(e,t){e.f=e.f&Pt|t}function Ft(e){e.f&512||e.deps===null?N(e,C):N(e,ae)}function It(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=he,It(t.deps))}function Lt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),It(e.deps),N(e,C)}function Rt(e,t,n){if(e==null)return t(void 0),n&&n(void 0),S;let r=Q(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var zt=[];function Bt(e,t){return{subscribe:Vt(e,t).subscribe}}function Vt(e,t=S){let n=null,r=new Set;function i(t){if(ut(e,t)&&(e=t,n)){let t=!zt.length;for(let t of r)t[1](),zt.push(t,e);if(t){for(let e=0;e<zt.length;e+=2)zt[e][0](zt[e+1]);zt.length=0}}}function a(t){i(t(e))}function o(o,s=S){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||S),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function Ht(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return Bt(n,(e,n)=>{let o=!1,s=[],c=0,l=S,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:S},d=i.map((e,t)=>Rt(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){te(d),l(),o=!1}})}function Ut(e){let t;return Rt(e,e=>t=e)(),t}var Wt=!1,Gt=!1,Kt=Symbol(`unmounted`);function qt(e,t,n){let r=n[t]??={store:null,source:Yn(void 0),unsubscribe:S};if(r.store!==e&&!(Kt in n)){if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=S;else{var i=!0;r.unsubscribe=Rt(e,e=>{i?r.source.v=e:L(r.source,e)}),i=!1}}return e&&Kt in n?Ut(e):Z(r.source)}function Jt(e,t,n){let r=n[t];return r&&r.store!==e&&(r.unsubscribe(),r.unsubscribe=S),e}function Yt(e,t){return Zt(e,t),t}function Xt(){let e={};function t(){yr(()=>{for(var t in e)e[t].unsubscribe();m(e,Kt,{enumerable:!1,value:!0})})}return[e,t]}function Zt(e,t){Wt=!0;try{e.set(t)}finally{Wt=!1}}function Qt(){Gt=!0}function $t(e){var t=Gt;try{return Gt=!1,[e(),Gt]}finally{Gt=t}}function en(e,t){if(t){let t=document.body;e.autofocus=!0,M(()=>{document.activeElement===t&&e.focus()})}}function tn(e){E&&z(e)!==null&&fr(e)}var nn=!1;function rn(){nn||(nn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[De]?.()})},{capture:!0}))}function an(e){var t=W,n=q;K(null),Kr(null);try{return e()}finally{K(t),Kr(n)}}function on(e,t,n,r=n){e.addEventListener(t,()=>an(n));let i=e[De];e[De]=i?()=>{i(),r(!0)}:()=>r(!0),rn()}function sn(e){let t=0,n=qn(0),r;return()=>{vr()&&(Z(n),Dr(()=>(t===0&&(r=Q(()=>e(()=>Qn(n)))),t+=1,()=>{M(()=>{--t,t===0&&(r?.(),r=void 0,Qn(n))})})))}}var cn=ue|fe;function ln(e,t,n,r){new un(e,t,n,r)}var un=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=sn(()=>(this.#m=qn(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Ar(()=>{if(E){let e=this.#t;A();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},cn),E&&(this.#e=O)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);M(r),t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){it();return}t=!0,n&&Je(),this.#s!==null&&Lr(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Nt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),M(()=>{var e=this.#c=document.createDocumentFragment(),t=R();e.append(t),this.#a=this.#S(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Lr(this.#o,()=>{this.#o=null}),this.#x(P))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vr(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#x(P)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Lt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=q,n=W,r=j;Kr(this.#i),K(this.#i),bt(this.#i.ctx);try{return Pn.ensure(),e()}catch(e){return Mt(e),null}finally{Kr(t),K(n),bt(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&Lr(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,M(()=>{this.#d=!1,this.#m&&Xn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;P?.is_fork?(this.#a&&P.skip_effect(this.#a),this.#o&&P.skip_effect(this.#o),this.#s&&P.skip_effect(this.#s),P.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),E&&(k(this.#t),ot(),k(st()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return H(()=>{var r=q;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Nt(e,this.#i.parent),null}}))};M(()=>{var t;try{t=this.transform_error(e)}catch(e){Nt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Nt(e,this.#i&&this.#i.parent)):n(t)})}};function dn(e,t,n,r){let i=Ot()?hn:yn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=q,c=fn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Nt(e,s)}pn()}}var d=mn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>_n(e))).then(u).catch(e=>Nt(e,s)).finally(d)}l?l.then(()=>{c(),f(),pn()}):f()}function fn(){var e=q,t=W,n=j,r=P;return function(i=!0){Kr(e),K(t),bt(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function pn(e=!0){Kr(null),K(null),bt(null),e&&P?.deactivate()}function mn(){var e=q,t=e.b,n=P,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function hn(e){var t=2|w;return q!==null&&(q.f|=fe),{ctx:j,deps:null,effects:null,equals:lt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:q,ac:null}}var gn=Symbol(`obsolete`);function _n(e,t,n){let r=q;r===null&&Ne();var i=void 0,a=qn(T),o=!W,s=new Set;return Er(()=>{var t=q,n=ne();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Oe&&n.reject(e)}).finally(pn)}catch(e){n.reject(e),pn()}var c=P;if(o){if(t.f&32768)var l=mn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(gn);else for(let e of s.values())e.reject(gn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==gn&&(c.activate(),t?(a.f|=ve,Xn(a,t)):(a.f&8388608&&(a.f^=ve),Xn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),yr(()=>{for(let e of s)e.reject(gn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function vn(e){let t=hn(e);return Jr(t),t}function yn(e){let t=hn(e);return t.equals=dt,t}function bn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function xn(e){var t,n=q,r=e.parent;if(!Wr&&r!==null&&e.v!==T&&r.f&24576)return et(),e.v;Kr(r);try{e.f&=~he,bn(e),t=ri(e)}finally{Kr(n)}return t}function Sn(e){var t=xn(e);if(!e.equals(t)&&(e.wv=ei(),(!P?.is_fork||e.deps===null)&&(P===null?e.v=t:(P.capture(e,t,!0),En?.capture(e,t,!0)),e.deps===null))){N(e,C);return}Wr||(F===null?Ft(e):(vr()||P?.is_fork)&&F.set(e,t))}function Cn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&an(()=>{t.ac.abort(Oe),t.ac=null}),t.fn!==null&&(t.teardown=S),ai(t,0),Nr(t))}function wn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&oi(t)}var Tn=null,P=null,En=null,F=null,Dn=null,On=!1,kn=!1,An=null,jn=null,Mn=0,Nn=1,Pn=class e{id=Nn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){Tn===null?Tn=this:(Tn.#n=this,this.#t=Tn),Tn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)N(r,w),t(r);for(r of n.m)N(r,ae),t(r)}this.#p.add(e)}#g(){this.#e=!0,Mn++>1e3&&(this.#x(),In());for(let e of this.#u)this.#d.delete(e),N(e,w),this.schedule(e);for(let e of this.#d)N(e,ae),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=An=[],r=[],i=jn=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Hn(e),this.#h()||this.discard(),t}if(P=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(An=null,jn=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)Vn(e,t);i.length>0&&P.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),En=this,Rn(r),Rn(n),En=null,this.#s?.resolve();var s=P;if(this.#a===0&&(this.#c.length===0||s!==null)&&this.#x(),this.#c.length>0){if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this}s!==null&&(I.clear(),s.#g())}#_(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=!!(i&96);if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):ti(r)&&(i&16&&this.#d.add(r),oi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),N(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#x(),P=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)Lt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),F?.set(e,t)),this.is_fork||(e.v=t)}activate(){P=this}deactivate(){P=null,F=null}flush(){try{kn=!0,P=this,this.#g()}finally{Mn=0,Dn=null,An=null,jn=null,kn=!1,P=null,F=null,I.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(gn);this.#x(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,M(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=ne()).promise}static ensure(){if(P===null){let t=P=new e;!kn&&!On&&M(()=>{t.#e||t.flush()})}return P}apply(){F=null}schedule(e){if(Dn=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(An!==null&&t===q&&(W===null||!(W.f&2))&&!Wt)return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#c.push(t)}#x(){if(this.linked){var e=this.#t,t=this.#n;e===null||(e.#n=t),t===null?Tn=e:t.#t=e,this.linked=!1}}};function Fn(e){var t=On;On=!0;try{var n;for(e&&(P!==null&&!P.is_fork&&P.flush(),n=e());;){if(jt(),P===null)return n;P.flush()}}finally{On=t}}function In(){try{Re()}catch(e){Nt(e,Dn)}}var Ln=null;function Rn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ti(r)&&(Ln=new Set,oi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Ir(r),Ln?.size>0)){I.clear();for(let e of Ln){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Ln.has(n)&&(Ln.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||oi(n)}}Ln.clear()}}Ln=null}}function zn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?zn(n,t):e&131072&&(N(n,w),t.add(n))}}function Bn(e){P.schedule(e)}function Vn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),N(e,C);for(var n=e.first;n!==null;)Vn(n,t),n=n.next}}function Hn(e){N(e,C);for(var t=e.first;t!==null;)Hn(t),t=t.next}function Un(e){Ae(`fork`),P!==null&&Be();var t=Pn.ensure();t.is_fork=!0,F=new Map;var n=!1,r=t.settled();return Fn(e),{commit:async()=>{if(n){await r;return}t.linked||ze(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=ei();Fn(()=>{var e=new Set;for(var n of t.current.keys())zn(n,e);Gn(e),Zn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=ei();!n&&t.linked&&t.discard()}}}var Wn=new Set,I=new Map;function Gn(e){Wn=e}var Kn=!1;function qn(e,t){return{f:0,v:e,reactions:null,equals:lt,rv:0,wv:0}}function Jn(e,t){let n=qn(e,t);return Jr(n),n}function Yn(e,t=!1,n=!0){let r=qn(e);return t||(r.equals=dt),ft&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function L(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&Ot()&&W.f&4325394&&(qr===null||!qr.has(e))&&qe(),Xn(e,n?er(t):t,jn)}function Xn(e,t,n=null){if(!e.equals(t)){Wr?I.set(e,t):I.has(e)||I.set(e,e.v);var r=Pn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&xn(t),F===null&&Ft(t)}e.wv=ei(),$n(e,w,n),Ot()&&q!==null&&q.f&1024&&!(q.f&96)&&(X===null?Yr([e]):X.push(e)),!r.is_fork&&Wn.size>0&&!Kn&&Zn()}return t}function Zn(){Kn=!1;for(let e of Wn){e.f&1024&&N(e,ae);let t;try{t=ti(e)}catch{t=!0}t&&oi(e)}Wn.clear()}function Qn(e){L(e,e.v+1)}function $n(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ot(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&w)===0;if(l&&N(s,t),c&131072)Wn.add(s);else if(c&2){var u=s;F?.delete(u),c&65536||(c&512&&(q===null||!(q.f&2097152))&&(s.f|=he),$n(u,ae,n))}else if(l){var d=s;c&16&&Ln!==null&&Ln.add(d),n===null?Bn(d):n.push(d)}}}}function er(e){if(typeof e!=`object`||!e||ye in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=Jn(0),a=null,o=Qr,s=e=>{if(Qr===o)return e();var t=W,n=Qr;K(null),$r(o);var r=e();return K(t),$r(n),r};return r&&n.set(`length`,Jn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ge();var i=n.get(t);return i===void 0?s(()=>{var e=Jn(r.value,a);return n.set(t,e),e}):L(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>Jn(T,a));n.set(t,e),Qn(i)}}else L(r,T),Qn(i);return!0},get(t,r,i){if(r===ye)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>Jn(er(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Z(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ye)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||q!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>Jn(i?er(e[t]):T,a)),n.set(t,r)),Z(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>Jn(T,a)),n.set(d+``,f)):L(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>Jn(void 0,a)),L(l,er(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>er(o));L(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&L(g,_+1)}Qn(i)}return!0},ownKeys(e){Z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Ke()}})}function tr(e){try{if(typeof e==`object`&&e&&ye in e)return e[ye]}catch{}return e}function nr(e,t){return Object.is(tr(e),tr(t))}var rr,ir,ar,or,sr;function cr(){if(rr===void 0){rr=window,ir=document,ar=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;or=h(t,`firstChild`).get,sr=h(t,`nextSibling`).get,b(e)&&(e[we]=void 0,e[Ce]=null,e[Te]=void 0,e.__e=void 0),b(n)&&(n[Ee]=void 0)}}function R(e=``){return document.createTextNode(e)}function z(e){return or.call(e)}function B(e){return sr.call(e)}function lr(e,t){if(!E)return z(e);var n=z(O);if(n===null)n=O.appendChild(R());else if(t&&n.nodeType!==3){var r=R();return n?.before(r),k(r),r}return t&&hr(n),k(n),n}function ur(e,t=!1){if(!E){var n=z(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(O?.nodeType!==3){var r=R();return O?.before(r),k(r),r}hr(O)}return O}function dr(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=B(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=R();return r===null?i?.after(a):r.before(a),k(a),a}hr(r)}return k(r),r}function fr(e){e.textContent=``}function pr(){return!1}function mr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function hr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function gr(e){q===null&&(W===null&&Le(e),Ie()),Wr&&Fe(e)}function _r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t){var n=q;n!==null&&n.f&8192&&(e|=oe);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};P?.register_created_effect(r);var i=r;if(e&4)An===null?Pn.ensure().schedule(r):An.push(r);else if(t!==null){try{oi(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ue))}if(i!==null&&(i.parent=n,n!==null&&_r(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function vr(){return W!==null&&!G}function yr(e){let t=V(8,null);return N(t,C),t.teardown=e,t}function br(e){gr(`$effect`);var t=q.f;if(!W&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return xr(e)}function xr(e){return V(4|pe,e)}function Sr(e){return gr(`$effect.pre`),V(8|pe,e)}function Cr(e){Pn.ensure();let t=V(64|fe,e);return()=>{U(t)}}function wr(e){Pn.ensure();let t=V(64|fe,e);return(e={})=>new Promise(n=>{e.outro?Lr(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function Tr(e){return V(4,e)}function Er(e){return V(_e|fe,e)}function Dr(e,t=0){return V(8|t,e)}function Or(e,t=[],n=[],r=[]){dn(r,t,n,t=>{V(8,()=>{e(...t.map(Z))})})}function kr(e,t=[],n=[],r=[]){dn(r,t,n,t=>{V(4,()=>e(...t.map(Z)))})}function Ar(e,t=0){return V(16|t,e)}function jr(e,t=0){return V(ie|t,e)}function H(e){return V(32|fe,e)}function Mr(e){var t=e.teardown;if(t!==null){let e=Wr,n=W;Gr(!0),K(null);try{t.call(null)}finally{Gr(e),K(n)}}}function Nr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&an(()=>{e.abort(Oe)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function Pr(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fr(e.nodes.start,e.nodes.end),n=!0),e.f|=le,Nr(e,t&&!n),ai(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();Mr(e),e.f^=le,e.f|=se;var i=e.parent;i!==null&&i.first!==null&&Ir(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fr(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function Ir(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 Lr(e,t,n=!0){var r=[];Rr(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rr(e,t,n){if(!(e.f&8192)){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=!!(i.f&65536)||!!(i.f&32)&&!!(e.f&16);Rr(i,t,o?n:!1)}i=a}}}function zr(e){Br(e,!0)}function Br(e,t){if(e.f&8192){e.f^=oe,e.f&1024||(N(e,w),Pn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=!!(n.f&65536)||!!(n.f&32);Br(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Vr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var Hr=null,Ur=!1,Wr=!1;function Gr(e){Wr=e}var W=null,G=!1;function K(e){W=e}var q=null;function Kr(e){q=e}var qr=null;function Jr(e){W!==null&&(qr??=new Set).add(e)}var J=null,Y=0,X=null;function Yr(e){X=e}var Xr=1,Zr=0,Qr=Zr;function $r(e){Qr=e}function ei(){return++Xr}function ti(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~he),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ti(a)&&Sn(a),a.wv>e.wv)return!0}t&512&&F===null&&N(e,C)}return!1}function ni(e,t,n=!0){var r=e.reactions;if(r!==null&&!(qr!==null&&qr.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?ni(a,t,!1):t===a&&(n?N(a,w):a.f&1024&&N(a,ae),Bn(a))}}function ri(e){var t=J,n=Y,r=X,i=W,a=qr,o=j,s=G,c=Qr,l=e.f;J=null,Y=0,X=null,W=l&96?null:e,qr=null,bt(e.ctx),G=!1,Qr=++Zr,e.ac!==null&&(an(()=>{e.ac.abort(Oe)}),e.ac=null);try{e.f|=ge;var u=e.fn,d=u();e.f|=ce;var f=e.deps,p=P?.is_fork;if(J!==null){var m;if(p||ai(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(vr()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&Y<f.length&&(ai(e,Y),f.length=Y);if(Ot()&&X!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)ni(X[m],e);if(i!==null&&i!==e){if(Zr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Zr;if(t!==null)for(let e of t)e.rv=Zr;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=ve),d}catch(e){return Mt(e)}finally{e.f^=ge,J=t,Y=n,X=r,W=i,qr=a,bt(o),G=s,Qr=c}}function ii(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(J===null||!f.call(J,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~he),a.v!==T&&Ft(a),a.ac!==null&&an(()=>{a.ac.abort(Oe),a.ac=null,N(a,w)}),Cn(a),ai(a,0)}}function ai(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ii(e,n[r])}function oi(e){var t=e.f;if(!(t&16384)){N(e,C);var n=q,r=Ur;q=e,Ur=!(t&96);try{t&16777232?Pr(e):Nr(e),Mr(e);var i=ri(e);e.teardown=typeof i==`function`?i:null,e.wv=Xr}finally{Ur=r,q=n}}}async function si(){await Promise.resolve(),Fn()}function ci(){return Pn.ensure().settled()}function Z(e){var t=!!(e.f&2);if(Hr?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(qr===null||!qr.has(e))){var n=W.deps;if(W.f&2097152)e.rv<Zr&&(e.rv=Zr,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{W.deps??=[],f.call(W.deps,e)||W.deps.push(e);var r=e.reactions;r===null?e.reactions=[W]:f.call(r,W)||r.push(W)}}if(Wr&&I.has(e))return I.get(e);if(t){var i=e;if(Wr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||ui(i))&&(a=xn(i)),I.set(i,a),a}var o=!(i.f&512)&&!G&&W!==null&&(Ur||!!(W.f&512)),s=(i.f&ce)===0;ti(i)&&(o&&(i.f|=512),Sn(i)),o&&!s&&(wn(i),li(i))}if(F?.has(e))return F.get(e);if(e.f&8388608)throw e.v;return e.v}function li(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(wn(t),li(t))}function ui(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&ui(t))return!0;return!1}function Q(e){var t=G;try{return G=!0,e()}finally{G=t}}function di(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ye in e)fi(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ye in n&&fi(n)}}}function fi(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{fi(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}function pi(){return Symbol($e)}function mi(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}var hi=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`];function gi(e){return hi.includes(e)}var _i=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),vi={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`};function yi(e){return e=e.toLowerCase(),vi[e]??e}[..._i];var bi=[`touchstart`,`touchmove`];function xi(e){return bi.includes(e)}var Si=[`textarea`,`script`,`style`,`title`];function Ci(e){return Si.includes(e)}var wi=Symbol(`events`),Ti=new Set,Ei=new Set;function Di(e,t,n,r={}){function i(e){if(r.capture||Pi.call(t,e),!e.cancelBubble)return an(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?M(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Oi(e,t,n,r={}){var i=Di(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ki(e,t,n,r,i){var a={capture:r,passive:i},o=Di(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yr(()=>{t.removeEventListener(e,o,a)})}function Ai(e,t,n){(t[wi]??={})[e]=n}function ji(e){for(var t=0;t<e.length;t++)Ti.add(e[t]);for(var n of Ei)n(e)}var Mi=null,Ni=!1;function Pi(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Mi=e,Ni||(Ni=!0,setTimeout(()=>{Ni=!1,Mi=null}));var o=0,s=Mi===e&&e[wi];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wi]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=W,d=q;K(null),Kr(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[wi]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wi]=t,delete e.currentTarget,K(u),Kr(d)}}}var Fi=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Ii(e){return Fi?.createHTML(e)??e}function Li(e){var t=mr(`template`);return t.innerHTML=Ii(e.replaceAll(`<!>`,`<!---->`)),t.content}function $(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ri(e,t){var n=!!(t&1),r=!!(t&2),i,a=!e.startsWith(`<!>`);return()=>{if(E)return $(O,null),O;i===void 0&&(i=Li(a?e:`<!>`+e),n||(i=z(i)));var t=r||ar?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=z(t),s=t.lastChild;$(o,s)}else $(t,t);return t}}function zi(e,t,n=`svg`){var r=!e.startsWith(`<!>`),i=!!(t&1),a=`<${n}>${r?e:`<!>`+e}</${n}>`,o;return()=>{if(E)return $(O,null),O;if(!o){var e=z(Li(a));if(i)for(o=document.createDocumentFragment();z(e);)o.appendChild(z(e));else o=z(e)}var t=o.cloneNode(!0);if(i){var n=z(t),r=t.lastChild;$(n,r)}else $(t,t);return t}}function Bi(e,t){return zi(e,t,`svg`)}function Vi(e=``){if(!E){var t=R(e+``);return $(t,t),t}var n=O;return n.nodeType===3?hr(n):(n.before(n=R()),k(n)),$(n,n),n}function Hi(){if(E)return $(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=R();return e.append(t,n),$(t,n),e}function Ui(e,t){if(E){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),A();return}e!==null&&e.before(t)}function Wi(){if(E&&O&&O.nodeType===8&&O.textContent?.startsWith(`$`)){let e=O.textContent.substring(1);return A(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function Gi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ee]??=e.nodeValue)&&(e[Ee]=n,e.nodeValue=`${n}`)}function Ki(e,t){return Yi(e,t)}function qi(e,t){cr(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=z(n);a&&(a.nodeType!==8||a.data!==`[`);)a=B(a);if(!a)throw Ye;D(!0),k(a);let r=Yi(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
-
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==Ye&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&He(),cr(),fr(n),D(!1),Ki(e,t)}finally{D(r),k(i)}}var Ji=new Map;function Yi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){cr();var c=void 0,l=wr(()=>{var o=n??t.appendChild(R());ln(o,{pending:()=>{}},t=>{Et({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&$(t,null),c=e(t,r)||{},E&&(q.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw nt(),Ye;Dt()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=xi(r);for(let e of[t,document]){var a=Ji.get(e);a===void 0&&(a=new Map,Ji.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Pi,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Ti)),Ei.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=Ji.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Pi),r.delete(e),r.size===0&&Ji.delete(n)):r.set(e,i)}Ei.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return Xi.set(c,l),c}var Xi=new WeakMap;function Zi(e,t){let n=Xi.get(e);return n?(Xi.delete(e),n(t)):Promise.resolve()}var Qi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)zr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(zr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Vr(r,t),t.append(R()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Lr(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=P,r=pr();if(t&&!this.#t.has(e)&&!this.#n.has(e)){if(r){var i=document.createDocumentFragment(),a=R();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)))}if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function $i(e,t,n=!1){var r;E&&(r=O,A());var i=new Qi(e),a=n?ue:0;function o(e,t){if(E){var n=ct(r);if(e!==parseInt(n.substring(1))){var a=st();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}Ar(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var ea=Symbol(`NaN`);function ta(e,t,n){E&&A();var r=new Qi(e),i=!Ot();Ar(()=>{var e=t();e!==e&&(e=ea),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}function na(e,t){return t}function ra(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];Lr(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;ia(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else--o},!1)}if(o===0){var c=r.length===0&&n!==null&&e.pending.size===0;if(c){var l=n,u=l.parentNode;fr(u),u.append(l),e.items.clear()}ia(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function ia(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=me,Vr(a,document.createDocumentFragment())):U(t[i],n)}}var aa;function oa(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(z(c)):c.appendChild(R())}E&&A();var l=null,d=yn(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,ca(v,f,o,t,r),l!==null&&(f.length===0?l.f&33554432?(l.f^=me,ua(l,null,o)):zr(l):Lr(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:Ar(()=>{f=Z(d);var e=f.length;let c=!1;E&&ct(o)===`[!`!=(e===0)&&(o=st(),k(o),D(!1),c=!0);for(var u=new Set,p=P,v=pr(),y=0;y<e;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,D(!1));var b=f[y],x=r(b,y),S=h?null:s.get(x);S?(S.v&&Xn(S.v,b),S.i&&Xn(S.i,y),v&&p.unskip_effect(S.e)):(S=la(s,h?o:aa??=R(),b,x,y,i,t,n),h||(S.e.f|=me),s.set(x,S)),u.add(x)}if(e===0&&a&&!l&&(h?l=H(()=>a(o)):(l=H(()=>a(aa??=R())),l.f|=me)),e>u.size&&Pe(``,``,``),E&&e>0&&k(st()),!h){if(m.set(p,u),v){for(let[e,t]of s)u.has(e)||p.skip_effect(t.e);p.oncommit(g),p.ondiscard(_)}else g(p)}c&&D(!0),Z(d)}),flags:t,items:s,pending:m,outrogroups:null,fallback:l};h=!1,E&&(o=O)}function sa(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function ca(e,t,n,r,i){var a=!!(r&8),o=t.length,s=e.items,c=sa(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(zr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432){if(_.f^=me,_===c)ua(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),da(e,u,_),da(e,_,y),ua(_,y,n),u=_,f=[],m=[],c=sa(u.next);continue}}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)ua(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);da(e,S.prev,ee.next),da(e,u,S),da(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),ua(_,c,n),da(e,_.prev,_.next),da(e,_,u===null?e.effect.first:u.next),da(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=sa(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=sa(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(ia(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=sa(c.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}ra(e,te,re)}}a&&M(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function la(e,t,n,r,i,a,o,s){var c=o&1?o&16?qn(n):Yn(n,!1,!1):null,l=o&2?qn(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ua(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function da(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function fa(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;E&&(o=k(z(c)))}Or(()=>{var e=q;if(s===(s=t()??``)){E&&A();return}if(n&&!E){e.nodes=null,c.innerHTML=s,s!==``&&$(z(c),c.lastChild);return}if(e.nodes!==null&&(Fr(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(E){for(var a=O.data,l=A(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=B(l);if(l===null)throw nt(),Ye;$(O,u),o=k(l);return}var d=mr(r?`svg`:i?`math`:`template`,r?Ze:i?Qe:void 0);d.innerHTML=s;var f=r||i?d:d.content;if($(z(f),f.lastChild),r||i)for(;z(f);)o.before(z(f));else o.before(f)}})}function pa(e,t,...n){var r=new Qi(e);Ar(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ue)}function ma(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,A()):(i=z(Li(r.render().trim())),t.before(i));let a=r.setup?.(i);$(i,i),typeof a==`function`&&yr(a)}}function ha(e,t,n){var r;E&&(r=O,A());var i=new Qi(e);Ar(()=>{var e=t()??null;if(E&&ct(r)===`[`!=(e!==null)){var a=st();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ue)}function ga(e,t,n,r,i,a){let o=E;E&&A();var s=null;E&&O.nodeType===1&&(s=O,A());var c=E?O:e,l=new Qi(c,!1);Ar(()=>{let e=t()||null;var a=i?i():n||e===`svg`?Ze:void 0;if(e===null){l.ensure(null,null);return}return l.ensure(e,t=>{if(e){if(s=E?s:mr(e,a),$(s,s),r){var n=null;E&&Ci(e)&&s.append(n=document.createComment(``));var i=E?z(s):s.appendChild(R());E&&(i===null?D(!1):k(i)),r(s,i),n?.remove()}q.nodes.end=s,t.before(s)}E&&k(t)}),()=>{}},ue),yr(()=>{}),o&&(D(!0),k(c))}function _a(e,t){let n=null,r=E;var i;if(E){n=O;for(var a=z(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=B(a);if(a===null)D(!1);else{var o=B(a);a.remove(),k(o)}}E||(i=document.head.appendChild(R()));try{Ar(()=>{var e=H(()=>t(i));e.f|=de})}finally{r&&(D(!0),k(n))}}function va(e,t,n){Tr(()=>{var r=Q(()=>t(e,n?.())||{});if(n&&r?.update){var i=!1,a={};Dr(()=>{var e=n();di(e),i&&ut(a,e)&&(a=e,r.update(e))}),i=!0}if(r?.destroy)return()=>r.destroy()})}function ya(e,t){var n=void 0,r;jr(()=>{n!==(n=t())&&(r&&=(U(r),null),n&&(r=H(()=>{Tr(()=>n(e))})))})}function ba(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function xa(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ba(e))&&(r&&(r+=` `),r+=t);return r}function Sa(e){return typeof e==`object`?xa(e):e??``}var Ca=[...`
|
|
3
|
-
\r\f\xA0\v`];function wa(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Ca.includes(r[o-1]))&&(s===r.length||Ca.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ta(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Ea(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Da(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\/\*.*?\*\//g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Ea)),i&&c.push(...Object.keys(i).map(Ea));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Ea(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ta(r)),i&&(n+=Ta(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Oa(e,t,n,r,i,a){var o=e[we];if(E||o!==n||o===void 0){var s=wa(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[we]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ka(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Aa(e,t,n,r){var i=e[Te];if(E||i!==t){var a=Da(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Te]=t}else r&&(Array.isArray(r)?(ka(e,n?.[0],r[0]),ka(e,n?.[1],r[1],`important`)):ka(e,n,r));return r}function ja(e,t,n=!1){if(e.multiple){if(t==null)return;if(!u(t))return rt();for(var r of e.options)r.selected=t.includes(Na(r));return}for(r of e.options)if(nr(Na(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Ma(e){var t=new MutationObserver(()=>{`__value`in e&&ja(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),yr(()=>{t.disconnect()})}function Na(e){return`__value`in e?e.__value:e.value}var Pa=Symbol(`class`),Fa=Symbol(`style`),Ia=Symbol(`is custom element`),La=Symbol(`is html`),Ra=ke?`link`:`LINK`,za=ke?`input`:`INPUT`,Ba=ke?`option`:`OPTION`,Va=ke?`select`:`SELECT`;function Ha(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Wa(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Wa(e,`checked`,null),e.checked=r}}};e[De]=n,M(n),rn()}}function Ua(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function Wa(e,t,n,r){var i=qa(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ra)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[xe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ya(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ga(e,t,n,r,i=!1,a=!1){if(E&&i&&e.nodeName===za){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||Ha(o)}var s=qa(e),c=s[Ia],l=!s[La];let u=E&&c;u&&D(!1);var d=t||{},f=e.nodeName===Ba;for(var p in t)!(p in n)&&p[0]+p[1]!==`$$`&&(n[p]=null);n.class?n.class=Sa(n.class):(r||n[Pa])&&(n.class=null),n[Fa]&&(n.style??=null);var m=Ya(e);if(e.nodeName===za&&`type`in n&&(`value`in n||`__value`in n)){var h=n.type;(h!==d.type||h===void 0&&e.hasAttribute(`type`))&&(d.type=h,Wa(e,`type`,h,a))}for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){Oa(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Pa],n[Pa]),d[i]=o,d[Pa]=n[Pa];continue}if(i===`style`){Aa(e,o,t?.[Fa],n[Fa]),d[i]=o,d[Fa]=n[Fa];continue}var g=d[i];if(!(o===g&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var _=i[0]+i[1];if(_!==`$$`){if(_===`on`){let t={},n=`$$`+i,r=i.slice(2);var v=gi(r);if(mi(r)&&(r=r.slice(0,-7),t.capture=!0),!v&&g){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(v)Ai(r,e,o),ji([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=Di(r,e,a,t)}}else if(i===`style`)Wa(e,i,o);else if(i===`autofocus`)en(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)Ua(e,o);else{var y=i;l||(y=yi(y));var b=y===`defaultValue`||y===`defaultChecked`;if(o==null&&!c&&!b){if(s[i]=null,y===`value`||y===`checked`){let n=e,r=t===void 0;if(y===`value`){let e=n.defaultValue;n.removeAttribute(y),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(y),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i)}else b||m.includes(y)&&(c||typeof o!=`string`)?(e[y]=o,y in s&&(s[y]=T)):typeof o!=`function`&&Wa(e,y,o,a)}}}}return u&&D(!0),d}function Ka(e,t,n=[],r=[],i=[],a,o=!1,s=!1){dn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===Va,l=!1;if(jr(()=>{var u=t(...n.map(Z)),d=Ga(e,r,u,a,o,s);l&&c&&`value`in u&&ja(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||U(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&U(i[t]),i[t]=H(()=>ya(e,()=>f))),d[t]=f}r=d}),c){var u=e;Tr(()=>{ja(u,r.value,!0),Ma(u)})}l=!0})}function qa(e){return e[Ce]??={[Ia]:e.nodeName.includes(`-`),[La]:e.namespaceURI===Xe}}var Ja=new Map;function Ya(e){var t=e.getAttribute(`is`)||e.nodeName,n=Ja.get(t);if(n)return n;Ja.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=y(i)}return n}function Xa(e,t,n=t){var r=new WeakSet;on(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Za(e)?Qa(a):a,n(a),P!==null&&r.add(P),await si(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||Q(t)==null&&e.value)&&(n(Za(e)?Qa(e.value):e.value),P!==null&&r.add(P)),Dr(()=>{var n=t();if(e===document.activeElement){var i=P;if(r.has(i))return}Za(e)&&n===Qa(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Za(e){var t=e.type;return t===`number`||t===`range`}function Qa(e){return e===``?null:+e}function $a(e,t,n=t){on(e,`change`,()=>{n(e.files)}),E&&e.files&&n(e.files),Dr(()=>{e.files=t()})}function eo(e,t){return e===t||e?.[ye]===t}function to(e={},t,n,r){var i=j.r,a=q;return Tr(()=>{var o,s;return Dr(()=>{o=s,s=r?.()||[],Q(()=>{eo(n(...s),e)||(t(e,...s),o&&eo(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&eo(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function no(e=!1){let t=j,n=t.l.u;if(!n)return;let r=()=>di(t.s);if(e){let e=0,n={},i=hn(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Z(i)}n.b.length&&Sr(()=>{ro(t,r),te(n.b)}),br(()=>{let e=Q(()=>n.m.map(ee));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&br(()=>{ro(t,r),te(n.a)})}function ro(e,t){if(e.l.s)for(let t of e.l.s)Z(t);t()}var io={get(e,t){if(!e.exclude.has(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.has(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return!e.exclude.has(t)&&t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.has(t))}};function ao(e,t,n){return new Proxy({props:e,exclude:t},io)}var oo={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];x(i)&&(i=i());let a=h(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=h(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===ye||t===be)return!1;for(let n of e.props)if(x(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(x(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}};function so(...e){return new Proxy({props:e},oo)}function co(e,t,n,r){var i=!ft||!!(n&2),a=!!(n&8),o=!!(n&16),s=r,c=!0,l=void 0,u=()=>o&&i?(l??=hn(r),Z(l)):(c&&(c=!1,s=o?Q(r):r),s);let d;if(a){var f=ye in e||be in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=$t(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&We(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?hn:yn)(()=>(v=!1,g()));a&&Z(y);var b=q;return(function(e,t){if(arguments.length>0){let n=t?Z(y):i&&a?er(e):e;return L(y,n),v=!0,s!==void 0&&(s=n),e}return Wr&&v||b.f&16384?y.v:Z(y)})}function lo(e){return class extends uo{constructor(t){super({component:e,...t})}}}var uo=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Yn(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===be||(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return L(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?qi:Ki)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Fn(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e!==`$set`&&e!==`$destroy`&&e!==`$on`&&m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{Zi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function fo(e,t){if(Ae(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);tt(e)}return t()}var po=s({afterUpdate:()=>bo,beforeUpdate:()=>yo,createContext:()=>xt,createEventDispatcher:()=>vo,createRawSnippet:()=>ma,flushSync:()=>Fn,fork:()=>Un,getAbortSignal:()=>mo,getAllContexts:()=>Tt,getContext:()=>St,hasContext:()=>wt,hydratable:()=>fo,hydrate:()=>qi,mount:()=>Ki,onDestroy:()=>go,onMount:()=>ho,setContext:()=>Ct,settled:()=>ci,tick:()=>si,unmount:()=>Zi,untrack:()=>Q});function mo(){return W===null&&Ve(),(W.ac??=new AbortController).signal}function ho(e){j===null&&je(`onMount`),ft&&j.l!==null?xo(j).m.push(e):br(()=>{let t=Q(e);if(typeof t==`function`)return t})}function go(e){j===null&&je(`onDestroy`),ho(()=>()=>Q(e))}function _o(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function vo(){let e=j;return e===null&&je(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=_o(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function yo(e){j===null&&je(`beforeUpdate`),j.l===null&&Ue(`beforeUpdate`),xo(j).b.push(e)}function bo(e){j===null&&je(`afterUpdate`),j.l===null&&Ue(`afterUpdate`),xo(j).a.push(e)}function xo(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}export{lr as $,Ui as A,S as At,pi as B,oa as C,Et as Ct,Ki as D,pt as Dt,$i as E,mt as Et,Vi as F,Qr as G,ci as H,ji as I,Or as J,kr as K,Ai as L,Ri as M,o as Mt,Bi as N,s as Nt,Gi as O,ot as Ot,Wi as P,l as Pt,rr as Q,ki as R,fa as S,Dt as St,ta as T,gt as Tt,si as U,Z as V,Q as W,Sr as X,br as Y,ir as Z,va as _,Bt as _t,ao as a,qn as at,ha as b,St as bt,to as c,sn as ct,Ka as d,Xt as dt,ur as et,Wa as f,qt as ft,xa as g,Ut as gt,Sa as h,Ht as ht,co as i,L as it,Hi as j,re as jt,Zi as k,at as kt,$a as l,tn as lt,Oa as m,Jt as mt,ho as n,er as nt,so as o,Jn as ot,Aa as p,Yt as pt,Cr as q,lo as r,Qn as rt,no as s,vn as st,po as t,dr as tt,Xa as u,Qt as ut,_a as v,Vt as vt,na as w,Ct as wt,pa as x,wt as xt,ga as y,Tt as yt,Oi as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./BVDJTrf4.js";import{a as e}from"./BDckNUhP.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,At as n,C as r,Ct as i,E as a,I as o,L as s,M as c,Mt as l,N as u,St as d,V as f,_t as p,a as m,bt as h,d as g,dt as _,et as v,ft as y,gt as b,ht as x,i as S,j as C,jt as ee,kt as w,o as T,st as te,tt as ne,vt as E,w as re,x as D,y as ie}from"./BVDJTrf4.js";import{s as ae}from"./BDckNUhP.js";import"./xihTtKlq.js";function O(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}var k=l((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Err=void 0,e.Err=class extends Error{code;name=`Error`;message=``;cause;constructor(e,t){super(),this.code=e,delete this.stack,Object.defineProperty(this,"name",{enumerable:!1}),typeof t==`string`?(this.message=t,Object.defineProperty(this,"cause",{enumerable:!1})):(Object.defineProperty(this,"message",{enumerable:!1}),Object.defineProperty(this,"cause",{enumerable:t!==void 0,value:t}))}}}))();async function oe(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get(`content-type`);if(!n||!~n.indexOf(`multipart/`))return e;let r=n.indexOf(`boundary=`),i=`-`;if(~r){let e=r+9,t=n.indexOf(`;`,e);i=n.slice(e,t>-1?t:void 0).trim().replace(/"/g,``)}return async function*(e,t,n){let r,i,a,o=new TextDecoder(`utf8`),s=e.getReader(),c=!n||!n.multiple,l=t.length,u=``,d=[];try{let e;e:for(;!(e=await s.read()).done;){let n=o.decode(e.value,{stream:!0});r=u.length,u+=n;let s=n.indexOf(t);for(~s?r+=s:r=u.indexOf(t),d=[];~r;){let e=u.slice(0,r),n=u.slice(r+l);if(i){let t=e.indexOf(`\r
|
|
2
|
-
\r
|
|
3
|
-
`)+4,r=e.lastIndexOf(`\r
|
|
4
|
-
`,t),i=!1,o=e.slice(t,r>-1?void 0:r),s=String(e.slice(0,t)).trim().split(`\r
|
|
5
|
-
`),l={},u=s.length;for(;a=s[--u];a=a.split(`: `),l[a.shift().toLowerCase()]=a.join(`: `));if(a=l[`content-type`],a&&~a.indexOf(`application/json`))try{o=JSON.parse(o),i=!0}catch{}if(a={headers:l,body:o,json:i},c?yield a:d.push(a),n.slice(0,2)===`--`)break e}else t=`\r
|
|
6
|
-
`+t,i=l+=2;u=n,r=u.indexOf(t)}d.length&&(yield d)}}finally{d.length&&(yield d),await s.cancel()}}(e.body,`--${i}`,t)}var se=Object.defineProperty,ce=(e,t)=>{for(var n in t)se(e,n,{get:t[n],enumerable:!0})},A=Symbol(`meta`);function le(e){return e[A]??null}function ue(e,t){Object.defineProperty(e,A,{value:t,writable:!1,enumerable:!1,configurable:!1})}var de=class{origin;events;sleep;fetch=fetch.bind(globalThis);challenge=null;constructor(e){this.origin=e.origin,this.events=e.events,e.sleep!==void 0&&(this.sleep=JSON.stringify(e.sleep))}async json(e,t){let n=this.setup(t),r=await this.request(e,n),i=r.headers.get(`content-type`)===`application/json`?await r.json():await r.text();return typeof i==`object`&&i&&ue(i,{status:r.status,headers:r.headers}),r.ok?(this.events.emit(`response`,{status:r.status,headers:r.headers}),i):(this.events.emit(`error`,{code:r.status,body:i}),new k.Err(r.status,i))}async multipart(e,t){let n=this.setup(t),r=await this.request(e,n);if(!r.ok)return new k.Err(r.status,{body:await r.text()});let i=await oe(r),a=await i.next();if(n.debug&&console.debug(`Multipart ACK`,{path:e,body:a.value.body}),JSON.parse(a.value.body)!==`ACK`)throw Error(`No ACK`);return(async function*(){for await(let t of i){n.debug&&console.debug(`Multipart chunk`,{path:e,body:t.body});let r=JSON.parse(t.body);if(r===`FIN`)return;yield r}})()}async octets(e,t){let n=await this.multipart(e,t);if(n instanceof Error)return n;let r=(await n.next()).value,i=O();return(async()=>{await new Promise(e=>setTimeout(e,0));for await(let r of n){let n=r.status===`completed`?r.error?new k.Err(r.error.code??`UNKNOWN`,r.error.message):r.output:new k.Err(`EXCEPTION`);t?.debug&&console.debug(`Emitting octets step`,{path:e,step:r.step,payload:n}),i.emit(r.step,n)}i.off(`*`)})(),[r,i]}authenticate(e){this.challenge=e}use(e){this.fetch=e}setup(e){if(e??={},e.headers??={},e.headers.accept??=`application/json`,this.sleep!==void 0&&(e.headers.sleep=this.sleep),e.credentials===`include`&&e.headers.authorization===void 0){if(this.challenge===null)throw Error(`Credentials must be set before sending authenticated request`);e.headers.authorization=this.challenge,delete e.credentials}return e.body!==void 0&&(e.method??=`POST`,e.body instanceof File||e.body instanceof ReadableStream?(e.duplex=`half`,e.headers[`content-type`]??=e.body.type??`application/octet-stream`):(e.body=JSON.stringify(e.body),e.headers[`content-type`]??=`application/json`)),e}async request(e,t){let n=new URL(e,this.origin),r=await this.fetch(n.href,t),i=r.headers.get(`authorization`);return i!==null&&(this.challenge=i,this.events.emit(`challenge`,i)),r}},fe=class{agent;path;init;constructor(e){this.agent=e.agent,this.path=e.path,this.init=e.init}async json(e,t){return await this.request(`json`,e,t)}async octets(e,t){return await this.request(`octets`,e,t)}async multipart(e,t){return await this.request(`multipart`,e,t)}async request(e,t,n){let r=typeof t==`string`?t:``;n=typeof t==`string`?n:t;let i=this.abs(r),a=Object.assign({},this.init,n);if(e===`json`)return await this.agent.json(i,a);if(e===`octets`)return await this.agent.octets(i,a);if(e===`multipart`)return await this.agent.multipart(i,a);throw Error(`Invalid method: ${e}`)}abs(e){let t=new URL(this.path,`https://void`),n=new URL(e,t);return n.pathname.endsWith(`/`)||(n.pathname+=`/`),n.pathname+n.search}},pe=class{events;agent;constructor(e){this.events=O(),this.agent=new de({origin:e.origin,events:this.events,sleep:e.sleep})}resource(e,t){return new fe({agent:this.agent,path:e,init:t})}authenticate(e){this.agent.authenticate(e)}use(e){this.agent.use(e)}};function me(e){return typeof e==`string`&&(e={origin:e}),new pe(e)}ce({},{format:()=>ge,test:()=>he});function he(e){return/^[[(]\d+\.\.\d+[\])]{1}$/.test(e)}function ge(e,t){let[n,r]=t.slice(1,-1).split(`..`);return[`${e}${t.startsWith(`(`)?`>`:`>=`}${n}`,`${e}${t.endsWith(`)`)?`<`:`<=`}${r}`]}var _e={title:`Discovery`,description:`What a Toa application serves`},j=typeof window>`u`?``:window.location.origin,ve=8002,ye=8003,be=Se(ve,`/.introspection/`),xe=Se(ye,`/.configuration/`);function Se(e,t){if(typeof window>`u`)return t;let{protocol:n,hostname:r}=window.location;return(Ce(r)?`${n}//${r}:${e}`:``)+t}function Ce(e){return e===`localhost`||e===`127.0.0.1`||e===`[::1]`||e.startsWith(`192.168.`)||e.startsWith(`172.16.`)||e.startsWith(`10.`)}var we=`1`;(()=>{let e=new Date(Number.parseInt(ae)),t=e.getFullYear(),n=new Date(t,0,1).getTime(),r=new Date(t+1,0,1).getTime();return`${we}.${(t+(e.getTime()-n)/(r-n)).toFixed(4)}`})();var M=me({origin:j,sleep:void 0});console.info(`Origin connected`,j,`no sleep`);function Te(e){if(document.startViewTransition===void 0)return Promise.resolve(e?.());let t=e!==void 0;return t&&je(),new Promise(n=>{let r=document.startViewTransition(async()=>{De(),n(await e?.())});r.finished.then(i,i),r.ready.catch(N);function i(){t&&Me(),F()}})}function N(){}function Ee(e){if(!(e.type===`popstate`&&e.event.hasUAVisualTransition)&&document.startViewTransition!==void 0)return new Promise(t=>{let n=document.startViewTransition({types:[`route`],update:async()=>{De(),t(),await e.complete}});n.finished.then(F,F),n.ready.catch(N)})}var P=null;function De(){if(P===null)return;let e=P.el.style.viewTransitionName===P.name;P.el.style.viewTransitionName=e?``:P.name,P.el.style.viewTransitionClass=e?``:P.classes??``}function F(){P!==null&&P.el.style.viewTransitionName===P.name&&(Oe(P),P=null)}function Oe(e){e.el.style.viewTransitionName=``,e.el.style.viewTransitionClass=``}var ke=E(!1),Ae=new Set;function je(){ke.set(!0);for(let e of Ae)e.original={name:e.node.style.viewTransitionName,classes:e.node.style.viewTransitionClass},e.node.style.viewTransitionName=e.options.name,e.options.classes!==void 0&&(e.node.style.viewTransitionClass=e.options.classes)}function Me(){for(let e of Ae)e.original!==void 0&&(e.node.style.viewTransitionName=e.original.name,e.node.style.viewTransitionClass=e.original.classes);ke.set(!1)}navigator.userAgent.toLowerCase().includes(`windows`);var Ne=/mac ?os|ios|ipad ?os/i.test(navigator.userAgentData?.platform??``)||/(Mac|iPhone|iPad|iPod)/.test(navigator.userAgent);/android/i.test(navigator.userAgent);var Pe=/(iPhone|iPad|iPod)/.test(navigator.userAgent),Fe=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);`ontouchstart`in window;var Ie=window.matchMedia(`(display-mode: standalone)`).matches,Le=/PWAShell/i.test(navigator.userAgent);navigator.userAgent.match(/PWAShell\/(\S+)/)?.[1];var Re=!(`ontouchstart`in window);[`en-US`,`en-LR`,`en-MM`].includes(navigator.language),[`en-US`,`en-GB`,`en-CA`,`en-AU`,`en-NZ`,`en-IE`,`en-IN`,`en-LR`,`en-MM`].includes(navigator.language);function ze(e=navigator.userAgent){return[/FBAN|FBAV|FB_IAB/i,/Instagram/i,/Twitter/i,/Line/i,/LinkedIn/i,/Snapchat/i,/WhatsApp/i,/WeChat/i,/Messenger/i,/QQ/i,/Reddit/i,/Puffin/i,/TikTok/i,/musical.ly/i,/YouTube/i,/Pinterest/i,/Discord/i,/Telegram/i,/Viber/i,/Slack/i,/Signal/i,/KakaoTalk/i,/Baidu/i].some(t=>t.test(e))||(()=>{let t=RegExp(`(${[`WebView`,`(iPhone|iPod|iPad)(?!.*Safari/)`,`Android.*(wv)`,`(AppleWebKit)(?!.*Safari)`].join(`|`)})`,`ig`);return e.match(t)!==null})()||`TelegramWebviewProxy`in window||`TelegramWebviewProxyProto`in window||`TelegramWebview`in window}ze(navigator.userAgent);var Be=new URLSearchParams;new URLSearchParams;function Ve(e){return Be.get(e)}function He(e,t=24){return p(e,n=>{let r=Date.now(),i=setInterval(()=>a(),1e3/t);function a(){let t=e-(Date.now()-r);t>0?n(t):(n(0),clearInterval(i))}return a(),()=>clearInterval(i)})}var Ue=class{store;values;request;revalidate;stale;timestamp=0;constructor(e){this.store=E(null),this.values=e.values,this.request=e.get,this.revalidate=e.revalidate??Ge.revalidate,this.stale=e.stale??Ge.stale,e.persist!==void 0&&this.persist(e.persist),e.bind!==void 0&&this.bind(e.bind)}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}add(e){this.values?.set(e.id,e),this.store.update(t=>t===null||t instanceof Error?[e]:t.find(t=>t.id===e.id)===void 0?[e,...t]:t)}get(e,t){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.get(e,t)}extract(e){if(this.values===void 0)throw Error(`Collection: values is not defined`);return this.values.extract(e)}delete(e){this.values?.delete(e),this.store.update(t=>t===null||t instanceof Error?t:t.filter(t=>t.id!==e))}set(e,t){this.store.update(n=>{if(n===null||n instanceof Error)return[e];let r=n.findIndex(t=>t.id===e.id);return r===-1?t?.add===!0?[e,...n]:n:(n[r]=e,n)}),this.values?.set(e.id,e)}update(e,t,n){if(this.values===void 0)throw Error(`Collection: values is not defined`);let r=this.values.extract(e);if(r===null)return;let i=t(r)??r;this.set(i,n)}sync(){return(this.timestamp===0||this.timestamp+this.revalidate<Date.now())&&(this.stale||this.clear(),this.refresh()),this}async fetch(){return await this.refresh(),this}replace(e){let t=e;if(this.store.set(t),this.timestamp=Date.now(),this.values!==void 0)for(let e of t)this.values.set(e.id,e)}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error?this.store.set(e):this.replace(e)}persist(e){if(typeof window>`u`)return;let t=this.load(e);if(t!==null&&(this.store.set(t),this.values?.persistent===!1))for(let e of t)this.values.set(e.id,e);this.store.subscribe(t=>{t instanceof Error||(t===null?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t)))})}load(e){if(typeof window>`u`)return null;let t=localStorage.getItem(e);if(t===null)return null;try{let n=JSON.parse(t);return Array.isArray(n)?n:(console.error(`Storage value for ${e} is not an array:`,n),null)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}bind(e){e.subscribe(e=>{e===null&&this.clear()})}clear(){this.store.set(null),this.values?.clear(),this.timestamp=0}};function We(e){return new Ue(e)}var Ge={revalidate:3e5,stale:!1},Ke=class{store;default;request;revalidate;timestamp=0;constructor(e){this.default=e.default??null,this.request=e.get,this.revalidate=e.revalidate??Ye.revalidate,this.store=e.persist===void 0||typeof window>`u`?E(this.default):qe(e.persist,this.default,e.session),e.bind&&this.bind(e.bind)}set(e){this.store.set(e)}update(e){this.store.update(t=>e(t))}subscribe(e,t){return this.sync(),this.store.subscribe(e,t)}extract(){return b(this.store)}sync(){this.request!==void 0&&this.timestamp+this.revalidate<Date.now()&&this.refresh()}async refresh(){if(this.request===void 0)return;this.timestamp=Date.now();let e=await this.request();e instanceof Error||this.set(e)}bind(e){e.subscribe(e=>{e===null&&this.store.set(this.default)})}};function I(e={}){return new Ke(e)}function qe(e,t,n){let r=E(Je(e)??t),i=n?`sessionStorage`:`localStorage`;return r.subscribe(t=>{t===null?window[i].removeItem(e):window[i].setItem(e,JSON.stringify(t))}),r}function Je(e){let t=window.localStorage.getItem(e);if(t===null)return null;try{return JSON.parse(t)}catch(t){return console.error(`Invalid storage value for ${e}`,t),null}}var Ye={revalidate:3e5};function Xe(e,t){return new Promise(n=>{let r=!1,i=null;i=e.subscribe(e=>{t(e)&&(i?.(),r=!0,n(e))}),r&&i?.()})}function Ze(e){return Xe(e,e=>e!==null&&!(e instanceof Error))}var Qe={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},$e=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},et=Symbol(`lucide-context`),tt=()=>h(et),nt=new Set([`$$slots`,`$$events`,`$$legacy`,`name`,`color`,`size`,`strokeWidth`,`absoluteStrokeWidth`,`iconNode`,`children`]),rt=u(`<svg><!><!></svg>`);function L(a,o){i(o,!0);let s=tt()??{},c=S(o,`color`,19,()=>s.color??`currentColor`),l=S(o,`size`,19,()=>s.size??24),u=S(o,`strokeWidth`,19,()=>s.strokeWidth??2),p=S(o,`absoluteStrokeWidth`,19,()=>s.absoluteStrokeWidth??!1),h=S(o,`iconNode`,19,()=>[]),_=m(o,nt),y=te(()=>p()?Number(u())*24/Number(l()):u());var b=rt();g(b,e=>({...Qe,...e,..._,width:l(),height:l(),stroke:c(),"stroke-width":f(y),class:[`lucide-icon lucide`,s.class,o.name&&`lucide-${o.name}`,o.class]}),[()=>!o.children&&!$e(_)&&{"aria-hidden":`true`}]);var x=e(b);r(x,17,h,re,(e,n)=>{var r=te(()=>ee(f(n),2));let i=()=>f(r)[0],a=()=>f(r)[1];var o=C(),s=v(o);ie(s,i,!0,(e,t)=>{g(e,()=>({...a()}))}),t(e,o)});var T=ne(x);D(T,()=>o.children??n),w(b),t(a,b),d()}var it=new Set([`$$slots`,`$$events`,`$$legacy`]);function at(e,t){let n=m(t,it),r=[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`}]];L(e,T({name:`loader-circle`},()=>n,{get iconNode(){return r}}))}var ot=new Set([`$$slots`,`$$events`,`$$legacy`]);function st(e,t){let n=m(t,ot),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}]];L(e,T({name:`rotate-ccw`},()=>n,{get iconNode(){return r}}))}var ct=c(`<div class="m-auto flex flex-col items-center gap-4"><span class="text-destructive">Something went terribly wrong</span> <button class="p-4 border border-muted-foreground hover:bg-muted cursor-pointer rounded-md flex items-center gap-2"><!></button></div>`);function lt(n,r){let i=()=>y(r.store,`$store`,o),[o,c]=_(),l=S(r,`silent`,3,!1);var u=C(),d=v(u),f=e=>{var n=C(),i=v(n),o=e=>{var n=C(),i=v(n);D(i,()=>r.waiting),t(e,n)},s=e=>{at(e,{class:`animate-spin m-auto text-muted-foreground`})};a(i,e=>{r.waiting?e(o):l()||e(s,1)}),t(e,n)},p=n=>{var o=C(),c=v(o),u=e=>{var n=C(),a=v(n);D(a,()=>r.error,i),t(e,n)},d=n=>{var r=ct(),i=ne(e(r),2);st(e(i),{size:16}),w(i),w(r),s(`click`,i,()=>window.location.reload()),t(n,r)};a(c,e=>{r.error?e(u):l()||e(d,1)}),t(n,o)},m=e=>{var n=C(),a=v(n);D(a,()=>r.awaited,i),t(e,n)};a(d,e=>{i()===null?e(f):i()instanceof Error?e(p,1):e(m,-1)}),t(n,u),c()}o([`click`]);var R=I({persist:`auth:account`}),z=I({persist:`auth:challenge`,bind:R}),B=I({persist:`auth:method`}),V=E(!1),ut=E(!1),dt=x([z,R,V],([e,t,n])=>e!==null&&t!==null&&n===!1);function H(e){R.extract()?.id!==e.id&&R.set(null),R.set(e)}var ft=M.resource(`/identity/`);async function U(e){let t={method:`GET`};return e!==void 0&&(t.headers={authorization:e},t.credentials=`include`),ft.json(t)}var pt=M.resource(`/identity/basic/`,{credentials:`include`});async function mt(e,t){return await pt.json(e,{method:`POST`,body:t})}var W=M.resource(`/accounts/otp/`);async function G(e,t){return typeof e==`string`?await W.json(e,{method:`POST`,body:t,credentials:`include`}):await W.json({method:`POST`,body:e})}var ht=M.resource(`/identity/passkeys/`);async function gt(e,t){return typeof e==`string`?await ht.json(e,{method:`POST`,body:t,credentials:`include`}):await ht.json({method:`POST`,body:e})}var _t=M.resource(`/identity/federation/`,{credentials:`include`});async function vt(e,t){return await _t.json(e,{method:`POST`,body:t})}async function K(){let e=z.extract();if(e===null)return;let t=await U(e);if(t instanceof Error)return t;H(t)}function q(e,t){return e instanceof Error?e:(H(e),B.set(t),e)}var yt=I({persist:`auth:oidc:nonce`});function bt(e,t){let{client:n,endpoint:r,type:i,scope:a}=e;if(n===void 0||n===``)throw Error(`Client ID is required`);let o=xt(),s=new URLSearchParams({client_id:n,redirect_uri:window.location.origin+`/`,response_type:i,response_mode:`fragment`,scope:a,state:btoa(JSON.stringify({idp:t})),nonce:o});yt.set(o),window.location.href=r+`?`+s}function xt(){return window.crypto?.randomUUID?.()??Math.random().toString(16).slice(2)}var St=globalThis.__sveltekit_yrr7mn.env,Ct={apple:{iss:`https://appleid.apple.com`,endpoint:`https://appleid.apple.com/auth/authorize`,type:`code`,scope:`openid`,client:St.PUBLIC_APPLE_CLIENT_ID},google:{iss:`https://accounts.google.com`,endpoint:`https://accounts.google.com/o/oauth2/v2/auth`,type:`id_token`,scope:`openid profile`,client:St.PUBLIC_GOOGLE_CLIENT_ID}};async function wt(e){await Tt();let t=await new Promise(t=>{window.google.accounts.oauth2.initCodeClient({client_id:e.client,scope:e.scope,ux_mode:`popup`,state:btoa(JSON.stringify({idp:`google`})),redirect_uri:window.location.origin+`/`,callback:async e=>{t(e)}}).requestCode()});return t?.code===void 0?Error(`NO_RESPONSE`,{cause:t}):t.code}function Tt(){return new Promise((e,t)=>{if(window.google?.accounts?.oauth2!==void 0)return e(void 0);let n=document.createElement(`script`);n.src=`https://accounts.google.com/gsi/client`,n.async=!0,n.onload=()=>e(void 0),n.onerror=t,document.head.appendChild(n)})}var J=typeof window<`u`&&window;async function Et(e){await Dt(e);let t=await J.AppleID.auth.signIn().catch(e=>e);return t instanceof Error?t:t?.authorization===void 0?Error(`No authentication response received`,{cause:t}):t.authorization.code}function Dt(e){if(J.AppleID===void 0)return new Promise((t,n)=>{let r=document.createElement(`script`);r.src=`https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js`,r.async=!0,r.onload=()=>{J.AppleID.auth.init({clientId:e.client,scope:e.scope,redirectURI:window.location.origin,state:btoa(JSON.stringify({idp:`apple`})),usePopup:!0}),t(void 0)},r.onerror=n,document.head.appendChild(r)})}var Ot={apple:Et,google:wt};async function kt(e,t){let n=await At(e);return n instanceof Error?n:t===void 0?Mt(e,n):jt(t,n)}async function At(e){let t=Ot[e]??bt,n=Ct[e],r=await t(n,e);if(r instanceof Error)return console.error(`Authentication failed`,r),r;if(r===void 0)throw Error(`No authentication code received, redirect flow is not supported`);let i={code:r,iss:n.iss,for:window.location.origin};return btoa(JSON.stringify(i))}async function jt(e,t){let n=await vt(e,{scheme:`code`,credentials:t});if(n instanceof Error)return n;K()}async function Mt(e,t){return q(await U(`Code `+t),e)}function Nt(){R.set(null)}async function Pt(e,t){return q(await U(`Basic `+btoa(`${e}:${t}`)),`password`)}async function Ft(e,t){return await mt(e,t)}async function It(e,t){let n=await Ft(e,t);if(n instanceof Error)return n;K()}async function Lt(e){return G({email:e})}async function Rt(e,t){return await G(e,{email:t})}async function zt(e,t){return q(await U(`OTP `+btoa(`${e}:${t}`)),`password`)}var Bt=M.resource(`/identity/passkeys/challenges/`);async function Vt(e,t){let n={type:e};return t===void 0?await Bt.json(`.`,{method:`POST`,body:n}):await Bt.json(t,{method:`POST`,body:n})}var Ht=M.resource(`/identity/passkeys/`);async function Ut(e){return await Ht.json(e,{credentials:`include`})}async function Wt(){return await Ut((await Ze(R)).id)}We({get:Wt,persist:`identity:passkeys`,bind:R,stale:!0});function Y(e){let t=(e+`=`.repeat((4-e.length%4)%4)).replace(/-/g,`+`).replace(/_/g,`/`),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}function Gt(e){return new TextEncoder().encode(e).buffer}function X(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function Kt({id:e,transports:t}){return{id:Y(e),type:`public-key`,transports:t}}async function qt(e,t){let n={challenge:Y(t.challenge),timeout:t.timeout,authenticatorSelection:t.authenticatorSelection,pubKeyCredParams:t.pubKeyCredParams,rp:{name:`app`},user:{id:Gt(e.id),name:e.name,displayName:e.name},excludeCredentials:t.excludeCredentials.map(Kt)};return await navigator.credentials.create({publicKey:n}).catch(e=>e)}async function Jt(e){let t={timeout:e.timeout,challenge:Y(e.challenge),allowCredentials:e.allowCredentials.map(Kt),userVerification:e.userVerification};return await navigator.credentials.get({publicKey:t})}async function Yt(e,t){let n=await Vt(`creation`,t);if(n instanceof Error)return n;let r=await qt({id:n.identity,name:e},n);if(r instanceof Error)return r;if(r===null)throw Error(`No credential is created`);return{key:Xt(r,e),identity:n.identity}}function Xt(e,t){let n=e.response,r=n.getAuthenticatorData(),i=n.getTransports(),a=n.getPublicKeyAlgorithm(),o=n.getPublicKey(),s=e.getClientExtensionResults();if(o===null)throw Error(`No public key is created`);return{id:e.id,type:e.type,response:{attestationObject:X(n.attestationObject),clientDataJSON:X(n.clientDataJSON),authenticatorData:X(r),transports:i,publicKeyAlgorithm:a,publicKey:X(o)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:s,label:t}}async function Zt(e){let t=await Vt(`request`,e);if(t instanceof Error)return t;let n=Date.now(),r=await Jt(t).catch(e=>e);return r instanceof Error?r.name===`NotAllowedError`&&Date.now()-n<50?new $t:r:r===null?Error(`No credential given`):Qt(r)}function Qt(e){let t=e.response;return{id:e.id,type:e.type,response:{authenticatorData:X(t.authenticatorData),clientDataJSON:X(t.clientDataJSON),signature:X(t.signature),userHandle:t.userHandle===null?null:X(t.userHandle)},authenticatorAttachment:e.authenticatorAttachment,clientExtensionResults:e.getClientExtensionResults()}}var $t=class extends Error{constructor(){super(),this.name=this.constructor.name}},en=typeof window>`u`||window.PublicKeyCredential!==void 0;async function tn(e,t){let n=await Yt(e,t);if(n instanceof Error)return console.error(`Credential creation failed`,n),n;let r=await gt(n.identity,n.key);if(r instanceof Error)return console.error(`Credential registration failed`,r),r;let i=z.extract();return i===null?Error(`Unauthenticated`):q(await U(i),`passkey`)}async function nn(e){let t=await Zt(e);if(t instanceof Error)return console.error(`Credential request failed`,t),t;let n=await gt(t);if(n instanceof Error)return console.error(`Credential verification failed`,n),n;let r=z.extract();return r===null?Error(`Unauthenticated`):q(await U(r),`passkey`)}var rn=M.resource(`/.discovery`);async function an(){let e=b(z)!==null;return await rn.json({method:`OPTIONS`,...e?{credentials:`include`}:{}})}async function on(e){let t=e.guarded&&b(z)!==null,n=await M.resource(e.path).json({method:e.verb,...e.body===void 0?{}:{body:e.body},...t?{credentials:`include`}:{}});if(n instanceof Error){let e=n.code;return{status:typeof e==`number`?e:0,body:n.cause??n.message,ok:!1}}return{status:(typeof n==`object`&&n?le(n):null)?.status??200,body:n,ok:!0}}var sn=I({get:an,persist:`discovery:tree`,bind:R}),cn=I({persist:`discovery:server`}),ln={"en-US":{native:`English`,locale:`en-US`,dir:`ltr`,nav:{identity:`Copy your account id`,markdown:`Download as Markdown`,mcp:`Copy the MCP address`,configuration:`Open Configuration`,introspection:`Open Introspection`,signin:`Sign in`,signout:`Sign out`,filter:`Filter resources`,back:`Back`}}},un=[`en-US`];function dn(e){return un.some(t=>t.startsWith(e))}function Z(e){return un.find(t=>t.startsWith(e))??`en-US`}var Q=l((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.format=o,e.parse=s;var t=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/[\\"]/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function o(e){let{type:t,parameters:r}=e;if(!t||!i.test(t))throw TypeError(`Invalid type: ${t}`);let a=t;if(r)for(let e of Object.keys(r)){if(!n.test(e))throw TypeError(`Invalid parameter name: ${e}`);a+=`; ${e}=${y(r[e])}`}return a}function s(e,t){let n=t?.comma===!0?m:65536,r=e.length,i=_(e,t?.start??0,r),o=i;i=g(e,i,r,n);let s=v(e,o,i),c=e.slice(o,s).toLowerCase();return t?.parameters===!1?{type:c,index:i,parameters:new a}:h(e,c,i,r,n)}var c=32,l=9,u=59,d=61,f=34,p=92,m=44;function h(e,t,n,r,i){let o=new a;parameter:for(;n<r&&e.charCodeAt(n)!==i;){n=_(e,n+1,r);let t=n;for(;n<r;){let a=e.charCodeAt(n);if(a===i)break parameter;if(a===u)continue parameter;if(a===d){let a=v(e,t,n),s=e.slice(t,a).toLowerCase();if(n=_(e,n+1,r),n<r&&e.charCodeAt(n)===f){n++;let t=``;for(;n<r;){let a=e.charCodeAt(n++);if(a===f){n=g(e,n,r,i),o[s]===void 0&&(o[s]=t);break}if(a===p&&n<r){t+=e[n++];continue}t+=String.fromCharCode(a)}continue parameter}let c=n;if(n=g(e,n,r,i),o[s]===void 0){let t=v(e,c,n);o[s]=e.slice(c,t)}continue parameter}n++}}return{type:t,index:n,parameters:o}}function g(e,t,n,r){for(;t<n;){let n=e.charCodeAt(t);if(n===u||n===r)break;t++}return t}function _(e,t,n){for(;t<n;){let n=e.charCodeAt(t);if(n!==c&&n!==l)break;t++}return t}function v(e,t,n){for(;n>t;){let t=e.charCodeAt(n-1);if(t!==c&&t!==l)break;n--}return n}function y(e){if(n.test(e))return e;if(t.test(e))return`"${e.replace(r,`\\$&`)}"`;throw TypeError(`Invalid parameter value: ${e}`)}})),$=l(((e,t)=>{var n=Q();t.exports=r;function r(e){for(var t=[],r=0;r<e.length;){var a=i(e,r),o=n.parse(e,{comma:!0,start:a});o.type=e.slice(a,a+o.type.length),t.push(o),r=o.index+1}return t}function i(e,t){for(var n=t;e.charCodeAt(n)===32||e.charCodeAt(n)===9;)n++;return n}})),fn=l(((e,t)=>{var n=$();t.exports=s,t.exports.preferredCharsets=s;function r(e){for(var t=n(e),r=0,a=0;r<t.length;r++){var o=i(t[r],r);o&&(t[a++]=o)}return t.length=a,t}function i(e,t){return e.type?{charset:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.charset.toLowerCase()===e.toLowerCase())r|=1;else if(t.charset!==`*`)return null;return{i:n,o:t.i,q:t.q,s:r}}function s(e,t){var n=r(e===void 0?`*`:e||``);if(!t)return n.filter(u).sort(c).map(l);var i=t.map(function(e,t){return a(e,n,t)});return i.filter(u).sort(c).map(function(e){return t[i.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function l(e){return e.charset}function u(e){return e.q>0}})),pn=l(((e,t)=>{var n=$();t.exports=s,t.exports.preferredEncodings=s;function r(e){for(var t=n(e),r=!1,a=1,s=0,c=0;s<t.length;s++){var l=i(t[s],s);l&&(t[c++]=l,r||=o(`identity`,l),a=Math.min(a,l.q||1))}return r||(t[c++]={encoding:`identity`,q:a,i:s}),t.length=c,t}function i(e,t){return e.type?{encoding:e.type,q:e.parameters.q?parseFloat(e.parameters.q):1,i:t}:null}function a(e,t,n){for(var r={encoding:e,o:-1,q:0,s:0},i=0;i<t.length;i++){var a=o(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function o(e,t,n){var r=0;if(t.encoding.toLowerCase()===e.toLowerCase())r|=1;else if(t.encoding!==`*`)return null;return{encoding:e,i:n,o:t.i,q:t.q,s:r}}function s(e,t,n){var i=r(e||``),o=n?function(e,t){if(e.q!==t.q)return t.q-e.q;var r=n.indexOf(e.encoding),i=n.indexOf(t.encoding);return r===-1&&i===-1?t.s-e.s||e.o-t.o||e.i-t.i:r!==-1&&i!==-1?r-i:r===-1?1:-1}:c;if(!t)return i.filter(u).sort(o).map(l);var s=t.map(function(e,t){return a(e,i,t)});return s.filter(u).sort(o).map(function(e){return t[s.indexOf(e)]})}function c(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i}function l(e){return e.encoding}function u(e){return e.q>0}})),mn=l(((e,t)=>{var n=Q(),r=$();t.exports=c,t.exports.preferredLanguages=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){if(!e.type)return null;var n=e.type.indexOf(`-`);return{prefix:n===-1?e.type:e.type.slice(0,n),suffix:n===-1?void 0:e.type.slice(n+1),q:e.parameters.q?parseFloat(e.parameters.q):1,i:t,full:e.type}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0);if(!i)return null;var o=0;if(t.full.toLowerCase()===i.full.toLowerCase())o|=4;else if(t.prefix.toLowerCase()===i.full.toLowerCase())o|=2;else if(t.full.toLowerCase()===i.prefix.toLowerCase())o|=1;else if(t.full!==`*`)return null;return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.full}function d(e){return e.q>0}})),hn=l(((e,t)=>{var n=Q(),r=$();t.exports=c,t.exports.preferredMediaTypes=c;function i(e){for(var t=r(e),n=0,i=0;n<t.length;n++){var o=a(t[n],n);o&&(t[i++]=o)}return t.length=i,t}function a(e,t){var n=e.type.indexOf(`/`);if(n===-1)return null;var r=e.parameters.q?parseFloat(e.parameters.q):1;return delete e.parameters.q,{type:e.type.slice(0,n),subtype:e.type.slice(n+1),params:e.parameters,q:r,i:t}}function o(e,t,n){for(var r={o:-1,q:0,s:0},i=0;i<t.length;i++){var a=s(e,t[i],n);a&&(r.s-a.s||r.q-a.q||r.o-a.o)<0&&(r=a)}return r}function s(e,t,r){var i=a(n.parse(e),0),o=0;if(!i)return null;if(t.type.toLowerCase()==i.type.toLowerCase())o|=4;else if(t.type!=`*`)return null;if(t.subtype.toLowerCase()==i.subtype.toLowerCase())o|=2;else if(t.subtype!=`*`)return null;var s=Object.keys(t.params);if(s.length>0){if(s.every(function(e){return t.params[e]==`*`||(t.params[e]||``).toLowerCase()==(i.params[e]||``).toLowerCase()}))o|=1;else return null}return{i:r,o:t.i,q:t.q,s:o}}function c(e,t){var n=i(e===void 0?`*/*`:e||``);if(!t)return n.filter(d).sort(l).map(u);var r=t.map(function(e,t){return o(e,n,t)});return r.filter(d).sort(l).map(function(e){return t[r.indexOf(e)]})}function l(e,t){return t.q-e.q||t.s-e.s||e.o-t.o||e.i-t.i||0}function u(e){return e.type+`/`+e.subtype}function d(e){return e.q>0}}));l(((e,t)=>{var n=fn(),r=pn(),i=mn(),a=hn();t.exports=o,t.exports.Negotiator=o;function o(e){if(!(this instanceof o))return new o(e);this.request=e}o.prototype.charset=function(e){var t=this.charsets(e);return t&&t[0]},o.prototype.charsets=function(e){return n(this.request.headers[`accept-charset`],e)},o.prototype.encoding=function(e,t){var n=this.encodings(e,t);return n&&n[0]},o.prototype.encodings=function(e,t){var n=t||{};return r(this.request.headers[`accept-encoding`],e,n.preferred)},o.prototype.language=function(e){var t=this.languages(e);return t&&t[0]},o.prototype.languages=function(e){return i(this.request.headers[`accept-language`],e)},o.prototype.mediaType=function(e){var t=this.mediaTypes(e);return t&&t[0]},o.prototype.mediaTypes=function(e){return a(this.request.headers.accept,e)},o.prototype.preferredCharset=o.prototype.charset,o.prototype.preferredCharsets=o.prototype.charsets,o.prototype.preferredEncoding=o.prototype.encoding,o.prototype.preferredEncodings=o.prototype.encodings,o.prototype.preferredLanguage=o.prototype.language,o.prototype.preferredLanguages=o.prototype.languages,o.prototype.preferredMediaType=o.prototype.mediaType,o.prototype.preferredMediaTypes=o.prototype.mediaTypes}))();var gn=`en-US`,_n=I({persist:`intl:selected`}),vn=x([R,_n],([e,t])=>t?Z(t):yn()||(e?.locale!==void 0&&dn(e.locale)?Z(e.locale):gn));x(R,e=>e?.grammar??`none`);function yn(){if(typeof navigator<`u`){for(let e of navigator.languages)if(dn(e))return Z(e)}return null}var bn=x(vn,e=>ln[e]);export{Ne as A,be as B,B as C,L as D,at as E,Ie as F,j as H,Ee as I,Te as L,Pe as M,Fe as N,He as O,Le as P,M as R,ut as S,lt as T,le as U,_e as V,Ct as _,on as a,dt as b,tn as c,Lt as d,zt as f,kt as g,Nt as h,sn as i,Re as j,Ve as k,en as l,Pt as m,vn as n,an as o,It as p,cn as r,nn as s,bn as t,Rt as u,K as v,V as w,z as x,R as y,xe as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/.discovery/_app/immutable/nodes/0.BcmlOx1v.js","/.discovery/_app/immutable/chunks/BVDJTrf4.js","/.discovery/_app/immutable/chunks/BDckNUhP.js","/.discovery/_app/immutable/chunks/xihTtKlq.js","/.discovery/_app/immutable/chunks/xZbjwf2l.js","/.discovery/_app/immutable/chunks/DbLTrkva.js","/.discovery/_app/immutable/assets/0.DKJjMwRs.css","/.discovery/_app/immutable/nodes/1.BzMQT6JK.js","/.discovery/_app/immutable/nodes/2.CbX5khSR.js","/.discovery/_app/immutable/chunks/BEB0f03Q.js","/.discovery/_app/immutable/assets/ui.DWW-43mU.css","/.discovery/_app/immutable/assets/2.BghF56l_.css","/.discovery/_app/immutable/nodes/3.BKJAedfV.js","/.discovery/_app/immutable/nodes/4.C-NuO1rS.js","/.discovery/_app/immutable/nodes/5.C2tdHzXF.js","/.discovery/_app/immutable/nodes/6.BWMOa3IU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,A as t,Ct as n,E as r,F as i,J as a,M as o,O as s,St as c,U as l,V as u,X as d,Y as f,b as p,c as m,et as h,i as g,it as _,j as v,kt as y,n as b,ot as x,r as S,st as C,tt as w}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";var T=`modulepreload`,E=function(e,t){return new URL(e,t).href},D={},O=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=E(t,n),t=s(t),t in D)return;D[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:T,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},k={},A=o(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),j=o(`<!> <!>`,1);function M(o,S){n(S,!0);let T=g(S,`components`,23,()=>[]),E=g(S,`data_0`,3,null),D=g(S,`data_1`,3,null);d(()=>S.stores.page.set(S.page)),f(()=>{S.stores,S.page,S.constructors,T(),S.form,E(),D(),S.stores.page.notify()});let O=x(!1),k=x(!1),M=x(null);b(()=>{let e=S.stores.page.subscribe(()=>{u(O)&&(_(k,!0),l().then(()=>{_(M,document.title||`untitled page`,!0)}))});return _(O,!0),e});let N=C(()=>S.constructors[1]);var P=j(),F=h(P),I=e=>{let n=C(()=>S.constructors[0]);var r=v(),i=h(r);p(i,()=>u(n),(e,n)=>{m(n(e,{get data(){return E()},get form(){return S.form},get params(){return S.page.params},children:(e,n)=>{var r=v(),i=h(r);p(i,()=>u(N),(e,t)=>{m(t(e,{get data(){return D()},get form(){return S.form},get params(){return S.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),t(e,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),t(e,r)},L=e=>{let n=C(()=>S.constructors[0]);var r=v(),i=h(r);p(i,()=>u(n),(e,t)=>{m(t(e,{get data(){return E()},get form(){return S.form},get params(){return S.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),t(e,r)};r(F,e=>{S.constructors[1]?e(I):e(L,-1)});var R=w(F,2),z=n=>{var o=A(),c=e(o),l=e=>{var n=i();a(()=>s(n,u(M))),t(e,n)};r(c,e=>{u(k)&&e(l)}),y(o),t(n,o)};r(R,e=>{u(O)&&e(z)}),t(o,P),c()}var N=S(M),P=[()=>O(()=>import(`../nodes/0.BcmlOx1v.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import(`../nodes/1.BzMQT6JK.js`),__vite__mapDeps([7,1,3,5,2]),import.meta.url),()=>O(()=>import(`../nodes/2.CbX5khSR.js`),__vite__mapDeps([8,1,2,3,4,9,5,10,11]),import.meta.url),()=>O(()=>import(`../nodes/3.BKJAedfV.js`),__vite__mapDeps([12,1,3,9,2,4,5,10]),import.meta.url),()=>O(()=>import(`../nodes/4.C-NuO1rS.js`),__vite__mapDeps([13,1,3,9,2,4,5,10]),import.meta.url),()=>O(()=>import(`../nodes/5.C2tdHzXF.js`),__vite__mapDeps([14,1,3,9,2,4,5,10]),import.meta.url),()=>O(()=>import(`../nodes/6.BWMOa3IU.js`),__vite__mapDeps([15,1,3,9,2,4,5,10]),import.meta.url)],F=[],I={"/":[2],"/authentication":[3],"/multipart":[4],"/queries":[5],"/status":[6]},L={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},R=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.decode])),z=Object.fromEntries(Object.entries(L.transport).map(([e,t])=>[e,t.encode])),B=!1,V=(e,t)=>R[e](t),H=()=>O(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{V as decode,R as decoders,I as dictionary,z as encoders,H as get_error_template,B as hash,L as hooks,k as matchers,P as nodes,N as root,F as server_loads};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,r as t}from"../chunks/BDckNUhP.js";export{e as load_css,t as start};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,Ct as t,J as n,K as r,M as i,Nt as a,St as o,V as s,Y as c,Z as l,dt as u,et as d,f,ft as p,j as m,st as h,v as g,x as _}from"../chunks/BVDJTrf4.js";import{t as v}from"../chunks/BDckNUhP.js";import"../chunks/xihTtKlq.js";import{I as y,R as b,V as x,b as S,i as C,k as w,o as T,r as E,t as D,v as O,x as k}from"../chunks/xZbjwf2l.js";import{t as A}from"../chunks/DbLTrkva.js";function j(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);return atob(t.padEnd(t.length+(4-t.length%4)%4,`=`))}function M(){let e=w(`challenge`);return e===null?null:j(e)}function N(){b.events.on(`challenge`,e=>k.set(e)),b.events.on(`error`,e=>{e.code===401&&k.set(null)}),k.subscribe(e=>b.authenticate(e));let e=M();e!==null&&k.set(e),O()}function P(){b.events.on(`response`,({headers:e})=>{let t=e.get(`exposition`);if(t===null)return;let n=e.get(`server`);E.set(n===null?t:`${t} ${n}`)});let e;S.subscribe(t=>{if(e===void 0){e=t;return}t!==e&&(e=t,F())})}async function F(){let e=await T();e instanceof Error||C.set(e)}var I=a({prerender:()=>!1,ssr:()=>!1,trailingSlash:()=>L});N(),P();var L=`always`,R=i(`<meta name="description"/>`);function z(i,a){t(a,!0);let b=()=>p(D,`$dict`,S),[S,C]=u(),w=h(()=>A.data.meta?.title??x.title),T=h(()=>A.data.meta?.description??x.description);v(y),c(()=>{document.dir=b().dir});var E=m();g(`12qhfyh`,t=>{var i=R();n(()=>f(i,`content`,s(T))),r(()=>{l.title=s(w)??``}),e(t,i)});var O=d(E);_(O,()=>a.children),e(i,E),o(),C()}export{z as component,I as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,Ct as n,J as r,M as i,O as a,St as o,et as s,kt as c,tt as l}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{t as u}from"../chunks/DbLTrkva.js";var d=i(`<h1> </h1> <p> </p>`,1);function f(i,f){n(f,!0);var p=d(),m=s(p),h=e(m,!0);c(m);var g=l(m,2),_=e(g,!0);c(g),r(()=>{a(h,u.status),a(_,u.error?.message)}),t(i,p),o()}export{f as component};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,At as n,C as r,Ct as i,E as a,F as o,J as s,M as c,Mt as l,N as u,O as d,Ot as f,P as p,Q as m,R as h,S as g,St as _,V as v,Y as y,a as b,b as x,c as S,d as C,dt as w,et as T,f as E,ft as D,h as O,ht as ee,i as k,it as A,j,kt as M,m as N,n as P,nt as F,o as I,ot as L,pt as te,st as R,tt as z,ut as ne,w as re,x as B,z as V}from"../chunks/BVDJTrf4.js";import{n as ie}from"../chunks/BDckNUhP.js";import"../chunks/xihTtKlq.js";import{A as ae,B as oe,C as se,D as H,H as ce,S as le,U as ue,V as de,_ as fe,b as pe,c as me,d as he,f as ge,g as _e,h as ve,i as ye,j as be,l as xe,m as Se,n as Ce,p as we,s as Te,t as Ee,u as De,w as Oe,y as ke,z as Ae}from"../chunks/xZbjwf2l.js";import{$ as U,A as je,B as Me,C as Ne,E as Pe,F as W,G as Fe,H as G,I as Ie,J as Le,K,L as Re,M as ze,N as Be,O as Ve,P as He,Q as Ue,R as We,S as Ge,T as Ke,U as qe,V as Je,W as Ye,X as Xe,Y as Ze,Z as Qe,_ as $e,b as q,c as et,d as tt,et as nt,g as rt,h as it,j as at,k as ot,l as st,m as ct,nt as J,o as lt,p as ut,q as dt,rt as ft,t as pt,tt as Y,u as mt,v as ht,w as gt,x as _t,y as vt,z as yt}from"../chunks/BEB0f03Q.js";function bt(e){return async t=>{t.preventDefault();let n=t.target.querySelectorAll(`fieldset`),r=[];for(let e of n)e.disabled=!0,r.push(e);await e(t);for(let e of r)e.disabled=!1}}var xt=new Set([`$$slots`,`$$events`,`$$legacy`]);function St(e,t){let n=b(t,xt),r=[[`path`,{d:`M14 8a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h3.293a.707.707 0 0 1 .5 1.207l-6.939 6.939a1.207 1.207 0 0 1-1.708 0l-6.94-6.94a.707.707 0 0 1 .5-1.206H8a1 1 0 0 0 1-1V9a1 1 0 0 1 1-1z`}],[`path`,{d:`M9 4h6`}]];H(e,I({name:`arrow-big-down-dash`},()=>n,{get iconNode(){return r}}))}var Ct=new Set([`$$slots`,`$$events`,`$$legacy`]);function wt(e,t){let n=b(t,Ct),r=[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`}],[`circle`,{cx:`12`,cy:`12`,r:`4`}]];H(e,I({name:`bolt`},()=>n,{get iconNode(){return r}}))}var Tt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Et(e,t){let n=b(t,Tt),r=[[`path`,{d:`m16 17 5-5-5-5`}],[`path`,{d:`M21 12H9`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`}]];H(e,I({name:`log-out`},()=>n,{get iconNode(){return r}}))}var Dt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Ot(e,t){let n=b(t,Dt),r=[[`path`,{d:`m21 21-4.34-4.34`}],[`circle`,{cx:`11`,cy:`11`,r:`8`}]];H(e,I({name:`search`},()=>n,{get iconNode(){return r}}))}var kt=new Set([`$$slots`,`$$events`,`$$legacy`]);function At(e,t){let n=b(t,kt),r=[[`path`,{d:`M20 11v6`}],[`path`,{d:`M20 13h2`}],[`path`,{d:`M3 21v-2a4 4 0 0 1 4-4h6a4 4 0 0 1 2.072.578`}],[`circle`,{cx:`10`,cy:`7`,r:`4`}],[`circle`,{cx:`20`,cy:`19`,r:`2`}]];H(e,I({name:`user-key`},()=>n,{get iconNode(){return r}}))}var jt=new Set([`$$slots`,`$$events`,`$$legacy`]);function Mt(e,t){let n=b(t,jt),r=[[`path`,{d:`m10.586 5.414-5.172 5.172`}],[`path`,{d:`m18.586 13.414-5.172 5.172`}],[`path`,{d:`M6 12h12`}],[`circle`,{cx:`12`,cy:`20`,r:`2`}],[`circle`,{cx:`12`,cy:`4`,r:`2`}],[`circle`,{cx:`20`,cy:`12`,r:`2`}],[`circle`,{cx:`4`,cy:`12`,r:`2`}]];H(e,I({name:`waypoints`},()=>n,{get iconNode(){return r}}))}var Nt={"en-US":{auth:{signupTitle:`One-tap sign-up`,passwordTitle:`Hop in with password`,passwordDescription:`Create an account or sign in`,passkey:`Passkeys`,email:`Email`,alreadyHaveAccount:`Already have an account?`,betterSecurity:`Better security`,passkeysNotSupported:`Passkeys not supported`,passkeysWarning:`Your browser does not respect your privacy and security.`,learnMore:`Learn more`,passwordBlank:`Leave password blank <nobr>to receive</nobr> <nobr>a one-time</nobr> passcode.`,otpInstructions:`Enter the code sent to your email. It expires in 5 minutes.`,continueWith:e=>`Continue with ${e}`,passkeysDescription:`Passkeys are safer than passwords, easier to use, and can’t be stolen.`,yourName:`Your name`,password:`Password`,refresh:{description:e=>`${e?e+`, for`:`For`} security reasons, your credentials have expired. Please log in again to continue.`,title:`Welcome back`,continue:`Continue`},signout:`Sign out`,login:`Log In`,signin:`Sign In`,copyId:`Copy account ID`},credentials:{connect:`Connect`,email:{title:`Email`,description:`Connect your email address`},google:{title:`Google`,description:`Connect your Google account`},apple:{title:`Apple`,description:`Connect your Apple ID`},passkeys:{title:`Passkeys`,tagline:`Sign in faster with a passkey`,create:`Create`,manage:`Manage`,collapse:`Collapse`,add:`Enter passkey name`,delete:`Hold to delete`,unknown:`Unknown`,count:e=>{let t={one:`{n} passkey`,other:`{n} passkeys`},n=`en-US`,r=new Intl.PluralRules(n).select(e),i=t;return(i[r]??i.other).replace(/{n}/g,new Intl.NumberFormat(n).format(e))},meta:(e,t)=>`Added ${e} · Used ${t}`,duplicate:`This device already has a passkey for your account`,failed:`Could not create the passkey. Please try again.`},transfer:{action:`Sign in on another device`,title:`Scan to sign in`,description:`Use your other device to scan this code and sign in.`,done:`Done`}}}},X=ee(Ce,e=>Nt[e]),Pt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Ft=c(`<div><!></div>`);function It(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Pt);var c=Ft();C(c,e=>({"data-slot":`card-content`,class:e,...s}),[()=>J(`px-(--card-spacing)`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Lt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Rt=c(`<p><!></p>`);function zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Lt);var c=Rt();C(c,e=>({"data-slot":`card-description`,class:e,...s}),[()=>J(`text-sm text-muted-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Bt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Vt=c(`<div><!></div>`);function Ht(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Bt);var c=Vt();C(c,e=>({"data-slot":`card-footer`,class:e,...s}),[()=>J(`rounded-b-xl border-t bg-muted/50 p-(--card-spacing) flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Ut=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Wt=c(`<div><!></div>`);function Gt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ut);var c=Wt();C(c,e=>({"data-slot":`card-header`,class:e,...s}),[()=>J(`gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Kt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),qt=c(`<div><!></div>`);function Jt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Kt);var c=qt();C(c,e=>({"data-slot":`card-title`,class:e,...s}),[()=>J(`text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Yt=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`,`size`]),Xt=c(`<div><!></div>`);function Zt(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`size`,3,`default`),c=b(a,Yt);var l=Xt();C(l,e=>({"data-slot":`card`,"data-size":s(),class:e,...c}),[()=>J(`gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col`,a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Qt=new Set([`$$slots`,`$$events`,`$$legacy`]);function $t(e,t){let n=b(t,Qt),r=[[`path`,{d:`M5 12h14`}],[`path`,{d:`m12 5 7 7-7 7`}]];H(e,I({name:`arrow-right`},()=>n,{get iconNode(){return r}}))}var en=c(`<div><!></div>`);function tn(n,r){i(r,!0);let a=L(!1);async function o(){A(a,!0),await new Promise(e=>setTimeout(e,500)),A(a,!1)}var c={shake:o},l=en(),u=e(l);return B(u,()=>r.children),M(l),s(()=>N(l,1,O([r.class,v(a)&&`shake`]),`svelte-alh7mr`)),t(n,l),_(c)}function Z(e){let t=L(F(e));return{[qe]:!0,[Ze]:!0,get current(){return v(t)},set current(e){A(t,e,!0)}}}Z.from=Fe,Z.with=K,Z.flatten=Ye,Z.readonly=Qe,Z.isBox=dt,Z.isWritableBox=Le;function nn(e){return window.getComputedStyle(e).getPropertyValue(`direction`)}var rn=[Ne,je,Ve],an=[Pe,ot,`End`];[...rn,...an];function on(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?gt:Ke,vertical:Ne}[t]}function sn(e=`ltr`,t=`horizontal`){return{horizontal:e===`rtl`?Ke:gt,vertical:Pe}[t]}function cn(e=`ltr`,t=`horizontal`){return[`ltr`,`rtl`].includes(e)||(e=`ltr`),[`horizontal`,`vertical`].includes(t)||(t=`horizontal`),{nextKey:on(e,t),prevKey:sn(e,t)}}var ln=class{#e;#t=Z(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){let e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,t,n=!1){let r=this.#e.rootNode.current;if(!r||!e)return;let i=this.getCandidateNodes();if(!i.length)return;let a=i.indexOf(e),{nextKey:o,prevKey:s}=cn(nn(r),this.#e.orientation.current),c=this.#e.loop.current,l={[o]:a+1,[s]:a-1,[Ve]:0,End:i.length-1};if(n){let e=o===`ArrowDown`?Ke:Ne,t=s===`ArrowUp`?gt:Pe;l[e]=a+1,l[t]=a-1}let u=l[t.key];if(u===void 0)return;t.preventDefault(),u<0&&c?u=i.length-1:u===i.length&&c&&(u=0);let d=i[u];if(d)return d.focus(),this.#t.current=d.id,this.#e.onCandidateFocus?.(d),d}getTabIndex(e){let t=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&t[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){let e=this.#t.current;if(!e)return;let t=this.#e.rootNode.current?.querySelector(`#${e}`);!t||!Ge(t)||t.focus()}},un=18,dn=40,fn=`${dn}px`,pn=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function mn({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r,domContext:i}){let a=L(!1),o=L(!1),s=L(!1);function c(){let e=n.current;return e!==`none`&&e===`increase-width`&&v(a)&&v(o)}function l(){let r=e.current,o=t.current;if(!r||!o||v(s)||n.current===`none`)return;let c=r,l=c.getBoundingClientRect().left+c.offsetWidth,u=c.getBoundingClientRect().top+c.offsetHeight/2,d=l-un,f=u;(i.querySelectorAll(pn).length!==0||i.getDocument().elementFromPoint(d,f)!==r)&&(A(a,!0),A(s,!0))}return y(()=>{let t=e.current;if(!t||n.current===`none`)return;function r(){let e=Re(t).innerWidth-t.getBoundingClientRect().right;A(o,e>=dn)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}}),y(()=>{let e=r.current||i.getActiveElement()===t.current;if(n.current===`none`||!e)return;let a=setTimeout(l,0),o=setTimeout(l,2e3),c=setTimeout(l,5e3),u=setTimeout(()=>{A(s,!0)},6e3);return()=>{clearTimeout(a),clearTimeout(o),clearTimeout(c),clearTimeout(u)}}),{get hasPwmBadge(){return v(a)},get willPushPwmBadge(){return c()},PWM_BADGE_SPACE_WIDTH:fn}}var hn=`^\\d+$`,gn=He({component:`pin-input`,parts:[`root`,`cell`]}),_n=[`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`ArrowUp`,`ArrowDown`,`Home`,`End`,`Escape`,`Enter`,`Tab`,`Shift`,`Control`,`Meta`],vn=class e{static create(t){return new e(t)}opts;attachment;inputAttachment;#e=L(!1);#t=Xe(!1);#n=L(null);#r=L(null);#i=new We(()=>this.opts.value.current??``);#a=R(()=>typeof this.opts.pattern.current==`string`?new RegExp(this.opts.pattern.current):this.opts.pattern.current);#o=L(F({prev:[null,null,`none`],willSyntheticBlur:!1}));#s;#c;domContext;constructor(e){this.opts=e,this.attachment=W(this.opts.ref),this.inputAttachment=W(this.opts.inputRef),this.domContext=new Ie(e.ref),this.#c={value:this.opts.value,isIOS:typeof window<`u`&&window?.CSS?.supports(`-webkit-touch-callout`,`none`)},this.#s=mn({containerRef:this.opts.ref,inputRef:this.opts.inputRef,isFocused:this.#t,pushPasswordManagerStrategy:this.opts.pushPasswordManagerStrategy,domContext:this.domContext}),P(()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;this.#c.value.current!==e.value&&(this.opts.value.current=e.value),v(this.#o).prev=[e.selectionStart,e.selectionEnd,e.selectionDirection??`none`];let n=V(this.domContext.getDocument(),`selectionchange`,this.#m,{capture:!0});this.#m(),this.domContext.getActiveElement()===e&&(this.#t.current=!0),this.domContext.getElementById(`pin-input-style`)||this.#p();let r=()=>{t&&t.style.setProperty(`--bits-pin-input-root-height`,`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{n(),i.disconnect()}}),yt([()=>this.opts.value.current,()=>this.opts.inputRef.current],()=>{bn(()=>{let e=this.opts.inputRef.current;if(!e)return;e.dispatchEvent(new Event(`input`));let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection??`none`;t!==null&&n!==null&&(A(this.#n,t,!0),A(this.#r,n,!0),v(this.#o).prev=[t,n,r])},this.domContext)}),y(()=>{let e=this.opts.value.current,t=this.#i.current,n=this.opts.maxLength.current,r=this.opts.onComplete.current;t!==void 0&&e!==t&&t.length<n&&e.length===n&&r(e)})}onkeydown=e=>{let t=e.key;_n.includes(t)||e.ctrlKey||e.metaKey||t&&v(this.#a)&&!v(this.#a).test(t)&&e.preventDefault()};#l=R(()=>({position:`relative`,cursor:this.opts.disabled.current?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}));#u=R(()=>({id:this.opts.id.current,[gn.root]:``,style:v(this.#l),...this.attachment}));get rootProps(){return v(this.#u)}set rootProps(e){A(this.#u,e)}#d=R(()=>({style:{position:`absolute`,inset:0,pointerEvents:`none`}}));get inputWrapperProps(){return v(this.#d)}set inputWrapperProps(e){A(this.#d,e)}#f=R(()=>({position:`absolute`,inset:0,width:this.#s.willPushPwmBadge?`calc(100% + ${this.#s.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:this.#s.willPushPwmBadge?`inset(0 ${this.#s.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:this.opts.textAlign.current,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--bits-pin-input-root-height)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}));#p(){let e=this.domContext.getDocument(),t=e.createElement(`style`);if(t.id=`pin-input-style`,e.head.appendChild(t),t.sheet){let e=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;xn(t.sheet,`[data-pin-input-input]::selection { background: transparent !important; color: transparent !important; }`),xn(t.sheet,`[data-pin-input-input]:autofill { ${e} }`),xn(t.sheet,`[data-pin-input-input]:-webkit-autofill { ${e} }`),xn(t.sheet,`@supports (-webkit-touch-callout: none) { [data-pin-input-input] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),xn(t.sheet,`[data-pin-input-input] + * { pointer-events: all !important; }`)}}#m=()=>{let e=this.opts.inputRef.current,t=this.opts.ref.current;if(!e||!t)return;if(this.domContext.getActiveElement()!==e){A(this.#n,null),A(this.#r,null);return}let n=e.selectionStart,r=e.selectionEnd,i=e.selectionDirection??`none`,a=e.maxLength,o=e.value,s=v(this.#o).prev,c=-1,l=-1,u;if(o.length!==0&&n!==null&&r!==null){let e=n===r,t=n===o.length&&o.length<a;if(e&&!t){let e=n;if(e===0)c=0,l=1,u=`forward`;else if(e===a)c=e-1,l=e,u=`backward`;else if(a>1&&o.length>1){let t=0;if(s[0]!==null&&s[1]!==null){u=e<s[1]?`backward`:`forward`;let n=s[0]===s[1]&&s[0]<a;u===`backward`&&!n&&(t=-1)}c=t+e,l=t+e+1}}c!==-1&&l!==-1&&c!==l&&this.opts.inputRef.current?.setSelectionRange(c,l,u)}let d=c===-1?n:c,f=l===-1?r:l,p=u??i;A(this.#n,d,!0),A(this.#r,f,!0),v(this.#o).prev=[d,f,p]};oninput=e=>{let t=e.currentTarget.value.slice(0,this.opts.maxLength.current);if(t.length>0&&v(this.#a)&&!v(this.#a).test(t)){e.preventDefault();return}typeof this.#i.current==`string`&&t.length<this.#i.current.length&&this.domContext.getDocument().dispatchEvent(new Event(`selectionchange`)),this.opts.value.current=t};onfocus=e=>{let t=this.opts.inputRef.current;if(t){let e=Math.min(t.value.length,this.opts.maxLength.current-1),n=t.value.length;t.setSelectionRange(e,n),A(this.#n,e,!0),A(this.#r,n,!0)}this.#t.current=!0};onpaste=e=>{let t=this.opts.inputRef.current;if(!t)return;let n=e=>{let n=t.selectionStart===null?void 0:t.selectionStart,r=t.selectionEnd===null?void 0:t.selectionEnd,i=n!==r,a=this.opts.value.current;return(i?a.slice(0,n)+e+a.slice(r):a.slice(0,n)+e+a.slice(n)).slice(0,this.opts.maxLength.current)},r=e=>e.length>0&&v(this.#a)&&!v(this.#a).test(e);if(!this.opts.pasteTransformer?.current&&(!this.#c.isIOS||!e.clipboardData||!t)){r(n(e.clipboardData?.getData(`text/plain`)))&&e.preventDefault();return}let i=e.clipboardData?.getData(`text/plain`)??``,a=this.opts.pasteTransformer?.current?this.opts.pasteTransformer.current(i):i;e.preventDefault();let o=n(a);if(r(o))return;t.value=o,this.opts.value.current=o;let s=Math.min(o.length,this.opts.maxLength.current-1),c=o.length;t.setSelectionRange(s,c),A(this.#n,s,!0),A(this.#r,c,!0)};onmouseover=e=>{A(this.#e,!0)};onmouseleave=e=>{A(this.#e,!1)};onblur=e=>{if(v(this.#o).willSyntheticBlur){v(this.#o).willSyntheticBlur=!1;return}this.#t.current=!1};#h=R(()=>({id:this.opts.inputId.current,style:v(this.#f),autocomplete:this.opts.autocomplete.current||`one-time-code`,"data-pin-input-input":``,"data-pin-input-input-mss":v(this.#n),"data-pin-input-input-mse":v(this.#r),inputmode:this.opts.inputmode.current,pattern:v(this.#a)?.source,maxlength:this.opts.maxLength.current,value:this.opts.value.current,disabled:Be(this.opts.disabled.current),onpaste:this.onpaste,oninput:this.oninput,onkeydown:this.onkeydown,onmouseover:this.onmouseover,onmouseleave:this.onmouseleave,onfocus:this.onfocus,onblur:this.onblur,...this.inputAttachment}));get inputProps(){return v(this.#h)}set inputProps(e){A(this.#h,e)}#g=R(()=>Array.from({length:this.opts.maxLength.current}).map((e,t)=>{let n=this.#t.current&&v(this.#n)!==null&&v(this.#r)!==null&&(v(this.#n)===v(this.#r)&&t===v(this.#n)||t>=v(this.#n)&&t<v(this.#r)),r=this.opts.value.current[t]===void 0?null:this.opts.value.current[t];return{char:r,isActive:n,hasFakeCaret:n&&r===null}}));#_=R(()=>({cells:v(this.#g),isFocused:this.#t.current,isHovering:v(this.#e)}));get snippetProps(){return v(this.#_)}set snippetProps(e){A(this.#_,e)}},yn=class e{static create(t){return new e(t)}opts;attachment;constructor(e){this.opts=e,this.attachment=W(this.opts.ref)}#e=R(()=>({id:this.opts.id.current,[gn.cell]:``,"data-active":this.opts.cell.current.isActive?``:void 0,"data-inactive":this.opts.cell.current.isActive?void 0:``,...this.attachment}));get props(){return v(this.#e)}set props(e){A(this.#e,e)}};function bn(e,t){return[t.setTimeout(e,0),t.setTimeout(e,10),t.setTimeout(e,50)]}function xn(e,t){try{e.insertRule(t)}catch{console.error(`pin input could not insert CSS rule:`,t)}}var Sn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`inputId`,`ref`,`inputRef`,`maxlength`,`textalign`,`pattern`,`inputmode`,`onComplete`,`pushPasswordManagerStrategy`,`class`,`children`,`autocomplete`,`disabled`,`value`,`onValueChange`,`pasteTransformer`]),Cn=c(`<div><!> <div><input/></div></div>`);function wn(r,a){let o=p();i(a,!0);let s=k(a,`id`,19,()=>q(o)),c=k(a,`inputId`,19,()=>`${q(o)}-input`),l=k(a,`ref`,15,null),u=k(a,`inputRef`,15,null),d=k(a,`maxlength`,3,6),f=k(a,`textalign`,3,`left`),m=k(a,`inputmode`,3,`numeric`),h=k(a,`onComplete`,3,_t),g=k(a,`pushPasswordManagerStrategy`,3,`increase-width`),y=k(a,`class`,3,``),x=k(a,`autocomplete`,3,`one-time-code`),S=k(a,`disabled`,3,!1),w=k(a,`value`,15,``),T=k(a,`onValueChange`,3,_t),E=b(a,Sn),D=vn.create({id:K(()=>s()),ref:K(()=>l(),e=>l(e)),inputRef:K(()=>u(),e=>u(e)),inputId:K(()=>c()),autocomplete:K(()=>x()),maxLength:K(()=>d()),textAlign:K(()=>f()),disabled:K(()=>S()),inputmode:K(()=>m()),pattern:K(()=>a.pattern),onComplete:K(()=>h()),value:K(()=>w(),e=>{w(e),T()(e)}),pushPasswordManagerStrategy:K(()=>g()),pasteTransformer:K(()=>a.pasteTransformer)}),O=R(()=>G(E,D.inputProps)),ee=R(()=>G(D.rootProps,{class:y()})),A=R(()=>G(D.inputWrapperProps,{}));var j=Cn();C(j,()=>({...v(ee)}));var N=e(j);B(N,()=>a.children??n,()=>D.snippetProps);var P=z(N,2);C(P,()=>({...v(A)}));var F=e(P);C(F,()=>({...v(O)}),void 0,void 0,void 0,void 0,!0),M(P),M(j),t(r,j),_()}var Tn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`cell`,`child`,`children`]),En=c(`<div><!></div>`);function Dn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>q(s)),l=k(o,`ref`,15,null),u=b(o,Tn),d=yn.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e)),cell:K(()=>o.cell)}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=En();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var On=He({component:`tabs`,parts:[`root`,`list`,`trigger`,`content`]}),kn=new Me(`Tabs.Root`),An=class e{static create(t){return kn.set(new e(t))}opts;attachment;rovingFocusGroup;#e=L(F([]));get triggerIds(){return v(this.#e)}set triggerIds(e){A(this.#e,e,!0)}valueToTriggerId=new Je;valueToContentId=new Je;constructor(e){this.opts=e,this.attachment=W(e.ref),this.rovingFocusGroup=new ln({candidateAttr:On.trigger,rootNode:this.opts.ref,loop:this.opts.loop,orientation:this.opts.orientation})}registerTrigger(e,t){return this.triggerIds.push(e),this.valueToTriggerId.set(t,e),()=>{this.triggerIds=this.triggerIds.filter(t=>t!==e),this.valueToTriggerId.delete(t)}}registerContent(e,t){return this.valueToContentId.set(t,e),()=>{this.valueToContentId.delete(t)}}setValue(e){this.opts.value.current=e}#t=R(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,[On.root]:``,...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},jn=class e{static create(t){return new e(t,kn.get())}opts;root;attachment;#e=R(()=>this.root.opts.disabled.current);constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref)}#t=R(()=>({id:this.opts.id.current,role:`tablist`,"aria-orientation":this.root.opts.orientation.current,"data-orientation":this.root.opts.orientation.current,[On.list]:``,"data-disabled":at(v(this.#e)),...this.attachment}));get props(){return v(this.#t)}set props(e){A(this.#t,e)}},Mn=class e{static create(t){return new e(t,kn.get())}opts;root;attachment;#e=L(0);#t=R(()=>this.root.opts.value.current===this.opts.value.current);#n=R(()=>this.opts.disabled.current||this.root.opts.disabled.current);#r=R(()=>this.root.valueToContentId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref),yt([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerTrigger(e,t)),y(()=>{this.root.triggerIds.length,v(this.#t)||!this.root.opts.value.current?A(this.#e,0):A(this.#e,-1)}),this.onfocus=this.onfocus.bind(this),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}#i(){this.root.opts.value.current!==this.opts.value.current&&this.root.setValue(this.opts.value.current)}onfocus(e){this.root.opts.activationMode.current!==`automatic`||v(this.#n)||this.#i()}onclick(e){v(this.#n)||this.#i()}onkeydown(e){if(!v(this.#n)){if(e.key===` `||e.key===`Enter`){e.preventDefault(),this.#i();return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}#a=R(()=>({id:this.opts.id.current,role:`tab`,"data-state":Pn(v(this.#t)),"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":at(v(this.#n)),"aria-selected":ze(v(this.#t)),"aria-controls":v(this.#r),[On.trigger]:``,disabled:Be(v(this.#n)),tabindex:v(this.#e),onclick:this.onclick,onfocus:this.onfocus,onkeydown:this.onkeydown,...this.attachment}));get props(){return v(this.#a)}set props(e){A(this.#a,e)}},Nn=class e{static create(t){return new e(t,kn.get())}opts;root;attachment;#e=R(()=>this.root.opts.value.current===this.opts.value.current);#t=R(()=>this.root.valueToTriggerId.get(this.opts.value.current));constructor(e,t){this.opts=e,this.root=t,this.attachment=W(e.ref),yt([()=>this.opts.id.current,()=>this.opts.value.current],([e,t])=>this.root.registerContent(e,t))}#n=R(()=>({id:this.opts.id.current,role:`tabpanel`,hidden:Be(!v(this.#e)),tabindex:0,"data-value":this.opts.value.current,"data-state":Pn(v(this.#e)),"aria-labelledby":v(this.#t),"data-orientation":this.root.opts.orientation.current,[On.content]:``,...this.attachment}));get props(){return v(this.#n)}set props(e){A(this.#n,e)}};function Pn(e){return e?`active`:`inactive`}var Fn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`value`,`onValueChange`,`orientation`,`loop`,`activationMode`,`disabled`,`children`,`child`]),In=c(`<div><!></div>`);function Ln(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>q(s)),l=k(o,`ref`,15,null),u=k(o,`value`,15,``),d=k(o,`onValueChange`,3,_t),f=k(o,`orientation`,3,`horizontal`),m=k(o,`loop`,3,!0),h=k(o,`activationMode`,3,`automatic`),g=k(o,`disabled`,3,!1),y=b(o,Fn),x=An.create({id:K(()=>c()),value:K(()=>u(),e=>{u(e),d()(e)}),orientation:K(()=>f()),loop:K(()=>m()),activationMode:K(()=>h()),disabled:K(()=>g()),ref:K(()=>l(),e=>l(e))}),S=R(()=>G(y,x.props));var w=j(),E=T(w),D=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(S)})),t(e,n)},O=r=>{var i=In();C(i,()=>({...v(S)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(E,e=>{o.child?e(D):e(O,-1)}),t(r,w),_()}var Rn=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`value`]),zn=c(`<div><!></div>`);function Bn(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>q(s)),l=k(o,`ref`,15,null),u=b(o,Rn),d=Nn.create({value:K(()=>o.value),id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=zn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Vn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`id`,`ref`]),Hn=c(`<div><!></div>`);function Un(r,o){let s=p();i(o,!0);let c=k(o,`id`,19,()=>q(s)),l=k(o,`ref`,15,null),u=b(o,Vn),d=jn.create({id:K(()=>c()),ref:K(()=>l(),e=>l(e))}),f=R(()=>G(u,d.props));var m=j(),h=T(m),g=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(f)})),t(e,n)},y=r=>{var i=Hn();C(i,()=>({...v(f)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(h,e=>{o.child?e(g):e(y,-1)}),t(r,m),_()}var Wn=new Set([`$$slots`,`$$events`,`$$legacy`,`child`,`children`,`disabled`,`id`,`type`,`value`,`ref`]),Gn=c(`<button><!></button>`);function Kn(r,o){let s=p();i(o,!0);let c=k(o,`disabled`,3,!1),l=k(o,`id`,19,()=>q(s)),u=k(o,`type`,3,`button`),d=k(o,`ref`,15,null),f=b(o,Wn),m=Mn.create({id:K(()=>l()),disabled:K(()=>c()??!1),value:K(()=>o.value),ref:K(()=>d(),e=>d(e))}),h=R(()=>G(f,m.props,{type:u()}));var g=j(),y=T(g),x=e=>{var n=j(),r=T(n);B(r,()=>o.child,()=>({props:v(h)})),t(e,n)},S=r=>{var i=Gn();C(i,()=>({...v(h)}));var a=e(i);B(a,()=>o.children??n),M(i),t(r,i)};a(y,e=>{o.child?e(x):e(S,-1)}),t(r,g),_()}var qn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Jn=c(`<div><!></div>`);function Yn(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,qn);var c=Jn();C(c,e=>({"data-slot":`input-otp-group`,class:e,...s}),[()=>J(`rounded-lg has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 flex items-center`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Xn=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`cell`,`class`]),Zn=c(`<div class="cn-input-otp-caret pointer-events-none absolute inset-0 flex items-center justify-center"><div class="h-4 w-px animate-caret-blink bg-foreground duration-1000 h-4 w-px bg-foreground"></div></div>`),Qn=c(` <!>`,1);function $n(e,n){i(n,!0);let r=k(n,`ref`,15,null),o=b(n,Xn);var c=j(),l=T(c);{let e=R(()=>J(`size-8 border-y border-r border-input text-sm transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40 relative flex items-center justify-center data-[active=true]:z-10`,n.class));x(l,()=>Dn,(i,c)=>{c(i,I({get cell(){return n.cell},"data-slot":`input-otp-slot`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},children:(e,r)=>{f();var i=Qn(),o=T(i),c=z(o),l=e=>{var n=Zn();t(e,n)};a(c,e=>{n.cell.hasFakeCaret&&e(l)}),s(()=>d(o,`${n.cell.char??``} `)),t(e,i)},$$slots:{default:!0}}))})}t(e,c),_()}var er=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`value`]);function tr(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,er);var s=j(),c=T(s);{let e=R(()=>J(`cn-input-otp-input gap-2 flex items-center disabled:cursor-not-allowed has-disabled:opacity-50`,n.class));x(c,()=>wn,(t,n)=>{n(t,I({"data-slot":`input-otp`,spellcheck:!1,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var nr=c(`<div class="w-full flex items-center"><!></div>`);function rr(n,o){i(o,!0);let s=()=>D(X,`$dict`,c),[c,l]=w(),u=k(o,`ref`,15,null),d=k(o,`mode`,11,`password`),f=k(o,`password`,15,``),p=k(o,`otp`,15,``);var m=nr(),h=e(m),g=e=>{Ue(e,{id:`iam-password-input`,name:`password`,type:`password`,minlength:6,autocomplete:`current-password`,get placeholder(){return s().auth.password},class:`placeholder:text-sm`,get value(){return f()},set value(e){f(e)}})},y=e=>{var n=j(),i=T(n);{let e=(e,n)=>{let i=()=>(n?.()).cells;var a=j(),o=T(a);x(o,()=>Yn,(e,n)=>{n(e,{children:(e,n)=>{var a=j(),o=T(a);r(o,17,()=>i().slice(0,6),re,(e,n)=>{var r=j(),i=T(r);x(i,()=>$n,(e,t)=>{t(e,{get cell(){return v(n)},class:`size-[40px] bg-background`})}),t(e,r)}),t(e,a)},$$slots:{default:!0}})}),t(e,a)};x(i,()=>tr,(t,n)=>{n(t,{maxlength:6,get pattern(){return hn},required:!0,get value(){return p()},set value(e){p(e)},children:e,$$slots:{default:!0}})})}t(e,n)};a(h,e=>{d()===`password`?e(g):e(y,-1)}),M(m),S(m,e=>u(e),()=>u()),t(n,m),_(),l()}var ir=c(`<!> <span class="sr-only"> </span>`,1),ar=c(`<form><fieldset class="space-y-2"><!> <div class="space-y-2"><div class="flex items-center gap-2"><!> <!></div> <div class="text-sm text-muted-foreground px-1"><!></div></div></fieldset></form>`);function or(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),f=L(!1),p=L(``),m=L(``),y=L(``),b=L(null),x=L(`password`),C=L(void 0);async function E(){v(m).length===0?v(x)===`password`?await k():await N():await O()}async function O(){A(f,!0);let e=r.account===void 0?await ee():await we(r.account.id,{username:v(p),password:v(m)});A(f,!1),e instanceof Error&&await P()}async function ee(){let e=await Se(v(p),v(m));return e instanceof Error||ue(e)?.status===201&&r.oncreate?.(e),e}async function k(){A(f,!0);let e=r.account===void 0?await he(v(p)):await De(r.account.id,v(p));A(f,!1),!(e instanceof Error)&&(A(x,`otp`),requestAnimationFrame(()=>F()))}async function N(){if(v(p).length===0){console.error(`username is required`);return}if(v(y).length!==6){await P();return}A(f,!0);let e=await ge(v(p),v(y));if(A(f,!1),e instanceof Error){A(y,``),await P();return}return ue(e)?.status===201&&r.oncreate?.(e),e}async function P(){await v(C)?.shake(),F()}function F(){be&&v(b)?.querySelector(`input`)?.focus()}var I=ar(),te=R(()=>bt(E)),ne=e(I),re=e(ne);{let e=R(()=>v(x)===`otp`||void 0);Ue(re,{id:`iam-username-input`,name:`username`,type:`email`,autocomplete:`username`,required:!0,get disabled(){return v(e)},get autofocus(){return be},get placeholder(){return c().auth.email},get value(){return v(p)},set value(e){A(p,e,!0)}})}var B=z(re,2),V=e(B),ie=e(V);S(tn(ie,{class:`w-full`,children:(e,t)=>{rr(e,{get mode(){return v(x)},get ref(){return v(b)},set ref(e){A(b,e,!0)},get password(){return v(m)},set password(e){A(m,e,!0)},get otp(){return v(y)},set otp(e){A(y,e,!0)}})},$$slots:{default:!0}}),e=>A(C,e,!0),()=>v(C));var ae=z(ie,2);U(ae,{size:`icon-lg`,type:`submit`,children:(n,r)=>{var i=ir(),o=T(i),l=e=>{Y(e,{})},u=e=>{$t(e,{})};a(o,e=>{v(f)?e(l):e(u,-1)});var p=z(o,2),m=e(p,!0);M(p),s(()=>d(m,c().auth.login)),t(n,i)},$$slots:{default:!0}}),M(V);var oe=z(V,2),se=e(oe),H=e=>{var n=j(),r=T(n);g(r,()=>c().auth.passwordBlank),t(e,n)},ce=e=>{var n=o();s(()=>d(n,c().auth.otpInstructions)),t(e,n)};a(se,e=>{v(x)===`password`?e(H):e(ce,-1)}),M(oe),M(B),M(ne),M(I),h(`submit`,I,function(...e){v(te)?.apply(this,e)}),t(n,I),_(),u()}var sr=c(`<h2> </h2>`),cr=c(`<!> <!>`,1);function lr(n,r){i(r,!0);let a=()=>D(X,`$dict`,c),[c,l]=w();var u=j(),p=T(u);{let n=R(()=>J(`pt-4 gap-4 bg-background/75`,r.class));x(p,()=>Zt,(i,c)=>{c(i,{get class(){return v(n)},children:(n,i)=>{var c=cr(),l=T(c);x(l,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=cr(),c=T(i);x(c,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=sr(),o=e(i,!0);M(i),s(()=>d(o,a().auth.passwordTitle)),t(n,i)},$$slots:{default:!0}})});var l=z(c,2);x(l,()=>zt,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,a().auth.passwordDescription)),t(e,r)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>It,(e,t)=>{t(e,{children:(e,t)=>{or(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,c)},$$slots:{default:!0}})})}t(n,u),_(),l()}function ur(e){or(e,{})}var dr=new Set([`$$slots`,`$$events`,`$$legacy`]);function fr(e,t){let n=b(t,dr),r=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`}],[`path`,{d:`m9 12 2 2 4-4`}]];H(e,I({name:`shield-check`},()=>n,{get iconNode(){return r}}))}var pr=new Set([`$$slots`,`$$events`,`$$legacy`]);function mr(e,t){let n=b(t,pr),r=[[`path`,{d:`m2 2 20 20`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`}]];H(e,I({name:`shield-off`},()=>n,{get iconNode(){return r}}))}var hr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),gr=c(`<div><!></div>`);function _r(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,hr);var c=gr();C(c,e=>({"data-slot":`alert-description`,class:e,...s}),[()=>J(`text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var vr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),yr=c(`<div><!></div>`);function br(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,vr);var c=yr();C(c,e=>({"data-slot":`alert-title`,class:e,...s}),[()=>J(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var xr=nt({base:`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full`,variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}}),Sr=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`variant`,`children`]),Cr=c(`<div><!></div>`);function wr(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=k(a,`variant`,3,`default`),c=b(a,Sr);var l=Cr();C(l,e=>({"data-slot":`alert`,role:`alert`,class:e,...c}),[()=>J(xr({variant:s()}),a.class)]);var u=e(l);B(u,()=>a.children??n),M(l),S(l,e=>o(e),()=>o()),t(r,l),_()}var Tr=new Set([`$$slots`,`$$events`,`$$legacy`]);function Er(e,t){let n=b(t,Tr),r=[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`}],[`path`,{d:`M2 16h.01`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`}]];H(e,I({name:`fingerprint-pattern`},()=>n,{get iconNode(){return r}}))}var Dr=c(`<!> `,1),Or=c(`<div class="flex flex-col items-center justify-center gap-2"><p> </p> <!></div>`);function kr(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=L(!1);async function f(){A(u,!0),await Te(),A(u,!1)}var p=Or(),m=e(p),h=e(m,!0);M(m);var g=z(m,2);U(g,{id:`iam-passkey-login-button`,variant:`secondary`,onclick:f,children:(e,n)=>{var r=Dr(),i=T(r),c=e=>{Y(e,{})},l=e=>{Er(e,{})};a(i,e=>{v(u)?e(c):e(l,-1)});var f=z(i);s(()=>d(f,` ${o().auth.signin??``}`)),t(e,r)},$$slots:{default:!0}}),M(p),s(()=>d(h,o().auth.alreadyHaveAccount)),t(n,p),_(),l()}var Ar=c(`<form><fieldset class="space-y-1"><div class="flex items-center gap-2"><!> <!></div></fieldset></form>`);function jr(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w(),u=R(()=>r.account?.name??``),d=L(!1);async function f(){let e=v(u).trim();if(e.length===0)return;A(d,!0);let t=await me(e,r.account?.id);A(d,!1),!(t instanceof Error)&&r.oncreate?.(t)}var p=Ar(),m=R(()=>bt(f)),g=e(p),y=e(g),b=e(y);Ue(b,{id:`name`,type:`text`,get placeholder(){return o().auth.yourName},autocomplete:`given-name`,required:!0,get autofocus(){return be},get value(){return v(u)},set value(e){A(u,e)}});var x=z(b,2);U(x,{id:`iam-passkey-create-button`,size:`icon-lg`,type:`submit`,children:(e,n)=>{var r=j(),i=T(r),o=e=>{Y(e,{})},s=e=>{$t(e,{})};a(i,e=>{v(d)?e(o):e(s,-1)}),t(e,r)},$$slots:{default:!0}}),M(y),M(g),M(p),s(()=>g.disabled=r.disabled),h(`submit`,p,function(...e){v(m)?.apply(this,e)}),t(n,p),_(),l()}var Mr=c(`<p> <a target="_blank" class="text-nowrap"> </a></p>`),Nr=c(`<h2> </h2>`),Pr=c(`<!> <!>`,1),Fr=c(`<!> <!> <!>`,1),Ir=c(`<p> </p> <!>`,1),Lr=c(`<div class="space-y-4"><!> <!></div>`);function Rr(n,r){i(r,!0);let c=()=>D(X,`$dict`,l),[l,u]=w(),p=n=>{var r=Mr(),i=e(r),a=z(i),o=e(a,!0);M(a),M(r),s(()=>{d(i,`${c().auth.passkeysDescription??``} `),E(a,`href`,m),d(o,c().auth.learnMore)}),t(n,r)},m=ae?`https://support.apple.com/en-us/102195`:`https://support.google.com/accounts/answer/13548313`;var h=Lr(),g=e(h);{let n=R(()=>J(`gap-4 bg-background/75`,xe&&`pt-4`,r.class));x(g,()=>Zt,(i,l)=>{l(i,{get class(){return v(n)},children:(n,i)=>{var l=Pr(),u=T(l),m=n=>{var i=Pr(),a=T(i);x(a,()=>Gt,(n,r)=>{r(n,{class:`gap-0`,children:(n,r)=>{var i=j(),a=T(i);x(a,()=>Jt,(n,r)=>{r(n,{children:(n,r)=>{var i=Nr(),a=e(i,!0);M(i),s(()=>d(a,c().auth.signupTitle)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})});var o=z(a,2);x(o,()=>It,(e,t)=>{t(e,{children:(e,t)=>{jr(e,{get account(){return r.account},get oncreate(){return r.oncreate}})},$$slots:{default:!0}})}),t(n,i)};a(u,e=>{xe&&e(m)});var h=z(u,2);x(h,()=>Ht,(n,r)=>{r(n,{children:(n,r)=>{var i=j(),l=T(i),u=e=>{var n=j(),r=T(n);x(r,()=>wr,(e,n)=>{n(e,{children:(e,n)=>{var r=Fr(),i=T(r);fr(i,{color:`green`});var a=z(i,2);x(a,()=>br,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.betterSecurity)),t(e,r)},$$slots:{default:!0}})});var l=z(a,2);x(l,()=>_r,(e,t)=>{t(e,{children:(e,t)=>{p(e)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),t(e,n)},m=n=>{var r=j(),i=T(r);x(i,()=>wr,(n,r)=>{r(n,{children:(n,r)=>{var i=Fr(),a=T(i);mr(a,{color:`red`,class:`animate-pulse`});var l=z(a,2);x(l,()=>br,(e,n)=>{n(e,{children:(e,n)=>{f();var r=o();s(()=>d(r,c().auth.passkeysNotSupported)),t(e,r)},$$slots:{default:!0}})});var u=z(l,2);x(u,()=>_r,(n,r)=>{r(n,{children:(n,r)=>{var i=Ir(),a=T(i),o=e(a,!0);M(a);var l=z(a,2);p(l),s(()=>d(o,c().auth.passkeysWarning)),t(n,i)},$$slots:{default:!0}})}),t(n,i)},$$slots:{default:!0}})}),t(n,r)};a(l,e=>{xe?e(u):e(m,-1)}),t(n,i)},$$slots:{default:!0}})}),t(n,l)},$$slots:{default:!0}})})}var y=z(g,2),b=e=>{kr(e,{})};a(y,e=>{xe&&!r.account&&e(b)}),M(h),t(n,h),_(),u()}var zr=c(`<!> <!> `,1);function Br(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,o]=w();async function c(e){let t=e.currentTarget;t.disabled=!0,await Te(n.account.id),t.disabled=!1}U(e,{class:`w-full disabled:[&>.x-icon]:hidden [&>.x-spinner]:hidden disabled:[&>.x-spinner]:block`,onclick:c,children:(e,n)=>{var i=zr(),a=T(i);Er(a,{class:`size-5 x-icon`});var o=z(a,2);Y(o,{class:`x-spinner`});var c=z(o);s(()=>d(c,` ${r().auth.refresh.continue??``}`)),t(e,i)},$$slots:{default:!0}}),_(),o()}var Vr=u(`<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19.84 10.2273C19.84 9.5182 19.7764 8.8364 19.6582 8.1818H10.24V12.05H15.6218C15.39 13.3 14.6855 14.3591 13.6264 15.0682V17.5773H16.8582C18.7491 15.8364 19.84 13.2727 19.84 10.2273Z" fill="#4285F4"></path><path d="M10.24 20C12.94 20 15.2036 19.1045 16.8581 17.5773L13.6263 15.0682C12.7309 15.6682 11.5854 16.0227 10.24 16.0227C7.6354 16.0227 5.4309 14.2636 4.6445 11.9H1.3036V14.4909C2.9491 17.7591 6.3309 20 10.24 20Z" fill="#34A853"></path><path d="M4.6445 11.9C4.4445 11.3 4.3309 10.6591 4.3309 10C4.3309 9.3409 4.4445 8.7 4.6445 8.1V5.5091H1.3036C0.6264 6.8591 0.24 8.3864 0.24 10C0.24 11.6136 0.6264 13.1409 1.3036 14.4909L4.6445 11.9Z" fill="#FBBC04"></path><path d="M10.24 3.9773C11.7081 3.9773 13.0263 4.4818 14.0627 5.4727L16.9309 2.6045C15.1991 0.9909 12.9354 0 10.24 0C6.3309 0 2.9491 2.2409 1.3036 5.5091L4.6445 8.1C5.4309 5.7364 7.6354 3.9773 10.24 3.9773Z" fill="#E94235"></path></svg>`);function Hr(e,n){var r=Vr();s(()=>N(r,0,O(n.class))),t(e,r)}var Ur=u(`<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" fill="currentColor" viewBox="0 0 814 1000"><path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76.5 0-103.7 40.8-165.9 40.8s-105.6-57-155.5-127C46.7 790.7 0 663 0 541.8c0-194.4 126.4-297.5 250.8-297.5 66.1 0 121.2 43.4 162.7 43.4 39.5 0 101.1-46 176.3-46 28.5 0 130.9 2.6 198.3 99.2zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"></path></svg>`);function Wr(n,r){i(r,!0);var a=Ur(),o=e(a);M(a),s(e=>{N(a,0,e),E(o,`fill`,r.fill)},[()=>O(J(`size-5 -mt-[3px]`,r.class))]),t(n,a),_()}var Gr={google:Hr,apple:Wr},Kr=c(`<!> <!> <!>`,1);function qr(e,r){i(r,!0);let a=R(()=>Gr[r.idp]);async function o(e){let t=e.currentTarget;t.disabled=!0,await _e(r.idp,r.account?.id),t.disabled=!1}{let i=R(()=>r.children?`default`:`icon`),s=R(()=>J(`disabled:[&_.x-icon]:hidden [&_.x-spinner]:hidden disabled:[&_.x-spinner]:block`,r.class));U(e,{variant:`outline`,get size(){return v(i)},onclick:o,get class(){return v(s)},children:(e,i)=>{var o=Kr(),s=T(o);x(s,()=>v(a),(e,t)=>{t(e,{class:`x-icon`})});var c=z(s,2);Y(c,{class:`x-spinner`});var l=z(c,2);B(l,()=>r.children??n),t(e,o)},$$slots:{default:!0}})}_()}var Jr=c(`<div class="flex gap-2"><!> <!></div>`);function Yr(n,r){i(r,!0);var o=Jr(),s=e(o),c=e=>{qr(e,{idp:`google`,get account(){return r.account}})};a(s,e=>{fe.google.client&&e(c)});var l=z(s,2),u=e=>{qr(e,{idp:`apple`,get account(){return r.account}})};a(l,e=>{fe.apple.client&&e(u)}),M(o),t(n,o),_()}function Xr(e,n){i(n,!0);let r=()=>D(X,`$dict`,a),[a,c]=w(),l={google:`Google`,apple:`Apple`};qr(e,{get idp(){return n.idp},class:`w-full`,children:(e,i)=>{f();var a=o();s(e=>d(a,e),[()=>r().auth.continueWith(l[n.idp])]),t(e,a)},$$slots:{default:!0}}),_(),c()}var Zr=c(`<!> <!>`,1);function Qr(e,n){var r=j(),i=T(r);x(i,()=>Zt,(e,r)=>{r(e,{class:`w-full`,children:(e,r)=>{var i=Zr(),a=T(i);x(a,()=>Gt,(e,r)=>{r(e,{children:(e,r)=>{var i=Zr(),a=T(i);x(a,()=>Jt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.title)),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>zt,(e,r)=>{r(e,{children:(e,r)=>{f();var i=o();s(()=>d(i,n.description)),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})});var c=z(a,2);x(c,()=>It,(e,r)=>{r(e,{class:`flex flex-col`,children:(e,r)=>{var i=j(),a=T(i);B(a,()=>n.action),t(e,i)},$$slots:{default:!0}})}),t(e,i)},$$slots:{default:!0}})}),t(e,r)}var $r=c(`<!> `,1),ei=c(`<div class="flex flex-col items-center gap-4 w-full"><!> <!></div>`);function ti(n,r){i(r,!0);let o=()=>D(X,`$dict`,c),[c,l]=w();P(()=>{r.method===null&&ve()});var u=ei(),f=e(u);{let e=e=>{var n=j(),i=T(n),o=e=>{Br(e,{get account(){return r.account}})},s=e=>{ur(e,{})},c=e=>{Xr(e,{idp:`apple`})},l=e=>{Xr(e,{idp:`google`})};a(i,e=>{r.method===`passkey`?e(o):r.method===`password`?e(s,1):r.method===`apple`?e(c,2):r.method===`google`&&e(l,3)}),t(e,n)},n=R(()=>o().auth.refresh.description(r.account.name));Qr(f,{get title(){return o().auth.refresh.title},get description(){return v(n)},action:e,$$slots:{action:!0}})}var p=z(f,2);U(p,{variant:`outline`,get onclick(){return ve},children:(e,n)=>{var r=$r(),i=T(r);Et(i,{});var a=z(i);s(()=>d(a,` ${o().auth.signout??``}`)),t(e,r)},$$slots:{default:!0}}),M(u),t(n,u),_(),l()}var ni=new Set([`$$slots`,`$$events`,`$$legacy`]);function ri(e,t){let n=b(t,ni),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`}]];H(e,I({name:`at-sign`},()=>n,{get iconNode(){return r}}))}var ii=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function ai(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,ii);var o=j(),s=T(o);{let e=R(()=>J(`text-sm flex-1 outline-none`,n.class));x(s,()=>Bn,(t,n)=>{n(t,I({"data-slot":`tabs-content`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var oi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function si(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=b(n,oi);var o=j(),s=T(o);{let e=R(()=>J(`gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg:not([class*='size-'])]:size-4 relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0`,`group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent`,`data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground`,`after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100`,n.class));x(s,()=>Kn,(t,n)=>{n(t,I({"data-slot":`tabs-trigger`,get class(){return v(e)}},()=>a,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,o),_()}var ci=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`class`]);function li(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`value`,15,``),o=b(n,ci);var s=j(),c=T(s);{let e=R(()=>J(`gap-2 group/tabs flex data-[orientation=horizontal]:flex-col`,n.class));x(c,()=>Ln,(t,n)=>{n(t,I({"data-slot":`tabs`,get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)},get value(){return a()},set value(e){a(e)}}))})}t(e,s),_()}var ui=nt({base:`rounded-lg p-[3px] group-data-horizontal/tabs:h-8 data-[variant=line]:rounded-none group/tabs-list inline-flex w-fit items-center justify-center text-muted-foreground group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col`,variants:{variant:{default:`cn-tabs-list-variant-default bg-muted`,line:`cn-tabs-list-variant-line gap-1 bg-transparent`}},defaultVariants:{variant:`default`}}),di=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`variant`,`class`]);function fi(e,n){i(n,!0);let r=k(n,`ref`,15,null),a=k(n,`variant`,3,`default`),o=b(n,di);var s=j(),c=T(s);{let e=R(()=>J(ui({variant:a()}),n.class));x(c,()=>Un,(t,n)=>{n(t,I({"data-slot":`tabs-list`,get"data-variant"(){return a()},get class(){return v(e)}},()=>o,{get ref(){return r()},set ref(e){r(e)}}))})}t(e,s),_()}var pi=c(`<!> `,1),mi=c(`<!> <!>`,1),hi=c(`<div class="flex justify-between gap-2"><!> <!></div> <!> <!>`,1);function gi(n,r){i(r,!0);let a=()=>D(X,`$dict`,o),[o,c]=w(),l=L(null);function u(e){requestAnimationFrame(()=>{v(l)?.querySelector(`[data-value="${e}"] input[autofocus]`)?.focus()})}let f=L(`passkey`);P(()=>{A(f,xe?`passkey`:`password`,!0)});var p=j(),m=T(p);{let n=R(()=>J(`w-full`,r.class));x(m,()=>li,(i,o)=>{o(i,{get class(){return v(n)},onValueChange:u,get value(){return v(f)},set value(e){A(f,e,!0)},get ref(){return v(l)},set ref(e){A(l,e,!0)},children:(n,i)=>{var o=hi(),c=T(o),l=e(c);x(l,()=>fi,(e,n)=>{n(e,{children:(e,n)=>{var r=mi(),i=T(r);x(i,()=>si,(e,n)=>{n(e,{value:`passkey`,"data-marker":`passkey-tab`,children:(e,n)=>{var r=pi(),i=T(r);Er(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.passkey??``}`)),t(e,r)},$$slots:{default:!0}})});var o=z(i,2);x(o,()=>si,(e,n)=>{n(e,{value:`password`,id:`iam-email-tab`,children:(e,n)=>{var r=pi(),i=T(r);ri(i,{color:`var(--muted-foreground)`});var o=z(i);s(()=>d(o,` ${a().auth.email??``}`)),t(e,r)},$$slots:{default:!0}})}),t(e,r)},$$slots:{default:!0}})}),Yr(z(l,2),{get account(){return r.account}}),M(c);var u=z(c,2);x(u,()=>ai,(e,t)=>{t(e,{value:`passkey`,children:(e,t)=>{Rr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`passkey`)})},$$slots:{default:!0}})});var f=z(u,2);x(f,()=>ai,(e,t)=>{t(e,{value:`password`,children:(e,t)=>{lr(e,{get account(){return r.account},oncreate:e=>r.oncreate?.(e,`password`)})},$$slots:{default:!0}})}),t(n,o)},$$slots:{default:!0}})})}t(n,p),_(),c()}var _i=c(`<div class="flex items-center justify-center h-screen"><!></div>`),vi=c(`<div class="flex w-full max-w-sm items-center justify-center pt-[14vh] px-4 mx-auto"><!></div>`);function yi(n,r){i(r,!0);let o=()=>D(ke,`$iam`,d),s=()=>D(se,`$method`,d),c=()=>D(pe,`$authenticated`,d),l=()=>D(le,`$greeting`,d),u=()=>D(Oe,`$processing`,d),[d,f]=w(),p=e=>{var n=j(),i=T(n),c=e=>{ti(e,{get account(){return o()},get method(){return s()}})},l=e=>{{let t=R(()=>J(`scale-0 transition-transform`,`scale-100`));gi(e,{get class(){return v(t)},get account(){return r.account},get oncreate(){return r.oncreate}})}};a(i,e=>{o()?e(c):e(l,-1)}),t(e,n)};var m=j(),h=T(m),g=e=>{var n=j(),i=T(n);B(i,()=>r.children),t(e,n)},y=n=>{var r=_i(),i=e(r);Y(i,{}),M(r),t(n,r)},b=e=>{var n=j(),i=T(n);B(i,()=>r.screen,()=>({authentication:p})),t(e,n)},x=n=>{var r=vi(),i=e(r);p(i),M(r),t(n,r)};a(h,e=>{c()?e(g):l()||u()?e(y,1):r.screen?e(b,2):e(x,-1)}),t(n,m),_(),f()}var bi=l(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),Q=l((e=>{var t,n=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),xi=l((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),Si=l(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),Ci=l(((e,t)=>{function n(e){if(!e||e<1)throw Error(`BitMatrix size must be defined and greater than 0`);this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),wi=l((e=>{var t=Q().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),Ti=l((e=>{var t=Q().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),Ei=l((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),Di=l((e=>{var t=xi(),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),Oi=l((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),ki=l((e=>{var t=Oi();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),Ai=l(((e,t)=>{var n=ki();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),ji=l((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),Mi=l((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
|
|
2
|
-
]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),$=l((e=>{var t=ji(),n=Mi();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),Ni=l((e=>{var t=Q(),n=Di(),r=xi(),i=$(),a=ji(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),Pi=l((e=>{var t=Q(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),Fi=l(((e,t)=>{var n=$();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),Ii=l(((e,t)=>{var n=$(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),Li=l(((e,t)=>{var n=$();function r(e){this.mode=n.BYTE,this.data=typeof e==`string`?new TextEncoder().encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),Ri=l(((e,t)=>{var n=$(),r=Q();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
|
|
3
|
-
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),zi=l(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),Bi=l((e=>{var t=$(),n=Fi(),r=Ii(),i=Li(),a=Ri(),o=Mi(),s=Q(),c=zi();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
|
|
4
|
-
Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),Vi=l((e=>{var t=Q(),n=xi(),r=Si(),i=Ci(),a=wi(),o=Ti(),s=Ei(),c=Di(),l=Ai(),u=Ni(),d=Pi(),f=$(),p=Bi();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+c+`.
|
|
7
|
-
`);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),Hi=l((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||(e.color={});let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),Ui=l((e=>{var t=Hi();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),Wi=l((e=>{var t=Hi();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
|
|
8
|
-
`;return typeof a==`function`&&a(null,p),p}}));l((e=>{var t=bi(),n=Vi(),r=Ui(),i=Wi();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}))(),Gr.google,Gr.apple;var Gi=`search`;function Ki(e){return new URLSearchParams(e.replace(/^#/,``)).get(Gi)}function qi(e,t){let n=new URLSearchParams(e.replace(/^#/,``));t===``?n.delete(Gi):n.set(Gi,t);let r=n.toString().replace(/%2F/gi,`/`);return r===``?``:`#`+r}var Ji=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),Yi=c(`<kbd><!></kbd>`);function Xi(r,a){i(a,!0);let o=k(a,`ref`,15,null),s=b(a,Ji);var c=Yi();C(c,e=>({"data-slot":`kbd`,class:e,...s}),[()=>J(`h-5 w-fit min-w-5 gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,a.class)]);var l=e(c);B(l,()=>a.children??n),M(c),S(c,e=>o(e),()=>o()),t(r,c),_()}var Zi=e=>{var n=Qi(),r=T(n);st(r,{});var i=z(r,2);mt(i,{}),t(e,n)},Qi=c(`<!> <!>`,1),$i=c(`<div class="w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"></div>`),ea=c(`<div class="relative w-full min-w-0 flex-1 md:max-w-64 md:flex-none md:shrink"><!> <!> <!></div>`),ta=c(`<header class="bg-background sticky top-0 z-50 -mt-2 flex w-full items-center gap-4 px-4 py-3" style="view-transition-name: chrome"><div class="flex shrink-0 items-center gap-2 md:flex-1 md:gap-4"><h1 class="hidden min-w-0 truncate text-lg font-medium md:block"> </h1> <!> <!> <div class="hidden items-center gap-4 md:flex"><!> <!></div></div> <!> <div class="flex shrink-0 items-center justify-end gap-1 md:flex-1"><!></div></header> <div class="mx-auto flex w-full max-w-3xl flex-col gap-4 px-4 pb-4"><!> <!></div>`,1);function na(n,r){i(r,!0);let c=()=>D(pe,`$authenticated`,x),l=()=>D(ht,`$query`,x),u=()=>D(ye,`$tree`,x),p=()=>D(rt,`$only`,x),g=()=>D(Ee,`$dict`,x),b=()=>D(ke,`$account`,x),[x,S]=w(),C=L(null),E=L(!1);y(()=>{c()&&A(E,!1)}),P(()=>{let e=()=>{let e=Ki(location.hash);e!==null&&ht.set(e)};return e(),window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)}),y(()=>{let e=qi(location.hash,l());e!==location.hash&&ie(e===``?location.pathname:e,{})});let O=R(()=>$e(u())),ee=R(()=>ct(u(),ut.configuration)),k=R(()=>ct(u(),ut.introspection));function j(){let e=pt(u(),de.title),t=URL.createObjectURL(new Blob([e],{type:`text/markdown`})),n=window.document.createElement(`a`);n.href=t,n.download=`discovery.md`,n.click(),URL.revokeObjectURL(t)}function N(e){e.key===`Enter`&&p()?.()}function F(e){e.key!==`k`||!(e.metaKey||e.ctrlKey)||(e.preventDefault(),v(C)?.focus(),v(C)?.select())}h(`keydown`,m,F),et(n,{children:(n,r)=>{var i=ta(),p=T(i),m=e(p),h=e(m),_=e(h,!0);M(h);var y=z(h,2),x=e=>{{let t=e=>{tt(e,{class:`size-4`})},n=R(()=>it(u(),ce));vt(e,{id:`discovery-mcp-button`,get text(){return v(n)},variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.mcp},class:`text-muted-foreground`,icon:t,$$slots:{icon:!0}})}};a(y,e=>{v(O)&&e(x)});var S=z(y,2);U(S,{id:`discovery-markdown-button`,variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.markdown},onclick:j,children:(e,t)=>{St(e,{})},$$slots:{default:!0}});var w=z(S,2),D=e(w),P=e=>{U(e,{id:`discovery-configuration-button`,get href(){return Ae},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.configuration},children:(e,t)=>{wt(e,{})},$$slots:{default:!0}})};a(D,e=>{v(ee)&&e(P)});var F=z(D,2),I=e=>{U(e,{id:`discovery-introspection-button`,get href(){return oe},variant:`ghost`,size:`icon`,class:`text-muted-foreground`,get"aria-label"(){return g().nav.introspection},children:(e,t)=>{Mt(e,{})},$$slots:{default:!0}})};a(F,e=>{v(k)&&e(I)}),M(w),M(m);var L=z(m,2),re=e=>{var n=$i();t(e,n)},B=n=>{var r=ea(),i=e(r);Ot(i,{class:`text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2`});var a=z(i,2);Ue(a,{id:`nav-filter-input`,type:`search`,onkeydown:N,get"aria-label"(){return g().nav.filter},class:`ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden`,get ref(){return v(C)},set ref(e){A(C,e,!0)},get value(){return ne(),l()},set value(e){te(ht,e)}}),Xi(z(a,2),{class:`absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex`,children:(e,n)=>{f();var r=o();s(()=>d(r,ae?`⌘K`:`Ctrl K`)),t(e,r)},$$slots:{default:!0}}),M(r),t(n,r)};a(L,e=>{v(E)?e(re):e(B,-1)});var V=z(L,2),ie=e(V),se=e=>{var n=Qi(),r=T(n),i=e=>{var n=Qi(),r=T(n);vt(r,{get text(){return b().id},variant:`outline`,size:`icon-sm`,get"aria-label"(){return g().nav.identity},class:`md:hidden`});var i=z(r,2);{let e=R(()=>b().id.slice(0,8));vt(i,{id:`iam-identity-button`,get text(){return b().id},get label(){return v(e)},variant:`outline`,size:`sm`,get"aria-label"(){return g().nav.identity},class:`hidden font-mono md:inline-flex`})}t(e,n)};a(r,e=>{b()!==null&&e(i)});var o=z(r,2);U(o,{id:`iam-logout-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signout},class:`text-destructive hover:text-destructive`,get onclick(){return ve},children:(e,t)=>{Et(e,{})},$$slots:{default:!0}}),t(e,n)},H=e=>{U(e,{id:`iam-cancel-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.back},onclick:()=>A(E,!1),children:(e,t)=>{ft(e,{})},$$slots:{default:!0}})},le=e=>{U(e,{id:`iam-login-button`,variant:`ghost`,size:`icon`,get"aria-label"(){return g().nav.signin},onclick:()=>A(E,!0),children:(e,t)=>{At(e,{})},$$slots:{default:!0}})};a(ie,e=>{c()?e(se):v(E)?e(H,1):e(le,-1)}),M(V),M(p);var ue=z(p,2),fe=e(ue),pe=e=>{yi(e,{children:(e,t)=>{Zi(e)},$$slots:{default:!0}})},me=e=>{Zi(e)};a(fe,e=>{v(E)?e(pe):e(me,-1)});var he=z(fe,2);lt(he,{}),M(ue),s(()=>d(_,de.title)),t(n,i)},$$slots:{default:!0}}),_(),S()}export{na as component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,n as s,s as c}from"../chunks/BEB0f03Q.js";var l=t({load:()=>u});function u(){return{meta:{title:`Authentication`,description:`Tokens, not passwords. Follow the authorization response.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.authentication.title}}),n(),f()}export{d as component,l as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,r as s,s as c}from"../chunks/BEB0f03Q.js";var l=t({load:()=>u});function u(){return{meta:{title:`Multipart responses`,description:`How a streamed reply is framed.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.multipart.title}}),n(),f()}export{d as component,l as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{f as o,i as s,s as c}from"../chunks/BEB0f03Q.js";var l=t({load:()=>u});function u(){return{meta:{title:`Collection queries`,description:`How a collection is selected.`}}}function d(t,l){e(l,!1);let u=()=>i(o,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return s},get title(){return u().guide.queries.title}}),n(),f()}export{d as component,l as universal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ct as e,Nt as t,St as n,dt as r,ft as i,s as a}from"../chunks/BVDJTrf4.js";import"../chunks/xihTtKlq.js";import{a as o,f as s,s as c}from"../chunks/BEB0f03Q.js";var l=t({load:()=>u});function u(){return{meta:{title:`Status codes`,description:`HTTP status codes the gateway may return.`}}}function d(t,l){e(l,!1);let u=()=>i(s,`$dict`,d),[d,f]=r();a(),c(t,{get source(){return o},get title(){return u().guide.status.title}}),n(),f()}export{d as component,l as universal};
|