xtablo-source/go_backend/internal/frontend/dist/assets/main-B7j1Bbjq.js
Arthur Belleville 50ba9b340b
Modify backend
2025-03-15 08:46:51 +01:00

5 lines
103 KiB
JavaScript

(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const pr=!1;var Kt=Array.isArray,Rn=Array.from,wr=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ei=Object.getOwnPropertyDescriptors,yr=Object.prototype,xr=Array.prototype,Dn=Object.getPrototypeOf;function Lt(t){return typeof t=="function"}const at=()=>{};function kr(t){return t()}function Gt(t){for(var e=0;e<t.length;e++)t[e]()}const Ze=2,Pi=4,Ft=8,Mn=16,We=32,Ut=64,Sn=128,mt=256,Qt=512,Ie=1024,lt=2048,St=4096,Ye=8192,Tt=16384,Ir=32768,on=65536,Sr=1<<17,Tr=1<<19,Oi=1<<20,ot=Symbol("$state"),zi=Symbol("legacy props"),Er=Symbol("");function Ci(t){return t===this.v}function Li(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Zn(t){return!Li(t,this.v)}function Pr(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Or(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function zr(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lr(t){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function jr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ar(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Dr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Et=!1;function Mr(){Et=!0}const Zr=1,Wr=2,Kr=16,Fr=1,Ur=2,ji=4,Vr=8,Xr=16,Yr=1,Hr=2,Ee=Symbol();function Oe(t,e){var n={f:0,v:t,reactions:null,equals:Ci,version:0};return n}function sn(t,e=!1){var i;const n=Oe(t);return e||(n.equals=Zn),Et&&H!==null&&H.l!==null&&((i=H.l).s??(i.s=[])).push(n),n}function le(t,e=!1){return qr(sn(t,e))}function qr(t){return te!==null&&te.f&Ze&&(He===null?ia([t]):He.push(t)),t}function J(t,e){return te!==null&&fn()&&te.f&(Ze|Mn)&&(He===null||!He.includes(t))&&Dr(),Ni(t,e)}function Ni(t,e){return t.equals(e)||(t.v=e,t.version=Ji(),Ai(t,lt),fn()&&X!==null&&X.f&Ie&&!(X.f&We)&&(ge!==null&&ge.includes(t)?(Ke(X,lt),vn(X)):st===null?ra([t]):st.push(t))),e}function Ai(t,e){var n=t.reactions;if(n!==null)for(var i=fn(),r=n.length,a=0;a<r;a++){var s=n[a],c=s.f;c&lt||!i&&s===X||(Ke(s,e),c&(Ie|mt)&&(c&Ze?Ai(s,St):vn(s)))}}let Ri=!1;function wt(t,e=null,n){if(typeof t!="object"||t===null||ot in t)return t;const i=Dn(t);if(i!==yr&&i!==xr)return t;var r=new Map,a=Kt(t),s=Oe(0);a&&r.set("length",Oe(t.length));var c;return new Proxy(t,{defineProperty(f,d,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&Nr();var o=r.get(d);return o===void 0?(o=Oe(l.value),r.set(d,o)):J(o,wt(l.value,c)),!0},deleteProperty(f,d){var l=r.get(d);if(l===void 0)d in f&&r.set(d,Oe(Ee));else{if(a&&typeof d=="string"){var o=r.get("length"),u=Number(d);Number.isInteger(u)&&u<o.v&&J(o,u)}J(l,Ee),ii(s)}return!0},get(f,d,l){var v;if(d===ot)return t;var o=r.get(d),u=d in f;if(o===void 0&&(!u||(v=$e(f,d))!=null&&v.writable)&&(o=Oe(wt(u?f[d]:Ee,c)),r.set(d,o)),o!==void 0){var h=k(o);return h===Ee?void 0:h}return Reflect.get(f,d,l)},getOwnPropertyDescriptor(f,d){var l=Reflect.getOwnPropertyDescriptor(f,d);if(l&&"value"in l){var o=r.get(d);o&&(l.value=k(o))}else if(l===void 0){var u=r.get(d),h=u==null?void 0:u.v;if(u!==void 0&&h!==Ee)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return l},has(f,d){var h;if(d===ot)return!0;var l=r.get(d),o=l!==void 0&&l.v!==Ee||Reflect.has(f,d);if(l!==void 0||X!==null&&(!o||(h=$e(f,d))!=null&&h.writable)){l===void 0&&(l=Oe(o?wt(f[d],c):Ee),r.set(d,l));var u=k(l);if(u===Ee)return!1}return o},set(f,d,l,o){var _;var u=r.get(d),h=d in f;if(a&&d==="length")for(var v=l;v<u.v;v+=1){var m=r.get(v+"");m!==void 0?J(m,Ee):v in f&&(m=Oe(Ee),r.set(v+"",m))}u===void 0?(!h||(_=$e(f,d))!=null&&_.writable)&&(u=Oe(void 0),J(u,wt(l,c)),r.set(d,u)):(h=u.v!==Ee,J(u,wt(l,c)));var x=Reflect.getOwnPropertyDescriptor(f,d);if(x!=null&&x.set&&x.set.call(o,l),!h){if(a&&typeof d=="string"){var g=r.get("length"),y=Number(d);Number.isInteger(y)&&y>=g.v&&J(g,y+1)}ii(s)}return!0},ownKeys(f){k(s);var d=Reflect.ownKeys(f).filter(u=>{var h=r.get(u);return h===void 0||h.v!==Ee});for(var[l,o]of r)o.v!==Ee&&!(l in f)&&d.push(l);return d},setPrototypeOf(){Ar()}})}function ii(t,e=1){J(t,t.v+e)}var ri,Di,Mi;function Br(){if(ri===void 0){ri=window;var t=Element.prototype,e=Node.prototype;Di=$e(e,"firstChild").get,Mi=$e(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function Wn(t=""){return document.createTextNode(t)}function kt(t){return Di.call(t)}function ln(t){return Mi.call(t)}function L(t,e){return kt(t)}function ce(t,e){{var n=kt(t);return n instanceof Comment&&n.data===""?ln(n):n}}function A(t,e=1,n=!1){let i=t;for(;e--;)i=ln(i);return i}function Jr(t){t.textContent=""}function $t(t){var e=Ze|lt;X===null?e|=mt:X.f|=Oi;var n=te!==null&&te.f&Ze?te:null;const i={children:null,ctx:H,deps:null,equals:Ci,f:e,fn:t,reactions:null,v:null,version:0,parent:n??X};return n!==null&&(n.children??(n.children=[])).push(i),i}function At(t){const e=$t(t);return e.equals=Zn,e}function Zi(t){var e=t.children;if(e!==null){t.children=null;for(var n=0;n<e.length;n+=1){var i=e[n];i.f&Ze?Kn(i):ct(i)}}}function Gr(t){for(var e=t.parent;e!==null;){if(!(e.f&Ze))return e;e=e.parent}return null}function Wi(t){var e,n=X;je(Gr(t));try{Zi(t),e=Gi(t)}finally{je(n)}return e}function Ki(t){var e=Wi(t),n=(vt||t.f&mt)&&t.deps!==null?St:Ie;Ke(t,n),t.equals(e)||(t.v=e,t.version=Ji())}function Kn(t){Zi(t),Mt(t,0),Ke(t,Tt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Fi(t){X===null&&te===null&&zr(),te!==null&&te.f&mt&&Or(),Xn&&Pr()}function Qr(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Pt(t,e,n,i=!0){var r=(t&Ut)!==0,a=X,s={ctx:H,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|lt,first:null,fn:e,last:null,next:null,parent:r?null:a,prev:null,teardown:null,transitions:null,version:0};if(n){var c=xt;try{ai(!0),Vt(s),s.f|=Ir}catch(l){throw ct(s),l}finally{ai(c)}}else e!==null&&vn(s);var f=n&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&Oi)===0;if(!f&&!r&&i&&(a!==null&&Qr(s,a),te!==null&&te.f&Ze)){var d=te;(d.children??(d.children=[])).push(s)}return s}function cn(t){const e=Pt(Ft,null,!1);return Ke(e,Ie),e.teardown=t,e}function Tn(t){Fi();var e=X!==null&&(X.f&We)!==0&&H!==null&&!H.m;if(e){var n=H;(n.e??(n.e=[])).push({fn:t,effect:X,reaction:te})}else{var i=Fn(t);return i}}function $r(t){return Fi(),Ot(t)}function ea(t){const e=Pt(Ut,t,!0);return(n={})=>new Promise(i=>{n.outro?Dt(e,()=>{ct(e),i(void 0)}):(ct(e),i(void 0))})}function Fn(t){return Pt(Pi,t,!1)}function ne(t,e){var n=H,i={effect:null,ran:!1};n.l.r1.push(i),i.effect=Ot(()=>{t(),!i.ran&&(i.ran=!0,J(n.l.r2,!0),ut(e))})}function Ne(){var t=H;Ot(()=>{if(k(t.l.r2)){for(var e of t.l.r1){var n=e.effect;n.f&Ie&&Ke(n,St),zt(n)&&Vt(n),e.ran=!1}t.l.r2.v=!1}})}function Ot(t){return Pt(Ft,t,!0)}function Z(t){return un(t)}function un(t,e=0){return Pt(Ft|Mn|e,t,!0)}function It(t,e=!0){return Pt(Ft|We,t,!0,e)}function Ui(t){var e=t.teardown;if(e!==null){const n=Xn,i=te;oi(!0),qe(null);try{e.call(null)}finally{oi(n),qe(i)}}}function Vi(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var n=0;n<e.length;n+=1)Kn(e[n])}}function Xi(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){var i=n.next;ct(n,e),n=i}}function ta(t){for(var e=t.first;e!==null;){var n=e.next;e.f&We||ct(e),e=n}}function ct(t,e=!0){var n=!1;if((e||t.f&Tr)&&t.nodes_start!==null){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var a=i===r?null:ln(i);i.remove(),i=a}n=!0}Xi(t,e&&!n),Vi(t),Mt(t,0),Ke(t,Tt);var s=t.transitions;if(s!==null)for(const f of s)f.stop();Ui(t);var c=t.parent;c!==null&&c.first!==null&&Yi(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Yi(t){var e=t.parent,n=t.prev,i=t.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=n))}function Dt(t,e){var n=[];Un(t,n,!0),Hi(n,()=>{ct(t),e&&e()})}function Hi(t,e){var n=t.length;if(n>0){var i=()=>--n||e();for(var r of t)r.out(i)}else e()}function Un(t,e,n){if(!(t.f&Ye)){if(t.f^=Ye,t.transitions!==null)for(const s of t.transitions)(s.is_global||n)&&e.push(s);for(var i=t.first;i!==null;){var r=i.next,a=(i.f&on)!==0||(i.f&We)!==0;Un(i,e,a?n:!1),i=r}}}function en(t){qi(t,!0)}function qi(t,e){if(t.f&Ye){zt(t)&&Vt(t),t.f^=Ye;for(var n=t.first;n!==null;){var i=n.next,r=(n.f&on)!==0||(n.f&We)!==0;qi(n,r?e:!1),n=i}if(t.transitions!==null)for(const a of t.transitions)(a.is_global||e)&&a.in()}}let En=!1,Pn=[];function na(){En=!1;const t=Pn.slice();Pn=[],Gt(t)}function Vn(t){En||(En=!0,queueMicrotask(na)),Pn.push(t)}function dn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let Bt=!1,tn=!1,nn=null,xt=!1,Xn=!1;function ai(t){xt=t}function oi(t){Xn=t}let On=[],Rt=0;let te=null;function qe(t){te=t}let X=null;function je(t){X=t}let He=null;function ia(t){He=t}let ge=null,Pe=0,st=null;function ra(t){st=t}let Bi=1,vt=!1,H=null;function Ji(){return++Bi}function fn(){return!Et||H!==null&&H.l===null}function zt(t){var s,c;var e=t.f;if(e&lt)return!0;if(e&St){var n=t.deps,i=(e&mt)!==0;if(n!==null){var r;if(e&Qt){for(r=0;r<n.length;r++)((s=n[r]).reactions??(s.reactions=[])).push(t);t.f^=Qt}for(r=0;r<n.length;r++){var a=n[r];if(zt(a)&&Ki(a),i&&X!==null&&!vt&&!((c=a==null?void 0:a.reactions)!=null&&c.includes(t))&&(a.reactions??(a.reactions=[])).push(t),a.version>t.version)return!0}}(!i||X!==null&&!vt)&&Ke(t,Ie)}return!1}function aa(t,e){for(var n=e;n!==null;){if(n.f&Sn)try{n.fn(t);return}catch{n.f^=Sn}n=n.parent}throw Bt=!1,t}function oa(t){return(t.f&Tt)===0&&(t.parent===null||(t.parent.f&Sn)===0)}function hn(t,e,n,i){if(Bt){if(n===null&&(Bt=!1),oa(e))throw t;return}n!==null&&(Bt=!0);{aa(t,e);return}}function Gi(t){var u;var e=ge,n=Pe,i=st,r=te,a=vt,s=He,c=H,f=t.f;ge=null,Pe=0,st=null,te=f&(We|Ut)?null:t,vt=!xt&&(f&mt)!==0,He=null,H=t.ctx;try{var d=(0,t.fn)(),l=t.deps;if(ge!==null){var o;if(Mt(t,Pe),l!==null&&Pe>0)for(l.length=Pe+ge.length,o=0;o<ge.length;o++)l[Pe+o]=ge[o];else t.deps=l=ge;if(!vt)for(o=Pe;o<l.length;o++)((u=l[o]).reactions??(u.reactions=[])).push(t)}else l!==null&&Pe<l.length&&(Mt(t,Pe),l.length=Pe);return d}finally{ge=e,Pe=n,st=i,te=r,vt=a,He=s,H=c}}function sa(t,e){let n=e.reactions;if(n!==null){var i=n.indexOf(t);if(i!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[i]=n[r],n.pop())}}n===null&&e.f&Ze&&(ge===null||!ge.includes(e))&&(Ke(e,St),e.f&(mt|Qt)||(e.f^=Qt),Mt(e,0))}function Mt(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)sa(t,n[i])}function Vt(t){var e=t.f;if(!(e&Tt)){Ke(t,Ie);var n=X,i=H;X=t;try{e&Mn?ta(t):Xi(t),Vi(t),Ui(t);var r=Gi(t);t.teardown=typeof r=="function"?r:null,t.version=Bi}catch(a){hn(a,t,n,i||t.ctx)}finally{X=n}}}function la(){if(Rt>1e3){Rt=0;try{Cr()}catch(t){if(nn!==null)hn(t,nn,null);else throw t}}Rt++}function ca(t){var e=t.length;if(e!==0){la();var n=xt;xt=!0;try{for(var i=0;i<e;i++){var r=t[i];r.f&Ie||(r.f^=Ie);var a=[];Qi(r,a),ua(a)}}finally{xt=n}}}function ua(t){var e=t.length;if(e!==0)for(var n=0;n<e;n++){var i=t[n];if(!(i.f&(Tt|Ye)))try{zt(i)&&(Vt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Yi(i):i.fn=null))}catch(r){hn(r,i,null,i.ctx)}}}function da(){if(tn=!1,Rt>1001)return;const t=On;On=[],ca(t),tn||(Rt=0,nn=null)}function vn(t){tn||(tn=!0,queueMicrotask(da)),nn=t;for(var e=t;e.parent!==null;){e=e.parent;var n=e.f;if(n&(Ut|We)){if(!(n&Ie))return;e.f^=Ie}}On.push(e)}function Qi(t,e){var n=t.first,i=[];e:for(;n!==null;){var r=n.f,a=(r&We)!==0,s=a&&(r&Ie)!==0,c=n.next;if(!s&&!(r&Ye))if(r&Ft){if(a)n.f^=Ie;else try{zt(n)&&Vt(n)}catch(o){hn(o,n,null,n.ctx)}var f=n.first;if(f!==null){n=f;continue}}else r&Pi&&i.push(n);if(c===null){let o=n.parent;for(;o!==null;){if(t===o)break e;var d=o.next;if(d!==null){n=d;continue e}o=o.parent}}n=c}for(var l=0;l<i.length;l++)f=i[l],e.push(f),Qi(f,e)}function k(t){var l;var e=t.f,n=(e&Ze)!==0;if(n&&e&Tt){var i=Wi(t);return Kn(t),i}if(te!==null){He!==null&&He.includes(t)&&Rr();var r=te.deps;ge===null&&r!==null&&r[Pe]===t?Pe++:ge===null?ge=[t]:ge.push(t),st!==null&&X!==null&&X.f&Ie&&!(X.f&We)&&st.includes(t)&&(Ke(X,lt),vn(X))}else if(n&&t.deps===null)for(var a=t,s=a.parent,c=a;s!==null;)if(s.f&Ze){var f=s;c=f,s=f.parent}else{var d=s;(l=d.deriveds)!=null&&l.includes(c)||(d.deriveds??(d.deriveds=[])).push(c);break}return n&&(a=t,zt(a)&&Ki(a)),t.v}function ut(t){const e=te;try{return te=null,t()}finally{te=e}}const fa=~(lt|St|Ie);function Ke(t,e){t.f=t.f&fa|e}function rn(t){return $i().get(t)}function ha(t,e){return $i().set(t,e),e}function $i(t){return H===null&&dn(),H.c??(H.c=new Map(va(H)||void 0))}function va(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function si(t,e=1){var n=k(t),i=e===1?n++:n--;return J(t,n),i}function _e(t,e=!1,n){H={p:H,c:null,e:null,m:!1,s:t,x:null,l:null},Et&&!e&&(H.l={s:null,u:null,r1:[],r2:Oe(!1)})}function me(t){const e=H;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var n=X,i=te;e.e=null;try{for(var r=0;r<s.length;r++){var a=s[r];je(a.effect),qe(a.reaction),Fn(a.fn)}}finally{je(n),qe(i)}}H=e.p,e.m=!0}return t||{}}function M(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(ot in t)zn(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&ot in n&&zn(n)}}}function zn(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let i in t)try{zn(t[i],e)}catch{}const n=Dn(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=Ei(n);for(let r in i){const a=i[r].get;if(a)try{a.call(t)}catch{}}}}}function _a(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ma=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ba(t){return ma.includes(t)}const ga={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function pa(t){return t=t.toLowerCase(),ga[t]??t}const wa=["touchstart","touchmove"];function ya(t){return wa.includes(t)}function xa(t,e){if(e){const n=document.body;t.autofocus=!0,Vn(()=>{document.activeElement===n&&t.focus()})}}let li=!1;function ka(){li||(li=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n.__on_r)==null||e.call(n)})},{capture:!0}))}function er(t){var e=te,n=X;qe(null),je(null);try{return t()}finally{qe(e),je(n)}}function Ia(t,e,n,i=n){t.addEventListener(e,()=>er(n));const r=t.__on_r;r?t.__on_r=()=>{r(),i(!0)}:t.__on_r=()=>i(!0),ka()}const tr=new Set,Cn=new Set;function nr(t,e,n,i){function r(a){if(i.capture||Nt.call(e,a),!a.cancelBubble)return er(()=>n.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Vn(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function z(t,e,n,i,r){var a={capture:i,passive:r},s=nr(t,e,n,a);(e===document.body||e===window||e===document)&&cn(()=>{e.removeEventListener(t,s,a)})}function Sa(t){for(var e=0;e<t.length;e++)tr.add(t[e]);for(var n of Cn)n(t)}function Nt(t){var y;var e=this,n=e.ownerDocument,i=t.type,r=((y=t.composedPath)==null?void 0:y.call(t))||[],a=r[0]||t.target,s=0,c=t.__root;if(c){var f=r.indexOf(c);if(f!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;f<=d&&(s=f)}if(a=r[s]||t.target,a!==e){wr(t,"currentTarget",{configurable:!0,get(){return a||n}});var l=te,o=X;qe(null),je(null);try{for(var u,h=[];a!==null;){var v=a.assignedSlot||a.parentNode||a.host||null;try{var m=a["__"+i];if(m!==void 0&&!a.disabled)if(Kt(m)){var[x,...g]=m;x.apply(a,[t,...g])}else m.call(a,t)}catch(_){u?h.push(_):u=_}if(t.cancelBubble||v===e||v===null)break;a=v}if(u){for(let _ of h)queueMicrotask(()=>{throw _});throw u}}finally{t.__root=e,delete t.currentTarget,qe(l),je(o)}}}function ir(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Zt(t,e){var n=X;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function U(t,e){var n=(e&Yr)!==0,i=(e&Hr)!==0,r,a=!t.startsWith("<!>");return()=>{r===void 0&&(r=ir(a?t:"<!>"+t),n||(r=kt(r)));var s=i?document.importNode(r,!0):r.cloneNode(!0);if(n){var c=kt(s),f=s.lastChild;Zt(c,f)}else Zt(s,s);return s}}function Ta(t,e){var n=U(t,e);return()=>Ea(n())}function Xt(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,a;return()=>{if(!a){var s=ir(r),c=kt(s);a=kt(c)}var f=a.cloneNode(!0);return Zt(f,f),f}}function Ea(t){const e=t.nodeType===11,n=t.tagName==="SCRIPT"?[t]:t.querySelectorAll("script"),i=X;for(const a of n){const s=document.createElement("script");for(var r of a.attributes)s.setAttribute(r.name,r.value);s.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(i.nodes_start=s),(e?t.lastChild===a:t===a)&&(i.nodes_end=s),a.replaceWith(s)}return t}function Me(t=""){{var e=Wn(t+"");return Zt(e,e),e}}function ve(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Wn();return t.append(e,n),Zt(e,n),t}function E(t,e){t!==null&&t.before(e)}function ae(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n==null?"":n+"")}function Pa(t,e){return Oa(t,e)}const gt=new Map;function Oa(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:s=!0}){Br();var c=new Set,f=o=>{for(var u=0;u<o.length;u++){var h=o[u];if(!c.has(h)){c.add(h);var v=ya(h);e.addEventListener(h,Nt,{passive:v});var m=gt.get(h);m===void 0?(document.addEventListener(h,Nt,{passive:v}),gt.set(h,1)):gt.set(h,m+1)}}};f(Rn(tr)),Cn.add(f);var d=void 0,l=ea(()=>{var o=n??e.appendChild(Wn());return It(()=>{if(a){_e({});var u=H;u.c=a}r&&(i.$$events=r),d=t(o,i)||{},a&&me()}),()=>{var v;for(var u of c){e.removeEventListener(u,Nt);var h=gt.get(u);--h===0?(document.removeEventListener(u,Nt),gt.delete(u)):gt.set(u,h)}Cn.delete(f),o!==n&&((v=o.parentNode)==null||v.removeChild(o))}});return za.set(d,l),d}let za=new WeakMap;function W(t,e,n=!1){var i=t,r=null,a=null,s=Ee,c=n?on:0,f=!1;const d=(o,u=!0)=>{f=!0,l(u,o)},l=(o,u)=>{s!==(s=o)&&(s?(r?en(r):u&&(r=It(()=>u(i))),a&&Dt(a,()=>{a=null})):(a?en(a):u&&(a=It(()=>u(i))),r&&Dt(r,()=>{r=null})))};un(()=>{f=!1,e(d),f||l(null,null)},c)}function Ca(t,e,n,i){for(var r=[],a=e.length,s=0;s<a;s++)Un(e[s].e,r,!0);var c=a>0&&r.length===0&&n!==null;if(c){var f=n.parentNode;Jr(f),f.append(n),i.clear(),it(t,e[0].prev,e[a-1].next)}Hi(r,()=>{for(var d=0;d<a;d++){var l=e[d];c||(i.delete(l.k),it(t,l.prev,l.next)),ct(l.e,!c)}})}function La(t,e,n,i,r,a=null){var s=t,c={flags:e,items:new Map,first:null},f=null,d=!1;un(()=>{var l=n(),o=Kt(l)?l:l==null?[]:Rn(l),u=o.length;if(!(d&&u===0)){d=u===0;{var h=te;ja(o,c,s,r,e,(h.f&Ye)!==0,i)}a!==null&&(u===0?f?en(f):f=It(()=>a(s)):f!==null&&Dt(f,()=>{f=null})),n()}})}function ja(t,e,n,i,r,a,s,c){var f=t.length,d=e.items,l=e.first,o=l,u,h=null,v=[],m=[],x,g,y,_;for(_=0;_<f;_+=1){if(x=t[_],g=s(x,_),y=d.get(g),y===void 0){var w=o?o.e.nodes_start:n;h=Aa(w,e,h,h===null?e.first:h.next,x,g,_,i,r),d.set(g,h),v=[],m=[],o=h.next;continue}if(Na(y,x,_),y.e.f&Ye&&en(y.e),y!==o){if(u!==void 0&&u.has(y)){if(v.length<m.length){var P=m[0],I;h=P.prev;var F=v[0],N=v[v.length-1];for(I=0;I<v.length;I+=1)ci(v[I],P,n);for(I=0;I<m.length;I+=1)u.delete(m[I]);it(e,F.prev,N.next),it(e,h,F),it(e,N,P),o=P,h=N,_-=1,v=[],m=[]}else u.delete(y),ci(y,o,n),it(e,y.prev,y.next),it(e,y,h===null?e.first:h.next),it(e,h,y),h=y;continue}for(v=[],m=[];o!==null&&o.k!==g;)(a||!(o.e.f&Ye))&&(u??(u=new Set)).add(o),m.push(o),o=o.next;if(o===null)continue;y=o}v.push(y),h=y,o=y.next}if(o!==null||u!==void 0){for(var C=u===void 0?[]:Rn(u);o!==null;)(a||!(o.e.f&Ye))&&C.push(o),o=o.next;var R=C.length;if(R>0){var Y=null;Ca(e,C,Y,d)}}X.first=e.first&&e.first.e,X.last=h&&h.e}function Na(t,e,n,i){Ni(t.v,e),t.i=n}function Aa(t,e,n,i,r,a,s,c,f,d){var l=(f&Zr)!==0,o=(f&Kr)===0,u=l?o?sn(r):Oe(r):r,h=f&Wr?Oe(s):s,v={i:h,v:u,k:a,a:null,e:null,prev:n,next:i};try{return v.e=It(()=>c(t,u,h),Ri),v.e.prev=n&&n.e,v.e.next=i&&i.e,n===null?e.first=v:(n.next=v,n.e.next=v.e),i!==null&&(i.prev=v,i.e.prev=v.e),v}finally{}}function ci(t,e,n){for(var i=t.next?t.next.e.nodes_start:n,r=e?e.e.nodes_start:n,a=t.e.nodes_start;a!==i;){var s=ln(a);r.before(a),a=s}}function it(t,e,n){e===null?t.first=n:(e.next=n,e.e.next=n&&n.e),n!==null&&(n.prev=e,n.e.prev=e&&e.e)}function he(t,e,n,i,r){var c;var a=(c=e.$$slots)==null?void 0:c[n],s=!1;a===!0&&(a=e[n==="default"?"children":n],s=!0),a===void 0?r!==null&&r(t):a(t,s?()=>i:i)}function Yn(t){const e={};t.children&&(e.default=!0);for(const n in t.$$slots)e[n]=!0;return e}function an(t,e,n){var i=t,r,a;un(()=>{r!==(r=e())&&(a&&(Dt(a),a=null),r&&(a=It(()=>n(i,r))))},on)}function rr(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=rr(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Ra(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=rr(t))&&(i&&(i+=" "),i+=e);return i}function ar(t){return typeof t=="object"?Ra(t):t??""}function Da(t,e){var n=t.__attributes??(t.__attributes={});n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e)}function or(t,e){var n=t.__attributes??(t.__attributes={});n.checked!==(n.checked=e??void 0)&&(t.checked=e)}function sr(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function B(t,e,n,i){var r=t.__attributes??(t.__attributes={});r[e]!==(r[e]=n)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[Er]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Hn(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function nt(t,e,n){var i=te,r=X;qe(null),je(null);try{(Ln.has(t.nodeName)||customElements.get(t.tagName.toLowerCase())?Hn(t).includes(e):n&&typeof n=="object")?t[e]=n:B(t,e,n==null?n:String(n))}finally{qe(i),je(r)}}function we(t,e,n,i,r=!1,a=!1,s=!1){var c=e||{},f=t.tagName==="OPTION";for(var d in e)d in n||(n[d]=null);n.class&&(n.class=ar(n.class));var l=Hn(t),o=t.__attributes??(t.__attributes={});for(const y in n){let _=n[y];if(f&&y==="value"&&_==null){t.value=t.__value="",c[y]=_;continue}var u=c[y];if(_!==u){c[y]=_;var h=y[0]+y[1];if(h!=="$$"){if(h==="on"){const w={},P="$$"+y;let I=y.slice(2);var v=ba(I);if(_a(I)&&(I=I.slice(0,-7),w.capture=!0),!v&&u){if(_!=null)continue;t.removeEventListener(I,c[P],w),c[P]=null}if(_!=null)if(v)t[`__${I}`]=_,Sa([I]);else{let F=function(N){c[y].call(this,N)};var g=F;c[P]=nr(I,t,F,w)}else v&&(t[`__${I}`]=void 0)}else if(y==="style"&&_!=null)t.style.cssText=_+"";else if(y==="autofocus")xa(t,!!_);else if(y==="__value"||y==="value"&&_!=null)t.value=t[y]=t.__value=_;else if(y==="selected"&&f)sr(t,_);else{var m=y;r||(m=pa(m));var x=m==="defaultValue"||m==="defaultChecked";if(_==null&&!a&&!x)if(o[y]=null,m==="value"||m==="checked"){let w=t;if(m==="value"){let P=w.defaultValue;w.removeAttribute(m),w.defaultValue=P}else{let P=w.defaultChecked;w.removeAttribute(m),w.defaultChecked=P}}else t.removeAttribute(y);else x||l.includes(m)&&(a||typeof _!="string")?t[m]=_:typeof _!="function"&&B(t,m,_)}y==="style"&&"__styles"in t&&(t.__styles={})}}}return c}var Ln=new Map;function Hn(t){var e=Ln.get(t.nodeName);if(e)return e;Ln.set(t.nodeName,e=[]);for(var n,i=t,r=Element.prototype;r!==i;){n=Ei(i);for(var a in n)n[a].set&&e.push(a);i=Dn(i)}return e}function Ma(t,e,n){var i=t.__className,r=Za(e);(i!==r||Ri)&&(e==null&&!n?t.removeAttribute("class"):t.className=r,t.__className=r)}function Za(t,e){return(t??"")+""}function b(t,e,n){if(n){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function ui(t,e,n,i){var r=t.__styles??(t.__styles={});r[e]!==n&&(r[e]=n,n==null?t.style.removeProperty(e):t.style.setProperty(e,n,""))}function Wa(t,e,n=e){var i=fn();Ia(t,"input",r=>{var a=r?t.defaultValue:t.value;if(a=gn(t)?pn(a):a,n(a),i&&a!==(a=e())){var s=t.selectionStart,c=t.selectionEnd;t.value=a??"",c!==null&&(t.selectionStart=s,t.selectionEnd=Math.min(c,t.value.length))}}),ut(e)==null&&t.value&&n(gn(t)?pn(t.value):t.value),Ot(()=>{var r=e();gn(t)&&r===pn(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function gn(t){var e=t.type;return e==="number"||e==="range"}function pn(t){return t===""?null:+t}function di(t,e,n){var i=$e(t,e);i&&i.set&&(t[e]=n,cn(()=>{t[e]=null}))}function fi(t,e){return t===e||(t==null?void 0:t[ot])===e}function et(t={},e,n,i){return Fn(()=>{var r,a;return Ot(()=>{r=a,a=[],ut(()=>{t!==n(...a)&&(e(t,...a),r&&fi(n(...r),t)&&e(null,...r))})}),()=>{Vn(()=>{a&&fi(n(...a),t)&&e(null,...a)})}}),t}function Ka(t,e,n,i,r){var a=()=>{i(n[t])};n.addEventListener(e,a),r?Ot(()=>{n[t]=r()}):a(),(n===document.body||n===window||n===document)&&cn(()=>{n.removeEventListener(e,a)})}function ye(t=!1){const e=H,n=e.l.u;if(!n)return;let i=()=>M(e.s);if(t){let r=0,a={};const s=$t(()=>{let c=!1;const f=e.s;for(const d in f)f[d]!==a[d]&&(a[d]=f[d],c=!0);return c&&r++,r});i=()=>k(s)}n.b.length&&$r(()=>{hi(e,i),Gt(n.b)}),Tn(()=>{const r=ut(()=>n.m.map(kr));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&Tn(()=>{hi(e,i),Gt(n.a)})}function hi(t,e){if(t.l.s)for(const n of t.l.s)k(n);e()}function T(t,e){var a;var n=(a=t.$$events)==null?void 0:a[e.type],i=Kt(n)?n.slice():n==null?[]:[n];for(var r of i)r.call(this,e)}function lr(t,e,n){if(t==null)return e(void 0),n&&n(void 0),at;const i=ut(()=>t.subscribe(e,n));return i.unsubscribe?()=>i.unsubscribe():i}let Yt=!1;function Ht(t,e,n){const i=n[e]??(n[e]={store:null,source:sn(void 0),unsubscribe:at});if(i.store!==t)if(i.unsubscribe(),i.store=t??null,t==null)i.source.v=void 0,i.unsubscribe=at;else{var r=!0;i.unsubscribe=lr(t,a=>{r?i.source.v=a:J(i.source,a)}),r=!1}return k(i.source)}function Fa(){const t={};return cn(()=>{for(var e in t)t[e].unsubscribe()}),t}function Ua(t){var e=Yt;try{return Yt=!1,[t(),Yt]}finally{Yt=e}}const Va={get(t,e){if(!t.exclude.includes(e))return k(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,n){return e in t.special||(t.special[e]=p({get[e](){return t.props[e]}},e,ji)),t.special[e](n),si(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),si(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function oe(t,e){return new Proxy({props:t,exclude:e,special:{},version:Oe(0)},Va)}const Xa={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(Lt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];Lt(r)&&(r=r());const a=$e(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(Lt(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=$e(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===ot||e===zi)return!1;for(let n of t.props)if(Lt(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props){Lt(n)&&(n=n());for(const i in n)e.includes(i)||e.push(i)}return e}};function rt(...t){return new Proxy({props:t},Xa)}function vi(t){for(var e=X,n=X;e!==null&&!(e.f&(We|Ut));)e=e.parent;try{return je(e),t()}finally{je(n)}}function p(t,e,n,i){var F;var r=(n&Fr)!==0,a=!Et||(n&Ur)!==0,s=(n&Vr)!==0,c=(n&Xr)!==0,f=!1,d;s?[d,f]=Ua(()=>t[e]):d=t[e];var l=ot in t||zi in t,o=((F=$e(t,e))==null?void 0:F.set)??(l&&s&&e in t?N=>t[e]=N:void 0),u=i,h=!0,v=!1,m=()=>(v=!0,h&&(h=!1,c?u=ut(i):u=i),u);d===void 0&&i!==void 0&&(o&&a&&jr(),d=m(),o&&o(d));var x;if(a)x=()=>{var N=t[e];return N===void 0?m():(h=!0,v=!1,N)};else{var g=vi(()=>(r?$t:At)(()=>t[e]));g.f|=Sr,x=()=>{var N=k(g);return N!==void 0&&(u=void 0),N===void 0?u:N}}if(!(n&ji))return x;if(o){var y=t.$$legacy;return function(N,C){return arguments.length>0?((!a||!C||y||f)&&o(C?x():N),N):x()}}var _=!1,w=!1,P=sn(d),I=vi(()=>$t(()=>{var N=x(),C=k(P);return _?(_=!1,w=!0,C):(w=!1,P.v=N)}));return r||(I.equals=Zn),function(N,C){if(arguments.length>0){const R=C?k(I):a&&s?wt(N):N;return I.equals(R)||(_=!0,J(P,R),v&&u!==void 0&&(u=R),ut(()=>k(I))),N}return k(I)}}function qn(t){H===null&&dn(),Et&&H.l!==null?ur(H).m.push(t):Tn(()=>{const e=ut(t);if(typeof e=="function")return e})}function Ya(t,e,{bubbles:n=!1,cancelable:i=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:i})}function Ct(){const t=H;return t===null&&dn(),(e,n,i)=>{var a;const r=(a=t.s.$$events)==null?void 0:a[e];if(r){const s=Kt(r)?r.slice():[r],c=Ya(e,n,i);for(const f of s)f.call(t.x,c);return!c.defaultPrevented}return!0}}function cr(t){H===null&&dn(),H.l===null&&Lr(),ur(H).a.push(t)}function ur(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Ha="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ha);Mr();const pt=[];function qa(t,e){return{subscribe:Qe(t,e).subscribe}}function Qe(t,e=at){let n=null;const i=new Set;function r(c){if(Li(t,c)&&(t=c,n)){const f=!pt.length;for(const d of i)d[1](),pt.push(d,t);if(f){for(let d=0;d<pt.length;d+=2)pt[d][0](pt[d+1]);pt.length=0}}}function a(c){r(c(t))}function s(c,f=at){const d=[c,f];return i.add(d),i.size===1&&(n=e(r,a)||at),c(t),()=>{i.delete(d),i.size===0&&n&&(n(),n=null)}}return{set:r,update:a,subscribe:s}}function Ba(t,e,n){const i=!Array.isArray(t),r=i?[t]:t;if(!r.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const a=e.length<2;return qa(n,(s,c)=>{let f=!1;const d=[];let l=0,o=at;const u=()=>{if(l)return;o();const v=e(i?d[0]:d,s,c);a?s(v):o=typeof v=="function"?v:at},h=r.map((v,m)=>lr(v,x=>{d[m]=x,l&=~(1<<m),f&&u()},()=>{l|=1<<m}));return f=!0,u(),function(){Gt(h),o(),f=!1}})}var Ja=U("<div><!></div>"),Ga=U("<a><!> <!></a>"),Qa=U("<div><!></div>"),$a=U("<a><!> <!></a>");function wn(t,e){const n=Yn(e),i=oe(e,["children","$$slots","$$events","$$legacy"]),r=oe(i,["size","href","inline","icon","disabled","visited","ref"]);_e(e,!1);let a=p(e,"size",8,void 0),s=p(e,"href",8,void 0),c=p(e,"inline",8,!1),f=p(e,"icon",8,void 0),d=p(e,"disabled",8,!1),l=p(e,"visited",8,!1),o=p(e,"ref",12,null);ye();var u=ve(),h=ce(u);{var v=x=>{var g=Ga();let y;var _=L(g);he(_,e,"default",{},null);var w=A(_,2);{var P=I=>{var F=Ja();b(F,"bx--link__icon",!0);var N=L(F);he(N,e,"icon",{},C=>{var R=ve(),Y=ce(R);an(Y,f,(se,q)=>{q(se,{})}),E(C,R)}),E(I,F)};W(w,I=>{!c()&&(n.icon||f())&&I(P)})}et(g,I=>o(I),()=>o()),Z(()=>{y=we(g,y,{role:"link","aria-disabled":"true",...r}),b(g,"bx--link",!0),b(g,"bx--link--disabled",d()),b(g,"bx--link--inline",c()),b(g,"bx--link--visited",l())}),z("click",g,function(I){T.call(this,e,I)}),z("mouseover",g,function(I){T.call(this,e,I)}),z("mouseenter",g,function(I){T.call(this,e,I)}),z("mouseleave",g,function(I){T.call(this,e,I)}),E(x,g)},m=x=>{var g=$a();let y;var _=L(g);he(_,e,"default",{},null);var w=A(_,2);{var P=I=>{var F=Qa();b(F,"bx--link__icon",!0);var N=L(F);he(N,e,"icon",{},C=>{var R=ve(),Y=ce(R);an(Y,f,(se,q)=>{q(se,{})}),E(C,R)}),E(I,F)};W(w,I=>{!c()&&(n.icon||f())&&I(P)})}et(g,I=>o(I),()=>o()),Z(()=>{y=we(g,y,{rel:r.target==="_blank"?"noopener noreferrer":void 0,href:s(),...r}),b(g,"bx--link",!0),b(g,"bx--link--disabled",d()),b(g,"bx--link--inline",c()),b(g,"bx--link--visited",l()),b(g,"bx--link--sm",a()==="sm"),b(g,"bx--link--lg",a()==="lg")}),z("click",g,function(I){T.call(this,e,I)}),z("mouseover",g,function(I){T.call(this,e,I)}),z("mouseenter",g,function(I){T.call(this,e,I)}),z("mouseleave",g,function(I){T.call(this,e,I)}),E(x,g)};W(h,x=>{d()?x(v):x(m,!1)})}E(t,u),me()}var eo=U("<a></a>"),to=U("<div></div>");function no(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["href","size"]);_e(e,!1);let r=p(e,"href",8,void 0),a=p(e,"size",8,"default");ye();var s=ve(),c=ce(s);{var f=l=>{var o=eo();let u;o.textContent="",Z(()=>{u=we(o,u,{href:r(),rel:i.target==="_blank"?"noopener noreferrer":void 0,role:"button",...i}),b(o,"bx--skeleton",!0),b(o,"bx--btn",!0),b(o,"bx--btn--field",a()==="field"),b(o,"bx--btn--sm",a()==="small"),b(o,"bx--btn--lg",a()==="lg"),b(o,"bx--btn--xl",a()==="xl")}),z("click",o,function(h){T.call(this,e,h)}),z("focus",o,function(h){T.call(this,e,h)}),z("blur",o,function(h){T.call(this,e,h)}),z("mouseover",o,function(h){T.call(this,e,h)}),z("mouseenter",o,function(h){T.call(this,e,h)}),z("mouseleave",o,function(h){T.call(this,e,h)}),E(l,o)},d=l=>{var o=to();let u;Z(()=>{u=we(o,u,{...i}),b(o,"bx--skeleton",!0),b(o,"bx--btn",!0),b(o,"bx--btn--field",a()==="field"),b(o,"bx--btn--sm",a()==="small"),b(o,"bx--btn--lg",a()==="lg"),b(o,"bx--btn--xl",a()==="xl")}),z("click",o,function(h){T.call(this,e,h)}),z("focus",o,function(h){T.call(this,e,h)}),z("blur",o,function(h){T.call(this,e,h)}),z("mouseover",o,function(h){T.call(this,e,h)}),z("mouseenter",o,function(h){T.call(this,e,h)}),z("mouseleave",o,function(h){T.call(this,e,h)}),E(l,o)};W(c,l=>{r()?l(f):l(d,!1)})}E(t,s),me()}var io=U("<span> </span>"),ro=U("<a><!> <!> <!></a>"),ao=U("<span> </span>"),oo=U("<button><!> <!> <!></button>");function so(t,e){const n=Yn(e),i=oe(e,["children","$$slots","$$events","$$legacy"]),r=oe(i,["kind","size","expressive","isSelected","icon","iconDescription","tooltipAlignment","tooltipPosition","as","skeleton","disabled","href","tabindex","type","ref"]);_e(e,!1);const a=le(),s=le(),c=le();let f=p(e,"kind",8,"primary"),d=p(e,"size",8,"default"),l=p(e,"expressive",8,!1),o=p(e,"isSelected",8,!1),u=p(e,"icon",8,void 0),h=p(e,"iconDescription",8,void 0),v=p(e,"tooltipAlignment",8,"center"),m=p(e,"tooltipPosition",8,"bottom"),x=p(e,"as",8,!1),g=p(e,"skeleton",8,!1),y=p(e,"disabled",8,!1),_=p(e,"href",8,void 0),w=p(e,"tabindex",8,"0"),P=p(e,"type",8,"button"),I=p(e,"ref",12,null);const F=rn("ComposedModal");ne(()=>M(I()),()=>{F&&I()&&F.declareRef(I())}),ne(()=>M(u()),()=>{J(a,(u()||n.icon)&&!n.default)}),ne(()=>M(h()),()=>{J(s,{"aria-hidden":"true",class:"bx--btn__icon","aria-label":h()})}),ne(()=>(M(_()),M(y()),M(P()),M(w()),k(a),M(f()),M(o()),M(r),M(l()),M(d()),M(m()),M(v())),()=>{J(c,{type:_()&&!y()?void 0:P(),tabindex:w(),disabled:y()===!0?!0:void 0,href:_(),"aria-pressed":k(a)&&f()==="ghost"&&!_()?o():void 0,...r,class:["bx--btn",l()&&"bx--btn--expressive",(d()==="small"&&!l()||d()==="sm"&&!l()||d()==="small"&&!l())&&"bx--btn--sm",d()==="field"&&!l()||d()==="md"&&!l()&&"bx--btn--md",d()==="field"&&"bx--btn--field",d()==="small"&&"bx--btn--sm",d()==="lg"&&"bx--btn--lg",d()==="xl"&&"bx--btn--xl",f()&&`bx--btn--${f()}`,y()&&"bx--btn--disabled",k(a)&&"bx--btn--icon-only",k(a)&&"bx--tooltip__trigger",k(a)&&"bx--tooltip--a11y",k(a)&&m()&&`bx--btn--icon-only--${m()}`,k(a)&&v()&&`bx--tooltip--align-${v()}`,k(a)&&o()&&f()==="ghost"&&"bx--btn--selected",r.class].filter(Boolean).join(" ")})}),Ne(),ye();var N=ve(),C=ce(N);{var R=se=>{var q=At(()=>k(a)&&"width: 3rem;");no(se,rt({get href(){return _()},get size(){return d()}},()=>r,{get style(){return k(q)},$$events:{click(ie){T.call(this,e,ie)},focus(ie){T.call(this,e,ie)},blur(ie){T.call(this,e,ie)},mouseover(ie){T.call(this,e,ie)},mouseenter(ie){T.call(this,e,ie)},mouseleave(ie){T.call(this,e,ie)}}}))},Y=se=>{var q=ve(),ie=ce(q);{var Ae=K=>{var be=ve(),tt=ce(be);he(tt,e,"default",{get props(){return k(c)}},null),E(K,be)},Se=K=>{var be=ve(),tt=ce(be);{var ze=Ce=>{var G=ro();let Fe;var Be=L(G);{var dt=O=>{var re=io();b(re,"bx--assistive-text",!0);var fe=L(re);Z(()=>ae(fe,h())),E(O,re)};W(Be,O=>{k(a)&&O(dt)})}var V=A(Be,2);he(V,e,"default",{},null);var $=A(V,2);{var de=O=>{var re=ve(),fe=ce(re);he(fe,e,"icon",rt({get style(){return k(a)?"margin-left: 0":void 0}},()=>k(s)),null),E(O,re)},Q=O=>{var re=ve(),fe=ce(re);{var Je=Te=>{var Re=ve(),De=ce(Re),Ge=At(()=>k(a)?"margin-left: 0":void 0);an(De,u,(Ue,ee)=>{ee(Ue,rt({get style(){return k(Ge)}},()=>k(s)))}),E(Te,Re)};W(fe,Te=>{u()&&Te(Je)},!0)}E(O,re)};W($,O=>{n.icon?O(de):O(Q,!1)})}et(G,O=>I(O),()=>I()),Z(()=>Fe=we(G,Fe,{...k(c)})),z("click",G,function(O){T.call(this,e,O)}),z("focus",G,function(O){T.call(this,e,O)}),z("blur",G,function(O){T.call(this,e,O)}),z("mouseover",G,function(O){T.call(this,e,O)}),z("mouseenter",G,function(O){T.call(this,e,O)}),z("mouseleave",G,function(O){T.call(this,e,O)}),E(Ce,G)},bt=Ce=>{var G=oo();let Fe;var Be=L(G);{var dt=O=>{var re=ao();b(re,"bx--assistive-text",!0);var fe=L(re);Z(()=>ae(fe,h())),E(O,re)};W(Be,O=>{k(a)&&O(dt)})}var V=A(Be,2);he(V,e,"default",{},null);var $=A(V,2);{var de=O=>{var re=ve(),fe=ce(re);he(fe,e,"icon",rt({get style(){return k(a)?"margin-left: 0":void 0}},()=>k(s)),null),E(O,re)},Q=O=>{var re=ve(),fe=ce(re);{var Je=Te=>{var Re=ve(),De=ce(Re),Ge=At(()=>k(a)?"margin-left: 0":void 0);an(De,u,(Ue,ee)=>{ee(Ue,rt({get style(){return k(Ge)}},()=>k(s)))}),E(Te,Re)};W(fe,Te=>{u()&&Te(Je)},!0)}E(O,re)};W($,O=>{n.icon?O(de):O(Q,!1)})}et(G,O=>I(O),()=>I()),Z(()=>Fe=we(G,Fe,{...k(c)})),z("click",G,function(O){T.call(this,e,O)}),z("focus",G,function(O){T.call(this,e,O)}),z("blur",G,function(O){T.call(this,e,O)}),z("mouseover",G,function(O){T.call(this,e,O)}),z("mouseenter",G,function(O){T.call(this,e,O)}),z("mouseleave",G,function(O){T.call(this,e,O)}),E(Ce,G)};W(tt,Ce=>{_()&&!y()?Ce(ze):Ce(bt,!1)},!0)}E(K,be)};W(ie,K=>{x()?K(Ae):K(Se,!1)},!0)}E(se,q)};W(C,se=>{g()?se(R):se(Y,!1)})}E(t,N),me()}var lo=U("<div><span></span></div>");function co(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,[]);var r=lo();let a;var s=L(r);b(s,"bx--checkbox-label-text",!0),b(s,"bx--skeleton",!0),Z(()=>{a=we(r,a,{...i}),b(r,"bx--form-item",!0),b(r,"bx--checkbox-wrapper",!0),b(r,"bx--checkbox-label",!0)}),z("click",r,function(c){T.call(this,e,c)}),z("mouseover",r,function(c){T.call(this,e,c)}),z("mouseenter",r,function(c){T.call(this,e,c)}),z("mouseleave",r,function(c){T.call(this,e,c)}),E(t,r)}var uo=U('<div><input type="checkbox"> <label><span><!></span></label></div>');function fo(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["value","checked","group","indeterminate","skeleton","required","readonly","disabled","labelText","hideLabel","name","title","id","ref"]);_e(e,!1);const r=le(),a=le();let s=p(e,"value",8,""),c=p(e,"checked",12,!1),f=p(e,"group",12,void 0),d=p(e,"indeterminate",12,!1),l=p(e,"skeleton",8,!1),o=p(e,"required",8,!1),u=p(e,"readonly",8,!1),h=p(e,"disabled",8,!1),v=p(e,"labelText",8,""),m=p(e,"hideLabel",8,!1),x=p(e,"name",8,""),g=p(e,"title",12,void 0),y=p(e,"id",24,()=>"ccs-"+Math.random().toString(36)),_=p(e,"ref",12,null);const w=Ct();let P=le(null);ne(()=>M(f()),()=>{J(r,Array.isArray(f()))}),ne(()=>(M(c()),k(r),M(f()),M(s())),()=>{c(k(r)?f().includes(s()):c())}),ne(()=>M(c()),()=>{w("check",c())}),ne(()=>k(P),()=>{var R,Y;J(a,((R=k(P))==null?void 0:R.offsetWidth)<((Y=k(P))==null?void 0:Y.scrollWidth))}),ne(()=>(M(g()),k(a),k(P)),()=>{var R;g(!g()&&k(a)?(R=k(P))==null?void 0:R.innerText:g())}),Ne(),ye();var I=ve(),F=ce(I);{var N=R=>{co(R,rt(()=>i,{$$events:{click(Y){T.call(this,e,Y)},mouseover(Y){T.call(this,e,Y)},mouseenter(Y){T.call(this,e,Y)},mouseleave(Y){T.call(this,e,Y)}}}))},C=R=>{var Y=uo();let se;var q=L(Y);et(q,K=>_(K),()=>_());var ie=A(q,2),Ae=L(ie);b(Ae,"bx--checkbox-label-text",!0);var Se=L(Ae);he(Se,e,"labelText",{},K=>{var be=Me();Z(()=>ae(be,v())),E(K,be)}),et(Ae,K=>J(P,K),()=>k(P)),Z(()=>{se=we(Y,se,{...i}),b(Y,"bx--form-item",!0),b(Y,"bx--checkbox-wrapper",!0),Da(q,s()),or(q,c()),q.disabled=h(),B(q,"id",y()),B(q,"name",x()),q.required=o(),q.readOnly=u(),b(q,"bx--checkbox",!0),B(ie,"for",y()),B(ie,"title",g()),b(ie,"bx--checkbox-label",!0),b(Ae,"bx--visually-hidden",m())}),Ka("indeterminate","change",q,d,d),z("change",q,()=>{k(r)?f(f().includes(s())?f().filter(K=>K!==s()):[...f(),s()]):c(!c())}),z("change",q,function(K){T.call(this,e,K)}),z("focus",q,function(K){T.call(this,e,K)}),z("blur",q,function(K){T.call(this,e,K)}),z("click",Y,function(K){T.call(this,e,K)}),z("mouseover",Y,function(K){T.call(this,e,K)}),z("mouseenter",Y,function(K){T.call(this,e,K)}),z("mouseleave",Y,function(K){T.call(this,e,K)}),E(R,Y)};W(F,R=>{l()?R(N):R(C,!1)})}E(t,I),me()}var ho=U("<title> </title>"),vo=Xt('<svg><!><path d="M16,2C8.3,2,2,8.3,2,16s6.3,14,14,14s14-6.3,14-14C30,8.3,23.7,2,16,2z M14.9,8h2.2v11h-2.2V8z M16,25 c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22c0.8,0,1.5,0.7,1.5,1.5S16.8,25,16,25z"></path><path fill="none" d="M17.5,23.5c0,0.8-0.7,1.5-1.5,1.5c-0.8,0-1.5-0.7-1.5-1.5S15.2,22,16,22 C16.8,22,17.5,22.7,17.5,23.5z M17.1,8h-2.2v11h2.2V8z" data-icon-path="inner-path" opacity="0"></path></svg>');function jn(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","title"]);_e(e,!1);const r=le(),a=le();let s=p(e,"size",8,16),c=p(e,"title",8,void 0);ne(()=>(M(n),M(c())),()=>{J(r,n["aria-label"]||n["aria-labelledby"]||c())}),ne(()=>(k(r),M(n)),()=>{J(a,{"aria-hidden":k(r)?void 0:!0,role:k(r)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Ne(),ye();var f=vo();let d;var l=L(f);{var o=u=>{var h=ho(),v=L(h);Z(()=>ae(v,c())),E(u,h)};W(l,u=>{c()&&u(o)})}Z(()=>d=we(f,d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...k(a),...i},void 0,!0)),E(t,f),me()}var _o=U("<title> </title>"),mo=Xt('<svg><!><path fill="none" d="M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z" data-icon-path="inner-path"></path><path d="M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"></path><path d="M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"></path></svg>');function dr(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","title"]);_e(e,!1);const r=le(),a=le();let s=p(e,"size",8,16),c=p(e,"title",8,void 0);ne(()=>(M(n),M(c())),()=>{J(r,n["aria-label"]||n["aria-labelledby"]||c())}),ne(()=>(k(r),M(n)),()=>{J(a,{"aria-hidden":k(r)?void 0:!0,role:k(r)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Ne(),ye();var f=mo();let d;var l=L(f);{var o=u=>{var h=_o(),v=L(h);Z(()=>ae(v,c())),E(u,h)};W(l,u=>{c()&&u(o)})}Z(()=>d=we(f,d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...k(a),...i},void 0,!0)),E(t,f),me()}var bo=U("<title> </title>"),go=Xt('<svg><!><path d="M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"></path></svg>');function _i(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","title"]);_e(e,!1);const r=le(),a=le();let s=p(e,"size",8,16),c=p(e,"title",8,void 0);ne(()=>(M(n),M(c())),()=>{J(r,n["aria-label"]||n["aria-labelledby"]||c())}),ne(()=>(k(r),M(n)),()=>{J(a,{"aria-hidden":k(r)?void 0:!0,role:k(r)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Ne(),ye();var f=go();let d;var l=L(f);{var o=u=>{var h=bo(),v=L(h);Z(()=>ae(v,c())),E(u,h)};W(l,u=>{c()&&u(o)})}Z(()=>d=we(f,d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...k(a),...i},void 0,!0)),E(t,f),me()}function po(t,e){_e(e,!1);let n=p(e,"key",8,"local-storage-key"),i=p(e,"value",12,"");function r(){localStorage.removeItem(n())}function a(){localStorage.clear()}const s=Ct();let c=i();function f(){typeof i()=="object"?localStorage.setItem(n(),JSON.stringify(i())):localStorage.setItem(n(),i())}return qn(()=>{const d=localStorage.getItem(n());if(d!=null)try{i(JSON.parse(d))}catch{i(d)}else f(i()),s("save")}),cr(()=>{c!==i()&&(f(i()),s("update",{prevValue:c,value:i()})),c=i()}),ye(),di(e,"clearItem",r),di(e,"clearAll",a),me({clearItem:r,clearAll:a})}var wo=U("<title> </title>"),yo=Xt('<svg><!><path d="M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z"></path></svg>');function xo(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","title"]);_e(e,!1);const r=le(),a=le();let s=p(e,"size",8,16),c=p(e,"title",8,void 0);ne(()=>(M(n),M(c())),()=>{J(r,n["aria-label"]||n["aria-labelledby"]||c())}),ne(()=>(k(r),M(n)),()=>{J(a,{"aria-hidden":k(r)?void 0:!0,role:k(r)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Ne(),ye();var f=yo();let d;var l=L(f);{var o=u=>{var h=wo(),v=L(h);Z(()=>ae(v,c())),E(u,h)};W(l,u=>{c()&&u(o)})}Z(()=>d=we(f,d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...k(a),...i},void 0,!0)),E(t,f),me()}var ko=U("<label><!></label>"),Io=U("<div> </div>"),So=U("<div> </div>"),To=U("<div><div><select><!></select> <!> <!></div> <!></div> <!>",1),Eo=U("<div> </div>"),Po=U("<div> </div>"),Oo=U("<div> </div>"),zo=U("<div><select><!></select> <!> <!> <!></div> <!> <!> <!>",1),Co=U("<div><div><!> <!> <!></div></div>");function Lo(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["selected","size","inline","light","disabled","id","name","invalid","invalidText","warn","warnText","helperText","noLabel","labelText","hideLabel","ref","required"]);_e(e,!1);const r=Fa(),a=()=>Ht(ie,"$defaultValue",r),s=()=>Ht(q,"$defaultSelectId",r),c=()=>Ht(Ae,"$itemTypesByValue",r),f=()=>Ht(se,"$selectedValue",r),d=le();let l=p(e,"selected",12,void 0),o=p(e,"size",8,void 0),u=p(e,"inline",8,!1),h=p(e,"light",8,!1),v=p(e,"disabled",8,!1),m=p(e,"id",24,()=>"ccs-"+Math.random().toString(36)),x=p(e,"name",8,void 0),g=p(e,"invalid",8,!1),y=p(e,"invalidText",8,""),_=p(e,"warn",8,!1),w=p(e,"warnText",8,""),P=p(e,"helperText",8,""),I=p(e,"noLabel",8,!1),F=p(e,"labelText",8,""),N=p(e,"hideLabel",8,!1),C=p(e,"ref",12,null),R=p(e,"required",8,!1);const Y=Ct(),se=Qe(l()),q=Qe(null),ie=Qe(null),Ae=Qe({});ha("Select",{selectedValue:se,setDefaultValue:(V,$)=>{a()===null?(q.set(V),ie.set($)):s()===V&&se.set($),Ae.update(de=>({...de,[$]:typeof $}))}});const Se=({target:V})=>{let $=V.value;c()[$]==="number"&&($=Number($)),se.set($)};let K;cr(()=>{l(f()),K!==void 0&&l()!==K&&Y("update",f()),K=l()}),ne(()=>M(m()),()=>{J(d,`error-${m()}`)}),ne(()=>(M(l()),a()),()=>{se.set(l()??a())}),Ne(),ye();var be=Co();let tt;var ze=L(be);b(ze,"bx--select",!0);var bt=L(ze);{var Ce=V=>{var $=ko(),de=L($);he(de,e,"labelText",{},Q=>{var O=Me();Z(()=>ae(O,F())),E(Q,O)}),Z(()=>{B($,"for",m()),b($,"bx--label",!0),b($,"bx--visually-hidden",N()),b($,"bx--label--disabled",v())}),E(V,$)};W(bt,V=>{I()||V(Ce)})}var G=A(bt,2);{var Fe=V=>{var $=To(),de=ce($);b(de,"bx--select-input--inline__wrapper",!0);var Q=L(de),O=L(Q),re=L(O);he(re,e,"default",{},null),et(O,ee=>C(ee),()=>C());var fe=A(O,2);_i(fe,{class:"bx--select__arrow"});var Je=A(fe,2);{var Te=ee=>{jn(ee,{class:"bx--select__invalid-icon"})};W(Je,ee=>{g()&&ee(Te)})}var Re=A(Q,2);{var De=ee=>{var S=Io(),j=L(S);Z(()=>{B(S,"id",k(d)),b(S,"bx--form-requirement",!0),ae(j,y())}),E(ee,S)};W(Re,ee=>{g()&&ee(De)})}var Ge=A(de,2);{var Ue=ee=>{var S=So();b(S,"bx--form__helper-text",!0);var j=L(S);Z(()=>{b(S,"bx--form__helper-text--disabled",v()),ae(j,P())}),E(ee,S)};W(Ge,ee=>{!g()&&!_()&&P()&&ee(Ue)})}Z(()=>{B(Q,"data-invalid",g()||void 0),b(Q,"bx--select-input__wrapper",!0),B(O,"aria-describedby",g()?k(d):void 0),B(O,"aria-invalid",g()||void 0),O.disabled=v()||void 0,O.required=R()||void 0,B(O,"id",m()),B(O,"name",x()),b(O,"bx--select-input",!0),b(O,"bx--select-input--sm",o()==="sm"),b(O,"bx--select-input--xl",o()==="xl")}),z("change",O,Se),z("change",O,function(ee){T.call(this,e,ee)}),z("input",O,function(ee){T.call(this,e,ee)}),z("focus",O,function(ee){T.call(this,e,ee)}),z("blur",O,function(ee){T.call(this,e,ee)}),E(V,$)};W(G,V=>{u()&&V(Fe)})}var Be=A(G,2);{var dt=V=>{var $=zo(),de=ce($),Q=L(de),O=L(Q);he(O,e,"default",{},null),et(Q,D=>C(D),()=>C());var re=A(Q,2);_i(re,{class:"bx--select__arrow"});var fe=A(re,2);{var Je=D=>{jn(D,{class:"bx--select__invalid-icon"})};W(fe,D=>{g()&&D(Je)})}var Te=A(fe,2);{var Re=D=>{dr(D,{class:"bx--select__invalid-icon bx--select__invalid-icon--warning"})};W(Te,D=>{!g()&&_()&&D(Re)})}var De=A(de,2);{var Ge=D=>{var ue=Eo();b(ue,"bx--form__helper-text",!0);var Le=L(ue);Z(()=>{b(ue,"bx--form__helper-text--disabled",v()),ae(Le,P())}),E(D,ue)};W(De,D=>{!g()&&P()&&D(Ge)})}var Ue=A(De,2);{var ee=D=>{var ue=Po(),Le=L(ue);Z(()=>{B(ue,"id",k(d)),b(ue,"bx--form-requirement",!0),ae(Le,y())}),E(D,ue)};W(Ue,D=>{g()&&D(ee)})}var S=A(Ue,2);{var j=D=>{var ue=Oo(),Le=L(ue);Z(()=>{B(ue,"id",k(d)),b(ue,"bx--form-requirement",!0),ae(Le,w())}),E(D,ue)};W(S,D=>{!g()&&_()&&D(j)})}Z(()=>{B(de,"data-invalid",g()||void 0),b(de,"bx--select-input__wrapper",!0),B(Q,"id",m()),B(Q,"name",x()),B(Q,"aria-describedby",g()?k(d):void 0),Q.disabled=v()||void 0,Q.required=R()||void 0,B(Q,"aria-invalid",g()||void 0),b(Q,"bx--select-input",!0),b(Q,"bx--select-input--sm",o()==="sm"),b(Q,"bx--select-input--xl",o()==="xl")}),z("change",Q,Se),z("change",Q,function(D){T.call(this,e,D)}),z("input",Q,function(D){T.call(this,e,D)}),z("focus",Q,function(D){T.call(this,e,D)}),z("blur",Q,function(D){T.call(this,e,D)}),E(V,$)};W(Be,V=>{u()||V(dt)})}Z(()=>{tt=we(be,tt,{...i}),b(be,"bx--form-item",!0),b(ze,"bx--select--inline",u()),b(ze,"bx--select--light",h()),b(ze,"bx--select--invalid",g()),b(ze,"bx--select--disabled",v()),b(ze,"bx--select--warning",_())}),E(t,be),me()}var jo=U("<option> </option>");function No(t,e){_e(e,!1);let n=p(e,"value",8,""),i=p(e,"text",8,""),r=p(e,"hidden",8,!1),a=p(e,"disabled",8,!1),s=p(e,"class",8,void 0),c=p(e,"style",8,void 0);const f="ccs-"+Math.random().toString(36),d=rn("Select")||rn("TimePickerSelect");let l=le(!1);const o=d.selectedValue.subscribe(m=>{J(l,m===n())});qn(()=>()=>o()),ne(()=>M(n()),()=>{var m;(m=d==null?void 0:d.setDefaultValue)==null||m.call(d,f,n())}),Ne(),ye();var u=jo(),h={},v=L(u);Z(()=>{h!==(h=n())&&(u.value=(u.__value=n())==null?"":n()),u.disabled=a(),u.hidden=r(),sr(u,k(l)),Ma(u,ar(s()),""),B(u,"style",c()),b(u,"bx--select-option",!0),ae(v,i()||n())}),E(t,u),me()}var Ao=U("<label><!></label>"),Ro=U("<div> </div>"),Do=U("<div><!> <!></div>"),Mo=U("<label><!></label>"),Zo=U("<!> <!>",1),Wo=U("<hr>"),Ko=U("<div> </div>"),Fo=U("<div> </div>"),Uo=U("<div> </div>"),Vo=U("<div> </div>"),Xo=U("<div> </div>"),Yo=U("<div><!> <!> <div><div><!> <input> <!> <!> <!></div> <!> <!> <!></div></div>");function mi(t,e){const n=Yn(e),i=oe(e,["children","$$slots","$$events","$$legacy"]),r=oe(i,["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"]);_e(e,!1);const a=le(),s=le(),c=le(),f=le();let d=p(e,"size",8,void 0),l=p(e,"value",12,""),o=p(e,"placeholder",8,""),u=p(e,"light",8,!1),h=p(e,"disabled",8,!1),v=p(e,"helperText",8,""),m=p(e,"id",24,()=>"ccs-"+Math.random().toString(36)),x=p(e,"name",8,void 0),g=p(e,"labelText",8,""),y=p(e,"hideLabel",8,!1),_=p(e,"invalid",8,!1),w=p(e,"invalidText",8,""),P=p(e,"warn",8,!1),I=p(e,"warnText",8,""),F=p(e,"ref",12,null),N=p(e,"required",8,!1),C=p(e,"inline",8,!1),R=p(e,"readonly",8,!1);const Y=rn("Form"),se=Ct();function q(S){return r.type!=="number"?S:S!=""?Number(S):null}const ie=S=>{l(q(S.target.value)),se("input",l())},Ae=S=>{se("change",q(S.target.value))},Se=!!Y&&Y.isFluid;ne(()=>(M(_()),M(R())),()=>{J(a,_()&&!R())}),ne(()=>M(m()),()=>{J(s,`helper-${m()}`)}),ne(()=>M(m()),()=>{J(c,`error-${m()}`)}),ne(()=>M(m()),()=>{J(f,`warn-${m()}`)}),Ne(),ye();var K=Yo();b(K,"bx--form-item",!0),b(K,"bx--text-input-wrapper",!0);var be=L(K);{var tt=S=>{var j=Do();b(j,"bx--text-input__label-helper-wrapper",!0);var D=L(j);{var ue=xe=>{var ke=Ao(),bn=L(ke);he(bn,e,"labelText",{},gr=>{var ni=Me();Z(()=>ae(ni,g())),E(gr,ni)}),Z(()=>{B(ke,"for",m()),b(ke,"bx--label",!0),b(ke,"bx--visually-hidden",y()),b(ke,"bx--label--disabled",h()),b(ke,"bx--label--inline",C()),b(ke,"bx--label--inline--sm",d()==="sm"),b(ke,"bx--label--inline--xl",d()==="xl")}),E(xe,ke)};W(D,xe=>{g()&&xe(ue)})}var Le=A(D,2);{var mn=xe=>{var ke=Ro();b(ke,"bx--form__helper-text",!0);var bn=L(ke);Z(()=>{b(ke,"bx--form__helper-text--disabled",h()),b(ke,"bx--form__helper-text--inline",C()),ae(bn,v())}),E(xe,ke)};W(Le,xe=>{!Se&&v()&&xe(mn)})}E(S,j)};W(be,S=>{C()&&S(tt)})}var ze=A(be,2);{var bt=S=>{var j=Mo(),D=L(j);he(D,e,"labelText",{},ue=>{var Le=Me();Z(()=>ae(Le,g())),E(ue,Le)}),Z(()=>{B(j,"for",m()),b(j,"bx--label",!0),b(j,"bx--visually-hidden",y()),b(j,"bx--label--disabled",h()),b(j,"bx--label--inline",C()),b(j,"bx--label--inline-sm",C()&&d()==="sm"),b(j,"bx--label--inline-xl",C()&&d()==="xl")}),E(S,j)};W(ze,S=>{!C()&&(g()||n.labelText)&&S(bt)})}var Ce=A(ze,2);b(Ce,"bx--text-input__field-outer-wrapper",!0);var G=L(Ce),Fe=L(G);{var Be=S=>{xo(S,{class:"bx--text-input__readonly-icon"})},dt=S=>{var j=Zo(),D=ce(j);{var ue=xe=>{jn(xe,{class:"bx--text-input__invalid-icon"})};W(D,xe=>{_()&&xe(ue)})}var Le=A(D,2);{var mn=xe=>{dr(xe,{class:`bx--text-input__invalid-icon
bx--text-input__invalid-icon--warning`})};W(Le,xe=>{!_()&&P()&&xe(mn)})}E(S,j)};W(Fe,S=>{R()?S(Be):S(dt,!1)})}var V=A(Fe,2);let $;et(V,S=>F(S),()=>F());var de=A(V,2);{var Q=S=>{var j=Wo();b(j,"bx--text-input__divider",!0),E(S,j)};W(de,S=>{Se&&S(Q)})}var O=A(de,2);{var re=S=>{var j=Ko(),D=L(j);Z(()=>{B(j,"id",k(c)),b(j,"bx--form-requirement",!0),ae(D,w())}),E(S,j)};W(O,S=>{Se&&!C()&&_()&&S(re)})}var fe=A(O,2);{var Je=S=>{var j=Fo(),D=L(j);Z(()=>{B(j,"id",k(f)),b(j,"bx--form-requirement",!0),ae(D,I())}),E(S,j)};W(fe,S=>{Se&&!C()&&P()&&S(Je)})}var Te=A(G,2);{var Re=S=>{var j=Uo(),D=L(j);Z(()=>{B(j,"id",k(s)),b(j,"bx--form__helper-text",!0),b(j,"bx--form__helper-text--disabled",h()),b(j,"bx--form__helper-text--inline",C()),ae(D,v())}),E(S,j)};W(Te,S=>{!_()&&!P()&&!Se&&!C()&&v()&&S(Re)})}var De=A(Te,2);{var Ge=S=>{var j=Vo(),D=L(j);Z(()=>{B(j,"id",k(c)),b(j,"bx--form-requirement",!0),ae(D,w())}),E(S,j)};W(De,S=>{!Se&&_()&&S(Ge)})}var Ue=A(De,2);{var ee=S=>{var j=Xo(),D=L(j);Z(()=>{B(j,"id",k(f)),b(j,"bx--form-requirement",!0),ae(D,I())}),E(S,j)};W(Ue,S=>{!Se&&!_()&&P()&&S(ee)})}Z(()=>{b(K,"bx--text-input-wrapper--inline",C()),b(K,"bx--text-input-wrapper--light",u()),b(K,"bx--text-input-wrapper--readonly",R()),b(Ce,"bx--text-input__field-outer-wrapper--inline",C()),B(G,"data-invalid",k(a)||void 0),B(G,"data-warn",P()||void 0),b(G,"bx--text-input__field-wrapper",!0),b(G,"bx--text-input__field-wrapper--warning",!_()&&P()),$=we(V,$,{"data-invalid":k(a)||void 0,"aria-invalid":k(a)||void 0,"data-warn":P()||void 0,"aria-describedby":k(a)?k(c):P()?k(f):v()?k(s):void 0,disabled:h(),id:m(),name:x(),placeholder:o(),required:N(),readonly:R(),...r}),b(V,"bx--text-input",!0),b(V,"bx--text-input--light",u()),b(V,"bx--text-input--invalid",k(a)),b(V,"bx--text-input--warning",P()),b(V,"bx--text-input--sm",d()==="sm"),b(V,"bx--text-input--xl",d()==="xl")}),Wa(V,l),z("change",V,Ae),z("input",V,ie),z("keydown",V,function(S){T.call(this,e,S)}),z("keyup",V,function(S){T.call(this,e,S)}),z("focus",V,function(S){T.call(this,e,S)}),z("blur",V,function(S){T.call(this,e,S)}),z("paste",V,function(S){T.call(this,e,S)}),z("click",K,function(S){T.call(this,e,S)}),z("mouseover",K,function(S){T.call(this,e,S)}),z("mouseenter",K,function(S){T.call(this,e,S)}),z("mouseleave",K,function(S){T.call(this,e,S)}),E(t,K),me()}var Ho=U('<div><input role="switch" type="checkbox"> <label><span><!></span> <span><span aria-hidden="true"><!></span> <span aria-hidden="true"><!></span></span></label></div>');function qo(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","toggled","disabled","labelA","labelB","labelText","hideLabel","id","name"]);_e(e,!1);let r=p(e,"size",8,"default"),a=p(e,"toggled",12,!1),s=p(e,"disabled",8,!1),c=p(e,"labelA",8,"Off"),f=p(e,"labelB",8,"On"),d=p(e,"labelText",8,""),l=p(e,"hideLabel",8,!1),o=p(e,"id",24,()=>"ccs-"+Math.random().toString(36)),u=p(e,"name",8,void 0);const h=Ct();ne(()=>M(a()),()=>{h("toggle",{toggled:a()})}),Ne(),ye();var v=Ho();let m;var x=L(v),g=A(x,2),y=L(g),_=L(y);he(_,e,"labelText",{},C=>{var R=Me();Z(()=>ae(R,d())),E(C,R)});var w=A(y,2);b(w,"bx--toggle__switch",!0);var P=L(w);b(P,"bx--toggle__text--off",!0);var I=L(P);he(I,e,"labelA",{},C=>{var R=Me();Z(()=>ae(R,c())),E(C,R)});var F=A(P,2);b(F,"bx--toggle__text--on",!0);var N=L(F);he(N,e,"labelB",{},C=>{var R=Me();Z(()=>ae(R,f())),E(C,R)}),Z(()=>{m=we(v,m,{...i}),b(v,"bx--form-item",!0),ui(v,"user-select","none"),or(x,a()),x.disabled=s(),B(x,"id",o()),B(x,"name",u()),b(x,"bx--toggle-input",!0),b(x,"bx--toggle-input--small",r()==="sm"),B(g,"aria-label",d()?void 0:n["aria-label"]||"Toggle"),B(g,"for",o()),b(g,"bx--toggle-input__label",!0),b(y,"bx--visually-hidden",l()),ui(w,"margin-top",l()?0:void 0)}),z("change",x,()=>{a(!a())}),z("change",x,function(C){T.call(this,e,C)}),z("keyup",x,C=>{(C.key===" "||C.key==="Enter")&&(C.preventDefault(),a(!a()))}),z("keyup",x,function(C){T.call(this,e,C)}),z("focus",x,function(C){T.call(this,e,C)}),z("blur",x,function(C){T.call(this,e,C)}),z("click",v,function(C){T.call(this,e,C)}),z("mouseover",v,function(C){T.call(this,e,C)}),z("mouseenter",v,function(C){T.call(this,e,C)}),z("mouseleave",v,function(C){T.call(this,e,C)}),E(t,v),me()}var Bo=U("<!> <!> <!>",1);function Jo(t,e){_e(e,!1);let n=p(e,"theme",12,"white"),i=p(e,"tokens",24,()=>({})),r=p(e,"persist",8,!1),a=p(e,"persistKey",8,"theme"),s=p(e,"render",8,void 0),c=p(e,"toggle",24,()=>({themes:["white","g100"],labelA:"",labelB:"",labelText:"Dark mode",hideLabel:!1}));const f={white:"White",g10:"Gray 10",g80:"Gray 80",g90:"Gray 90",g100:"Gray 100"},d=Object.keys(f);let l=p(e,"select",24,()=>({themes:d,labelText:"Themes",hideLabel:!1}));const o=Ct();ne(()=>(M(i()),M(n())),()=>{typeof window<"u"&&(Object.entries(i()).forEach(([_,w])=>{document.documentElement.style.setProperty(`--cds-${_}`,w)}),n()in f?(document.documentElement.setAttribute("theme",n()),o("update",{theme:n()})):console.warn(`[Theme.svelte] invalid theme "${n()}". Value must be one of: ${JSON.stringify(Object.keys(f))}`))}),Ne(),ye();var u=Bo(),h=ce(u);{var v=_=>{po(_,{get key(){return a()},get value(){return n()},set value(w){n(w)},$$legacy:!0})};W(h,_=>{r()&&_(v)})}var m=A(h,2);{var x=_=>{var w=At(()=>n()===c().themes[1]);qo(_,rt(c,{get toggled(){return k(w)},$$events:{toggle:({detail:P})=>{n(P.toggled?c().themes[1]:c().themes[0])}}}))},g=_=>{var w=ve(),P=ce(w);{var I=F=>{Lo(F,rt(l,{get selected(){return n()},set selected(N){n(N)},children:(N,C)=>{var R=ve(),Y=ce(R);La(Y,1,()=>l().themes,q=>q,(q,ie)=>{No(q,{get value(){return k(ie)},get text(){return f[k(ie)]}})}),E(N,R)},$$slots:{default:!0},$$legacy:!0}))};W(P,F=>{s()==="select"&&F(I)},!0)}E(_,w)};W(m,_=>{s()==="toggle"?_(x):_(g,!1)})}var y=A(m,2);he(y,e,"default",{get theme(){return n()}},null),E(t,u),me()}var Go=U("<title> </title>"),Qo=Xt('<svg><!><path d="M18 6L16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6z"></path></svg>');function $o(t,e){const n=oe(e,["children","$$slots","$$events","$$legacy"]),i=oe(n,["size","title"]);_e(e,!1);const r=le(),a=le();let s=p(e,"size",8,16),c=p(e,"title",8,void 0);ne(()=>(M(n),M(c())),()=>{J(r,n["aria-label"]||n["aria-labelledby"]||c())}),ne(()=>(k(r),M(n)),()=>{J(a,{"aria-hidden":k(r)?void 0:!0,role:k(r)?"img":void 0,focusable:Number(n.tabindex)===0?!0:void 0})}),Ne(),ye();var f=Qo();let d;var l=L(f);{var o=u=>{var h=Go(),v=L(h);Z(()=>ae(v,c())),E(u,h)};W(l,u=>{c()&&u(o)})}Z(()=>d=we(f,d,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:s(),height:s(),...k(a),...i},void 0,!0)),E(t,f),me()}var es=Ta(`<div class="flex flex-row items-center justify-center ma4"><div class="login-block ma6 svelte-141r2iv"><form class="measure center"><fieldset id="sign_up" class="ba b--transparent ph0 mh0"><legend class="f2 fw5 mh0 mb1">Log In to X-Tablo</legend> <span>Don't have an account, create one for free <!></span> <div class="mt3"><label class="db fw6 lh-copy f6" for="email-address">Email</label> <!></div> <div class="mv3"><label class="db fw6 lh-copy f6" for="password">Password</label> <!></div> <!></fieldset> <div><!></div> <div class="lh-copy mt3"><!> <!></div></form></div> <div><script src="https://unpkg.com/@lottiefiles/lottie-player@2.0.8/dist/lottie-player.js"><\/script><lottie-player></lottie-player></div></div>`,2);function ts(t,e){var n=es(),i=L(n),r=L(i),a=L(r),s=A(L(a),2),c=A(L(s));wn(c,{href:"#0",class:"f6 link dim",children:(w,P)=>{var I=Me("here");E(w,I)},$$slots:{default:!0}});var f=A(s,2),d=A(L(f),2);mi(d,{class:"pa2 bg-transparent ba w-100",type:"email",id:"email-address",name:"email-address"});var l=A(f,2),o=A(L(l),2);mi(o,{class:"pa2 bg-transparent ba w-100",type:"password",id:"password",name:"password"});var u=A(l,2);fo(u,{labelText:"Remember ID",checked:!0});var h=A(a,2),v=L(h);so(v,{class:"b ph3 pv2 input-reset ba db w-50 grow",type:"submit",icon:$o,$$events:{click(...w){var P;(P=e.handleLogin)==null||P.apply(this,w)}},children:(w,P)=>{var I=Me("Log In");E(w,I)},$$slots:{default:!0}});var m=A(h,2),x=L(m);wn(x,{href:"#0",class:"f6 link dim db",children:(w,P)=>{var I=Me("Sign up");E(w,I)},$$slots:{default:!0}});var g=A(x,2);wn(g,{href:"#0",class:"f6 link dim db",children:(w,P)=>{var I=Me("Forgot your password?");E(w,I)},$$slots:{default:!0}});var y=A(i,2),_=A(L(y));nt(_,"src","https://lottie.host/36551324-1e54-499f-8410-4695a457a128/rrkpkFcJVP.json"),nt(_,"background","##FFFFFF"),nt(_,"speed","1"),nt(_,"style","width: 400px; height: 400px"),nt(_,"loop",!0),nt(_,"autoplay",!0),nt(_,"direction","1"),nt(_,"mode","normal"),E(t,n)}function Ve(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}var ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Jn(t,e){return t(e={exports:{}},e.exports),e.exports}var ft=Jn(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function i(){var r=this;this.locked=new Map,this.addToLocked=function(a,s){var c=r.locked.get(a);c===void 0?s===void 0?r.locked.set(a,[]):r.locked.set(a,[s]):s!==void 0&&(c.unshift(s),r.locked.set(a,c))},this.isLocked=function(a){return r.locked.has(a)},this.lock=function(a){return new Promise(function(s,c){r.isLocked(a)?r.addToLocked(a,s):(r.addToLocked(a),s())})},this.unlock=function(a){var s=r.locked.get(a);if(s!==void 0&&s.length!==0){var c=s.pop();r.locked.set(a,s),c!==void 0&&setTimeout(c,0)}else r.locked.delete(a)}}return i.getInstance=function(){return i.instance===void 0&&(i.instance=new i),i.instance},i}();e.default=function(){return n.getInstance()}});Bn(ft);var ns=Bn(Jn(function(t,e){var n=ht&&ht.__awaiter||function(l,o,u,h){return new(u||(u=Promise))(function(v,m){function x(_){try{y(h.next(_))}catch(w){m(w)}}function g(_){try{y(h.throw(_))}catch(w){m(w)}}function y(_){_.done?v(_.value):new u(function(w){w(_.value)}).then(x,g)}y((h=h.apply(l,o||[])).next())})},i=ht&&ht.__generator||function(l,o){var u,h,v,m,x={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return m={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function g(y){return function(_){return function(w){if(u)throw new TypeError("Generator is already executing.");for(;x;)try{if(u=1,h&&(v=2&w[0]?h.return:w[0]?h.throw||((v=h.return)&&v.call(h),0):h.next)&&!(v=v.call(h,w[1])).done)return v;switch(h=0,v&&(w=[2&w[0],v.value]),w[0]){case 0:case 1:v=w;break;case 4:return x.label++,{value:w[1],done:!1};case 5:x.label++,h=w[1],w=[0];continue;case 7:w=x.ops.pop(),x.trys.pop();continue;default:if(v=x.trys,!((v=v.length>0&&v[v.length-1])||w[0]!==6&&w[0]!==2)){x=0;continue}if(w[0]===3&&(!v||w[1]>v[0]&&w[1]<v[3])){x.label=w[1];break}if(w[0]===6&&x.label<v[1]){x.label=v[1],v=w;break}if(v&&x.label<v[2]){x.label=v[2],x.ops.push(w);break}v[2]&&x.ops.pop(),x.trys.pop();continue}w=o.call(l,x)}catch(P){w=[6,P],h=0}finally{u=v=0}if(5&w[0])throw w[1];return{value:w[0]?w[1]:void 0,done:!0}}([y,_])}}},r=ht;Object.defineProperty(e,"__esModule",{value:!0});var a="browser-tabs-lock-key",s={key:function(l){return n(r,void 0,void 0,function(){return i(this,function(o){throw new Error("Unsupported")})})},getItem:function(l){return n(r,void 0,void 0,function(){return i(this,function(o){throw new Error("Unsupported")})})},clear:function(){return n(r,void 0,void 0,function(){return i(this,function(l){return[2,window.localStorage.clear()]})})},removeItem:function(l){return n(r,void 0,void 0,function(){return i(this,function(o){throw new Error("Unsupported")})})},setItem:function(l,o){return n(r,void 0,void 0,function(){return i(this,function(u){throw new Error("Unsupported")})})},keySync:function(l){return window.localStorage.key(l)},getItemSync:function(l){return window.localStorage.getItem(l)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(l){return window.localStorage.removeItem(l)},setItemSync:function(l,o){return window.localStorage.setItem(l,o)}};function c(l){return new Promise(function(o){return setTimeout(o,l)})}function f(l){for(var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",h=0;h<l;h++)u+=o[Math.floor(Math.random()*o.length)];return u}var d=function(){function l(o){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+f(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=o,l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(o,u){return u===void 0&&(u=5e3),n(this,void 0,void 0,function(){var h,v,m,x,g,y,_;return i(this,function(w){switch(w.label){case 0:h=Date.now()+f(4),v=Date.now()+u,m=a+"-"+o,x=this.storageHandler===void 0?s:this.storageHandler,w.label=1;case 1:return Date.now()<v?[4,c(30)]:[3,8];case 2:return w.sent(),x.getItemSync(m)!==null?[3,5]:(g=this.id+"-"+o+"-"+h,[4,c(Math.floor(25*Math.random()))]);case 3:return w.sent(),x.setItemSync(m,JSON.stringify({id:this.id,iat:h,timeoutKey:g,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,c(30)];case 4:return w.sent(),(y=x.getItemSync(m))!==null&&(_=JSON.parse(y)).id===this.id&&_.iat===h?(this.acquiredIatSet.add(h),this.refreshLockWhileAcquired(m,h),[2,!0]):[3,7];case 5:return l.lockCorrector(this.storageHandler===void 0?s:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:w.sent(),w.label=7;case 7:return h=Date.now()+f(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(o,u){return n(this,void 0,void 0,function(){var h=this;return i(this,function(v){return setTimeout(function(){return n(h,void 0,void 0,function(){var m,x,g;return i(this,function(y){switch(y.label){case 0:return[4,ft.default().lock(u)];case 1:return y.sent(),this.acquiredIatSet.has(u)?(m=this.storageHandler===void 0?s:this.storageHandler,(x=m.getItemSync(o))===null?(ft.default().unlock(u),[2]):((g=JSON.parse(x)).timeRefreshed=Date.now(),m.setItemSync(o,JSON.stringify(g)),ft.default().unlock(u),this.refreshLockWhileAcquired(o,u),[2])):(ft.default().unlock(u),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(o){return n(this,void 0,void 0,function(){return i(this,function(u){switch(u.label){case 0:return[4,new Promise(function(h){var v=!1,m=Date.now(),x=!1;function g(){if(x||(window.removeEventListener("storage",g),l.removeFromWaiting(g),clearTimeout(y),x=!0),!v){v=!0;var _=50-(Date.now()-m);_>0?setTimeout(h,_):h(null)}}window.addEventListener("storage",g),l.addToWaiting(g);var y=setTimeout(g,Math.max(0,o-Date.now()))})];case 1:return u.sent(),[2]}})})},l.addToWaiting=function(o){this.removeFromWaiting(o),l.waiters!==void 0&&l.waiters.push(o)},l.removeFromWaiting=function(o){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(u){return u!==o}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(o){return o()})},l.prototype.releaseLock=function(o){return n(this,void 0,void 0,function(){return i(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(o)];case 1:return[2,u.sent()]}})})},l.prototype.releaseLock__private__=function(o){return n(this,void 0,void 0,function(){var u,h,v,m;return i(this,function(x){switch(x.label){case 0:return u=this.storageHandler===void 0?s:this.storageHandler,h=a+"-"+o,(v=u.getItemSync(h))===null?[2]:(m=JSON.parse(v)).id!==this.id?[3,2]:[4,ft.default().lock(m.iat)];case 1:x.sent(),this.acquiredIatSet.delete(m.iat),u.removeItemSync(h),ft.default().unlock(m.iat),l.notifyWaiters(),x.label=2;case 2:return[2]}})})},l.lockCorrector=function(o){for(var u=Date.now()-5e3,h=o,v=[],m=0;;){var x=h.keySync(m);if(x===null)break;v.push(x),m++}for(var g=!1,y=0;y<v.length;y++){var _=v[y];if(_.includes(a)){var w=h.getItemSync(_);if(w!==null){var P=JSON.parse(w);(P.timeRefreshed===void 0&&P.timeAcquired<u||P.timeRefreshed!==void 0&&P.timeRefreshed<u)&&(h.removeItemSync(_),g=!0)}}}g&&l.notifyWaiters()},l.waiters=void 0,l}();e.default=d}));const is={timeoutInSeconds:60},fr={name:"auth0-spa-js",version:"2.1.3"},hr=()=>Date.now();class pe extends Error{constructor(e,n){super(n),this.error=e,this.error_description=n,Object.setPrototypeOf(this,pe.prototype)}static fromPayload({error:e,error_description:n}){return new pe(e,n)}}class Gn extends pe{constructor(e,n,i,r=null){super(e,n),this.state=i,this.appState=r,Object.setPrototypeOf(this,Gn.prototype)}}class Wt extends pe{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Wt.prototype)}}class Qn extends Wt{constructor(e){super(),this.popup=e,Object.setPrototypeOf(this,Qn.prototype)}}class $n extends pe{constructor(e){super("cancelled","Popup closed"),this.popup=e,Object.setPrototypeOf(this,$n.prototype)}}class ei extends pe{constructor(e,n,i){super(e,n),this.mfa_token=i,Object.setPrototypeOf(this,ei.prototype)}}class _n extends pe{constructor(e,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${bi(e,["default"])}', scope: '${bi(n)}')`),this.audience=e,this.scope=n,Object.setPrototypeOf(this,_n.prototype)}}function bi(t,e=[]){return t&&!e.includes(t)?t:""}const Jt=()=>window.crypto,yn=()=>{const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let e="";return Array.from(Jt().getRandomValues(new Uint8Array(43))).forEach(n=>e+=t[n%t.length]),e},gi=t=>btoa(t),Nn=t=>{var{clientId:e}=t,n=Ve(t,["clientId"]);return new URLSearchParams((i=>Object.keys(i).filter(r=>i[r]!==void 0).reduce((r,a)=>Object.assign(Object.assign({},r),{[a]:i[a]}),{}))(Object.assign({client_id:e},n))).toString()},pi=t=>(e=>decodeURIComponent(atob(e).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(t.replace(/_/g,"/").replace(/-/g,"+")),rs=async(t,e)=>{const n=await fetch(t,e);return{ok:n.ok,json:await n.json()}},as=async(t,e,n)=>{const i=new AbortController;let r;return e.signal=i.signal,Promise.race([rs(t,e),new Promise((a,s)=>{r=setTimeout(()=>{i.abort(),s(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(r)})},os=async(t,e,n,i,r,a,s)=>{return c={auth:{audience:e,scope:n},timeout:r,fetchUrl:t,fetchOptions:i,useFormData:s},f=a,new Promise(function(d,l){const o=new MessageChannel;o.port1.onmessage=function(u){u.data.error?l(new Error(u.data.error)):d(u.data),o.port1.close()},f.postMessage(c,[o.port2])});var c,f},ss=async(t,e,n,i,r,a,s=1e4)=>r?os(t,e,n,i,s,r,a):as(t,i,s);async function ls(t,e){var{baseUrl:n,timeout:i,audience:r,scope:a,auth0Client:s,useFormData:c}=t,f=Ve(t,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const d=c?Nn(f):JSON.stringify(f);return await async function(l,o,u,h,v,m,x){let g,y=null;for(let N=0;N<3;N++)try{g=await ss(l,u,h,v,m,x,o),y=null;break}catch(C){y=C}if(y)throw y;const _=g.json,{error:w,error_description:P}=_,I=Ve(_,["error","error_description"]),{ok:F}=g;if(!F){const N=P||`HTTP error. Unable to fetch ${l}`;throw w==="mfa_required"?new ei(w,N,I.mfa_token):w==="missing_refresh_token"?new _n(u,h):new pe(w||"request_error",N)}return I}(`${n}/oauth/token`,i,r||"default",a,{method:"POST",body:d,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(s||fr))}},e,c)}const qt=(...t)=>{return(e=t.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(e))).join(" ");var e};class Xe{constructor(e,n="@@auth0spajs@@",i){this.prefix=n,this.suffix=i,this.clientId=e.clientId,this.scope=e.scope,this.audience=e.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(e){const[n,i,r,a]=e.split("::");return new Xe({clientId:i,scope:a,audience:r},n)}static fromCacheEntry(e){const{scope:n,audience:i,client_id:r}=e;return new Xe({scope:n,audience:i,clientId:r})}}class cs{set(e,n){localStorage.setItem(e,JSON.stringify(n))}get(e){const n=window.localStorage.getItem(e);if(n)try{return JSON.parse(n)}catch{return}}remove(e){localStorage.removeItem(e)}allKeys(){return Object.keys(window.localStorage).filter(e=>e.startsWith("@@auth0spajs@@"))}}class vr{constructor(){this.enclosedCache=function(){let e={};return{set(n,i){e[n]=i},get(n){const i=e[n];if(i)return i},remove(n){delete e[n]},allKeys:()=>Object.keys(e)}}()}}class us{constructor(e,n,i){this.cache=e,this.keyManifest=n,this.nowProvider=i||hr}async setIdToken(e,n,i){var r;const a=this.getIdTokenCacheKey(e);await this.cache.set(a,{id_token:n,decodedToken:i}),await((r=this.keyManifest)===null||r===void 0?void 0:r.add(a))}async getIdToken(e){const n=await this.cache.get(this.getIdTokenCacheKey(e.clientId));if(!n&&e.scope&&e.audience){const i=await this.get(e);return!i||!i.id_token||!i.decodedToken?void 0:{id_token:i.id_token,decodedToken:i.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(e,n=0){var i;let r=await this.cache.get(e.toKey());if(!r){const c=await this.getCacheKeys();if(!c)return;const f=this.matchExistingCacheKey(e,c);f&&(r=await this.cache.get(f))}if(!r)return;const a=await this.nowProvider(),s=Math.floor(a/1e3);return r.expiresAt-n<s?r.body.refresh_token?(r.body={refresh_token:r.body.refresh_token},await this.cache.set(e.toKey(),r),r.body):(await this.cache.remove(e.toKey()),void await((i=this.keyManifest)===null||i===void 0?void 0:i.remove(e.toKey()))):r.body}async set(e){var n;const i=new Xe({clientId:e.client_id,scope:e.scope,audience:e.audience}),r=await this.wrapCacheEntry(e);await this.cache.set(i.toKey(),r),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(i.toKey()))}async clear(e){var n;const i=await this.getCacheKeys();i&&(await i.filter(r=>!e||r.includes(e)).reduce(async(r,a)=>{await r,await this.cache.remove(a)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(e){const n=await this.nowProvider();return{body:e,expiresAt:Math.floor(n/1e3)+e.expires_in}}async getCacheKeys(){var e;return this.keyManifest?(e=await this.keyManifest.get())===null||e===void 0?void 0:e.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(e){return new Xe({clientId:e},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(e,n){return n.filter(i=>{var r;const a=Xe.fromKey(i),s=new Set(a.scope&&a.scope.split(" ")),c=((r=e.scope)===null||r===void 0?void 0:r.split(" "))||[],f=a.scope&&c.reduce((d,l)=>d&&s.has(l),!0);return a.prefix==="@@auth0spajs@@"&&a.clientId===e.clientId&&a.audience===e.audience&&f})[0]}}class ds{constructor(e,n,i){this.storage=e,this.clientId=n,this.cookieDomain=i,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(e){this.storage.save(this.storageKey,e,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const jt=t=>typeof t=="number",fs=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],hs=t=>{if(!t.id_token)throw new Error("ID token is required but missing");const e=(a=>{const s=a.split("."),[c,f,d]=s;if(s.length!==3||!c||!f||!d)throw new Error("ID token could not be decoded");const l=JSON.parse(pi(f)),o={__raw:a},u={};return Object.keys(l).forEach(h=>{o[h]=l[h],fs.includes(h)||(u[h]=l[h])}),{encoded:{header:c,payload:f,signature:d},header:JSON.parse(pi(c)),claims:o,user:u}})(t.id_token);if(!e.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(e.claims.iss!==t.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${t.iss}", found "${e.claims.iss}"`);if(!e.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(e.header.alg!=="RS256")throw new Error(`Signature algorithm of "${e.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!e.claims.aud||typeof e.claims.aud!="string"&&!Array.isArray(e.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(e.claims.aud)){if(!e.claims.aud.includes(t.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but was not one of "${e.claims.aud.join(", ")}"`);if(e.claims.aud.length>1){if(!e.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(e.claims.azp!==t.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${t.aud}", found "${e.claims.azp}"`)}}else if(e.claims.aud!==t.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${t.aud}" but found "${e.claims.aud}"`);if(t.nonce){if(!e.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(e.claims.nonce!==t.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${t.nonce}", found "${e.claims.nonce}"`)}if(t.max_age&&!jt(e.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(e.claims.exp==null||!jt(e.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!jt(e.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=t.leeway||60,i=new Date(t.now||Date.now()),r=new Date(0);if(r.setUTCSeconds(e.claims.exp+n),i>r)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${i}) is after expiration time (${r})`);if(e.claims.nbf!=null&&jt(e.claims.nbf)){const a=new Date(0);if(a.setUTCSeconds(e.claims.nbf-n),i<a)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${i}) is before ${a}`)}if(e.claims.auth_time!=null&&jt(e.claims.auth_time)){const a=new Date(0);if(a.setUTCSeconds(parseInt(e.claims.auth_time)+t.max_age+n),i>a)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${i}) is after last auth at ${a}`)}if(t.organization){const a=t.organization.trim();if(a.startsWith("org_")){const s=a;if(!e.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(s!==e.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${s}", found "${e.claims.org_id}"`)}else{const s=a.toLowerCase();if(!e.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(s!==e.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${s}", found "${e.claims.org_name}"`)}}return e};var _t=Jn(function(t,e){var n=ht&&ht.__assign||function(){return n=Object.assign||function(f){for(var d,l=1,o=arguments.length;l<o;l++)for(var u in d=arguments[l])Object.prototype.hasOwnProperty.call(d,u)&&(f[u]=d[u]);return f},n.apply(this,arguments)};function i(f,d){if(!d)return"";var l="; "+f;return d===!0?l:l+"="+d}function r(f,d,l){return encodeURIComponent(f).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(d).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(o){if(typeof o.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*o.expires),o.expires=u}return i("Expires",o.expires?o.expires.toUTCString():"")+i("Domain",o.domain)+i("Path",o.path)+i("Secure",o.secure)+i("SameSite",o.sameSite)}(l)}function a(f){for(var d={},l=f?f.split("; "):[],o=/(%[\dA-F]{2})+/gi,u=0;u<l.length;u++){var h=l[u].split("="),v=h.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{d[h[0].replace(o,decodeURIComponent)]=v.replace(o,decodeURIComponent)}catch{}}return d}function s(){return a(document.cookie)}function c(f,d,l){document.cookie=r(f,d,n({path:"/"},l))}e.__esModule=!0,e.encode=r,e.parse=a,e.getAll=s,e.get=function(f){return s()[f]},e.set=c,e.remove=function(f,d){c(f,"",n(n({},d),{expires:-1}))}});Bn(_t),_t.encode,_t.parse,_t.getAll;var vs=_t.get,_r=_t.set,mr=_t.remove;const yt={get(t){const e=vs(t);if(e!==void 0)return JSON.parse(e)},save(t,e,n){let i={};window.location.protocol==="https:"&&(i={secure:!0,sameSite:"none"}),n!=null&&n.daysUntilExpire&&(i.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(i.domain=n.cookieDomain),_r(t,JSON.stringify(e),i)},remove(t,e){let n={};e!=null&&e.cookieDomain&&(n.domain=e.cookieDomain),mr(t,n)}},_s={get(t){return yt.get(t)||yt.get(`_legacy_${t}`)},save(t,e,n){let i={};window.location.protocol==="https:"&&(i={secure:!0}),n!=null&&n.daysUntilExpire&&(i.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(i.domain=n.cookieDomain),_r(`_legacy_${t}`,JSON.stringify(e),i),yt.save(t,e,n)},remove(t,e){let n={};e!=null&&e.cookieDomain&&(n.domain=e.cookieDomain),mr(t,n),yt.remove(t,e),yt.remove(`_legacy_${t}`,e)}},ms={get(t){if(typeof sessionStorage>"u")return;const e=sessionStorage.getItem(t);return e!=null?JSON.parse(e):void 0},save(t,e){sessionStorage.setItem(t,JSON.stringify(e))},remove(t){sessionStorage.removeItem(t)}};function bs(t,e,n){var i=e===void 0?null:e,r=function(f,d){var l=atob(f);if(d){for(var o=new Uint8Array(l.length),u=0,h=l.length;u<h;++u)o[u]=l.charCodeAt(u);return String.fromCharCode.apply(null,new Uint16Array(o.buffer))}return l}(t,n!==void 0&&n),a=r.indexOf(`
`,10)+1,s=r.substring(a)+(i?"//# sourceMappingURL="+i:""),c=new Blob([s],{type:"application/javascript"});return URL.createObjectURL(c)}var wi,yi,xi,xn,gs=(wi="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",yi=null,xi=!1,function(t){return xn=xn||bs(wi,yi,xi),new Worker(xn,t)});const kn={};class ps{constructor(e,n){this.cache=e,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(e){var n;const i=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);i.add(e),await this.cache.set(this.manifestKey,{keys:[...i]})}async remove(e){const n=await this.cache.get(this.manifestKey);if(n){const i=new Set(n.keys);return i.delete(e),i.size>0?await this.cache.set(this.manifestKey,{keys:[...i]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(e){return`@@auth0spajs@@::${e}`}}const ws={memory:()=>new vr().enclosedCache,localstorage:()=>new cs},ki=t=>ws[t],Ii=t=>{const{openUrl:e,onRedirect:n}=t,i=Ve(t,["openUrl","onRedirect"]);return Object.assign(Object.assign({},i),{openUrl:e===!1||e?e:n})},In=new ns;class ys{constructor(e){let n,i;if(this.userCache=new vr().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await In.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),e),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),e.authorizationParams)}),typeof window<"u"&&(()=>{if(!Jt())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Jt().subtle===void 0)throw new Error(`
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
`)})(),e.cache&&e.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),e.cache)i=e.cache;else{if(n=e.cacheLocation||"memory",!ki(n))throw new Error(`Invalid cache location "${n}"`);i=ki(n)()}this.httpTimeoutMs=e.httpTimeoutInSeconds?1e3*e.httpTimeoutInSeconds:1e4,this.cookieStorage=e.legacySameSiteCookie===!1?yt:_s,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(s=>`auth0.${s}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=e.sessionCheckExpiryDays||1;const r=e.useCookiesForTransactions?this.cookieStorage:ms;var a;this.scope=qt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new ds(r,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||hr,this.cacheManager=new us(i,i.allKeys?void 0:new ps(i,this.options.clientId),this.nowProvider),this.domainUrl=(a=this.options.domain,/^https?:\/\//.test(a)?a:`https://${a}`),this.tokenIssuer=((s,c)=>s?s.startsWith("https://")?s:`https://${s}/`:`${c}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new gs)}_url(e){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||fr)));return`${this.domainUrl}${e}&auth0Client=${n}`}_authorizeUrl(e){return this._url(`/authorize?${Nn(e)}`)}async _verifyIdToken(e,n,i){const r=await this.nowProvider();return hs({iss:this.tokenIssuer,aud:this.options.clientId,id_token:e,nonce:n,organization:i,leeway:this.options.leeway,max_age:(a=this.options.authorizationParams.max_age,typeof a!="string"?a:parseInt(a,10)||void 0),now:r});var a}_processOrgHint(e){e?this.cookieStorage.save(this.orgHintCookieName,e,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(e,n,i){const r=gi(yn()),a=gi(yn()),s=yn(),c=(l=>{const o=new Uint8Array(l);return(u=>{const h={"+":"-","/":"_","=":""};return u.replace(/[+/=]/g,v=>h[v])})(window.btoa(String.fromCharCode(...Array.from(o))))})(await(async l=>await Jt().subtle.digest({name:"SHA-256"},new TextEncoder().encode(l)))(s)),f=((l,o,u,h,v,m,x,g)=>Object.assign(Object.assign(Object.assign({client_id:l.clientId},l.authorizationParams),u),{scope:qt(o,u.scope),response_type:"code",response_mode:g||"query",state:h,nonce:v,redirect_uri:x||l.authorizationParams.redirect_uri,code_challenge:m,code_challenge_method:"S256"}))(this.options,this.scope,e,r,a,c,e.redirect_uri||this.options.authorizationParams.redirect_uri||i,n==null?void 0:n.response_mode),d=this._authorizeUrl(f);return{nonce:a,code_verifier:s,scope:f.scope,audience:f.audience||"default",redirect_uri:f.redirect_uri,state:r,url:d}}async loginWithPopup(e,n){var i;if(e=e||{},!(n=n||{}).popup&&(n.popup=(c=>{const f=window.screenX+(window.innerWidth-400)/2,d=window.screenY+(window.innerHeight-600)/2;return window.open(c,"auth0:authorize:popup",`left=${f},top=${d},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const r=await this._prepareAuthorizeUrl(e.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=r.url;const a=await(c=>new Promise((f,d)=>{let l;const o=setInterval(()=>{c.popup&&c.popup.closed&&(clearInterval(o),clearTimeout(u),window.removeEventListener("message",l,!1),d(new $n(c.popup)))},1e3),u=setTimeout(()=>{clearInterval(o),d(new Qn(c.popup)),window.removeEventListener("message",l,!1)},1e3*(c.timeoutInSeconds||60));l=function(h){if(h.data&&h.data.type==="authorization_response"){if(clearTimeout(u),clearInterval(o),window.removeEventListener("message",l,!1),c.popup.close(),h.data.response.error)return d(pe.fromPayload(h.data.response));f(h.data.response)}},window.addEventListener("message",l)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(r.state!==a.state)throw new pe("state_mismatch","Invalid state");const s=((i=e.authorizationParams)===null||i===void 0?void 0:i.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:r.audience,scope:r.scope,code_verifier:r.code_verifier,grant_type:"authorization_code",code:a.code,redirect_uri:r.redirect_uri},{nonceIn:r.nonce,organization:s})}async getUser(){var e;const n=await this._getIdTokenFromCache();return(e=n==null?void 0:n.decodedToken)===null||e===void 0?void 0:e.user}async getIdTokenClaims(){var e;const n=await this._getIdTokenFromCache();return(e=n==null?void 0:n.decodedToken)===null||e===void 0?void 0:e.claims}async loginWithRedirect(e={}){var n;const i=Ii(e),{openUrl:r,fragment:a,appState:s}=i,c=Ve(i,["openUrl","fragment","appState"]),f=((n=c.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,d=await this._prepareAuthorizeUrl(c.authorizationParams||{}),{url:l}=d,o=Ve(d,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},o),{appState:s}),f&&{organization:f}));const u=a?`${l}#${a}`:l;r?await r(u):window.location.assign(u)}async handleRedirectCallback(e=window.location.href){const n=e.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:i,code:r,error:a,error_description:s}=(o=>{o.indexOf("#")>-1&&(o=o.substring(0,o.indexOf("#")));const u=new URLSearchParams(o);return{state:u.get("state"),code:u.get("code")||void 0,error:u.get("error")||void 0,error_description:u.get("error_description")||void 0}})(n.join("")),c=this.transactionManager.get();if(!c)throw new pe("missing_transaction","Invalid state");if(this.transactionManager.remove(),a)throw new Gn(a,s||a,i,c.appState);if(!c.code_verifier||c.state&&c.state!==i)throw new pe("state_mismatch","Invalid state");const f=c.organization,d=c.nonce,l=c.redirect_uri;return await this._requestToken(Object.assign({audience:c.audience,scope:c.scope,code_verifier:c.code_verifier,grant_type:"authorization_code",code:r},l?{redirect_uri:l}:{}),{nonceIn:d,organization:f}),{appState:c.appState}}async checkSession(e){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(e)}catch{}}async getTokenSilently(e={}){var n;const i=Object.assign(Object.assign({cacheMode:"on"},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:qt(this.scope,(n=e.authorizationParams)===null||n===void 0?void 0:n.scope)})}),r=await((a,s)=>{let c=kn[s];return c||(c=a().finally(()=>{delete kn[s],c=null}),kn[s]=c),c})(()=>this._getTokenSilently(i),`${this.options.clientId}::${i.authorizationParams.audience}::${i.authorizationParams.scope}`);return e.detailedResponse?r:r==null?void 0:r.access_token}async _getTokenSilently(e){const{cacheMode:n}=e,i=Ve(e,["cacheMode"]);if(n!=="off"){const r=await this._getEntryFromCache({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId});if(r)return r}if(n!=="cache-only"){if(!await(async(r,a=3)=>{for(let s=0;s<a;s++)if(await r())return!0;return!1})(()=>In.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Wt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const d=await this._getEntryFromCache({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId});if(d)return d}const r=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(i):await this._getTokenFromIFrame(i),{id_token:a,access_token:s,oauthTokenScope:c,expires_in:f}=r;return Object.assign(Object.assign({id_token:a,access_token:s},c?{scope:c}:null),{expires_in:f})}finally{await In.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(e={},n={}){var i;const r=Object.assign(Object.assign({},e),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),e.authorizationParams),{scope:qt(this.scope,(i=e.authorizationParams)===null||i===void 0?void 0:i.scope)})});return n=Object.assign(Object.assign({},is),n),await this.loginWithPopup(r,n),(await this.cacheManager.get(new Xe({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(e){e.clientId!==null?e.clientId=e.clientId||this.options.clientId:delete e.clientId;const n=e.logoutParams||{},{federated:i}=n,r=Ve(n,["federated"]),a=i?"&federated":"";return this._url(`/v2/logout?${Nn(Object.assign({clientId:e.clientId},r))}`)+a}async logout(e={}){const n=Ii(e),{openUrl:i}=n,r=Ve(n,["openUrl"]);e.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(e.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const a=this._buildLogoutUrl(r);i?await i(a):i!==!1&&window.location.assign(a)}async _getTokenFromIFrame(e){const n=Object.assign(Object.assign({},e.authorizationParams),{prompt:"none"}),i=this.cookieStorage.get(this.orgHintCookieName);i&&!n.organization&&(n.organization=i);const{url:r,state:a,nonce:s,code_verifier:c,redirect_uri:f,scope:d,audience:l}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new pe("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const o=e.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((v,m,x=60)=>new Promise((g,y)=>{const _=window.document.createElement("iframe");_.setAttribute("width","0"),_.setAttribute("height","0"),_.style.display="none";const w=()=>{window.document.body.contains(_)&&(window.document.body.removeChild(_),window.removeEventListener("message",P,!1))};let P;const I=setTimeout(()=>{y(new Wt),w()},1e3*x);P=function(F){if(F.origin!=m||!F.data||F.data.type!=="authorization_response")return;const N=F.source;N&&N.close(),F.data.response.error?y(pe.fromPayload(F.data.response)):g(F.data.response),clearTimeout(I),window.removeEventListener("message",P,!1),setTimeout(w,2e3)},window.addEventListener("message",P,!1),window.document.body.appendChild(_),_.setAttribute("src",v)}))(r,this.domainUrl,o);if(a!==u.state)throw new pe("state_mismatch","Invalid state");const h=await this._requestToken(Object.assign(Object.assign({},e.authorizationParams),{code_verifier:c,code:u.code,grant_type:"authorization_code",redirect_uri:f,timeout:e.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:s,organization:n.organization});return Object.assign(Object.assign({},h),{scope:d,oauthTokenScope:h.scope,audience:l})}catch(o){throw o.error==="login_required"&&this.logout({openUrl:!1}),o}}async _getTokenUsingRefreshToken(e){const n=await this.cacheManager.get(new Xe({scope:e.authorizationParams.scope,audience:e.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw new _n(e.authorizationParams.audience||"default",e.authorizationParams.scope)}const i=e.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,r=typeof e.timeoutInSeconds=="number"?1e3*e.timeoutInSeconds:null;try{const a=await this._requestToken(Object.assign(Object.assign(Object.assign({},e.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:i}),r&&{timeout:r}));return Object.assign(Object.assign({},a),{scope:e.authorizationParams.scope,oauthTokenScope:a.scope,audience:e.authorizationParams.audience||"default"})}catch(a){if((a.message.indexOf("Missing Refresh Token")>-1||a.message&&a.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(e);throw a}}async _saveEntryInCache(e){const{id_token:n,decodedToken:i}=e,r=Ve(e,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:i}),await this.cacheManager.setIdToken(this.options.clientId,e.id_token,e.decodedToken),await this.cacheManager.set(r)}async _getIdTokenFromCache(){const e=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Xe({clientId:this.options.clientId,audience:e,scope:this.scope})),i=this.userCache.get("@@user@@");return n&&n.id_token===(i==null?void 0:i.id_token)?i:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:e,audience:n,clientId:i}){const r=await this.cacheManager.get(new Xe({scope:e,audience:n,clientId:i}),60);if(r&&r.access_token){const{access_token:a,oauthTokenScope:s,expires_in:c}=r,f=await this._getIdTokenFromCache();return f&&Object.assign(Object.assign({id_token:f.id_token,access_token:a},s?{scope:s}:null),{expires_in:c})}}async _requestToken(e,n){const{nonceIn:i,organization:r}=n||{},a=await ls(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},e),this.worker),s=await this._verifyIdToken(a.id_token,i,r);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},a),{decodedToken:s,scope:e.scope,audience:e.audience||"default"}),a.scope?{oauthTokenScope:a.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(r||s.claims.org_id),Object.assign(Object.assign({},a),{decodedToken:s})}}async function xs(t){const e=new ys(t);return await e.checkSession(),e}const br=Qe(!1),ti=Qe(),Si=Qe(!1),ks=Qe([]);Ba([ks,ti],([t,e])=>{let n=[];return e&&e.email&&(n=t.filter(i=>i.user===e.email)),n});const An={domain:"dev-iw7iwywee7bt0yer.eu.auth0.com",clientId:"hxPBFRIRqQKqXoIdEcrODEhLhZPmSwm3"};async function Is(){return await xs({domain:An.domain,clientId:An.clientId})}async function Ss(t,e){Si.set(!0);try{await t.loginWithPopup(e),ti.set(await t.getUser()),br.set(!0)}catch(n){console.error(n)}finally{Si.set(!1)}}function Ts(t){return t.logout()}const Ti={createClient:Is,loginWithPopup:Ss,logout:Ts};var Es=U('<main class="w-100 pa3"><!> <!></main>');function Ps(t,e){_e(e,!1);let n;qn(async()=>{n=await Ti.createClient(),br.set(await n.isAuthenticated()),ti.set(await n.getUser())});function i(){Ti.loginWithPopup(n,An)}ye();var r=Es(),a=L(r);Jo(a,{render:"toggle",toggle:{themes:["g10","g100"],labelA:"Light Mode",labelB:"Dark Mode",size:"sm"},persist:!0,persistKey:"__carbon-theme"});var s=A(a,2);ts(s,{handleLogin:i}),E(t,r),me()}Pa(Ps,{target:document.getElementById("app")});