(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,766932,574788,e=>{"use strict";let t,n={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return r(this.context.count)},getNextContextId(){return r(this.context.count++)}};function r(e){let t=String(e),r=t.length-1;return n.context.id+(r?String.fromCharCode(96+r):"")+t}function l(e){n.context=e}let o=(e,t)=>e===t,i=Symbol("solid-proxy"),s="function"==typeof Proxy,u=Symbol("solid-track");Symbol("solid-dev-component");let a={equals:o},f=D,c={owned:null,cleanups:null,context:null,owner:null},d={};var h=null;let p=null,g=null,v=null,y=null,b=0;function w(e,t){let n=g,r=h,l=0===e.length,o=void 0===t?r:t,i=l?c:{owned:null,cleanups:null,context:o?o.context:null,owner:o},s=l?e:()=>e(()=>x(()=>_(i)));h=i,g=null;try{return R(s,!0)}finally{g=n,h=r}}function m(e,t){let n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},a,t):a).equals||void 0};return[T.bind(n),e=>("function"==typeof e&&(e=e(p&&p.running&&p.sources.has(n)?n.tValue:n.value)),M(n,e))]}function S(e,t,n){I(L(e,t,!1,1))}function A(e,n,r){f=F;let l=L(e,n,!1,1),o=t&&C(t);o&&(l.suspense=o),r&&r.render||(l.user=!0),y?y.push(l):I(l)}function O(e,t,n){n=n?Object.assign({},a,n):a;let r=L(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,I(r),T.bind(r)}function x(e){if(null===g)return e();let t=g;g=null;try{return e()}finally{g=t}}function P(e){return null===h||(null===h.cleanups?h.cleanups=[e]:h.cleanups.push(e)),e}function k(){return h}function E(e,t){let n=h,r=g;h=e,g=null;try{return R(t,!0)}catch(e){H(e)}finally{h=n,g=r}}let[,$]=m(!1);function C(e){let t;return h&&h.context&&void 0!==(t=h.context[e.id])?t:e.defaultValue}function N(e){let t=O(e),n=O(()=>(function e(t){if("function"==typeof t&&!t.length)return e(t());if(Array.isArray(t)){let n=[];for(let r=0;r{let e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function T(){let e=p&&p.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===1)I(this);else{let e=v;v=null,R(()=>q(this),!1),v=e}if(g){let e=this.observers?this.observers.length:0;g.sources?(g.sources.push(this),g.sourceSlots.push(e)):(g.sources=[this],g.sourceSlots=[e]),this.observers?(this.observers.push(g),this.observerSlots.push(g.sources.length-1)):(this.observers=[g],this.observerSlots=[g.sources.length-1])}return e&&p.sources.has(this)?this.tValue:this.value}function M(e,t,n){let r=p&&p.running&&p.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(p){let r=p.running;(r||!n&&p.sources.has(e))&&(p.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&R(()=>{for(let t=0;t1e6)throw v=[],Error()},!1)}return t}function I(e){if(!e.fn)return;_(e);let t=b;j(e,p&&p.running&&p.sources.has(e)?e.tValue:e.value,t),p&&!p.running&&p.sources.has(e)&&queueMicrotask(()=>{R(()=>{p&&(p.running=!0),g=h=e,j(e,e.tValue,t),g=h=null},!1)})}function j(e,t,n){let r,l=h,o=g;g=h=e;try{r=e.fn(t)}catch(t){return e.pure&&(p&&p.running?(e.tState=1,e.tOwned&&e.tOwned.forEach(_),e.tOwned=void 0):(e.state=1,e.owned&&e.owned.forEach(_),e.owned=null)),e.updatedAt=n+1,H(t)}finally{g=o,h=l}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?M(e,r,!0):p&&p.running&&e.pure?(p.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function L(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;arguments.length>4&&arguments[4];let l={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:h,context:h?h.context:null,pure:n};return p&&p.running&&(l.state=0,l.tState=r),null===h||h!==c&&(p&&p.running&&h.pure?h.tOwned?h.tOwned.push(l):h.tOwned=[l]:h.owned?h.owned.push(l):h.owned=[l]),l}function V(e){let t=p&&p.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===2)return q(e);if(e.suspense&&x(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--){if(e=n[r],t){let t=e,l=n[r+1];for(;(t=t.owner)&&t!==l;)if(p.disposed.has(t))return}if((t?e.tState:e.state)===1)I(e);else if((t?e.tState:e.state)===2){let t=v;v=null,R(()=>q(e,n[0]),!1),v=t}}}function R(e,t){if(v)return e();let n=!1;t||(v=[]),y?n=!0:y=[],b++;try{let t=e();return function(e){let t;if(v&&(D(v),v=null),e)return;if(p)if(p.promises.size||p.queue.size){if(p.running){p.running=!1,p.effects.push.apply(p.effects,y),y=null,$(!0);return}}else{let e=p.sources,n=p.disposed;for(let e of(y.push.apply(y,p.effects),t=p.resolve,y))"tState"in e&&(e.state=e.tState),delete e.tState;p=null,R(()=>{for(let e of n)_(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;ef(n),!1),t&&t()}(n),t}catch(e){n||(y=null),v=null,H(e)}}function D(e){for(let t=0;t=0;t--)_(e.tOwned[t]);delete e.tOwned}if(p&&p.running&&e.pure)!function e(t,n){if(n||(t.tState=0,p.disposed.add(t)),t.owned)for(let n=0;n=0;t--)_(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}p&&p.running?e.tState=0:e.state=0}function B(e){return e instanceof Error?e:Error("string"==typeof e?e:"Unknown error",{cause:e})}function U(e,t,n){try{for(let n of t)n(e)}catch(e){H(e,n&&n.owner||null)}}function H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=B(e);!0;throw n}let z=Symbol("fallback");function G(e){for(let t=0;tt===i?n:e.get(t),has:(e,t)=>t===i||e.has(t),set:X,deleteProperty:X,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:X,deleteProperty:X}),ownKeys:e=>e.keys()};function Y(e){return(e="function"==typeof e?e():e)?e:{}}function J(){for(let e=0,t=this.length;e`Stale read from <${e}>.`;e.s(["$PROXY",0,i,"$TRACK",0,u,"DEV",0,void 0,"For",0,function(e){let t="fallback"in e&&{fallback:()=>e.fallback};return O(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=[],l=[],o=[],i=0,s=t.length>1?[]:null;return P(()=>G(o)),()=>{let a=e()||[],f=a.length,c,d;return a[u],x(()=>{let e,t,u,p,g,v,y,b,m;if(0===f)0!==i&&(G(o),o=[],r=[],l=[],i=0,s&&(s=[])),n.fallback&&(r=[z],l[0]=w(e=>(o[0]=e,n.fallback())),i=1);else if(0===i){for(d=0,l=Array(f);d=v&&b>=v&&r[y]===a[b];y--,b--)u[b]=l[y],p[b]=o[y],s&&(g[b]=s[y]);for(e=new Map,t=Array(b+1),d=b;d>=v;d--)m=a[d],c=e.get(m),t[d]=void 0===c?-1:c,e.set(m,d);for(c=v;c<=y;c++)m=r[c],void 0!==(d=e.get(m))&&-1!==d?(u[d]=l[c],p[d]=o[c],s&&(g[d]=s[c]),d=t[d],e.set(m,d)):o[c]();for(d=v;de.each,e.children,t||void 0))},"Match",0,function(e){return e},"Show",0,function(e){let t=e.keyed,n=O(()=>e.when,void 0,void 0),r=t?n:O(n,void 0,{equals:(e,t)=>!e==!t});return O(()=>{let l=r();if(l){let o=e.children;return"function"==typeof o&&o.length>0?x(()=>o(t?l:()=>{if(!x(r))throw Q("Show");return n()})):o}return e.fallback},void 0,void 0)},"Switch",0,function(e){let t=N(()=>e.children),n=O(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;eo()?void 0:l.when,void 0,void 0),s=l.keyed?i:O(i,void 0,{equals:(e,t)=>!e==!t});r=()=>o()||(s()?[t,i,l]:void 0)}return r});return O(()=>{let t=n()();if(!t)return e.fallback;let[r,l,o]=t,i=o.children;return"function"==typeof i&&i.length>0?x(()=>i(o.keyed?l():()=>{if(x(n)()?.[0]!==r)throw Q("Match");return l()})):i},void 0,void 0)},"batch",0,function(e){return R(e,!1)},"createComponent",0,function(e,t){if(K&&n.context){let r=n.context;l({...n.context,id:n.getNextContextId(),count:0});let o=x(()=>e(t||{}));return l(r),o}return x(()=>e(t||{}))},"createContext",0,function(e,t){var n;let r=Symbol("context");return{id:r,Provider:(n=r,function(e){let t;return S(()=>t=x(()=>(h.context={...h.context,[n]:e.value},N(()=>e.children))),void 0),t}),defaultValue:e}},"createEffect",0,A,"createMemo",0,O,"createRenderEffect",0,S,"createRoot",0,w,"createSignal",0,m,"enableHydration",0,function(){K=!0},"equalFn",0,o,"getListener",0,function(){return g},"getOwner",0,k,"lazy",0,function(e){let r,o,i=i=>{let s,u=n.context;if(u){let[t,i]=m();n.count||(n.count=0),n.count++,(o||(o=e())).then(e=>{n.done||l(u),n.count--,i(()=>e.default),l()}),r=t}else if(!r){let[l]=function(e,r,l){let o,i,s;"function"==typeof r?(o=e,i=r,s=l||{}):(o=!0,i=e,s=r||{});let u=null,a=d,f=null,c=!1,v=!1,y="initialValue"in s,b="function"==typeof o&&O(o),w=new Set,[S,A]=(s.storage||m)(s.initialValue),[P,k]=m(void 0),[$,N]=m(void 0,{equals:!1}),[T,M]=m(y?"ready":"unresolved");function j(e,t,n,r){return u===e&&(u=null,void 0!==r&&(y=!0),(e===a||t===a)&&s.onHydrated&&queueMicrotask(()=>s.onHydrated(r,{value:t})),a=d,p&&e&&c?(p.promises.delete(e),c=!1,R(()=>{p.running=!0,V(t,n)},!1)):V(t,n)),t}function V(e,t){R(()=>{for(let n of(void 0===t&&A(()=>e),M(void 0!==t?"errored":y?"ready":"unresolved"),k(t),w.keys()))n.decrement();w.clear()},!1)}function D(){let e=t&&C(t),n=S(),r=P();if(void 0!==r&&!u)throw r;return g&&!g.user&&e&&I(L(()=>{$(),u&&(e.resolved&&p&&c?p.promises.add(u):w.has(e)||(e.increment(),w.add(e)))},void 0,!0,1)),n}function F(){let e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(!1!==t&&v)return;v=!1;let n=b?b():o;if(c=p&&p.running,null==n||!1===n)return void j(u,x(S));p&&u&&p.promises.delete(u);let r=a!==d?a:x(()=>{try{return i(n,{value:S(),refetching:t})}catch(t){e=t}});return void 0!==e?void j(u,void 0,B(e),n):r&&"object"==typeof r&&"then"in r?(u=r,"v"in r)?(1===r.s?j(u,r.v,void 0,n):j(u,void 0,B(r.v),n),r):(v=!0,queueMicrotask(()=>v=!1),R(()=>{M(y?"refreshing":"pending"),N()},!1),r.then(e=>j(r,e,void 0,n),e=>j(r,void 0,B(e),n))):(j(u,r,void 0,n),r)}n.context&&(f=n.getNextContextId(),"initial"===s.ssrLoadFrom?a=s.initialValue:n.load&&n.has(f)&&(a=n.load(f))),Object.defineProperties(D,{state:{get:()=>T()},error:{get:()=>P()},loading:{get(){let e=T();return"pending"===e||"refreshing"===e}},latest:{get(){if(!y)return D();let e=P();if(e&&!u)throw e;return S()}}});let q=h;return b?I(L(()=>(q=h,F(!1)),void 0,!0,1)):F(!1),[D,{refetch:e=>E(q,()=>F(e)),mutate:A}]}(()=>(o||(o=e())).then(e=>e.default));r=l}return O(()=>(s=r())?x(()=>{if(!u||n.done)return s(i);let e=n.context;l(u);let t=s(i);return l(e),t}):"")};return i.preload=()=>o||((o=e()).then(e=>r=()=>e.default),o),i},"mergeProps",0,function(){for(var e=arguments.length,t=Array(e),n=0;n=0;n--){let r=Y(t[n])[e];if(void 0!==r)return r}},has(e){for(let n=t.length-1;n>=0;n--)if(e in Y(t[n]))return!0;return!1},keys(){let e=[];for(let n=0;n=0;e--){let n=t[e];if(!n)continue;let r=Object.getOwnPropertyNames(n);for(let e=r.length-1;e>=0;e--){let t=r[e];if("__proto__"===t||"constructor"===t)continue;let i=Object.getOwnPropertyDescriptor(n,t);if(o[t]){let e=l[t];e&&(i.get?e.push(i.get.bind(n)):void 0!==i.value&&e.push(()=>i.value))}else o[t]=i.get?{enumerable:!0,configurable:!0,get:J.bind(l[t]=[i.get.bind(n)])}:void 0!==i.value?i:void 0}}let u={},a=Object.keys(o);for(let e=a.length-1;e>=0;e--){let t=a[e],n=o[t];n&&n.get?Object.defineProperty(u,t,n):u[t]=n?n.value:void 0}return u},"on",0,function(e,t,n){let r,l=Array.isArray(e),o=n&&n.defer;return n=>{let i;if(l){i=Array(e.length);for(let t=0;tt(i,r,n));return r=i,s}},"onCleanup",0,P,"onMount",0,function(e){A(()=>x(e))},"runWithOwner",0,E,"sharedConfig",0,n,"splitProps",0,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?n.flat():n[0],r=n.map(t=>new Proxy({get:n=>t.includes(n)?e[n]:void 0,has:n=>t.includes(n)&&n in e,keys:()=>t.filter(t=>t in e)},W));return r.push(new Proxy({get:n=>t.includes(n)?void 0:e[n],has:n=>!t.includes(n)&&n in e,keys:()=>Object.keys(e).filter(e=>!t.includes(e))},W)),r}let o=[];for(let e=0;e<=l;e++)o[e]={};for(let t of Object.getOwnPropertyNames(e)){let r=l;for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:window.document,n=t[eo]||(t[eo]=new Set);for(let r=0,l=e.length;rr.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}function ef(e,t){let n,r,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.keys(t||{}),i=Object.keys(l);for(n=0,r=i.length;ne(t,n))}function eh(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return eb(e,t,r,n);S(r=>eb(e,t(),r,n),r)}function ep(e){return!!n.context&&!n.done&&(!e||e.isConnected)}function eg(e,t,n){let r=t.trim().split(/\s+/);for(let t=0,l=r.length;tt.toUpperCase())]=n}else{let r=l&&t.indexOf(":")>-1&&el[t.split(":")[0]];r?(f=t,ep(e)||(null==n?e.removeAttributeNS(r,f):e.setAttributeNS(r,f,n))):es(e,et[t]||t,n)}}return n}function ey(e){if(n.registry&&n.events&&n.events.find(t=>{let[n,r]=t;return r===e}))return;let t=e.target,r=`$$${e.type}`,l=e.target,o=e.currentTarget,i=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),s=()=>{let n=t[r];if(n&&!t.disabled){let l=t[`${r}Data`];if(void 0!==l?n.call(t,l,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},u=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),n.registry&&!n.done&&(n.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();i(n[0]);for(let e=0;e{let l=t();for(;"function"==typeof l;)l=l();n=eb(e,l,n,r)}),()=>n;else if(Array.isArray(t)){let i=[],u=n&&Array.isArray(n);if(function e(t,n,r,l){let o=!1;for(let i=0,s=n.length;in=eb(e,i,n,r,!0)),()=>n;if(o){if(!i.length)return n;if(void 0===r)return n=[...e.childNodes];let t=i[0];if(t.parentNode!==e)return n;let l=[t];for(;(t=t.nextSibling)!==r;)l.push(t);return n=l}if(0===i.length){if(n=em(e,n,r),s)return n}else u?0===n.length?ew(e,i,r):function(e,t,n){let r=n.length,l=t.length,o=r,i=0,s=0,u=t[l-1].nextSibling,a=null;for(;ir-s){let l=t[i];for(;s2&&void 0!==arguments[2]?arguments[2]:null;for(let r=0,l=t.length;r=0;o--){let i=t[o];if(l!==i){let t=i.parentNode===e;r||o?t&&i.remove():t?e.replaceChild(l,i):e.insertBefore(l,n)}else r=!0}}else e.insertBefore(l,n);return[l]}Symbol(),e.s(["Portal",0,function(e){let t,{useShadow:r}=e,l=document.createTextNode(""),o=k(),i=!!n.context;return A(()=>{i&&(k().user=i=!1),t||(t=E(o,()=>O(()=>e.children)));let n=e.mount||document.body;if(n instanceof HTMLHeadElement){let[e,r]=m(!1);w(r=>eh(n,()=>e()?r():t(),null)),P(()=>r(!0))}else{let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e,{is:n})}(e.isSVG?"g":"div",e.isSVG),i=r&&o.attachShadow?o.attachShadow({mode:"open"}):o;Object.defineProperty(o,"_$host",{get:()=>l.parentNode,configurable:!0}),eh(i,t),n.appendChild(o),e.ref&&e.ref(o),P(()=>n.removeChild(o))}},void 0,{render:!i}),l},"addEventListener",0,ea,"classList",0,ef,"className",0,eu,"delegateEvents",0,ei,"insert",0,eh,"isServer",0,!1,"memo",0,e=>O(()=>e()),"render",0,function(e,t,n){let r,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return w(l=>{r=l,t===document?e():eh(t,e(),t.firstChild?null:void 0,n)},l.owner),()=>{r(),t.textContent=""}},"setAttribute",0,es,"setStyleProperty",0,function(e,t,n){null!=n?e.style.setProperty(t,n):e.style.removeProperty(t)},"spread",0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,l={};return r||S(()=>l.children=eb(e,t.children,l.children)),S(()=>"function"==typeof t.ref&&ed(t.ref,e)),S(()=>(function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];for(let r in t||(t={}),l)if(!(r in t)){if("children"===r)continue;l[r]=ev(e,r,null,l[r],n,o,t)}for(let i in t){if("children"===i){r||eb(e,t.children);continue}let s=t[i];l[i]=ev(e,i,s,l[i],n,o,t)}})(e,t,n,!0,l,!0)),l},"style",0,ec,"template",0,function(e,t,n,r){let l,o=()=>{let t=r?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},i=t?()=>x(()=>document.importNode(l||(l=o()),!0)):()=>(l||(l=o())).cloneNode(!0);return i.cloneNode=i,i},"use",0,ed],766932)}]);