@sveltia/cms
Version:
Sveltia CMS is a modern, lightweight, Git-based headless content management system.
17 lines • 2.06 MB
JavaScript
(function(e){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},c=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),l=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},u=(e,r,i)=>(i=e==null?{}:t(a(e)),l(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e)),d,f,p=s((()=>{d=e=>typeof e==`object`&&!!e&&!Array.isArray(e),f=e=>JSON.parse(JSON.stringify(e))})),m=c((e=>{
/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ee(e,t){return E(e.type,t,e.props)}function te(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(te(o)&&(o=ee(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ue={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!te(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ue,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=te,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ce}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,le)}catch(e){le(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),h=c(((e,t)=>{t.exports=m()})),g=c(((e,t)=>{
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),_=c(((e,t)=>{var n=g(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),v=c(((e,t)=>{var n=h(),r=_();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),y=s((()=>{})),b=s((()=>{})),x=s((()=>{y(),b()}));function S(e){return typeof e==`function`}function C(e){return typeof e?.then==`function`}function w(e){for(var t=0;t<e.length;t++)e[t]()}function T(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function E(e,t,n=!1){return e===void 0?n?t():t:e}function ee(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var te,ne,re,ie,ae,oe,se,ce,le,ue,de,D,fe=s((()=>{te=Array.isArray,ne=Array.prototype.indexOf,re=Array.prototype.includes,ie=Array.from,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyDescriptors,ce=Object.prototype,le=Array.prototype,ue=Object.getPrototypeOf,de=Object.isExtensible,D=()=>{}})),pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be=s((()=>{pe=1<<24,me=1024,he=2048,ge=4096,_e=8192,ve=16384,ye=32768,be=1<<25,xe=65536,Se=1<<18,Ce=1<<19,we=1<<20,Te=1<<25,Ee=65536,De=1<<21,Oe=1<<22,ke=1<<23,Ae=Symbol(`$state`),je=Symbol(`legacy props`),Me=Symbol(``),Ne=Symbol(`attributes`),Pe=Symbol(`class`),Fe=Symbol(`style`),Ie=Symbol(`text`),Le=Symbol(`form reset`),Re=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ze=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function Ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var He=s((()=>{x()}));function Ue(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function We(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ke(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function qe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Je(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Qe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function et(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var tt=s((()=>{x(),He()})),nt,rt,it,at,ot,st=s((()=>{nt={},rt=Symbol(`uninitialized`),it=`http://www.w3.org/1999/xhtml`,at=`http://www.w3.org/2000/svg`,ot=`http://www.w3.org/1998/Math/MathML`}));function ct(){console.warn(`https://svelte.dev/e/derived_inert`)}function lt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ut(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function dt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var ft=s((()=>{x()}));function pt(e){yt=e}function mt(e){if(e===null)throw lt(),nt;return bt=e}function ht(){return mt(Vr(bt))}function O(e){if(yt){if(Vr(bt)!==null)throw lt(),nt;bt=e}}function gt(e=1){if(yt){for(var t=e,n=bt;t--;)n=Vr(n);bt=n}}function _t(e=!0){for(var t=0,n=bt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else(r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Vr(n);e&&n.remove(),n=i}}function vt(e){if(!e||e.nodeType!==8)throw lt(),nt;return e.data}var yt,bt,xt=s((()=>{Be(),st(),ft(),Zr(),yt=!1}));function St(e){return e===this.v}function Ct(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function wt(e){return!Ct(e,this.v)}var Tt=s((()=>{})),Et,Dt,Ot=s((()=>{Et=!1,Dt=!1})),kt=s((()=>{x()}));function At(e,t=!1,n=!1){return jt(e,new Map,``,Mt,null,n)}function jt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(te(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=jt(l,t,n,r,null,a))}return s}if(ue(e)===ce){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=jt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return jt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Mt,Nt=s((()=>{x(),kt(),fe(),Mt=[]})),Pt=s((()=>{Nt(),Be(),Ei(),ia()})),Ft=s((()=>{x(),fe(),He()}));function It(e){Ht=e}function Lt(e){return Bt(`getContext`).get(e)}function Rt(e,t){let n=Bt(`setContext`);if(Et){var r=Xi.f;!Ji&&r&32&&!Ht.i||Xe()}return n.set(e,t),t}function k(e,t=!1,n){Ht={p:Ht,i:!1,c:null,e:null,s:e,x:null,r:Xi,l:Dt&&!t?{s:null,u:null,$:[]}:null}}function A(e){var t=Ht,n=t.e;if(n!==null){t.e=null;for(var r of n)ii(r)}return e!==void 0&&(t.x=e),t.i=!0,Ht=t.p,e??{}}function zt(){return!Dt||Ht!==null&&Ht.l===null}function Bt(e){return Ht===null&&Ve(e),Ht.c??=new Map(Vt(Ht)||void 0)}function Vt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ht,Ut=s((()=>{x(),tt(),ia(),Ei(),Ot(),Be(),Ht=null}));function Wt(){var e=qt;qt=[],w(e)}function Gt(e){if(qt.length===0&&!mr){var t=qt;queueMicrotask(()=>{t===qt&&Wt()})}qt.push(e)}function Kt(){for(;qt.length>0;)Wt()}var qt,Jt=s((()=>{fe(),Sr(),qt=[]}));function Yt(e){var t=Xi;if(t===null)return Ji.f|=ke,e;if(!(t.f&32768)&&!(t.f&4))throw e;Xt(e,t)}function Xt(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var Zt=s((()=>{x(),st(),Zr(),Be(),fe(),ia()}));function Qt(e,t){e.f=e.f&en|t}function $t(e){e.f&512||e.deps===null?Qt(e,me):Qt(e,ge)}var en,tn=s((()=>{Be(),en=~(he|ge|me)}));function nn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ee,nn(t.deps))}function rn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nn(e.deps),Qt(e,me)}var an=s((()=>{Be(),tn()}));function on(e,t,n){if(e==null)return t(void 0),n&&n(void 0),D;let r=Gi(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var sn=s((()=>{ia(),fe()}));function cn(e,t){return{subscribe:ln(e,t).subscribe}}function ln(e,t=D){let n=null,r=new Set;function i(t){if(Ct(e,t)&&(e=t,n)){let t=!fn.length;for(let t of r)t[1](),fn.push(t,e);if(t){for(let e=0;e<fn.length;e+=2)fn[e][0](fn[e+1]);fn.length=0}}}function a(t){i(t(e))}function o(o,s=D){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||D),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function un(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return cn(n,(e,n)=>{let o=!1,s=[],c=0,l=D,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:D},d=i.map((e,t)=>on(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){w(d),l(),o=!1}})}function dn(e){let t;return on(e,e=>t=e)(),t}var fn,pn=s((()=>{fe(),Tt(),sn(),fn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:wr(void 0),unsubscribe:D};if(r.store!==e&&!(Sn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=D;else{var i=!0;r.unsubscribe=on(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&Sn in n?dn(e):z(r.source)}function mn(e,t){return gn(e,t),t}function hn(){let e={};function t(){ni(()=>{for(var t in e)e[t].unsubscribe();ae(e,Sn,{enumerable:!1,value:!0})})}return[e,t]}function gn(e,t){bn=!0;try{e.set(t)}finally{bn=!1}}function _n(e,t,n){return gn(e,n),t}function vn(){xn=!0}function yn(e){var t=xn;try{return xn=!1,[e(),xn]}finally{xn=t}}var bn,xn,Sn,Cn=s((()=>{sn(),pn(),fe(),ia(),Ei(),Mr(),x(),bn=!1,xn=!1,Sn=Symbol(`unmounted`)})),wn=s((()=>{Be(),Nt(),ia()}));function Tn(e,t){if(t){let t=document.body;e.autofocus=!0,Gt(()=>{document.activeElement===t&&e.focus()})}}function En(e){yt&&Br(e)!==null&&Hr(e)}function Dn(){On||(On=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Le]?.()})},{capture:!0}))}var On,kn=s((()=>{xt(),Zr(),Jt(),Be(),On=!1}));function An(e){var t=Ji,n=Xi;Ai(null),ji(null);try{return e()}finally{Ai(t),ji(n)}}function jn(e,t,n,r=n){e.addEventListener(t,()=>An(n));let i=e[Le];i?e[Le]=()=>{i(),r(!0)}:e[Le]=()=>r(!0),Dn()}var Mn=s((()=>{Ei(),ia(),Be(),kn()}));function Nn(e){let t=0,n=Cr(0),r;return()=>{ti()&&(z(n),ui(()=>(t===0&&(r=Gi(()=>e(()=>Dr(n)))),t+=1,()=>{Gt(()=>{--t,t===0&&(r?.(),r=void 0,Dr(n))})})))}}var Pn=s((()=>{ia(),Ei(),Mr(),Pt(),x(),Jt()}));function Fn(e,t,n,r){new Ln(e,t,n,r)}var In,Ln,Rn=s((()=>{Be(),st(),Ut(),Zt(),Ei(),ia(),xt(),Jt(),tt(),ft(),x(),Sr(),Mr(),Pt(),Pn(),Zr(),an(),In=xe|Ce,Ln=class{parent;is_pending=!1;transform_error;#e;#t=yt?bt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Nn(()=>(this.#m=Cr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Xi;t.b=this,t.f|=128,n(e)},this.parent=Xi.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=fi(()=>{if(yt){let e=this.#t;ht();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#y():this.#g()}else this.#b()},In),yt&&(this.#e=bt)}#g(){try{this.#a=mi(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed,{reset:n,invoke_onerror:r}=this.#v(e);Gt(r),t&&(this.#s=mi(()=>{t(this.#e,()=>e,()=>n)}))}#v(e){var t=!1,n=!1;let r=()=>{if(t){dt();return}t=!0,n&&et(),this.#s!==null&&xi(this.#s,()=>{this.#s=null}),this.#S(()=>{this.#b()})};return{reset:r,invoke_onerror:()=>{try{n=!0,this.#n.onerror?.(e,r),n=!1}catch(e){Xt(e,this.#i&&this.#i.parent)}}}}#y(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=mi(()=>e(this.#e)),Gt(()=>{var e=this.#c=document.createDocumentFragment(),t=zr();e.append(t),this.#a=this.#S(()=>mi(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,xi(this.#o,()=>{this.#o=null}),this.#x(ur))}))}#b(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=mi(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Ti(this.#a,e);let t=this.#n.pending;this.#o=mi(()=>t(this.#e))}else this.#x(ur)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#S(e){var t=Xi,n=Ji,r=Ht;ji(this.#i),Ai(this.#i),It(this.#i.ctx);try{return br.ensure(),e()}catch(e){return Yt(e),null}finally{ji(t),Ai(n),It(r)}}#C(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(e,t);return}this.#u+=e,this.#u===0&&(this.#x(t),this.#o&&xi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#C(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Gt(()=>{this.#d=!1,this.#m&&Tr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;ur?.is_fork?(this.#a&&ur.skip_effect(this.#a),this.#o&&ur.skip_effect(this.#o),this.#s&&ur.skip_effect(this.#s),ur.oncommit(()=>{this.#w(e)})):this.#w(e)}#w(e){this.#a&&=(vi(this.#a),null),this.#o&&=(vi(this.#o),null),this.#s&&=(vi(this.#s),null),yt&&(mt(this.#t),gt(),mt(_t()));let t=this.#n.failed,n=e=>{let{reset:n,invoke_onerror:r}=this.#v(e);r(),t&&(this.#s=this.#S(()=>{try{return mi(()=>{var r=Xi;r.b=this,r.f|=128,t(this.#e,()=>e,()=>n)})}catch(e){return Xt(e,this.#i.parent),null}}))};Gt(()=>{var t;try{t=this.transform_error(e)}catch(e){Xt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(n,e=>Xt(e,this.#i&&this.#i.parent)):n(t)})}}}));function zn(e,t,n,r){let i=zt()?Wn:Kn;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=Xi,c=Bn(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Xt(e,s)}Vn()}}var d=Hn();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Gn(e))).then(u).catch(e=>Xt(e,s)).finally(d)}l?l.then(()=>{c(),f(),Vn()}):f()}function Bn(){var e=Xi,t=Ji,n=Ht,r=ur;return function(i=!0){ji(e),Ai(t),It(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Vn(e=!0){ji(null),Ai(null),It(null),e&&ur?.deactivate()}function Hn(){var e=Xi,t=e.b,n=ur,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}var Un=s((()=>{Be(),x(),Ut(),Rn(),Zt(),ia(),Sr(),$n(),Ei(),Jt()}));function Wn(e){var t=2|he;return Xi!==null&&(Xi.f|=Ce),{ctx:Ht,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:rt,wv:0,parent:Xi,ac:null}}function Gn(e,t,n){let r=Xi;r===null&&Ue();var i=void 0,a=Cr(rt),o=!Ji,s=new Set;return li(()=>{var t=Xi,n=T();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Re&&n.reject(e)}).finally(Vn)}catch(e){n.reject(e),Vn()}var c=ur;if(o){if(t.f&32768)var l=Hn();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(Qn);else for(let e of s.values())e.reject(Qn);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==Qn&&(c.activate(),t?(a.f|=ke,Tr(a,t)):(a.f&8388608&&(a.f^=ke),Tr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ni(()=>{for(let e of s)e.reject(Qn)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=Wn(e);return Et||Mi(t),t}function Kn(e){let t=Wn(e);return t.equals=wt,t}function qn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)vi(t[n])}}function Jn(e){var t,n=Xi,r=e.parent;if(!qi&&r!==null&&e.v!==rt&&r.f&24576)return ct(),e.v;ji(r);try{e.f&=~Ee,qn(e),t=Ri(e)}finally{ji(n)}return t}function Yn(e){var t=Jn(e);if(!e.equals(t)&&(e.wv=Fi(),(!ur?.is_fork||e.deps===null)&&(ur===null?e.v=t:(ur.capture(e,t,!0),dr?.capture(e,t,!0)),e.deps===null))){Qt(e,me);return}qi||(fr===null?$t(e):(ti()||ur?.is_fork)&&fr.set(e,t))}function Xn(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac!==null&&An(()=>{t.ac.abort(Re),t.ac=null}),t.fn!==null&&(t.teardown=D),Bi(t,0),gi(t))}function Zn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Vi(t)}var Qn,$n=s((()=>{x(),Be(),ia(),Mn(),Tt(),tt(),ft(),Ei(),Mr(),Ft(),Ot(),Ut(),st(),Sr(),Un(),fe(),tn(),Qn=Symbol(`obsolete`)}));function er(e){var t=mr;mr=!0;try{var n;for(e&&(ur!==null&&!ur.is_fork&&ur.flush(),n=e());;){if(Kt(),ur===null)return n;ur.flush()}}finally{mr=t}}function tr(){try{Je()}catch(e){Xt(e,pr)}}function nr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ii(r)&&(xr=new Set,Vi(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&bi(r),xr?.size>0)){Ar.clear();for(let e of xr){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)xr.has(n)&&(xr.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vi(n)}}xr.clear()}}xr=null}}function rr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?rr(i,t,n,r):e&4194320&&!(e&2048)&&ir(i,t,r)&&(Qt(i,he),ar(i))}}function ir(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(re.call(t,r))return!0;if(r.f&2&&ir(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function ar(e){ur.schedule(e)}function or(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Qt(e,me);for(var n=e.first;n!==null;)or(n,t),n=n.next}}function sr(e){Qt(e,me);for(var t=e.first;t!==null;)sr(t),t=t.next}var cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr=s((()=>{Be(),Ot(),fe(),ia(),tt(),Jt(),x(),Zt(),Mr(),Ei(),an(),st(),tn(),Cn(),Ft(),wn(),$n(),cr=null,lr=null,ur=null,dr=null,fr=null,pr=null,mr=!1,hr=!1,gr=null,_r=null,vr=0,yr=1,br=class e{id=yr++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){lr===null?cr=lr=this:(lr.#n=this,this.#t=lr),lr=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)Qt(r,he),t(r);for(r of n.m)Qt(r,ge),t(r)}this.#p.add(e)}#g(){this.#e=!0,vr++>1e3&&(this.#S(),tr());for(let e of this.#u)this.#d.delete(e),Qt(e,he),this.schedule(e);for(let e of this.#d)Qt(e,ge),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=gr=[],r=[],i=_r=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw sr(e),this.#h()||this.discard(),t}if(ur=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(gr=null,_r=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)or(e,t);i.length>0&&ur.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),dr=this,nr(r),nr(n),dr=null,this.#s?.resolve();var s=ur;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),Et&&(this.#x(),ur=s)),this.#c.length>0)if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this;s!==null&&s.#g()}#_(e,t,n){e.f^=me;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=me:i&4?t.push(r):Et&&i&16777224?n.push(r):Ii(r)&&(i&16&&this.#d.add(r),Vi(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null&&!(e.f&2&&!(e.f&6144)))for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),Qt(i,he),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),ur=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)rn(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==rt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),fr?.set(e,t)),this.is_fork||(e.v=t)}activate(){ur=this}deactivate(){ur=null,fr=null}flush(){try{hr=!0,ur=this,this.#g()}finally{vr=0,pr=null,gr=null,_r=null,hr=!1,ur=null,fr=null,Ar.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(Qn);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}#x(){for(let u=cr;u!==null;u=u.#n){var e=u.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(e&&i!==n)u.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve).catch(n.reject)}var r=[...u.current.keys()].filter(e=>!u.current.get(e)[1]);if(!(!u.#e||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#p)u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):u.#b([e])});u.activate();var a=new Set,o=new Map;for(var s of t)rr(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return!n||n[0]!==t[0]||n[1]!==t[1]}).map(([e])=>e);if(c.length>0)for(let e of this.#l)!(e.f&155648)&&ir(e,c,o)&&(e.f&4194320?(Qt(e,he),u.schedule(e)):u.#u.add(e));if(u.#c.length>0&&!u.#m){u.apply();for(var l of u.#c)u.#_(l,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Gt(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=T()).promise}static ensure(){if(ur===null){let t=ur=new e;!hr&&!mr&&Gt(()=>{t.#e||t.flush()})}return ur}apply(){if(!Et||!this.is_fork&&this.#t===null&&this.#n===null){fr=null;return}fr=new Map;for(let[e,[t]]of this.current)fr.set(e,t);for(let t=cr;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)fr.has(e)||fr.set(e,n)}}schedule(e){if(pr=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(gr!==null&&t===Xi&&(Et||(Ji===null||!(Ji.f&2))&&!bn))return;if(n&96){if(!(n&1024))return;t.f^=me}}this.#c.push(t)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null?cr=t:e.#n=t,t===null?lr=e:t.#t=e,this.linked=!1}}},xr=null}));function Cr(e,t){return{f:0,v:e,reactions:null,equals:St,rv:0,wv:0}}function N(e,t){let n=Cr(e,t);return Mi(n),n}function wr(e,t=!1,n=!0){let r=Cr(e);return t||(r.equals=wt),Dt&&n&&Ht!==null&&Ht.l!==null&&(Ht.l.s??=[]).push(r),r}function P(e,t,n=!1){return Ji!==null&&(!Yi||Ji.f&131072)&&zt()&&Ji.f&4325394&&(Zi===null||!Zi.has(e))&&$e(),Tr(e,n?Nr(t):t,_r)}function Tr(e,t,n=null){if(!e.equals(t)){Ar.set(e,qi?t:e.v);var r=br.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Jn(t),fr===null&&$t(t)}e.wv=Fi(),Or(e,he,n),zt()&&Xi!==null&&Xi.f&1024&&!(Xi.f&96)&&(ea===null?Ni([e]):ea.push(e)),!r.is_fork&&kr.size>0&&!jr&&Er()}return t}function Er(){jr=!1;for(let e of kr){e.f&1024&&Qt(e,ge);let t;try{t=Ii(e)}catch{t=!0}t&&Vi(e)}kr.clear()}function Dr(e){P(e,e.v+1)}function Or(e,t,n){var r=e.reactions;if(r!==null)for(var i=zt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Xi)){var l=(c&he)===0;if(l&&Qt(s,t),c&131072)kr.add(s);else if(c&2){var u=s;fr?.delete(u),c&65536||(c&512&&(Xi===null||!(Xi.f&2097152))&&(s.f|=Ee),Or(u,ge,n))}else if(l){var d=s;c&16&&xr!==null&&xr.add(d),n===null?ar(d):n.push(d)}}}}var kr,Ar,jr,Mr=s((()=>{x(),ia(),Tt(),Be(),tt(),Ot(),Pt(),Ft(),Ut(),Sr(),Ir(),$n(),tn(),kr=new Set,Ar=new Map,jr=!1}));function Nr(e){if(typeof e!=`object`||!e||Ae in e)return e;let t=ue(e);if(t!==ce&&t!==le)return e;var n=new Map,r=te(e),i=N(0),a=null,o=ra,s=e=>{if(ra===o)return e();var t=Ji,n=ra;Ai(null),Pi(o);var r=e();return Ai(t),Pi(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ze();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(rt,a));n.set(t,e),Dr(i)}}else P(r,rt),Dr(i);return!0},get(t,r,i){if(r===Ae)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||oe(t,r)?.writable)&&(o=s(()=>N(Nr(c?t[r]:rt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===rt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==rt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ae)return!0;var r=n.get(t),i=r!==void 0&&r.v!==rt||Reflect.has(e,t);return(r!==void 0||Xi!==null&&(!i||oe(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Nr(e[t]):rt,a)),n.set(t,r)),z(r)===rt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(rt,a)),n.set(d+``,f)):P(f,rt)}if(l===void 0)(!u||oe(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Nr(o)),n.set(t,l));else{u=l.v!==rt;var p=s(()=>Nr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}Dr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==rt});for(var[r,a]of n)a.v!==rt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Qe()}})}function Pr(e){try{if(typeof e==`object`&&e&&Ae in e)return e[Ae]}catch{}return e}function Fr(e,t){return Object.is(Pr(e),Pr(t))}var Ir=s((()=>{x(),ia(),fe(),Mr(),Be(),st(),tt(),Pt(),Ft(),Ot()})),Lr=s((()=>{ft(),Ir()}));function Rr(){if(Kr===void 0){Kr=window,qr=document,Jr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yr=oe(t,`firstChild`).get,Xr=oe(t,`nextSibling`).get,de(e)&&(e[Pe]=void 0,e[Ne]=null,e[Fe]=void 0,e.__e=void 0),de(n)&&(n[Ie]=void 0)}}function zr(e=``){return document.createTextNode(e)}function Br(e){return Yr.call(e)}function Vr(e){return Xr.call(e)}function F(e,t){if(!yt)return Br(e);var n=Br(bt);if(n===null)n=bt.appendChild(zr());else if(t&&n.nodeType!==3){var r=zr();return n?.before(r),mt(r),r}return t&&Gr(n),mt(n),n}function I(e,t=!1){if(!yt){var n=Br(e);return n instanceof Comment&&n.data===``?Vr(n):n}if(t){if(bt?.nodeType!==3){var r=zr();return bt?.before(r),mt(r),r}Gr(bt)}return bt}function L(e,t=1,n=!1){let r=yt?bt:e;for(var i;t--;)i=r,r=Vr(r);if(!yt)return r;if(n){if(r?.nodeType!==3){var a=zr();return r===null?i?.after(a):r.before(a),mt(a),a}Gr(r)}return mt(r),r}function Hr(e){e.textContent=``}function Ur(){return!Et||xr!==null?!1:(Xi.f&ye)!==0}function Wr(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Gr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Kr,qr,Jr,Yr,Xr,Zr=s((()=>{xt(),x(),Lr(),fe(),ia(),Ot(),Be(),Sr(),st()}));function Qr(e){Xi===null&&(Ji===null&&qe(e),Ke()),qi&&Ge(e)}function $r(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ei(e,t){var n=Xi;n!==null&&n.f&8192&&(e|=_e);var r={ctx:Ht,deps:null,nodes:null,f:e|he|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ur?.register_created_effect(r);var i=r;if(e&4)gr===null?br.ensure().schedule(r):gr.push(r);else if(t!==null){try{Vi(r)}catch(e){throw vi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&$r(i,n),Ji!==null&&Ji.f&2&&!(e&64))){var a=Ji;(a.effects??=[]).push(i)}return r}function ti(){return Ji!==null&&!Yi}function ni(e){let t=ei(8,null);return Qt(t,me),t.teardown=e,t}function ri(e){Qr(`$effect`);var t=Xi.f;if(!Ji&&t&32&&Ht!==null&&!Ht.i){var n=Ht;(n.e??=[]).push(e)}else return ii(e)}function ii(e){return ei(4|we,e)}function ai(e){return Qr(`$effect.pre`),ei(8|we,e)}function oi(e){br.ensure();let t=ei(64|Ce,e);return()=>{vi(t)}}function si(e){br.ensure();let t=ei(64|Ce,e);return(e={})=>new Promise(n=>{e.outro?xi(t,()=>{vi(t),n(void 0)}):(vi(t),n(void 0))})}function ci(e){return ei(4,e)}function li(e){return ei(Oe|Ce,e)}function ui(e,t=0){return ei(8|t,e)}function R(e,t=[],n=[],r=[]){zn(r,t,n,t=>{ei(8,()=>{e(...t.map(z))})})}function di(e,t=[],n=[],r=[]){zn(r,t,n,t=>{ei(4,()=>e(...t.map(z)))})}function fi(e,t=0){return ei(16|t,e)}function pi(e,t=0){return ei(pe|t,e)}function mi(e){return ei(32|Ce,e)}function hi(e){var t=e.teardown;if(t!==null){let e=qi,n=Ji;ki(!0),Ai(null);try{t.call(null)}finally{ki(e),Ai(n)}}}function gi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&An(()=>{e.abort(Re)});var r=n.next;n.f&64?n.parent=null:vi(n,t),n=r}}function _i(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||vi(t),t=n}}function vi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(yi(e.nodes.start,e.nodes.end),n=!0),e.f|=be,gi(e,t&&!n),Bi(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hi(e),e.f^=be,e.f|=ve;var i=e.parent;i!==null&&i.first!==null&&bi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function yi(e,t){for(;e!==null;){var n=e===t?null:Vr(e);e.remove(),e=n}}function bi(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function xi(e,t,n=!0){var r=[];Si(e,r,!0);var i=()=>{n&&vi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Si(e,t,n){if(!(e.f&8192)){e.f^=_e;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Si(i,t,o?n:!1)}i=a}}}function Ci(e){wi(e,!0)}function wi(e,t){if(e.f&8192){e.f^=_e,e.f&1024||(Qt(e,he),br.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;wi(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Ti(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Vr(n);t.append(n),n=i}}var Ei=s((()=>{ia(),Be(),tt(),x(),fe(),Zr(),Ut(),Sr(),Un(),Mn(),tn()})),Di,Oi=s((()=>{Mr(),ia(),Di=null}));function ki(e){qi=e}function Ai(e){Ji=e}function ji(e){Xi=e}function Mi(e){Ji!==null&&(!Et||Ji.f&2)&&(Zi??=new Set).add(e)}function Ni(e){ea=e}function Pi(e){ra=e}function Fi(){return++ta}function Ii(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ee),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ii(a)&&Yn(a),a.wv>e.wv)return!0}t&512&&fr===null&&Qt(e,me)}return!1}function Li(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Et&&Zi!==null&&Zi.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Li(a,t,!1):t===a&&(n?Qt(a,he):a.f&1024&&Qt(a,ge),ar(a))}}function Ri(e){var t=Qi,n=$i,r=ea,i=Ji,a=Zi,o=Ht,s=Yi,c=ra,l=e.f;Qi=null,$i=0,ea=null,Ji=l&96?null:e,Zi=null,It(e.ctx),Yi=!1,ra=++na,e.ac!==null&&(An(()=>{e.ac.abort(Re)}),e.ac=null);try{e.f|=De;var u=e.fn,d=u();e.f|=ye;var f=e.deps,p=ur?.is_fork;if(Qi!==null){var m;if(p||Bi(e,$i),f!==null&&$i>0)for(f.length=$i+Qi.length,m=0;m<Qi.length;m++)f[$i+m]=Qi[m];else e.deps=f=Qi;if(ti()&&e.f&512)for(m=$i;m<f.length;m++)(f[m].reactions??=[]).push(e)}else!p&&f!==null&&$i<f.length&&(Bi(e,$i),f.length=$i);if(zt()&&ea!==null&&!Yi&&f!==null&&!(e.f&6146))for(m=0;m<ea.length;m++)Li(ea[m],e);if(i!==null&&i!==e){if(na++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=na;if(t!==null)for(let e of t)e.rv=na;ea!==null&&(r===null?r=ea:r.push(...ea))}return e.f&8388608&&(e.f^=ke),d}catch(e){return Yt(e)}finally{e.f^=De,Qi=t,$i=n,ea=r,Ji=i,Zi=a,It(o),Yi=s,ra=c}}function zi(e,t){let n=t.reactions;if(n!==null){var r=ne.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Qi===null||!re.call(Qi,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ee),a.v!==rt&&$t(a),a.ac!==null&&An(()=>{a.ac.abort(Re),a.ac=null,Qt(a,he)}),Xn(a),Bi(a,0)}}function Bi(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zi(e,n[r])}function Vi(e){var t=e.f;if(!(t&16384)){Qt(e,me);var n=Xi,r=Ki;Xi=e,Ki=(t&96)==0;try{t&16777232?_i(e):gi(e),hi(e);var i=Ri(e);e.teardown=typeof i==`function`?i:null,e.wv=ta}finally{Ki=r,Xi=n}}}async function Hi(){if(Et)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),er()}function z(e){var t=(e.f&2)!=0;if(Di?.add(e),Ji!==null&&!Yi&&!(Xi!==null&&Xi.f&16384)&&(Zi===null||!Zi.has(e))){var n=Ji.deps;if(Ji.f&2097152)e.rv<na&&(e.rv=na,Qi===null&&n!==null&&n[$i]===e?$i++:Qi===null?Qi=[e]:Qi.push(e));else{Ji.deps??=[],re.call(Ji.deps,e)||Ji.deps.push(e);var r=e.reactions;r===null?e.reactions=[Ji]:re.call(r,Ji)||r.push(Ji)}}if(qi&&Ar.has(e))return Ar.get(e);if(t){var i=e;if(qi){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Wi(i))&&(a=Jn(i)),Ar.set(i,a),a}var o=(i.f&512)==0&&!Yi&&Ji!==null&&(Ki||(Ji.f&512)!=0),s=(i.f&ye)===0;Ii(i)&&(o&&(i.f|=512),Yn(i)),o&&!s&&(Zn(i),Ui(i))}if(fr?.has(e))return fr.get(e);if(e.f&8388608)throw e.v;return e.v}function Ui(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Zn(t),Ui(t))}function Wi(e){if(e.v===rt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Ar.has(t)||t.f&2&&Wi(t))return!0;return!1}function Gi(e){var t=Yi;try{return Yi=!0,e()}finally{Yi=t}}var Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia=s((()=>{x(),fe(),Ei(),Be(),Mr(),$n(),Ot(),Pt(),Ft(),Ut(),Sr(),Zt(),st(),Oi(),Mn(),tn(),ft(),Ki=!1,qi=!1,Ji=null,Yi=!1,Xi=null,Zi=null,Qi=null,$i=0,ea=null,ta=1,na=0,ra=na})),aa=s((()=>{J(),uc(),Ei()}));function oa(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function sa(e){return da.includes(e)}function ca(e){return e=e.toLowerCase(),pa[e]??e}function la(e){return ma.includes(e)}function ua(e){return ga.includes(e)}var da,fa,pa,ma,ha,ga,_a=s((()=>{da=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],fa=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),pa={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...fa],ma=[`touchstart`,`touchmove`],ha=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...ha],ga=[`textarea`,`script`,`style`,`title`]})),va=s((()=>{Be(),_a(),ia()})),ya=s((()=>{})),ba=s((()=>{Be(),xt(),Ut()}));function xa(e){if(!yt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function Sa(e,t,n,r={}){function i(e){if(r.capture||Da.call(t,e),!e.cancelBubble)return An(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Gt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Ca(e,t,n,r={}){var i=Sa(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function wa(e,t,n,r,i){var a={capture:r,passive:i},o=Sa(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ni(()=>{t.removeEventListener(e,o,a)})