PageSourceSearch

https://rpg.se/assets/index-CDtFm3Sm.js

js rpg.se collected 2026-09-30 06:37:01 UTC 587,060 bytes, 267 lines download raw bytes

vendor: 6,401 bytes, lines 1-9
1var Dk=Object.defineProperty;var Dp=e=>{throw TypeError(e)};var Ok=(e,t,n)=>t in e?Dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pn=(e,t,n)=>Ok(e,typeof t!="symbol"?t+"":t,n),gu=(e,t,n)=>t.has(e)||Dp("Cannot "+n);var M=(e,t,n)=>(gu(e,t,"read from private field"),n?n.call(e):t.get(e)),de=(e,t,n)=>t.has(e)?Dp("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ne=(e,t,n,r)=>(gu(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Qe=(e,t,n)=>(gu(e,t,"access private method"),n);var Gl=(e,t,n,r)=>({set _(i){ne(e,t,i,n)},get _(){return M(e,t,r)}});function Lk(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Wa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qg={exports:{}},Is={},Qg={exports:{}},ae={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ol=Symbol.for("react.element"),Mk=Symbol.for("react.portal"),_k=Symbol.for("react.fragment"),Fk=Symbol.for("react.strict_mode"),zk=Symbol.for("react.profiler"),$k=Symbol.for("react.provider"),Bk=Symbol.for("react.context"),Uk=Symbol.for("react.forward_ref"),Hk=Symbol.for("react.suspense"),Vk=Symbol.for("react.memo"),Wk=Symbol.for("react.lazy"),Op=Symbol.iterator;function Kk(e){return e===null||typeof e!="object"?null:(e=Op&&e[Op]||e["@@iterator"],typeof e=="function"?e:null)}var Gg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Yg=Object.assign,Xg={};function ho(e,t,n){this.props=e,this.context=t,this.refs=Xg,this.updater=n||Gg}ho.prototype.isReactComponent={};ho.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};ho.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jg(){}Jg.prototype=ho.prototype;function Wd(e,t,n){this.props=e,this.context=t,this.refs=Xg,this.updater=n||Gg}var Kd=Wd.prototype=new Jg;Kd.constructor=Wd;Yg(Kd,ho.prototype);Kd.isPureReactComponent=!0;var Lp=Array.isArray,Zg=Object.prototype.hasOwnProperty,qd={current:null},ey={key:!0,ref:!0,__self:!0,__source:!0};function ty(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)Zg.call(t,r)&&!ey.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ol,type:e,key:o,ref:l,props:i,_owner:qd.current}}function qk(e,t){return{$$typeof:Ol,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Qd(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ol}function Qk(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Mp=/\/+/g;function yu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Qk(""+e.key):t.toString(36)}function Ea(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ol:case Mk:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+yu(l,0):r,Lp(i)?(n="",e!=null&&(n=e.replace(Mp,"$&/")+"/"),Ea(i,t,n,"",function(u){return u})):i!=null&&(Qd(i)&&(i=qk(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Mp,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",Lp(e))for(var a=0;a<e.length;a++){o=e[a];var s=r+yu(o,a);l+=Ea(o,t,n,s,i)}else if(s=Kk(e),typeof s=="function")for(e=s.call(e),a=0;!(o=e.next()).done;)o=o.value,s=r+yu(o,a++),l+=Ea(o,t,n,s,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Yl(e,t,n){if(e==null)return e;var r=[],i=0;return Ea(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Gk(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var st={current:null},Ca={transition:null},Yk={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:Ca,ReactCurrentOwner:qd};function ny(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:Yl,forEach:function(e,t,n){Yl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Yl(e,function(){t++}),t},toArray:function(e){return Yl(e,function(t){return t})||[]},only:function(e){if(!Qd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=ho;ae.Fragment=_k;ae.Profiler=zk;ae.PureComponent=Wd;ae.StrictMode=Fk;ae.Suspense=Hk;
vendor: 4,683 bytes, lines 9-25
9ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Yk;ae.act=ny;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Yg({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=qd.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)Zg.call(t,s)&&!ey.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ol,type:e.type,key:i,ref:o,props:r,_owner:l}};ae.createContext=function(e){return e={$$typeof:Bk,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$k,_context:e},e.Consumer=e};ae.createElement=ty;ae.createFactory=function(e){var t=ty.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:Uk,render:e}};ae.isValidElement=Qd;ae.lazy=function(e){return{$$typeof:Wk,_payload:{_status:-1,_result:e},_init:Gk}};ae.memo=function(e,t){return{$$typeof:Vk,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ca.transition;Ca.transition={};try{e()}finally{Ca.transition=t}};ae.unstable_act=ny;ae.useCallback=function(e,t){return st.current.useCallback(e,t)};ae.useContext=function(e){return st.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return st.current.useDeferredValue(e)};ae.useEffect=function(e,t){return st.current.useEffect(e,t)};ae.useId=function(){return st.current.useId()};ae.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return st.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};ae.useRef=function(e){return st.current.useRef(e)};ae.useState=function(e){return st.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return st.current.useTransition()};ae.version="18.3.1";Qg.exports=ae;var w=Qg.exports;const $=ui(w),ry=Lk({__proto__:null,default:$},[w]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Xk=w,Jk=Symbol.for("react.element"),Zk=Symbol.for("react.fragment"),ew=Object.prototype.hasOwnProperty,tw=Xk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nw={key:!0,ref:!0,__self:!0,__source:!0};function iy(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)ew.call(t,r)&&!nw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Jk,type:e,key:o,ref:l,props:i,_owner:tw.current}}Is.Fragment=Zk;Is.jsx=iy;Is.jsxs=iy;qg.exports=Is;var m=qg.exports,oy={exports:{}},Nt={},ly={exports:{}},ay={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(D,L){var S=D.length;D.push(L);e:for(;0<S;){var G=S-1>>>1,q=D[G];if(0<i(q,L))D[G]=L,D[S]=q,S=G;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var L=D[0],S=D.pop();if(S!==L){D[0]=S;e:for(var G=0,q=D.length,b=q>>>1;G<b;){var V=2*(G+1)-1,X=D[V],J=V+1,Y=D[J];if(0>i(X,S))J<q&&0>i(Y,X)?(D[G]=Y,D[J]=S,G=J):(D[G]=X,D[V]=S,G=V);else if(J<q&&0>i(Y,S))D[G]=Y,D[J]=S,G=J;else break e}}return L}function i(D,L){var S=D.sortIndex-L.sortIndex;return S!==0?S:D.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],d=1,c=null,p=3,f=!1,h=!1,y=!1,k=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(D){for(var L=n(u);
vendor: 9,509 bytes, lines 25-34
25L!==null;){if(L.callback===null)r(u);else if(L.startTime<=D)r(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function C(D){if(y=!1,x(D),!h)if(n(s)!==null)h=!0,W(P);else{var L=n(u);L!==null&&Q(C,L.startTime-D)}}function P(D,L){h=!1,y&&(y=!1,g(R),R=-1),f=!0;var S=p;try{for(x(L),c=n(s);c!==null&&(!(c.expirationTime>L)||D&&!O());){var G=c.callback;if(typeof G=="function"){c.callback=null,p=c.priorityLevel;var q=G(c.expirationTime<=L);L=e.unstable_now(),typeof q=="function"?c.callback=q:c===n(s)&&r(s),x(L)}else r(s);c=n(s)}if(c!==null)var b=!0;else{var V=n(u);V!==null&&Q(C,V.startTime-L),b=!1}return b}finally{c=null,p=S,f=!1}}var E=!1,j=null,R=-1,A=5,T=-1;function O(){return!(e.unstable_now()-T<A)}function N(){if(j!==null){var D=e.unstable_now();T=D;var L=!0;try{L=j(!0,D)}finally{L?F():(E=!1,j=null)}}else E=!1}var F;if(typeof v=="function")F=function(){v(N)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,H=_.port2;_.port1.onmessage=N,F=function(){H.postMessage(null)}}else F=function(){k(N,0)};function W(D){j=D,E||(E=!0,F())}function Q(D,L){R=k(function(){D(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,W(P))},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(D){switch(p){case 1:case 2:case 3:var L=3;break;default:L=p}var S=p;p=L;try{return D()}finally{p=S}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(D,L){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var S=p;p=D;try{return L()}finally{p=S}},e.unstable_scheduleCallback=function(D,L,S){var G=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?G+S:G):S=G,D){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=S+q,D={id:d++,callback:L,priorityLevel:D,startTime:S,expirationTime:q,sortIndex:-1},S>G?(D.sortIndex=S,t(u,D),n(s)===null&&D===n(u)&&(y?(g(R),R=-1):y=!0,Q(C,S-G))):(D.sortIndex=q,t(s,D),h||f||(h=!0,W(P))),D},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(D){var L=p;return function(){var S=p;p=L;try{return D.apply(this,arguments)}finally{p=S}}}})(ay);ly.exports=ay;var rw=ly.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var iw=w,jt=rw;function z(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sy=new Set,ol={};function ci(e,t){no(e,t),no(e+"Capture",t)}function no(e,t){for(ol[e]=t,e=0;e<t.length;e++)sy.add(t[e])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=Object.prototype.hasOwnProperty,ow=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_p={},Fp={};function lw(e){return xc.call(Fp,e)?!0:xc.call(_p,e)?!1:ow.test(e)?Fp[e]=!0:(_p[e]=!0,!1)}function aw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function sw(e,t,n,r){if(t===null||typeof t>"u"||aw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ke[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ke[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ke[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ke[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ke[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ke[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ke[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ke[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ke[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gd=/[\-:]([a-z])/g;function Yd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gd,Yd);Ke[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gd,Yd);Ke[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gd,Yd);Ke[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ke[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Ke.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ke[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xd(e,t,n,r){var i=Ke.hasOwnProperty(t)?Ke[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(sw(t,n,i,r)&&(n=null),r||i===null?lw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Vn=iw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xl=Symbol.for("react.element"),Ei=Symbol.for("react.portal"),Ci=Symbol.for("react.fragment"),Jd=Symbol.for("react.strict_mode"),kc=Symbol.for("react.profiler"),uy=Symbol.for("react.provider"),cy=Symbol.for("react.context"),Zd=Symbol.for("react.forward_ref"),wc=Symbol.for("react.suspense"),bc=Symbol.for("react.suspense_list"),ef=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),dy=Symbol.for("react.offscreen"),zp=Symbol.iterator;function Eo(e){return e===null||typeof e!="object"?null:(e=zp&&e[zp]||e["@@iterator"],typeof e=="function"?e:null)}var Pe=Object.assign,vu;function Fo(e){if(vu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);vu=t&&t[1]||""}return`
34`+vu+e}var xu=!1;function ku(e,t){if(!e||xu)return"";xu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 16,881 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35`),o=r.stack.split(`
36`),l=i.length-1,a=o.length-1;1<=l&&0<=a&&i[l]!==o[a];)a--;for(;1<=l&&0<=a;l--,a--)if(i[l]!==o[a]){if(l!==1||a!==1)do if(l--,a--,0>a||i[l]!==o[a]){var s=`
37`+i[l].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{xu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fo(e):""}function uw(e){switch(e.tag){case 5:return Fo(e.type);case 16:return Fo("Lazy");case 13:return Fo("Suspense");case 19:return Fo("SuspenseList");case 0:case 2:case 15:return e=ku(e.type,!1),e;case 11:return e=ku(e.type.render,!1),e;case 1:return e=ku(e.type,!0),e;default:return""}}function Sc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ci:return"Fragment";case Ei:return"Portal";case kc:return"Profiler";case Jd:return"StrictMode";case wc:return"Suspense";case bc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cy:return(e.displayName||"Context")+".Consumer";case uy:return(e._context.displayName||"Context")+".Provider";case Zd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ef:return t=e.displayName||null,t!==null?t:Sc(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return Sc(e(t))}catch{}}return null}function cw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Sc(t);case 8:return t===Jd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dw(e){var t=fy(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jl(e){e._valueTracker||(e._valueTracker=dw(e))}function py(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fy(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ec(e,t){var n=t.checked;return Pe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $p(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Er(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function hy(e,t){t=t.checked,t!=null&&Xd(e,"checked",t,!1)}function Cc(e,t){hy(e,t);var n=Er(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tc(e,t.type,Er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tc(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var zo=Array.isArray;function _i(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Er(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Pc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(z(91));return Pe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Up(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(z(92));if(zo(n)){if(1<n.length)throw Error(z(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Er(n)}}function my(e,t){var n=Er(t.value),r=Er(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Hp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gy(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gy(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Zl,yy=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Zl=Zl||document.createElement("div"),Zl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Zl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ll(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Uo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fw=["Webkit","ms","Moz","O"];Object.keys(Uo).forEach(function(e){fw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Uo[t]=Uo[e]})});function vy(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Uo.hasOwnProperty(e)&&Uo[e]?(""+t).trim():t+"px"}function xy(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vy(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var pw=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nc(e,t){if(t){if(pw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(z(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(z(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(z(61))}if(t.style!=null&&typeof t.style!="object")throw Error(z(62))}}function Ac(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rc=null;function tf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ic=null,Fi=null,zi=null;function Vp(e){if(e=_l(e)){if(typeof Ic!="function")throw Error(z(280));var t=e.stateNode;t&&(t=_s(t),Ic(e.stateNode,e.type,t))}}function ky(e){Fi?zi?zi.push(e):zi=[e]:Fi=e}function wy(){if(Fi){var e=Fi,t=zi;if(zi=Fi=null,Vp(e),t)for(e=0;e<t.length;e++)Vp(t[e])}}function by(e,t){return e(t)}function Sy(){}var wu=!1;function Ey(e,t,n){if(wu)return e(t,n);wu=!0;try{return by(e,t,n)}finally{wu=!1,(Fi!==null||zi!==null)&&(Sy(),wy())}}function al(e,t){var n=e.stateNode;if(n===null)return null;var r=_s(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(z(231,t,typeof n));return n}var Dc=!1;if(_n)try{var Co={};Object.defineProperty(Co,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{Dc=!1}function hw(e,t,n,r,i,o,l,a,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Ho=!1,qa=null,Qa=!1,Oc=null,mw={onError:function(e){Ho=!0,qa=e}};function gw(e,t,n,r,i,o,l,a,s){Ho=!1,qa=null,hw.apply(mw,arguments)}function yw(e,t,n,r,i,o,l,a,s){if(gw.apply(this,arguments),Ho){if(Ho){var u=qa;Ho=!1,qa=null}else throw Error(z(198));Qa||(Qa=!0,Oc=u)}}function di(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Cy(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wp(e){if(di(e)!==e)throw Error(z(188))}function vw(e){var t=e.alternate;if(!t){if(t=di(e),t===null)throw Error(z(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Wp(i),e;if(o===r)return Wp(i),t;o=o.sibling}throw Error(z(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,a=i.child;a;){if(a===n){l=!0,n=i,r=o;break}if(a===r){l=!0,r=i,n=o;break}a=a.sibling}if(!l){for(a=o.child;a;){if(a===n){l=!0,n=o,r=i;break}if(a===r){l=!0,r=o,n=i;break}a=a.sibling}if(!l)throw Error(z(189))}}if(n.alternate!==r)throw Error(z(190))}if(n.tag!==3)throw Error(z(188));return n.stateNode.current===n?e:t}function Ty(e){return e=vw(e),e!==null?Py(e):null}function Py(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Py(e);if(t!==null)return t;e=e.sibling}return null}var jy=jt.unstable_scheduleCallback,Kp=jt.unstable_cancelCallback,xw=jt.unstable_shouldYield,kw=jt.unstable_requestPaint,Ie=jt.unstable_now,ww=jt.unstable_getCurrentPriorityLevel,nf=jt.unstable_ImmediatePriority,Ny=jt.unstable_UserBlockingPriority,Ga=jt.unstable_NormalPriority,bw=jt.unstable_LowPriority,Ay=jt.unstable_IdlePriority,Ds=null,xn=null;function Sw(e){if(xn&&typeof xn.onCommitFiberRoot=="function")try{xn.onCommitFiberRoot(Ds,e,void 0,(e.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:Tw,Ew=Math.log,Cw=Math.LN2;function Tw(e){return e>>>=0,e===0?32:31-(Ew(e)/Cw|0)|0}var ea=64,ta=4194304;function $o(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ya(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~i;a!==0?r=$o(a):(o&=l,o!==0&&(r=$o(o)))}else l=n&~i,l!==0?r=$o(l):o!==0&&(r=$o(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-nn(t),i=1<<n,r|=e[n],t&=~i;return r}function Pw(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-nn(o),a=1<<l,s=i[l];s===-1?(!(a&n)||a&r)&&(i[l]=Pw(a,t)):s<=t&&(e.expiredLanes|=a),o&=~a}}function Lc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ry(){var e=ea;return ea<<=1,!(ea&4194240)&&(ea=64),e}function bu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=n}function Nw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-nn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function rf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-nn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var fe=0;function Iy(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Dy,of,Oy,Ly,My,Mc=!1,na=[],mr=null,gr=null,yr=null,sl=new Map,ul=new Map,or=[],Aw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qp(e,t){switch(e){case"focusin":case"focusout":mr=null;break;case"dragenter":case"dragleave":gr=null;break;case"mouseover":case"mouseout":yr=null;break;case"pointerover":case"pointerout":sl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ul.delete(t.pointerId)}}function To(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=_l(t),t!==null&&of(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rw(e,t,n,r,i){switch(t){case"focusin":return mr=To(mr,e,t,n,r,i),!0;case"dragenter":return gr=To(gr,e,t,n,r,i),!0;case"mouseover":return yr=To(yr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return sl.set(o,To(sl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ul.set(o,To(ul.get(o)||null,e,t,n,r,i)),!0}return!1}function _y(e){var t=Hr(e.target);if(t!==null){var n=di(t);if(n!==null){if(t=n.tag,t===13){if(t=Cy(n),t!==null){e.blockedOn=t,My(e.priority,function(){Oy(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ta(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_c(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Rc=r,n.target.dispatchEvent(r),Rc=null}else return t=_l(n),t!==null&&of(t),e.blockedOn=n,!1;t.shift()}return!0}function Qp(e,t,n){Ta(e)&&n.delete(t)}function Iw(){Mc=!1,mr!==null&&Ta(mr)&&(mr=null),gr!==null&&Ta(gr)&&(gr=null),yr!==null&&Ta(yr)&&(yr=null),sl.forEach(Qp),ul.forEach(Qp)}function Po(e,t){e.blockedOn===t&&(e.blockedOn=null,Mc||(Mc=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,Iw))
vendor: 9,147 bytes, line 37
37)}function cl(e){function t(i){return Po(i,e)}if(0<na.length){Po(na[0],e);for(var n=1;n<na.length;n++){var r=na[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mr!==null&&Po(mr,e),gr!==null&&Po(gr,e),yr!==null&&Po(yr,e),sl.forEach(t),ul.forEach(t),n=0;n<or.length;n++)r=or[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<or.length&&(n=or[0],n.blockedOn===null);)_y(n),n.blockedOn===null&&or.shift()}var $i=Vn.ReactCurrentBatchConfig,Xa=!0;function Dw(e,t,n,r){var i=fe,o=$i.transition;$i.transition=null;try{fe=1,lf(e,t,n,r)}finally{fe=i,$i.transition=o}}function Ow(e,t,n,r){var i=fe,o=$i.transition;$i.transition=null;try{fe=4,lf(e,t,n,r)}finally{fe=i,$i.transition=o}}function lf(e,t,n,r){if(Xa){var i=_c(e,t,n,r);if(i===null)Iu(e,t,r,Ja,n),qp(e,r);else if(Rw(i,e,t,n,r))r.stopPropagation();else if(qp(e,r),t&4&&-1<Aw.indexOf(e)){for(;i!==null;){var o=_l(i);if(o!==null&&Dy(o),o=_c(e,t,n,r),o===null&&Iu(e,t,r,Ja,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Iu(e,t,r,null,n)}}var Ja=null;function _c(e,t,n,r){if(Ja=null,e=tf(r),e=Hr(e),e!==null)if(t=di(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Cy(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ja=e,null}function Fy(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ww()){case nf:return 1;case Ny:return 4;case Ga:case bw:return 16;case Ay:return 536870912;default:return 16}default:return 16}}var fr=null,af=null,Pa=null;function zy(){if(Pa)return Pa;var e,t=af,n=t.length,r,i="value"in fr?fr.value:fr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Pa=i.slice(e,1<r?1-r:void 0)}function ja(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ra(){return!0}function Gp(){return!1}function At(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ra:Gp,this.isPropagationStopped=Gp,this}return Pe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ra)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ra)},persist:function(){},isPersistent:ra}),t}var mo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sf=At(mo),Ml=Pe({},mo,{view:0,detail:0}),Lw=At(Ml),Su,Eu,jo,Os=Pe({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==jo&&(jo&&e.type==="mousemove"?(Su=e.screenX-jo.screenX,Eu=e.screenY-jo.screenY):Eu=Su=0,jo=e),Su)},movementY:function(e){return"movementY"in e?e.movementY:Eu}}),Yp=At(Os),Mw=Pe({},Os,{dataTransfer:0}),_w=At(Mw),Fw=Pe({},Ml,{relatedTarget:0}),Cu=At(Fw),zw=Pe({},mo,{animationName:0,elapsedTime:0,pseudoElement:0}),$w=At(zw),Bw=Pe({},mo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Uw=At(Bw),Hw=Pe({},mo,{data:0}),Xp=At(Hw),Vw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ww={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kw[e])?!!t[e]:!1}function uf(){return qw}var Qw=Pe({},Ml,{key:function(e){if(e.key){var t=Vw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ja(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ww[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uf,charCode:function(e){return e.type==="keypress"?ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gw=At(Qw),Yw=Pe({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jp=At(Yw),Xw=Pe({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uf}),Jw=At(Xw),Zw=Pe({},mo,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=At(Zw),tb=Pe({},Os,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),nb=At(tb),rb=[9,13,27,32],cf=_n&&"CompositionEvent"in window,Vo=null;_n&&"documentMode"in document&&(Vo=document.documentMode);var ib=_n&&"TextEvent"in window&&!Vo,$y=_n&&(!cf||Vo&&8<Vo&&11>=Vo),Zp=" ",eh=!1;function By(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Uy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ti=!1;function ob(e,t){switch(e){case"compositionend":return Uy(t);case"keypress":return t.which!==32?null:(eh=!0,Zp);case"textInput":return e=t.data,e===Zp&&eh?null:e;default:return null}}function lb(e,t){if(Ti)return e==="compositionend"||!cf&&By(e,t)?(e=zy(),Pa=af=fr=null,Ti=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $y&&t.locale!=="ko"?null:t.data;default:return null}}var ab={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function th(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ab[e.type]:t==="textarea"}function Hy(e,t,n,r){ky(r),t=Za(t,"onChange"),0<t.length&&(n=new sf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wo=null,dl=null;function sb(e){ev(e,0)}function Ls(e){var t=Ni(e);if(py(t))return e}function ub(e,t){if(e==="change")return t}var Vy=!1;if(_n){var Tu;if(_n){var Pu="oninput"in document;if(!Pu){var nh=document.createElement("div");nh.setAttribute("oninput","return;"),Pu=typeof nh.oninput=="function"}Tu=Pu}else Tu=!1;Vy=Tu&&(!document.documentMode||9<document.documentMode)}function rh(){Wo&&(Wo.detachEvent("onpropertychange",Wy),dl=Wo=null)}function Wy(e){if(e.propertyName==="value"&&Ls(dl)){var t=[];Hy(t,dl,e,tf(e)),Ey(sb,t)}}function cb(e,t,n){e==="focusin"?(rh(),Wo=t,dl=n,Wo.attachEvent("onpropertychange",Wy)):e==="focusout"&&rh()}function db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ls(dl)}function fb(e,t){if(e==="click")return Ls(t)}function pb(e,t){if(e==="input"||e==="change")return Ls(t)}function hb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:hb;function fl(e,t){if(ln(e,t))return!0;
vendor: 4,808 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!xc.call(t,i)||!ln(e[i],t[i]))return!1}return!0}function ih(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function oh(e,t){var n=ih(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ih(n)}}function Ky(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ky(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qy(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function mb(e){var t=qy(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ky(n.ownerDocument.documentElement,n)){if(r!==null&&df(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=oh(n,o);var l=oh(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gb=_n&&"documentMode"in document&&11>=document.documentMode,Pi=null,Fc=null,Ko=null,zc=!1;function lh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;zc||Pi==null||Pi!==Ka(r)||(r=Pi,"selectionStart"in r&&df(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ko&&fl(Ko,r)||(Ko=r,r=Za(Fc,"onSelect"),0<r.length&&(t=new sf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pi)))}function ia(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ji={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionend:ia("Transition","TransitionEnd")},ju={},Qy={};_n&&(Qy=document.createElement("div").style,"AnimationEvent"in window||(delete ji.animationend.animation,delete ji.animationiteration.animation,delete ji.animationstart.animation),"TransitionEvent"in window||delete ji.transitionend.transition);function Ms(e){if(ju[e])return ju[e];if(!ji[e])return e;var t=ji[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qy)return ju[e]=t[n];return e}var Gy=Ms("animationend"),Yy=Ms("animationiteration"),Xy=Ms("animationstart"),Jy=Ms("transitionend"),Zy=new Map,ah="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Zy.set(e,t),ci(t,[e])}for(var Nu=0;Nu<ah.length;Nu++){var Au=ah[Nu],yb=Au.toLowerCase(),vb=Au[0].toUpperCase()+Au.slice(1);Ar(yb,"on"+vb)}Ar(Gy,"onAnimationEnd");Ar(Yy,"onAnimationIteration");Ar(Xy,"onAnimationStart");Ar("dblclick","onDoubleClick");Ar("focusin","onFocus");Ar("focusout","onBlur");Ar(Jy,"onTransitionEnd");no("onMouseEnter",["mouseout","mouseover"]);no("onMouseLeave",["mouseout","mouseover"]);no("onPointerEnter",["pointerout","pointerover"]);no("onPointerLeave",["pointerout","pointerover"]);ci("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,770 bytes, line 37
37ci("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ci("onBeforeInput",["compositionend","keypress","textInput","paste"]);ci("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ci("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ci("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xb=new Set("cancel close invalid load scroll toggle".split(" ").concat(Bo));function sh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,yw(r,t,void 0,e),e.currentTarget=null}function ev(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var a=r[l],s=a.instance,u=a.currentTarget;if(a=a.listener,s!==o&&i.isPropagationStopped())break e;sh(i,a,u),o=s}else for(l=0;l<r.length;l++){if(a=r[l],s=a.instance,u=a.currentTarget,a=a.listener,s!==o&&i.isPropagationStopped())break e;sh(i,a,u),o=s}}}if(Qa)throw e=Oc,Qa=!1,Oc=null,e}function xe(e,t){var n=t[Vc];n===void 0&&(n=t[Vc]=new Set);var r=e+"__bubble";n.has(r)||(tv(t,e,2,!1),n.add(r))}function Ru(e,t,n){var r=0;t&&(r|=4),tv(n,e,r,t)}var oa="_reactListening"+Math.random().toString(36).slice(2);function pl(e){if(!e[oa]){e[oa]=!0,sy.forEach(function(n){n!=="selectionchange"&&(xb.has(n)||Ru(n,!1,e),Ru(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oa]||(t[oa]=!0,Ru("selectionchange",!1,t))}}function tv(e,t,n,r){switch(Fy(t)){case 1:var i=Dw;break;case 4:i=Ow;break;default:i=lf}n=i.bind(null,t,n,e),i=void 0,!Dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Iu(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var s=l.tag;if((s===3||s===4)&&(s=l.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;l=l.return}for(;a!==null;){if(l=Hr(a),l===null)return;if(s=l.tag,s===5||s===6){r=o=l;continue e}a=a.parentNode}}r=r.return}Ey(function(){var u=o,d=tf(n),c=[];e:{var p=Zy.get(e);if(p!==void 0){var f=sf,h=e;switch(e){case"keypress":if(ja(n)===0)break e;case"keydown":case"keyup":f=Gw;break;case"focusin":h="focus",f=Cu;break;case"focusout":h="blur",f=Cu;break;case"beforeblur":case"afterblur":f=Cu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Yp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=_w;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Jw;break;case Gy:case Yy:case Xy:f=$w;break;case Jy:f=eb;break;case"scroll":f=Lw;break;case"wheel":f=nb;break;case"copy":case"cut":case"paste":f=Uw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Jp}var y=(t&4)!==0,k=!y&&e==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var v=u,x;v!==null;){x=v;var C=x.stateNode;if(x.tag===5&&C!==null&&(x=C,g!==null&&(C=al(v,g),C!=null&&y.push(hl(v,C,x)))),k)break;v=v.return}0<y.length&&(p=new f(p,h,null,n,d),c.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Rc&&(h=n.relatedTarget||n.fromElement)&&(Hr(h)||h[Fn]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(h=n.relatedTarget||n.toElement,f=u,h=h?Hr(h):null,h!==null&&(k=di(h),h!==k||h.tag!==5&&h.tag!==6)&&(h=null)):(f=null,h=u),f!==h)){if(y=Yp,C="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Jp,C="onPointerLeave",g="onPointerEnter",v="pointer"),k=f==null?p:Ni(f),x=h==null?p:Ni(h),p=new y(C,v+"leave",f,n,d),p.target=k,p.relatedTarget=x,C=null,Hr(d)===u&&(y=new y(g,v+"enter",h,n,d),y.target=x,y.relatedTarget=k,C=y),k=C,f&&h)t:{for(y=f,g=h,v=0,x=y;x;x=xi(x))v++;for(x=0,C=g;C;C=xi(C))x++;for(;0<v-x;)y=xi(y),v--;for(;0<x-v;)g=xi(g),x--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=xi(y),g=xi(g)}y=null}else y=null;f!==null&&uh(c,p,f,y,!1),h!==null&&k!==null&&uh(c,k,h,y,!0)}}
vendor: 4,113 bytes, lines 37-38
37e:{if(p=u?Ni(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var P=ub;else if(th(p))if(Vy)P=pb;else{P=db;var E=cb}else(f=p.nodeName)&&f.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=fb);if(P&&(P=P(e,u))){Hy(c,P,n,d);break e}E&&E(e,p,u),e==="focusout"&&(E=p._wrapperState)&&E.controlled&&p.type==="number"&&Tc(p,"number",p.value)}switch(E=u?Ni(u):window,e){case"focusin":(th(E)||E.contentEditable==="true")&&(Pi=E,Fc=u,Ko=null);break;case"focusout":Ko=Fc=Pi=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,lh(c,n,d);break;case"selectionchange":if(gb)break;case"keydown":case"keyup":lh(c,n,d)}var j;if(cf)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Ti?By(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&($y&&n.locale!=="ko"&&(Ti||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ti&&(j=zy()):(fr=d,af="value"in fr?fr.value:fr.textContent,Ti=!0)),E=Za(u,R),0<E.length&&(R=new Xp(R,e,null,n,d),c.push({event:R,listeners:E}),j?R.data=j:(j=Uy(n),j!==null&&(R.data=j)))),(j=ib?ob(e,n):lb(e,n))&&(u=Za(u,"onBeforeInput"),0<u.length&&(d=new Xp("onBeforeInput","beforeinput",null,n,d),c.push({event:d,listeners:u}),d.data=j))}ev(c,t)})}function hl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Za(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=al(e,n),o!=null&&r.unshift(hl(e,o,i)),o=al(e,t),o!=null&&r.push(hl(e,o,i))),e=e.return}return r}function xi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uh(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var a=n,s=a.alternate,u=a.stateNode;if(s!==null&&s===r)break;a.tag===5&&u!==null&&(a=u,i?(s=al(n,o),s!=null&&l.unshift(hl(n,s,a))):i||(s=al(n,o),s!=null&&l.push(hl(n,s,a)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var kb=/\r\n?/g,wb=/\u0000|\uFFFD/g;function ch(e){return(typeof e=="string"?e:""+e).replace(kb,`
38`).replace(wb,"")}function la(e,t,n){if(t=ch(t),ch(e)!==t&&n)throw Error(z(425))}function es(){}var $c=null,Bc=null;function Uc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hc=typeof setTimeout=="function"?setTimeout:void 0,bb=typeof clearTimeout=="function"?clearTimeout:void 0,dh=typeof Promise=="function"?Promise:void 0,Sb=typeof queueMicrotask=="function"?queueMicrotask:typeof dh<"u"?function(e){return dh.resolve(null).then(e).catch(Eb)}:Hc;function Eb(e){setTimeout(function(){throw e})}function Du(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),cl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);cl(t)}function vr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var go=Math.random().toString(36).slice(2),vn="__reactFiber$"+go,ml="__reactProps$"+go,Fn="__reactContainer$"+go,Vc="__reactEvents$"+go,Cb="__reactListeners$"+go,Tb="__reactHandles$"+go;function Hr(e){var t=e[vn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fn]||n[vn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fh(e);e!==null;){if(n=e[vn])return n;e=fh(e)}return t}e=n,n=e.parentNode}return null}function _l(e){return e=e[vn]||e[Fn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ni(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(z(33))}function _s(e){return e[ml]||null}var Wc=[],Ai=-1;function Rr(e){return{current:e}}function ke(e){0>
vendor: 15,073 bytes, line 38
38Ai||(e.current=Wc[Ai],Wc[Ai]=null,Ai--)}function ye(e,t){Ai++,Wc[Ai]=e.current,e.current=t}var Cr={},et=Rr(Cr),mt=Rr(!1),ni=Cr;function ro(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function gt(e){return e=e.childContextTypes,e!=null}function ts(){ke(mt),ke(et)}function ph(e,t,n){if(et.current!==Cr)throw Error(z(168));ye(et,t),ye(mt,n)}function nv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(z(108,cw(e)||"Unknown",i));return Pe({},n,r)}function ns(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cr,ni=et.current,ye(et,e),ye(mt,mt.current),!0}function hh(e,t,n){var r=e.stateNode;if(!r)throw Error(z(169));n?(e=nv(e,t,ni),r.__reactInternalMemoizedMergedChildContext=e,ke(mt),ke(et),ye(et,e)):ke(mt),ye(mt,n)}var Rn=null,Fs=!1,Ou=!1;function rv(e){Rn===null?Rn=[e]:Rn.push(e)}function Pb(e){Fs=!0,rv(e)}function Ir(){if(!Ou&&Rn!==null){Ou=!0;var e=0,t=fe;try{var n=Rn;for(fe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Rn=null,Fs=!1}catch(i){throw Rn!==null&&(Rn=Rn.slice(e+1)),jy(nf,Ir),i}finally{fe=t,Ou=!1}}return null}var Ri=[],Ii=0,rs=null,is=0,Ot=[],Lt=0,ri=null,Dn=1,On="";function zr(e,t){Ri[Ii++]=is,Ri[Ii++]=rs,rs=e,is=t}function iv(e,t,n){Ot[Lt++]=Dn,Ot[Lt++]=On,Ot[Lt++]=ri,ri=e;var r=Dn;e=On;var i=32-nn(r)-1;r&=~(1<<i),n+=1;var o=32-nn(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,Dn=1<<32-nn(t)+i|n<<i|r,On=o+e}else Dn=1<<o|n<<i|r,On=e}function ff(e){e.return!==null&&(zr(e,1),iv(e,1,0))}function pf(e){for(;e===rs;)rs=Ri[--Ii],Ri[Ii]=null,is=Ri[--Ii],Ri[Ii]=null;for(;e===ri;)ri=Ot[--Lt],Ot[Lt]=null,On=Ot[--Lt],Ot[Lt]=null,Dn=Ot[--Lt],Ot[Lt]=null}var Ct=null,Et=null,Se=!1,en=null;function ov(e,t){var n=Ft(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function mh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,Et=vr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ri!==null?{id:Dn,overflow:On}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ft(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ct=e,Et=null,!0):!1;default:return!1}}function Kc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qc(e){if(Se){var t=Et;if(t){var n=t;if(!mh(e,t)){if(Kc(e))throw Error(z(418));t=vr(n.nextSibling);var r=Ct;t&&mh(e,t)?ov(r,n):(e.flags=e.flags&-4097|2,Se=!1,Ct=e)}}else{if(Kc(e))throw Error(z(418));e.flags=e.flags&-4097|2,Se=!1,Ct=e}}}function gh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function aa(e){if(e!==Ct)return!1;if(!Se)return gh(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Uc(e.type,e.memoizedProps)),t&&(t=Et)){if(Kc(e))throw lv(),Error(z(418));for(;t;)ov(e,t),t=vr(t.nextSibling)}if(gh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(z(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Et=vr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=Ct?vr(e.stateNode.nextSibling):null;return!0}function lv(){for(var e=Et;e;)e=vr(e.nextSibling)}function io(){Et=Ct=null,Se=!1}function hf(e){en===null?en=[e]:en.push(e)}var jb=Vn.ReactCurrentBatchConfig;function No(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(z(309));var r=n.stateNode}if(!r)throw Error(z(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var a=i.refs;l===null?delete a[o]:a[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(z(284));if(!n._owner)throw Error(z(290,e))}return e}function sa(e,t){throw e=Object.prototype.toString.call(t),Error(z(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yh(e){var t=e._init;return t(e._payload)}function av(e){function t(g,v){if(e){var x=g.deletions;x===null?(g.deletions=[v],g.flags|=16):x.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(g,v){return g=br(g,v),g.index=0,g.sibling=null,g}function o(g,v,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<v?(g.flags|=2,v):x):(g.flags|=2,v)):(g.flags|=1048576,v)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,x,C){return v===null||v.tag!==6?(v=Bu(x,g.mode,C),v.return=g,v):(v=i(v,x),v.return=g,v)}function s(g,v,x,C){var P=x.type;return P===Ci?d(g,v,x.props.children,C,x.key):v!==null&&(v.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rr&&yh(P)===v.type)?(C=i(v,x.props),C.ref=No(g,v,x),C.return=g,C):(C=La(x.type,x.key,x.props,null,g.mode,C),C.ref=No(g,v,x),C.return=g,C)}function u(g,v,x,C){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Uu(x,g.mode,C),v.return=g,v):(v=i(v,x.children||[]),v.return=g,v)}function d(g,v,x,C,P){return v===null||v.tag!==7?(v=ti(x,g.mode,C,P),v.return=g,v):(v=i(v,x),v.return=g,v)}function c(g,v,x){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Bu(""+v,g.mode,x),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xl:return x=La(v.type,v.key,v.props,null,g.mode,x),x.ref=No(g,null,v),x.return=g,x;case Ei:return v=Uu(v,g.mode,x),v.return=g,v;case rr:var C=v._init;return c(g,C(v._payload),x)}if(zo(v)||Eo(v))return v=ti(v,g.mode,x,null),v.return=g,v;sa(g,v)}return null}function p(g,v,x,C){var P=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return P!==null?null:a(g,v,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xl:return x.key===P?s(g,v,x,C):null;case Ei:return x.key===P?u(g,v,x,C):null;case rr:return P=x._init,p(g,v,P(x._payload),C)}if(zo(x)||Eo(x))return P!==null?null:d(g,v,x,C,null);sa(g,x)}return null}function f(g,v,x,C,P){if(typeof C=="string"&&C!==""||typeof C=="number")return g=g.get(x)||null,a(v,g,""+C,P);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Xl:return g=g.get(C.key===null?x:C.key)||null,s(v,g,C,P);case Ei:return g=g.get(C.key===null?x:C.key)||null,u(v,g,C,P);case rr:var E=C._init;return f(g,v,x,E(C._payload),P)}if(zo(C)||Eo(C))return g=g.get(x)||null,d(v,g,C,P,null);sa(v,C)}return null}function h(g,v,x,C){for(var P=null,E=null,j=v,R=v=0,A=null;j!==null&&R<x.length;R++){j.index>R?(A=j,j=null):A=j.sibling;var T=p(g,j,x[R],C);if(T===null){j===null&&(j=A);break}e&&j&&T.alternate===null&&t(g,j),v=o(T,v,R),E===null?P=T:E.sibling=T,E=T,j=A}if(R===x.length)return n(g,j),Se&&zr(g,R),P;if(j===null){for(;R<x.length;R++)j=c(g,x[R],C),j!==null&&(v=o(j,v,R),E===null?P=j:E.sibling=j,E=j);return Se&&zr(g,R),P}for(j=r(g,j);R<x.length;R++)A=f(j,g,R,x[R],C),A!==null&&(e&&A.alternate!==null&&j.delete(A.key===null?R:A.key),v=o(A,v,R),E===null?P=A:E.sibling=A,E=A);return e&&j.forEach(function(O){return t(g,O)}),Se&&zr(g,R),P}function y(g,v,x,C){var P=Eo(x);if(typeof P!="function")throw Error(z(150));if(x=P.call(x),x==null)throw Error(z(151));for(var E=P=null,j=v,R=v=0,A=null,T=x.next();j!==null&&!T.done;R++,T=x.next()){j.index>R?(A=j,j=null):A=j.sibling;var O=p(g,j,T.value,C);if(O===null){j===null&&(j=A);break}e&&j&&O.alternate===null&&t(g,j),v=o(O,v,R),E===null?P=O:E.sibling=O,E=O,j=A}if(T.done)return n(g,j),Se&&zr(g,R),P;if(j===null){for(;!T.done;R++,T=x.next())T=c(g,T.value,C),T!==null&&(v=o(T,v,R),E===null?P=T:E.sibling=T,E=T);return Se&&zr(g,R),P}for(j=r(g,j);!T.done;R++,T=x.next())T=f(j,g,R,T.value,C),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?R:T.key),v=o(T,v,R),E===null?P=T:E.sibling=T,E=T);return e&&j.forEach(function(N){return t(g,N)}),Se&&zr(g,R),P}function k(g,v,x,C){if(typeof x=="object"&&x!==null&&x.type===Ci&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Xl:e:{for(var P=x.key,E=v;E!==null;){if(E.key===P){if(P=x.type,P===Ci){if(E.tag===7){n(g,E.sibling),v=i(E,x.props.children),v.return=g,g=v;break e}}else if(E.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===rr&&yh(P)===E.type){n(g,E.sibling),v=i(E,x.props),v.ref=No(g,E,x),v.return=g,g=v;break e}n(g,E);break}else t(g,E);E=E.sibling}x.type===Ci?(v=ti(x.props.children,g.mode,C,x.key),v.return=g,g=v):(C=La(x.type,x.key,x.props,null,g.mode,C),C.ref=No(g,v,x),C.return=g,g=C)}return l(g);case Ei:e:{for(E=x.key;v!==null;){if(v.key===E)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(g,v.sibling),v=i(v,x.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Uu(x,g.mode,C),v.return=g,g=v}return l(g);case rr:return E=x._init,k(g,v,E(x._payload),C)}if(zo(x))return h(g,v,x,C);if(Eo(x))return y(g,v,x,C);sa(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,x),v.return=g,g=v):(n(g,v),v=Bu(x,g.mode,C),v.return=g,g=v),l(g)):n(g,v)}return k}var oo=av(!0),sv=av(!1),os=Rr(null),ls=null,Di=null,mf=null;function gf(){mf=Di=ls=null}function yf(e){var t=os.current;ke(os),e._currentValue=t}function Qc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Bi(e,t){ls=e,mf=Di=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(mf!==e)if(e={context:e,memoizedValue:t,next:null},Di===null){if(ls===null)throw Error(z(308));Di=e,ls.dependencies={lanes:0,firstContext:e}}else Di=Di.next=e;return t}var Vr=null;function vf(e){Vr===null?Vr=[e]:Vr.push(e)}function uv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vf(t)):(n.next=i.next,i.next=n),t.interleaved=n,zn(e,r)}function zn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ir=!1;function xf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ue&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,zn(e,n)}return i=r.interleaved,i===null?(t.next=t,vf(r)):(t.next=i.next,i.next=t),r.interleaved=t,zn(e,n)}function Na(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rf(e,n)}}function vh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function as(e,t,n,r){var i=e.updateQueue;ir=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var s=a,u=s.next;s.next=null,l===null?o=u:l.next=u,l=s;var d=e.alternate;d!==null&&(d=d.updateQueue,a=d.lastBaseUpdate,a!==l&&(a===null?d.firstBaseUpdate=u:a.next=u,d.lastBaseUpdate=s))}if(o!==null){var c=i.baseState;l=0,d=u=s=null,a=o;do{var p=a.lane,f=a.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,y=a;switch(p=t,f=n,y.tag){case 1:if(h=y.payload,typeof h=="function"){c=h.call(f,c,p);break e}c=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=y.payload,p=typeof h=="function"?h.call(f,c,p):h,p==null)break e;c=Pe({},c,p);break e;case 2:ir=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else f={eventTime:f,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(u=d=f,s=c):d=d.next=f,l|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(s=c),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);oi|=l,e.lanes=l,e.memoizedState=c}}function xh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(z(191,i));i.call(r)}}}var Fl={},kn=Rr(Fl),gl=Rr(Fl),yl=Rr(Fl);function Wr(e){if(e===Fl)throw Error(z(174));return e}function kf(e,t){switch(ye(yl,t),ye(gl,e),ye(kn,Fl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:jc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=jc(t,e)}ke(kn),ye(kn,t)}function lo(){ke(kn),ke(gl),ke(yl)}function dv(e){Wr(yl.current);var t=Wr(kn.current),n=jc(t,e.type);t!==n&&(ye(gl,e),ye(kn,n))}function wf(e){gl.current===e&&(ke(kn),ke(gl))}var Ce=Rr(0);function ss(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lu=[];function bf(){for(var e=0;e<Lu.length;e++)Lu[e]._workInProgressVersionPrimary=null;Lu.length=0}var Aa=Vn.ReactCurrentDispatcher,Mu=Vn.ReactCurrentBatchConfig,ii=0,Te=null,$e=null,Ue=null,us=!1,qo=!1,vl=0,Nb=0;function Ge(){throw Error(z(321))}function Sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ln(e[n],t[n]))return!1;return!0}function Ef(e,t,n,r,i,o){if(ii=o,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Aa.current=e===null||e.memoizedState===null?Db:Ob,e=n(r,i),qo){o=0;
vendor: 4,736 bytes, line 38
38do{if(qo=!1,vl=0,25<=o)throw Error(z(301));o+=1,Ue=$e=null,t.updateQueue=null,Aa.current=Lb,e=n(r,i)}while(qo)}if(Aa.current=cs,t=$e!==null&&$e.next!==null,ii=0,Ue=$e=Te=null,us=!1,t)throw Error(z(300));return e}function Cf(){var e=vl!==0;return vl=0,e}function pn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Te.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Bt(){if($e===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var t=Ue===null?Te.memoizedState:Ue.next;if(t!==null)Ue=t,$e=e;else{if(e===null)throw Error(z(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ue===null?Te.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function xl(e,t){return typeof t=="function"?t(e):t}function _u(e){var t=Bt(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=$e,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=l=null,s=null,u=o;do{var d=u.lane;if((ii&d)===d)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(a=s=c,l=r):s=s.next=c,Te.lanes|=d,oi|=d}u=u.next}while(u!==null&&u!==o);s===null?l=r:s.next=a,ln(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Te.lanes|=o,oi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fu(e){var t=Bt(),n=t.queue;if(n===null)throw Error(z(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);ln(o,t.memoizedState)||(ht=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function fv(){}function pv(e,t){var n=Te,r=Bt(),i=t(),o=!ln(r.memoizedState,i);if(o&&(r.memoizedState=i,ht=!0),r=r.queue,Tf(gv.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,kl(9,mv.bind(null,n,r,i,t),void 0,null),He===null)throw Error(z(349));ii&30||hv(n,t,i)}return i}function hv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mv(e,t,n,r){t.value=n,t.getSnapshot=r,yv(t)&&vv(e)}function gv(e,t,n){return n(function(){yv(t)&&vv(e)})}function yv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ln(e,n)}catch{return!0}}function vv(e){var t=zn(e,1);t!==null&&rn(t,e,1,-1)}function kh(e){var t=pn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t.queue=e,e=e.dispatch=Ib.bind(null,Te,e),[t.memoizedState,e]}function kl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xv(){return Bt().memoizedState}function Ra(e,t,n,r){var i=pn();Te.flags|=e,i.memoizedState=kl(1|t,n,void 0,r===void 0?null:r)}function zs(e,t,n,r){var i=Bt();r=r===void 0?null:r;var o=void 0;if($e!==null){var l=$e.memoizedState;if(o=l.destroy,r!==null&&Sf(r,l.deps)){i.memoizedState=kl(t,n,o,r);return}}Te.flags|=e,i.memoizedState=kl(1|t,n,o,r)}function wh(e,t){return Ra(8390656,8,e,t)}function Tf(e,t){return zs(2048,8,e,t)}function kv(e,t){return zs(4,2,e,t)}function wv(e,t){return zs(4,4,e,t)}function bv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sv(e,t,n){return n=n!=null?n.concat([e]):null,zs(4,4,bv.bind(null,t,e),n)}function Pf(){}function Ev(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cv(e,t){var n=Bt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Sf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tv(e,t,n){return ii&21?(ln(n,t)||(n=Ry(),Te.lanes|=n,oi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function Ab(e,t){var n=fe;fe=n!==0&&4>n?n:4,e(!0);var r=Mu.transition;Mu.transition={};try{e(!1),t()}finally{fe=n,Mu.transition=r}}function Pv(){return Bt().memoizedState}function Rb(e,t,n){var r=wr(e);
vendor: 7,055 bytes, lines 38-40
38if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jv(e))Nv(t,n);else if(n=uv(e,t,n,r),n!==null){var i=at();rn(n,e,r,i),Av(n,t,r)}}function Ib(e,t,n){var r=wr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jv(e))Nv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,a=o(l,n);if(i.hasEagerState=!0,i.eagerState=a,ln(a,l)){var s=t.interleaved;s===null?(i.next=i,vf(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=uv(e,t,i,r),n!==null&&(i=at(),rn(n,e,r,i),Av(n,t,r))}}function jv(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Nv(e,t){qo=us=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Av(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rf(e,n)}}var cs={readContext:$t,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Db={readContext:$t,useCallback:function(e,t){return pn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:wh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ra(4194308,4,bv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ra(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ra(4,2,e,t)},useMemo:function(e,t){var n=pn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rb.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=pn();return e={current:e},t.memoizedState=e},useState:kh,useDebugValue:Pf,useDeferredValue:function(e){return pn().memoizedState=e},useTransition:function(){var e=kh(!1),t=e[0];return e=Ab.bind(null,e[1]),pn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,i=pn();if(Se){if(n===void 0)throw Error(z(407));n=n()}else{if(n=t(),He===null)throw Error(z(349));ii&30||hv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,wh(gv.bind(null,r,o,e),[e]),r.flags|=2048,kl(9,mv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pn(),t=He.identifierPrefix;if(Se){var n=On,r=Dn;n=(r&~(1<<32-nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=vl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Nb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ob={readContext:$t,useCallback:Ev,useContext:$t,useEffect:Tf,useImperativeHandle:Sv,useInsertionEffect:kv,useLayoutEffect:wv,useMemo:Cv,useReducer:_u,useRef:xv,useState:function(){return _u(xl)},useDebugValue:Pf,useDeferredValue:function(e){var t=Bt();return Tv(t,$e.memoizedState,e)},useTransition:function(){var e=_u(xl)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:fv,useSyncExternalStore:pv,useId:Pv,unstable_isNewReconciler:!1},Lb={readContext:$t,useCallback:Ev,useContext:$t,useEffect:Tf,useImperativeHandle:Sv,useInsertionEffect:kv,useLayoutEffect:wv,useMemo:Cv,useReducer:Fu,useRef:xv,useState:function(){return Fu(xl)},useDebugValue:Pf,useDeferredValue:function(e){var t=Bt();return $e===null?t.memoizedState=e:Tv(t,$e.memoizedState,e)},useTransition:function(){var e=Fu(xl)[0],t=Bt().memoizedState;return[e,t]},useMutableSource:fv,useSyncExternalStore:pv,useId:Pv,unstable_isNewReconciler:!1};function Gt(e,t){if(e&&e.defaultProps){t=Pe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Pe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $s={isMounted:function(e){return(e=e._reactInternals)?di(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=at(),i=wr(e),o=Mn(r,i);o.payload=t,n!=null&&(o.callback=n),t=xr(e,o,i),t!==null&&(rn(t,e,i,r),Na(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=at(),i=wr(e),o=Mn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=xr(e,o,i),t!==null&&(rn(t,e,i,r),Na(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=at(),r=wr(e),i=Mn(n,r);i.tag=2,t!=null&&(i.callback=t),t=xr(e,i,r),t!==null&&(rn(t,e,r,n),Na(t,e,r))}};function bh(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!fl(n,r)||!fl(i,o):!0}function Rv(e,t,n){var r=!1,i=Cr,o=t.contextType;return typeof o=="object"&&o!==null?o=$t(o):(i=gt(t)?ni:et.current,r=t.contextTypes,o=(r=r!=null)?ro(e,i):Cr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=$s,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Sh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$s.enqueueReplaceState(t,t.state,null)}function Yc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},xf(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=$t(o):(o=gt(t)?ni:et.current,i.context=ro(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Gc(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&$s.enqueueReplaceState(i,i.state,null),as(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ao(e,t){try{var n="",r=t;do n+=uw(r),r=r.return;while(r);var i=n}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function zu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Mb=typeof WeakMap=="function"?WeakMap:Map;function Iv(e,t,n){n=Mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fs||(fs=!0,ad=r),Xc(e,t)},n}function Dv(e,t,n){n=Mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Xc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Xc(e,t),typeof r!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}
vendor: 6,955 bytes, line 40
40function Eh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Mb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Yb.bind(null,e,t,n),t.then(e,e))}function Ch(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Th(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Mn(-1,1),t.tag=2,xr(n,t,1))),n.lanes|=1),e)}var _b=Vn.ReactCurrentOwner,ht=!1;function rt(e,t,n,r){t.child=e===null?sv(t,null,n,r):oo(t,e.child,n,r)}function Ph(e,t,n,r,i){n=n.render;var o=t.ref;return Bi(t,i),r=Ef(e,t,n,r,o,i),n=Cf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Se&&n&&ff(t),t.flags|=1,rt(e,t,r,i),t.child)}function jh(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Lf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ov(e,t,o,r,i)):(e=La(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:fl,n(l,r)&&e.ref===t.ref)return $n(e,t,i)}return t.flags|=1,e=br(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ov(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(fl(o,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,$n(e,t,i)}return Jc(e,t,n,r,i)}function Lv(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Li,bt),bt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Li,bt),bt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ye(Li,bt),bt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ye(Li,bt),bt|=r;return rt(e,t,i,n),t.child}function Mv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Jc(e,t,n,r,i){var o=gt(n)?ni:et.current;return o=ro(t,o),Bi(t,i),n=Ef(e,t,n,r,o,i),r=Cf(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$n(e,t,i)):(Se&&r&&ff(t),t.flags|=1,rt(e,t,n,i),t.child)}function Nh(e,t,n,r,i){if(gt(n)){var o=!0;ns(t)}else o=!1;if(Bi(t,i),t.stateNode===null)Ia(e,t),Rv(t,n,r),Yc(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var s=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=$t(u):(u=gt(n)?ni:et.current,u=ro(t,u));var d=n.getDerivedStateFromProps,c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||s!==u)&&Sh(t,l,r,u),ir=!1;var p=t.memoizedState;l.state=p,as(t,r,l,i),s=t.memoizedState,a!==r||p!==s||mt.current||ir?(typeof d=="function"&&(Gc(t,n,d,r),s=t.memoizedState),(a=ir||bh(t,n,a,r,p,s,u))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),l.props=r,l.state=s,l.context=u,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,cv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Gt(t.type,a),l.props=u,c=t.pendingProps,p=l.context,s=n.contextType,typeof s=="object"&&s!==null?s=$t(s):(s=gt(n)?ni:et.current,s=ro(t,s));var f=n.getDerivedStateFromProps;(d=typeof f=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==c||p!==s)&&Sh(t,l,r,s),ir=!1,p=t.memoizedState,l.state=p,as(t,r,l,i);var h=t.memoizedState;a!==c||p!==h||mt.current||ir?(typeof f=="function"&&(Gc(t,n,f,r),h=t.memoizedState),(u=ir||bh(t,n,u,r,p,h,s)||!1)?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,s),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,s)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=s,r=u):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Zc(e,t,n,r,o,i)}function Zc(e,t,n,r,i,o){Mv(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&hh(t,n,!1),$n(e,t,o);r=t.stateNode,_b.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=oo(t,e.child,null,o),t.child=oo(t,null,a,o)):rt(e,t,a,o),t.memoizedState=r.state,i&&hh(t,n,!0),t.child}function _v(e){var t=e.stateNode;t.pendingContext?ph(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ph(e,t.context,!1),kf(e,t.containerInfo)}function Ah(e,t,n,r,i){return io(),hf(i),t.flags|=256,rt(e,t,n,r),t.child}var ed={dehydrated:null,treeContext:null,retryLane:0};function td(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fv(e,t,n){var r=t.pendingProps,i=Ce.current,o=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ye(Ce,i&1),e===null)return qc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Hs(l,r,0,null),e=ti(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=td(n),t.memoizedState=ed,e):jf(t,l));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Fb(e,t,l,r,a,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,a=i.sibling;var s={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=br(i,s),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=br(a,o):(o=ti(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?td(n):{baseLanes:l.base
vendor: 5,851 bytes, line 40
40Lanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=ed,r}return o=e.child,e=o.sibling,r=br(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function jf(e,t){return t=Hs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ua(e,t,n,r){return r!==null&&hf(r),oo(t,e.child,null,n),e=jf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fb(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=zu(Error(z(422))),ua(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Hs({mode:"visible",children:r.children},i,0,null),o=ti(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&oo(t,e.child,null,l),t.child.memoizedState=td(l),t.memoizedState=ed,o);if(!(t.mode&1))return ua(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(z(419)),r=zu(o,r,void 0),ua(e,t,l,r)}if(a=(l&e.childLanes)!==0,ht||a){if(r=He,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,zn(e,i),rn(r,e,i,-1))}return Of(),r=zu(Error(z(421))),ua(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Xb.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Et=vr(i.nextSibling),Ct=t,Se=!0,en=null,e!==null&&(Ot[Lt++]=Dn,Ot[Lt++]=On,Ot[Lt++]=ri,Dn=e.id,On=e.overflow,ri=t),t=jf(t,r.children),t.flags|=4096,t)}function Rh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qc(e.return,t,n)}function $u(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zv(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(rt(e,t,r.children,n),r=Ce.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Rh(e,n,t);else if(e.tag===19)Rh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(Ce,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ss(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$u(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ss(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$u(t,!0,n,null,o);break;case"together":$u(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ia(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $n(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(z(153));if(t.child!==null){for(e=t.child,n=br(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=br(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zb(e,t,n){switch(t.tag){case 3:_v(t),io();break;case 5:dv(t);break;case 1:gt(t.type)&&ns(t);break;case 4:kf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ye(os,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Ce,Ce.current&1),t.flags|=128,null):n&t.child.childLanes?Fv(e,t,n):(ye(Ce,Ce.current&1),e=$n(e,t,n),e!==null?e.sibling:null);ye(Ce,Ce.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ye(Ce,Ce.current),r)break;return null;case 22:case 23:return t.lanes=0,Lv(e,t,n)}return $n(e,t,n)}var $v,nd,Bv,Uv;$v=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};nd=function(){};Bv=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wr(kn.current);var o=null;switch(n){case"input":i=Ec(e,i),r=Ec(e,r),o=[];break;case"select":i=Pe({},i,{value:void 0}),r=Pe({},r,{value:void 0}),o=[];break;case"textarea":i=Pc(e,i),r=Pc(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=es)}Nc(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ol.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==a&&(s!=null||a!=null))if(u==="style")if(a){for(l in a)!a.hasOwnProperty(l)||s&&s.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in s)s.hasOwnProperty(l)&&a[l]!==s[l]&&(n||(n={}),n[l]=s[l])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,a=a?a.__html:void 0,s!=null&&a!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="str
40ing"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ol.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&xe("scroll",e),o||a===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Uv=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ao(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $b(e,t,n){var r=t.pendingProps;switch(pf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return gt(t.type)&&ts(),Ye(t),null;case 3:return r=t.stateNode,lo(),ke(mt),ke(et),bf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(aa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,en!==null&&(cd(en),en=null))),nd(e,t),Ye(t),null;case 5:wf(t);var i=Wr(yl.current);if(n=t.type,e!==null&&t.stateNode!=null)Bv(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(z(166));return Ye(t),null}if(e=Wr(kn.current),aa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[vn]=t,r[ml]=o,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(i=0;i<Bo.length;i++)xe(Bo[i],r);break;case"source":xe("error",r);break;case"img":case"image":case"link":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"input":$p(r,o),xe("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},xe("invalid",r);break;case"textarea":Up(r,o),xe("invalid",r)}Nc(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var a=o[l];l==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&la(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&la(r.textContent,a,e),i=["children",""+a]):ol.hasOwnProperty(l)&&a!=null&&l==="onScroll"&&xe("scroll",r)}switch(n){case"input":Jl(r),Bp(r,o,!0);break;case"textarea":Jl(r),Hp(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=es)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gy(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[vn]=t,e[ml]=r,$v(e,t,!1,!1),t.stateNode=e;e:{switch(l=Ac(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;i<Bo.length;i++)xe(Bo[i],e);i=r;break;case"source":xe("error",e),i=r;break;case"img":case"image":case"link":xe("error",e),xe("load",e),i=r;break;case"details":xe("toggle",e),i=r;break;case"input":$p(e,r),i=Ec(e,r),xe("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Pe({},r,{value:void 0}),xe("invalid",e);break;case"textarea":Up(e,r),i=Pc(e,r),xe("invalid",e);break;default:i=r}Nc(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="style"?xy(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&yy(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&ll(e,s):typeof s=="number"&&ll(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ol.hasOwnProperty(o)?s!=null&&o==="onScroll"&&xe("scroll",e):s!=null&&Xd(e,o,s,l))}switch(n){case"input":Jl(e),Bp(e,r,!1);break;case"textarea":Jl(e),Hp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Er(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?_i(e,!!r.multiple,o,!1):r.defaultValue!=null&&_i(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=es)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,395 bytes, line 40
40return Ye(t),null;case 6:if(e&&t.stateNode!=null)Uv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(z(166));if(n=Wr(yl.current),Wr(kn.current),aa(t)){if(r=t.stateNode,n=t.memoizedProps,r[vn]=t,(o=r.nodeValue!==n)&&(e=Ct,e!==null))switch(e.tag){case 3:la(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&la(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vn]=t,t.stateNode=r}return Ye(t),null;case 13:if(ke(Ce),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&Et!==null&&t.mode&1&&!(t.flags&128))lv(),io(),t.flags|=98560,o=!1;else if(o=aa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(z(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(z(317));o[vn]=t}else io(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ye(t),o=!1}else en!==null&&(cd(en),en=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ce.current&1?Be===0&&(Be=3):Of())),t.updateQueue!==null&&(t.flags|=4),Ye(t),null);case 4:return lo(),nd(e,t),e===null&&pl(t.stateNode.containerInfo),Ye(t),null;case 10:return yf(t.type._context),Ye(t),null;case 17:return gt(t.type)&&ts(),Ye(t),null;case 19:if(ke(Ce),o=t.memoizedState,o===null)return Ye(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)Ao(o,!1);else{if(Be!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ss(e),l!==null){for(t.flags|=128,Ao(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Ce,Ce.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ie()>so&&(t.flags|=128,r=!0,Ao(o,!1),t.lanes=4194304)}else{if(!r)if(e=ss(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ao(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!Se)return Ye(t),null}else 2*Ie()-o.renderingStartTime>so&&n!==1073741824&&(t.flags|=128,r=!0,Ao(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ie(),t.sibling=null,n=Ce.current,ye(Ce,r?n&1|2:n&1),t):(Ye(t),null);case 22:case 23:return Df(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bt&1073741824&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),null;case 24:return null;case 25:return null}throw Error(z(156,t.tag))}function Bb(e,t){switch(pf(t),t.tag){case 1:return gt(t.type)&&ts(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lo(),ke(mt),ke(et),bf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wf(t),null;case 13:if(ke(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(z(340));io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ce),null;case 4:return lo(),null;case 10:return yf(t.type._context),null;case 22:case 23:return Df(),null;case 24:return null;default:return null}}var ca=!1,Je=!1,Ub=typeof WeakSet=="function"?WeakSet:Set,K=null;function Oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function rd(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var Ih=!1;function Hb(e,t){if($c=Xa,e=qy(),df(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,a=-1,s=-1,u=0,d=0,c=e,p=null;t:for(;;){for(var f;c!==n||i!==0&&c.nodeType!==3||(a=l+i),c!==o||r!==0&&c.nodeType!==3||(s=l+r),c.nodeType===3&&(l+=c.nodeValue.length),(f=c.firstChild)!==null;)p=c,c=f;for(;;){if(c===e)break t;if(p===n&&++u===i&&(a=l),p===o&&++d===r&&(s=l),(f=c.nextSibling)!==null)break;c=p,p=c.parentNode}c=f}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bc={focusedElem:e,selectionRange:n},Xa=!1,K=t;K!==null;)if(t=K,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,K=e;else for(;K!==null;){t=K;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var y=h.memoizedProps,k=h.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Gt(t.type,y),k);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(z(163))}}catch(C){Ae(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,K=e;break}K=t.return}return h=Ih,Ih=!1,h}function Qo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&rd(t,n,o)}i=i.next}while(i!==r)}}function Bs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function id(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Hv(e){var t=e.alternate;t!==null&&(e.alternate=null,Hv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[ml],delete t[Vc],delete t[Cb],delete t[Tb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vv(e){return e.tag===5||e.tag===3||e.tag===4}function Dh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function od(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=es));else if(r!==4&&(e=e.child,e!==null))for(od(e,t,n),e=e.sibling;e!==null;)od(e,t,n),e=e.sibling}function ld(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ld(e,t,n),e=e.sibling;e!==null;)ld(e,t,n),e=e.sibling}var Ve=null,Zt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)Wv(e,t,n),n=n.sibling}function Wv(e,t,n){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(Ds,n)}catch{}switch(n.tag){case 5:Je||Oi(n,t);case 6:var r=Ve,i=Zt;Ve=null,Jn(e,t,n),Ve=r,Zt=i,Ve!==null&&(Zt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Zt?(e=Ve,n=n.stateNode,e.nodeType===8?Du(e.parentNode,n):e.nodeType===1&&Du(e,n),cl(e)):Du(Ve,n.stateNode));break;case 4:r=Ve,i=Zt,Ve=n.stateNode.containerInfo,Zt=!0,Jn(e,t,n),Ve=r,Zt=i;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&rd(n,t,l),i=i.next}while(i!==r)}Jn(e,t,n);break;case 1:if(!Je&&(Oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ae(n,t,a)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,Jn(e,t,n),Je=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function Oh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ub),t.forEach(function(r){var i=Jb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function qt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,a=l;e:for(;a!==null;){switch(a.tag){case 5:Ve=a.stateNode,Zt=!1;break e;case 3:Ve=a.stateNode.containerInfo,Zt=!0;break e;case 4:Ve=a.stateNode.containerInfo,Zt=!0;break e}a=a.return}if(Ve===null)throw Error(z(160));Wv(o,l,i),Ve=null,Zt=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Ae(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kv(t,e),t=t.sibling}function Kv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qt(t,e),dn(e),r&4){try{Qo(3,e,e.return),Bs(3,e)}catch(y){Ae(e,e.return,y)}try{Qo(5,e,e.return)}catch(y){Ae(e,e.return,y)}}break;case 1:qt(t,e),dn(e),r&512&&n!==null&&Oi(n,n.return);break;case 5:if(qt(t,e),dn(e),r&512&&n!==null&&Oi(n,n.return),e.flags&32){var i=e.stateNode;try{ll(i,"")}catch(y){Ae(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,a=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&hy(i,o),Ac(a,l);var u=Ac(a,o);for(l=0;l<s.length;l+=2){var d=s[l],c=s[l+1];d==="style"?xy(i,c):d==="dangerouslySetInnerHTML"?yy(i,c):d==="children"?ll(i,c):Xd(i,d,c,u)}switch(a){case"input":Cc(i,o);break;case"textarea":my(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?_i(i,!!o.multiple,f,!1):p!==!!o.multiple&&(o.defaultValue!=null?_i(i,!!o.multiple,o.defaultValue,!0):_i(i,!!o.multiple,o.multiple?[]:"",!1))}i[ml]=o}catch(y){Ae(e,e.return,y)}}break;case 6:if(qt(t,e),dn(e),r&4){if(e.stateNode===null)throw Error(z(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Ae(e,e.return,y)}}break;case 3:if(qt(t,e),dn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{cl(t.containerInfo)}catch(y){Ae(e,e.return,y)}break;case 4:qt(t,e),dn(e);break;case 13:qt(t,e),dn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Rf=Ie())),r&4&&Oh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(u=Je)||d,qt(t,e),Je=u):qt(t,e),dn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(K=e,d=e.child;d!==null;){for(c=K=d;K!==null;){switch(p=K,f=p.child,p.tag){case 0:case 11:case 14:case 15:Qo(4,p,p.return);break;case 1:Oi(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(y){Ae(r,n,y)}}break;case 5:Oi(p,p.return);break;case 22:if(p.memoizedState!==null){Mh(c);continue}}f!==null?(f.return=p,K=f):Mh(c)}d=d.sibling}e:for(d=null,c=e;;){if(c.tag===5){if(d===null){d=c;try{i=c.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=c.stateNode,s=c.memoizedProps.style,l=s!=null&&s.hasOwnProperty("display")?s.display:null,a.style.display=vy("display",l))}catch(y){Ae(e,e.return,y)}}}else if(c.tag===6){if(d===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(y){Ae(e,e.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;d===c&&(d=null),c=c.return}d===c&&(d=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:qt(t,e),dn(e),r&4&&Oh(e);break;case 21:break;default:qt(t,e),dn(e)}}function dn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vv(n)){var r=n;break e}n=n.return}throw Error(z(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ll(i,""),r.flags&=-33);var o=Dh(e);ld(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,a=Dh(e);od(e,a,l);break;default:throw Error(z(161))}}catch(s){Ae(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vb(e,t,n){K=e,qv(e)}function qv(e,t,n){for(var r=(e.mode&1)!==0;K!==null;){var i=K,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||ca;if(!l){var a=i.alternate,s=a!==null&&a.memoizedState!==null||Je;a=ca;var u=Je;if(ca=l,(Je=s)&&!u)for(K=i;K!==null;)l=K,s=l.child,l.tag===22&&l.memoizedState!==null?_h(i):s!==null?(s.return=l,K=s):_h(i);for(;o!==null;)K=o,qv(o),o=o.sibling;K=i,ca=a,Je=u}Lh(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,K=o):Lh(e)}}function Lh(e){for(;K!==null;){var t=K;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||Bs(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Je)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Gt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&xh(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}xh(t,l,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var c=d.dehydrated;c!==null&&cl(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(z(163))}Je||t.flags&512&&id(t)}catch(p){Ae(t,t.return,p)}}if(t===e){K=null;break}if(n=t.sibling,n!==null){n.return=t.return,K=n;break}K=t.return}}function Mh(e){for(;K!==null;){var t=K;if(t===e){K=null;break}var n=t.sibling;if(n!==null){n.return=t.return,K=n;break}K=t.return}}function _h(e){for(;K!==null;){var t=K;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bs(4,t)}catch(s){Ae(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Ae(t,i,s)}}var o=t.return;try{id(t)}catch(s){Ae(t,o,s)}break;case 5:var l=t.return;try{id(t)}catch(s){Ae(t,l,s)}}}catch(s){Ae(t,t.return,s)}if(t===e){K=null;break}var a=t.sibling;if(a!==null){a.return=t.return,K=a;break}K=t.return}}var Wb=Math.ceil,ds=Vn.ReactCurrentDispatcher,Nf=Vn.ReactCurrentOwner,zt=Vn.ReactCurrentBatchConfig,ue=0,He=null,Me=null,We=0,bt=0,Li=Rr(0),Be=0,wl=null,oi=0,Us=0,Af=0,Go=null,ft=null,Rf=0,so=1/0,An=null,fs=!1,ad=null,kr=null,da=!1,pr=null,ps=0,Yo=0,sd=null,Da=-1,Oa=0;function at(){return ue&6?Ie():Da!==-1?Da:Da=Ie()}function wr(e){return e.mode&1?ue&2&&We!==0?We&-We:jb.transition!==null?(Oa===0&&(Oa=Ry()),Oa):(e=fe,e!==0||(e=window.event,e=e===void 0?16:Fy(e.type)),e):1}function rn(e,t,n,r){if(50<Yo)throw Yo=0,sd=null,Error(z(185));Ll(e,n,r),(!(ue&2)||e!==He)&&(e===He&&(!(ue&2)&&(Us|=n),Be===4&&lr(e,We)),yt(e,r),n===1&&ue===0&&!(t.mode&1)&&(so=Ie()+500,Fs&&Ir()))}function yt(e,t){var n=e.callbackNode;jw(e,t);var r=Ya(e,e===He?We:0);if(r===0)n!==null&&Kp(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Kp(n),t===1)e.tag===0?Pb(Fh.bind(null,e)):rv(Fh.bind(null,e)),Sb(function(){!(ue&6)&&Ir()}),n=null;else{switch(Iy(r)){case 1:n=nf;break;case 4:n=Ny;break;case 16:n=Ga;break;case 536870912:n=Ay;break;default:n=Ga}n=tx(n,Qv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qv(e,t){if(Da=-1,Oa=0,ue&6)throw Error(z(327));var n=e.callbackNode;if(Ui()&&e.callbackNode!==n)return null;var r=Ya(e,e===He?We:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=hs(e,r);else{t=r;var i=ue;ue|=2;var o=Yv();(He!==e||We!==t)&&(An=null,so=Ie()+500,ei(e,t));do try{Qb();break}catch(a){Gv(e,a)}while(!0);gf(),ds.current=o,ue=i,Me!==null?t=0:(He=null,We=0,t=Be)}if(t!==0){if(t===2&&(i=Lc(e),i!==0&&(r=i,t=ud(e,i))),t===1)throw n=wl,ei(e,0),lr(e,r),yt(e,Ie()),n;if(t===6)lr(e,r);else{if(i=e.current.alternate,!(r&30)&&!Kb(i)&&(t=hs(e,r),t===2&&(o=Lc(e),o!==0&&(r=o,t=ud(e,o))),t===1))throw n=wl,ei(e,0),lr(e,r),yt(e,Ie()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(z(345));case 2:$r(e,ft,An);break;case 3:if(lr(e,r),(r&130023424)===r&&(t=Rf+500-Ie(),10<t)){if(Ya(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){at(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hc($r.bind(null,e,ft,An),t);break}$r(e,ft,An);break;case 4:if(lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-nn(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=Ie()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wb(r/1960))-r,10<r){e.timeoutHandle=Hc($r.bind(null,e,ft,An),r);break}$r(e,ft,An);break;case 5:$r(e,ft,An);break;default:throw Error(z(329))}}}return yt(e,Ie()),e.callbackNode===n?Qv.bind(null,e):null}function ud(e,t){var n=Go;return e.current.memoizedState.isDehydrated&&(ei(e,t).flags|=256),e=hs(e,t),e!==2&&(t=ft,ft=n,t!==null&&cd(t)),e}function cd(e){ft===null?ft=e:ft.push.apply(ft,e)}function Kb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!ln(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function lr(e,t){for(t&=~Af,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-nn(t),r=1<<n;e[n]=-1,t&=~r}}function Fh(e){if(ue&6)throw Error(z(327));Ui();var t=Ya(e,0);if(!(t&1))return yt(e,Ie()),null;var n=hs(e,t);if(e.tag!==0&&n===2){var r=Lc(e);r!==0&&(t=r,n=ud(e,r))}if(n===1)throw n=wl,ei(e,0),lr(e,t),yt(e,Ie()),n;if(n===6)throw Error(z(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$r(e,ft,An),yt(e,Ie()),null}function If(e,t){var n=ue;ue|=1;try{return e(t)}finally{ue=n,ue===0&&(so=Ie()+500,Fs&&Ir())}}function li(e){pr!==null&&pr.tag===0&&!(ue&6)&&Ui();var t=ue;ue|=1;var n=zt.transition,r=fe;try{if(zt.transition=null,fe=1,e)return e()}finally{fe=r,zt.transition=n,ue=t,!(ue&6)&&Ir()}}function Df(){bt=Li.current,ke(Li)}function ei(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bb(n)),Me!==null)for(n=Me.return;n!==null;){var r=n;switch(pf(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ts();break;case 3:lo(),ke(mt),ke(et),bf();break;case 5:wf(r);break;case 4:lo();break;case 13:ke(Ce);break;case 19:ke(Ce);break;case 10:yf(r.type._context);break;case 22:case 23:Df()}n=n.return}if(He=e,Me=e=br(e.current,null),We=bt=t,Be=0,wl=null,Af=Us=oi=0,ft=Go=null,Vr!==null){for(t=0;t<Vr.length;t++)if(n=Vr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}Vr=null}return e}function Gv(e,t){do{var n=Me;try{if(gf(),Aa.current=cs,us){for(var r=Te.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}us=!1}if(ii=0,Ue=$e=Te=null,qo=!1,vl=0,Nf.current=null,n===null||n.return===null){Be=1,wl=t,Me=null;break}e:{var o=e,l=n.return,a=n,s=t;if(t=We,a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,d=a,c=d.tag;if(!(d.mode&1)&&(c===0||c===11||c===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=Ch(l);if(f!==null){f.flags&=-257,Th(f,l,a,o,t),f.mode&1&&Eh(o,u,t),t=f,s=u;var h=t.updateQueue;if(h===null){var y=new Set;y.add(s),t.updateQueue=y}else h.add(s);break e}else{if(!(t&1)){Eh(o,u,t),Of();break e}s=Error(z(426))}}else if(Se&&a.mode&1){var k=Ch(l);if(k!==null){!(k.flags&65536)&&(k.flags|=256),Th(k,l,a,o,t),hf(ao(s,a));break e}}o=s=ao(s,a),Be!==4&&(Be=2),Go===null?Go=[o]:Go.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Iv(o,s,t);vh(o,g);break e;case 1:a=s;var v=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof v.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(kr===null||!kr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var C=Dv(o,a,t);vh(o,C);break e}}o=o.return}while(o!==null)}Jv(n)}catch(P){t=P,Me===n&&n!==null&&(Me=n=n.return);continue}break}while(!0)}function Yv(){var e=ds.current;return ds.current=cs,e===null?cs:e}function Of(){(Be===0||Be===3||Be===2)&&(Be=4),He===null||!(oi&268435455)&&!(Us&268435455)||lr(He,We)}function hs(e,t){var n=ue;ue|=2;var r=Yv();(He!==e||We!==t)&&(An=null,ei(e,t));do try{qb();break}catch(i){Gv(e,i)}while(!0);if(gf(),ue=n,ds.current=r,Me!==null)throw Error(z(261));return He=null,We=0,Be}function qb(){for(;Me!==null;)Xv(Me)}function Qb(){for(;Me!==null&&!xw();)Xv(Me)}function Xv(e){var t=ex(e.alternate,e,bt);e.memoizedProps=e.pendingProps,t===null?Jv(e):Me=t,Nf.current=null}function Jv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Bb(n,t),n!==null){n.flags&=32767,Me=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Be=6,Me=null;return}}else if(n=$b(n,t,bt),n!==null){Me=n;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);Be===0&&(Be=5)}function $r(e,t,n){var r=fe,i=zt.transition;try{zt.transition=null,fe=1,Gb(e,t,n,r)}finally{zt.transition=i,fe=r}return null}function Gb(e,t,n,r){do Ui();while(pr!==null);if(ue&6)throw Error(z(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(z(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Nw(e,o),e===He&&(Me=He=null,We=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||da||(da=!0,tx(Ga,function(){return Ui(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=zt.transition,zt.transition=null;var l=fe;fe=1;var a=ue;ue|=4,Nf.current=null,Hb(e,n),Kv(n,e),mb(Bc),Xa=!!$c,Bc=$c=null,e.current=n,Vb(n),kw(),ue=a,fe=l,zt.transition=o}else e.current=n;if(da&&(da=!1,pr=e,ps=i),o=e.pendingLanes,o===0&&(kr=null),Sw(n.stateNode),yt(e,Ie()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(fs)throw fs=!1,e=ad,ad=null,e;return ps&1&&e.tag!==0&&Ui(),o=e.pendingLanes,o&1?e===sd?Yo++:(Yo=0,sd=e):Yo=0,Ir(),null}function Ui(){if(pr!==null){var e=Iy(ps),t=zt.transition,n=fe;try{if(zt.transition=null,fe=16>e?16:e,pr===null)var r=!1;else{if(e=pr,pr=null,ps=0,ue&6)throw Error(z(331));var i=ue;for(ue|=4,K=e.current;K!==null;){var o=K,l=o.child;if(K.flags&16){var a=o.deletions;if(a!==null){for(var s=0;s<a.length;s++){var u=a[s];for(K=u;K!==null;){var d=K;switch(d.tag){case 0:case 11:case 15:Qo(8,d,o)}var c=d.child;if(c!==null)c.return=d,K=c;else for(;K!==null;){d=K;var p=d.sibling,f=d.return;if(Hv(d),d===u){K=null;break}if(p!==null){p.return=f,K=p;break}K=f}}}var h=o.alternate;if(h!==null){var y=h.child;if(y!==null){h.child=null;do{var k=y.sibling;y.sibling=null,y=k}while(y!==null)}}K=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,K=l;else e:for(;K!==null;){if(o=K,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Qo(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,K=g;break e}K=o.return}}var v=e.current;for(K=v;K!==null;){l=K;var x=l.child;if(l.subtreeFlags&2064&&x!==null)x.return=l,K=x;else e:for(l=v;K!==null;){if(a=K,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Bs(9,a)}}catch(P){Ae(a,a.return,P)}if(a===l){K=null;break e}var C=a.sibling;if(C!==null){C.return=a.return,K=C;break e}K=a.return}}if(ue=i,Ir(),xn&&typeof xn.onPostCommitFiberRoot=="function")try{xn.onPostCommitFiberRoot(Ds,e)}catch{}r=!0}return r}finally{fe=n,zt.transition=t}}return!1}function zh(e,t,n){t=ao(n,t),t=Iv(e,t,1),e=xr(e,t,1),t=at(),e!==null&&(Ll(e,1,t),yt(e,t))}function Ae(e,t,n){if(e.tag===3)zh(e,e,n);else for(;t!==null;){if(t.tag===3){zh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kr===null||!kr.has(r))){e=ao(n,e),e=Dv(t,e,1),t=xr(t,e,1),e=at(),t!==null&&(Ll(t,1,e),yt(t,e));break}}t=t.return}}function Yb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=at(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(We&n)===n&&(Be===4||Be===3&&(We&130023424)===We&&500>Ie()-Rf?ei(e,0):Af|=n),yt(e,t)}function Zv(e,t){t===0&&(e.mode&1?(t=ta,ta<<=1,!(ta&130023424)&&(ta=4194304)):t=1);var n=at();e=zn(e,t),e!==null&&(Ll(e,t,n),yt(e,n))}function Xb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zv(e,n)}function Jb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(z(314))}r!==null&&r.delete(t),Zv(e,n)}var ex;ex=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,zb(e,t,n);ht=!!(e.flags&131072)}else ht=!1,Se&&t.flags&1048576&&iv(t,is,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ia(e,t),e=t.pendingProps;var i=ro(t,et.current);Bi(t,n),i=Ef(null,t,r,e,i,n);var o=Cf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(o=!0,ns(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xf(t),i.updater=$s,t.stateNode=i,i._reactInternals=t,Yc(t,r,e,n),t=Zc(null,t,r,!0,o,n)):(t.tag=0,Se&&o&&ff(t),rt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ia(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=eS(r),e=Gt(r,e),i){case 0:t=Jc(null,t,r,e,n);break e;case 1:t=Nh(null,t,r,e,n);break e;case 11:t=Ph(null,t,r,e,n);break e;case 14:t=jh(null,t,r,Gt(r.type,e),n);break e}throw Error(z(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Jc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Nh(e,t,r,i,n);case 3:e:{if(_v(t),e===null)throw Error(z(387));
vendor: 9,360 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,cv(e,t),as(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=ao(Error(z(423)),t),t=Ah(e,t,r,n,i);break e}else if(r!==i){i=ao(Error(z(424)),t),t=Ah(e,t,r,n,i);break e}else for(Et=vr(t.stateNode.containerInfo.firstChild),Ct=t,Se=!0,en=null,n=sv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(io(),r===i){t=$n(e,t,n);break e}rt(e,t,r,n)}t=t.child}return t;case 5:return dv(t),e===null&&qc(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,Uc(r,i)?l=null:o!==null&&Uc(r,o)&&(t.flags|=32),Mv(e,t),rt(e,t,l,n),t.child;case 6:return e===null&&qc(t),null;case 13:return Fv(e,t,n);case 4:return kf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oo(t,null,r,n):rt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Ph(e,t,r,i,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,ye(os,r._currentValue),r._currentValue=l,o!==null)if(ln(o.value,l)){if(o.children===i.children&&!mt.current){t=$n(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){l=o.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=Mn(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?s.next=s:(s.next=d.next,d.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Qc(o.return,n,t),a.lanes|=n;break}s=s.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(z(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Qc(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}rt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Bi(t,n),i=$t(i),r=r(i),t.flags|=1,rt(e,t,r,n),t.child;case 14:return r=t.type,i=Gt(r,t.pendingProps),i=Gt(r.type,i),jh(e,t,r,i,n);case 15:return Ov(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),Ia(e,t),t.tag=1,gt(r)?(e=!0,ns(t)):e=!1,Bi(t,n),Rv(t,r,i),Yc(t,r,i,n),Zc(null,t,r,!0,e,n);case 19:return zv(e,t,n);case 22:return Lv(e,t,n)}throw Error(z(156,t.tag))};function tx(e,t){return jy(e,t)}function Zb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,n,r){return new Zb(e,t,n,r)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eS(e){if(typeof e=="function")return Lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zd)return 11;if(e===ef)return 14}return 2}function br(e,t){var n=e.alternate;return n===null?(n=Ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function La(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Lf(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ci:return ti(n.children,i,o,t);case Jd:l=8,i|=8;break;case kc:return e=Ft(12,n,t,i|2),e.elementType=kc,e.lanes=o,e;case wc:return e=Ft(13,n,t,i),e.elementType=wc,e.lanes=o,e;case bc:return e=Ft(19,n,t,i),e.elementType=bc,e.lanes=o,e;case dy:return Hs(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uy:l=10;break e;case cy:l=9;break e;case Zd:l=11;break e;case ef:l=14;break e;case rr:l=16,r=null;break e}throw Error(z(130,e==null?e:typeof e,""))}return t=Ft(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ti(e,t,n,r){return e=Ft(7,e,r,t),e.lanes=n,e}function Hs(e,t,n,r){return e=Ft(22,e,r,t),e.elementType=dy,e.lanes=n,e.stateNode={isHidden:!1},e}function Bu(e,t,n){return e=Ft(6,e,null,t),e.lanes=n,e}function Uu(e,t,n){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=bu(0),this.expirationTimes=bu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Mf(e,t,n,r,i,o,l,a,s){return e=new tS(e,t,n,a,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ft(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xf(o),e}function nS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ei,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function nx(e){if(!e)return Cr;e=e._reactInternals;e:{if(di(e)!==e||e.tag!==1)throw Error(z(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(z(171))}if(e.tag===1){var n=e.type;if(gt(n))return nv(e,n,t)}return t}function rx(e,t,n,r,i,o,l,a,s){return e=Mf(n,r,!0,e,i,o,l,a,s),e.context=nx(null),n=e.current,r=at(),i=wr(n),o=Mn(r,i),o.callback=t??null,xr(n,o,i),e.current.lanes=i,Ll(e,i,r),yt(e,r),e}function Vs(e,t,n,r){var i=t.current,o=at(),l=wr(i);return n=nx(n),t.context===null?t.context=n:t.pendingContext=n,t=Mn(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xr(i,t,l),e!==null&&(rn(e,i,l,o),Na(e,i,l)),l}function ms(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $h(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _f(e,t){$h(e,t),(e=e.alternate)&&$h(e,t)}function rS(){return null}var ix=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ff(e){this._internalRoot=e}Ws.prototype.render=Ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(z(409));Vs(e,t,null,null)};Ws.prototype.unmount=Ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;li(function(){Vs(null,e,null,null)}),t[Fn]=null}};function Ws(e){this._internalRoot=e}Ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ly();e={blockedOn:null,target:e,priority:t};for(var n=0;n<or.length&&t!==0&&t<or[n].priority;n++);or.splice(n,0,e),n===0&&_y(e)}};function zf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bh(){}function iS(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=ms(l);o.call(u)}}var l=rx(t,r,e,0,null,!1,!1,"",Bh);return e._reactRootContainer=l,e[Fn]=l.current,pl(e.nodeType===8?e.parentNode:e),li(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=ms(s);a.call(u)}}var s=Mf(e,0,!1,null,null,!1,!1,"",Bh);return e._reactRootContainer=s,e[Fn]=s.current,pl(e.nodeType===8?e.parentNode:e),li(function(){Vs(t,s,n,r)}),s}function qs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var a=i;i=function(){var s=ms(l);a.call(s)}}Vs(t,l,e,i)}else l=iS(n,t,e,i,r);return ms(l)}Dy=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=$o(t.pendingLanes);n!==0&&(rf(t,n|1),yt(t,Ie()),!(ue&6)&&(so=Ie()+500,Ir()))}break;case 13:li(function(){var r=zn(e,1);if(r!==null){var i=at();rn(r,e,1,i)}}),_f(e,1)}};of=function(e){if(e.tag===13){var t=zn(e,134217728);if(t!==null){var n=at();rn(t,e,134217728,n)}_f(e,134217728)}};Oy=function(e){if(e.tag===13){var t=wr(e),n=zn(e,t);if(n!==null){var r=at();rn(n,e,t,r)}_f(e,t)}};Ly=function(){return fe};My=function(e,t){var n=fe;try{return fe=e,t()}finally{fe=n}};Ic=function(e,t,n){switch(t){case"input":if(Cc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=_s(r);
40if(!i)throw Error(z(90));py(r),Cc(r,i)}}}break;case"textarea":my(e,n);break;case"select":t=n.value,t!=null&&_i(e,!!n.multiple,t,!1)}};by=If;Sy=li;var oS={usingClientEntryPoint:!1,Events:[_l,Ni,_s,ky,wy,If]},Ro={findFiberByHostInstance:Hr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lS={bundleType:Ro.bundleType,version:Ro.version,rendererPackageName:Ro.rendererPackageName,rendererConfig:Ro.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Vn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ty(e),e===null?null:e.stateNode},findFiberByHostInstance:Ro.findFiberByHostInstance||rS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fa.isDisabled&&fa.supportsFiber)try{Ds=fa.inject(lS),xn=fa}catch{}}Nt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oS;Nt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zf(t))throw Error(z(200));return nS(e,t,null,n)};Nt.createRoot=function(e,t){if(!zf(e))throw Error(z(299));var n=!1,r="",i=ix;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Mf(e,1,!1,null,null,n,!1,r,i),e[Fn]=t.current,pl(e.nodeType===8?e.parentNode:e),new Ff(t)};Nt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(z(188)):(e=Object.keys(e).join(","),Error(z(268,e)));return e=Ty(t),e=e===null?null:e.stateNode,e};Nt.flushSync=function(e){return li(e)};Nt.hydrate=function(e,t,n){if(!Ks(t))throw Error(z(200));return qs(null,e,t,!0,n)};Nt.hydrateRoot=function(e,t,n){if(!zf(e))throw Error(z(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=ix;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=rx(t,null,e,1,n??null,i,!1,o,l),e[Fn]=t.current,pl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Ws(t)};Nt.render=function(e,t,n){if(!Ks(t))throw Error(z(200));return qs(null,e,t,!1,n)};Nt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(z(40));return e._reactRootContainer?(li(function(){qs(null,null,e,!1,function(){e._reactRootContainer=null,e[Fn]=null})}),!0):!1};Nt.unstable_batchedUpdates=If;Nt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ks(n))throw Error(z(200));if(e==null||e._reactInternals===void 0)throw Error(z(38));return qs(e,t,n,!1,r)};Nt.version="18.3.1-next-f1338f8080-20240426";function ox(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ox)}catch(e){console.error(e)}}ox(),oy.exports=Nt;var zl=oy.exports;const lx=ui(zl);var ax,Uh=zl;ax=Uh.createRoot,Uh.hydrateRoot;var aS=typeof Element<"u",sS=typeof Map=="function",uS=typeof Set=="function",cS=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Ma(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Ma(e[r],t[r]))return!1;return!0}var o;if(sS&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!Ma(r.value[1],t.get(r.value[0])))return!1;return!0}if(uS&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(cS&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(aS&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Ma(e[
40i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var dS=function(t,n){try{return Ma(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fS=ui(dS);var pS=function(e,t,n,r,i,o,l,a){if(!e){var s;if(t===void 0)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,l,a],d=0;s=new Error(t.replace(/%s/g,function(){return u[d++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}},hS=pS;const Hh=ui(hS);var mS=function(t,n,r,i){var o=r?r.call(i,t,n):void 0;if(o!==void 0)return!!o;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var l=Object.keys(t),a=Object.keys(n);if(l.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(n),u=0;u<l.length;u++){var d=l[u];if(!s(d))return!1;var c=t[d],p=n[d];if(o=r?r.call(i,c,p,d):void 0,o===!1||o===void 0&&c!==p)return!1}return!0};const gS=ui(mS);var sx=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(sx||{}),Hu={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Vh=Object.values(sx),$f={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},yS=Object.entries($f).reduce((e,[t,n])=>(e[n]=t,e),{}),tn="data-rh",Hi={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Vi=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},vS=e=>{let t=Vi(e,"title");const n=Vi(e,Hi.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Vi(e,Hi.DEFAULT_TITLE);return t||r||void 0},xS=e=>Vi(e,Hi.ON_CHANGE_CLIENT_STATE)||(()=>{}),Vu=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),kS=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let o=0;o<i.length;o+=1){const a=i[o].toLowerCase();if(e.indexOf(a)!==-1&&r[a])return n.concat(r)}}return n},[]),wS=e=>console&&typeof console.warn=="function"&&console.warn(e),Io=(e,t,n)=>{const r={};return n.filter(i=>Array.isArray(i[e])?!0:(typeof i[e]<"u"&&wS(`Helmet: ${e} should be of type "Array". Instead found type "${typeof i[e]}"`),!1)).map(i=>i[e]).reverse().reduce((i,o)=>{const l={};o.filter(s=>{let u;const d=Object.keys(s);for(let p=0;p<d.length;p+=1){const f=d[p],h=f.toLowerCase();t.indexOf(h)!==-1&&!(u==="rel"&&s[u].toLowerCase()==="canonical")&&!(h==="rel"&&s[h].toLowerCase()==="stylesheet")&&(u=h),t.indexOf(f)!==-1&&(f==="innerHTML"||f==="cssText"||f==="itemprop")&&(u=f)}if(!u||!s[u])return!1;const c=s[u].toLowerCase();return r[u]||(r[u]={}),l[u]||(l[u]={}),r[u][c]?!1:(l[u][c]=!0,!0)}).reverse().forEach(s=>i.push(s));const a=Object.keys(l);for(let s=0;s<a.length;s+=1){const u=a[s],d={...r[u],...l[u]};r[u]=d}return i},[]).reverse()},bS=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},SS=e=>({baseTag:kS(["href"],e),bodyAttributes:Vu("bodyAttributes",e),defer:Vi(e,Hi.DEFER),encode:Vi(e,Hi.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Vu("htmlAttributes",e),linkTags:Io("link",["rel","href"],e),metaTags:Io("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Io("noscript",["innerHTML"],e),onChangeClientState:xS(e),scriptTags:Io("script",["src","innerHTML"],e),styleTags:Io("style",["cssText"],e),title:vS(e),titleAttributes:Vu("titleAttributes",e),prioritizeSeoTags:bS(e,Hi.PRIORITIZE_SEO_TAGS)}),ux=e=>Array.isArray(e)?e.join(""):e,ES=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},Wu=(e,t)=>
40Array.isArray(e)?e.reduce((n,r)=>(ES(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Wh=(e,t)=>({...e,[t]:void 0}),CS=["noscript","script","style"],dd=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),cx=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),TS=(e,t,n,r)=>{const i=cx(n),o=ux(t);return i?`<${e} ${tn}="true" ${i}>${dd(o,r)}</${e}>`:`<${e} ${tn}="true">${dd(o,r)}</${e}>`},PS=(e,t,n=!0)=>t.reduce((r,i)=>{const o=i,l=Object.keys(o).filter(u=>!(u==="innerHTML"||u==="cssText")).reduce((u,d)=>{const c=typeof o[d]>"u"?d:`${d}="${dd(o[d],n)}"`;return u?`${u} ${c}`:c},""),a=o.innerHTML||o.cssText||"",s=CS.indexOf(e)===-1;return`${r}<${e} ${tn}="true" ${l}${s?"/>":`>${a}</${e}>`}`},""),dx=(e,t={})=>Object.keys(e).reduce((n,r)=>{const i=$f[r];return n[i||r]=e[r],n},t),jS=(e,t,n)=>{const r={key:t,[tn]:!0},i=dx(n,r);return[$.createElement("title",i,t)]},_a=(e,t)=>t.map((n,r)=>{const i={key:r,[tn]:!0};return Object.keys(n).forEach(o=>{const a=$f[o]||o;if(a==="innerHTML"||a==="cssText"){const s=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:s}}else i[a]=n[o]}),$.createElement(e,i)}),It=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>jS(e,t.title,t.titleAttributes),toString:()=>TS(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>dx(t),toString:()=>cx(t)};default:return{toComponent:()=>_a(e,t),toString:()=>PS(e,t,n)}}},NS=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const i=Wu(e,Hu.meta),o=Wu(t,Hu.link),l=Wu(n,Hu.script);return{priorityMethods:{toComponent:()=>[..._a("meta",i.priority),..._a("link",o.priority),..._a("script",l.priority)],toString:()=>`${It("meta",i.priority,r)} ${It("link",o.priority,r)} ${It("script",l.priority,r)}`},metaTags:i.default,linkTags:o.default,scriptTags:l.default}},AS=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:o,styleTags:l,title:a="",titleAttributes:s,prioritizeSeoTags:u}=e;let{linkTags:d,metaTags:c,scriptTags:p}=e,f={toComponent:()=>{},toString:()=>""};return u&&({priorityMethods:f,linkTags:d,metaTags:c,scriptTags:p}=NS(e)),{priority:f,base:It("base",t,r),bodyAttributes:It("bodyAttributes",n,r),htmlAttributes:It("htmlAttributes",i,r),link:It("link",d,r),meta:It("meta",c,r),noscript:It("noscript",o,r),script:It("script",p,r),style:It("style",l,r),title:It("title",{title:a,titleAttributes:s},r)}},fd=AS,pa=[],fx=!!(typeof window<"u"&&window.document&&window.document.createElement),pd=class{constructor(e,t){Pn(this,"instances",[]);Pn(this,"canUseDOM",fx);Pn(this,"context");Pn(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?pa:this.instances,add:e=>{(this.canUseDOM?pa:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?pa:this.instances).indexOf(e);(this.canUseDOM?pa:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=fd({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},RS={},px=$.createContext(RS),qr,hx=(qr=class extends w.Component{constructor(n){super(n);Pn(this,"helmetData");this.helmetData=new pd(this.props.context||{},qr.canUseDOM)}render(){return $.createElement(px.Provider,{value:this.helmetData.value},this.props.children)}},Pn(qr,"canUseDOM",fx),qr),ki=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${tn}]`),i=[].slice.call(r),o=[];let l;return t&&t.length&&t.forEach(a=>{const s=document.createElement(e);for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u))if(u==="innerHTML")s.innerHTML=a.innerHTML;else if(u==="cssText")s.styleSheet?s.styleSheet.cssText=a.cssText:s.appendChild(document.createTextNode(a.cssText));else{const d=u,c=typeof a[d]>"u"?"":a[d];s.setAttribute(u,c)}s.setAttribute(tn,"true"),i.some((u,d)=>(l=d,s.isEqualNode(u)))?i.splice(l,1):o.push(s)}
40),i.forEach(a=>{var s;return(s=a.parentNode)==null?void 0:s.removeChild(a)}),o.forEach(a=>n.appendChild(a)),{oldTags:i,newTags:o}},hd=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(tn),i=r?r.split(","):[],o=[...i],l=Object.keys(t);for(const a of l){const s=t[a]||"";n.getAttribute(a)!==s&&n.setAttribute(a,s),i.indexOf(a)===-1&&i.push(a);const u=o.indexOf(a);u!==-1&&o.splice(u,1)}for(let a=o.length-1;a>=0;a-=1)n.removeAttribute(o[a]);i.length===o.length?n.removeAttribute(tn):n.getAttribute(tn)!==l.join(",")&&n.setAttribute(tn,l.join(","))},IS=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=ux(e)),hd("title",t)},Kh=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:o,metaTags:l,noscriptTags:a,onChangeClientState:s,scriptTags:u,styleTags:d,title:c,titleAttributes:p}=e;hd("body",r),hd("html",i),IS(c,p);const f={baseTag:ki("base",n),linkTags:ki("link",o),metaTags:ki("meta",l),noscriptTags:ki("noscript",a),scriptTags:ki("script",u),styleTags:ki("style",d)},h={},y={};Object.keys(f).forEach(k=>{const{newTags:g,oldTags:v}=f[k];g.length&&(h[k]=g),v.length&&(y[k]=f[k].oldTags)}),t&&t(),s(e,h,y)},Do=null,DS=e=>{Do&&cancelAnimationFrame(Do),e.defer?Do=requestAnimationFrame(()=>{Kh(e,()=>{Do=null})}):(Kh(e),Do=null)},OS=DS,qh=class extends w.Component{constructor(){super(...arguments);Pn(this,"rendered",!1)}shouldComponentUpdate(t){return!gS(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const i=SS(t.get().map(o=>{const l={...o.props};return delete l.context,l}));hx.canUseDOM?OS(i):fd&&(r=fd(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},vc,Bf=(vc=class extends w.Component{shouldComponentUpdate(e){return!fS(Wh(this.props,"helmetData"),Wh(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return Hh(Vh.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Vh.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Hh(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return $.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:i,...o}=r.props,l=Object.keys(o).reduce((s,u)=>(s[yS[u]||u]=o[u],s),{});let{type:a}=r;
40switch(typeof a=="symbol"?a=a.toString():this.warnOnInvalidChildren(r,i),a){case"Symbol(react.fragment)":t=this.mapChildrenToProps(i,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,l,i);break;default:t=this.mapObjectTypeChildren(r,t,l,i);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof pd)){const i=r;r=new pd(i.context,!0),delete n.helmetData}return r?$.createElement(qh,{...n,context:r.value}):$.createElement(px.Consumer,null,i=>$.createElement(qh,{...n,context:i}))}},Pn(vc,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),vc);const LS=1,MS=1e6;let Ku=0;function _S(){return Ku=(Ku+1)%Number.MAX_SAFE_INTEGER,Ku.toString()}const qu=new Map,Qh=e=>{if(qu.has(e))return;const t=setTimeout(()=>{qu.delete(e),Xo({type:"REMOVE_TOAST",toastId:e})},MS);qu.set(e,t)},FS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,LS)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Qh(n):e.toasts.forEach(r=>{Qh(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Fa=[];let za={toasts:[]};function Xo(e){za=FS(za,e),Fa.forEach(t=>{t(za)})}function zS({...e}){const t=_S(),n=i=>Xo({type:"UPDATE_TOAST",toast:{...i,id:t}}),r=()=>Xo({type:"DISMISS_TOAST",toastId:t});return Xo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||r()}}}),{id:t,dismiss:r,update:n}}function mx(){const[e,t]=w.useState(za);return w.useEffect(()=>(Fa.push(t),()=>{const n=Fa.indexOf(t);n>-1&&Fa.splice(n,1)}),[e]),{...e,toast:zS,dismiss:n=>Xo({type:"DISMISS_TOAST",toastId:n})}}function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function Gh(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gx(...e){return t=>{let n=!1;const r=e.map(i=>{const o=Gh(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():Gh(e[i],null)}}}}function qe(...e){return w.useCallback(gx(...e),e)}function $l(e,t=[]){let n=[];function r(o,l){const a=w.createContext(l),s=n.length;n=[...n,l];const u=c=>{var g;const{scope:p,children:f,...h}=c,y=((g=p==null?void 0:p[e])==null?void 0:g[s])||a,k=w.useMemo(()=>h,Object.values(h));return m.jsx(y.Provider,{value:k,children:f})};u.displayName=o+"Provider";function d(c,p){var y;const f=((y=p==null?void 0:p[e])==null?void 0:y[s])||a,h=w.useContext(f);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${o}\``)}return[u,d]}const i=()=>{const o=n.map(l=>w.createContext(l));return function(a){const s=(a==null?void 0:a[e])||o;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:s}}),[a,s])}};return i.scopeName=e,[r,$S(i,...t)]}function $S(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((a,{useScope:s,scopeName:u})=>{const c=s(o)[`__scope${u}`];return{...a,...c}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function gs(e){const t=US(e),n=w.forwardRef((r,i)=>{const{children:o,...l}=r,a=w.Children.toArray(o),s=a.find(VS);if(s){const u=s.props.children,d=a.map(c=>c===s?w.Children.count(u)>1?w.Children.only(null):w.isValidElement(u)?u.props.children:null:c);return m.jsx(t,{...l,ref:i,children:w.isValidElement(u)?w.cloneElement(u,void 0,d):null})}return m.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}var BS=gs("Slot");function US(e){const t=w.forwardRef((n,r)=>{const{children:i,...o}=n;if(w.isValidElement(i)){const l=KS(i),a=WS(o,i.props);return i.type!==w.Fragment&&(a.ref=r?gx(r,l):l),w.cloneElement(i,a)}return w.Children.count(i)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yx=Symbol("radix.slottable");function HS(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=yx,t}function VS(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yx}function WS(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{const s=o(...a);return i(...a),s}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}
vendor: 9,308 bytes, line 40
40:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function KS(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function qS(e){const t=e+"CollectionProvider",[n,r]=$l(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=y=>{const{scope:k,children:g}=y,v=$.useRef(null),x=$.useRef(new Map).current;return m.jsx(i,{scope:k,itemMap:x,collectionRef:v,children:g})};l.displayName=t;const a=e+"CollectionSlot",s=gs(a),u=$.forwardRef((y,k)=>{const{scope:g,children:v}=y,x=o(a,g),C=qe(k,x.collectionRef);return m.jsx(s,{ref:C,children:v})});u.displayName=a;const d=e+"CollectionItemSlot",c="data-radix-collection-item",p=gs(d),f=$.forwardRef((y,k)=>{const{scope:g,children:v,...x}=y,C=$.useRef(null),P=qe(k,C),E=o(d,g);return $.useEffect(()=>(E.itemMap.set(C,{ref:C,...x}),()=>void E.itemMap.delete(C))),m.jsx(p,{[c]:"",ref:P,children:v})});f.displayName=d;function h(y){const k=o(e+"CollectionConsumer",y);return $.useCallback(()=>{const v=k.collectionRef.current;if(!v)return[];const x=Array.from(v.querySelectorAll(`[${c}]`));return Array.from(k.itemMap.values()).sort((E,j)=>x.indexOf(E.ref.current)-x.indexOf(j.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:u,ItemSlot:f},h,r]}var QS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],De=QS.reduce((e,t)=>{const n=gs(`Primitive.${t}`),r=w.forwardRef((i,o)=>{const{asChild:l,...a}=i,s=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(s,{...a,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vx(e,t){e&&zl.flushSync(()=>e.dispatchEvent(t))}function ot(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function GS(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e);w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var YS="DismissableLayer",md="dismissableLayer.update",XS="dismissableLayer.pointerDownOutside",JS="dismissableLayer.focusOutside",Yh,xx=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Uf=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:a,...s}=e,u=w.useContext(xx),[d,c]=w.useState(null),p=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=w.useState({}),h=qe(t,j=>c(j)),y=Array.from(u.layers),[k]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(k),v=d?y.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,C=v>=g,P=eE(j=>{const R=j.target,A=[...u.branches].some(T=>T.contains(R));!C||A||(i==null||i(j),l==null||l(j),j.defaultPrevented||a==null||a())},p),E=tE(j=>{const R=j.target;[...u.branches].some(T=>T.contains(R))||(o==null||o(j),l==null||l(j),j.defaultPrevented||a==null||a())},p);return GS(j=>{v===u.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&a&&(j.preventDefault(),a()))},p),w.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Yh=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Xh(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Yh)}},[d,p,n,u]),w.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Xh())},[d,u]),w.useEffect(()=>{const j=()=>f({});return document.addEventListener(md,j),()=>document.removeEventListener(md,j)},[]),m.jsx(De.div,{...s,ref:h,style:{pointerEvents:x?C?"auto":"none":void 0,...e.style},onFocusCapture:ge(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ge(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ge(e.onPointerDownCapture,P.onPointerDownCapture)})});Uf.displayName=YS;var ZS="DismissableLayerBranch",kx=w.forwardRef((e,t)=>{const n=w.useContext(xx),r=w.useRef(null),i=qe(t,r);return w.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),m.jsx(De.div,{...e,ref:i})});kx.displayName=ZS;function eE(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e),r=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let s=function(){wx(XS,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=s,t.addEventListener("click",i.current,{once:!0})):s()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tE(e,t=globalThis==null?void 0:globalThis.document){const n=ot(e),r=w.useRef(!1);return w.useEffect(()=>{const i=o=>{o.target&&!r.current&&wx(JS,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Xh(){const e=new CustomEvent(md);document.dispatchEvent(e)}function wx(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?vx(i,o):i.dispatchEvent(o)}var nE=Uf,rE=kx,Bn=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},iE="Portal",bx=w.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[i,o]=w.useState(!1);Bn(()=>o(!0),[]);const l=n||i&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return l?lx.createPortal(m.jsx(De.div,{...r,ref:t}),l):null});bx.displayName=iE;function oE(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var fi=e=>{const{present:t,children:n}=e,r=lE(t),i=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),o=qe(r.ref,aE(i));return typeof n=="function"||r.isPresent?w.cloneElement(i,{ref:o}):null};fi.displayName="Presence";function lE(e){const[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),o=w.useRef("none"),l=e?"mounted":"unmounted",[a,s]=oE(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=ha(r.current);o.current=a==="mounted"?u:"none"},[a]),Bn(()=>{const u=r.current,d=i.current;if(d!==e){const p=o.current,f=ha(u);e?s("MOUNT"):f==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==f?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),Bn(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=f=>{const y=ha(r.current).includes(f.animationName);if(f.target===t&&y&&(s("ANIMATION_END"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},p=f=>{f.target===t&&(o.current=ha(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ha(e){return(e==null?void 0:e.animationName)||"none"}function aE(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sE=ry[" useInsertionEffect ".trim().toString()]||Bn;function uE({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,l]=cE({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:i;{const d=w.useRef(e!==void 0);w.useEffect(()=>{const c=d.current;c!==a&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=w.useCallback(d=>{var c;if(a){const p=dE(d)?d(e):d;p!==e&&((c=l.current)==null||c.call(l,p))}else o(d)},[a,e,o,l]);return[s,u]}function cE({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),i=w.useRef(n),o=w.useRef(t);return sE(()=>{o.current=t},[t]),w.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function dE(e){return typeof e=="function"}var fE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),pE="VisuallyHidden",Qs=w.forwardRef((e,t)=>
40m.jsx(De.span,{...e,ref:t,style:{...fE,...e.style}}));Qs.displayName=pE;var hE=Qs,Hf="ToastProvider",[Vf,mE,gE]=qS("Toast"),[Sx,oL]=$l("Toast",[gE]),[yE,Gs]=Sx(Hf),Ex=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:l}=e,[a,s]=w.useState(null),[u,d]=w.useState(0),c=w.useRef(!1),p=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hf}\`. Expected non-empty \`string\`.`),m.jsx(Vf.Provider,{scope:t,children:m.jsx(yE,{scope:t,label:n,duration:r,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:a,onViewportChange:s,onToastAdd:w.useCallback(()=>d(f=>f+1),[]),onToastRemove:w.useCallback(()=>d(f=>f-1),[]),isFocusedToastEscapeKeyDownRef:c,isClosePausedRef:p,children:l})})};Ex.displayName=Hf;var Cx="ToastViewport",vE=["F8"],gd="toast.viewportPause",yd="toast.viewportResume",Tx=w.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=vE,label:i="Notifications ({hotkey})",...o}=e,l=Gs(Cx,n),a=mE(n),s=w.useRef(null),u=w.useRef(null),d=w.useRef(null),c=w.useRef(null),p=qe(t,c,l.onViewportChange),f=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=l.toastCount>0;w.useEffect(()=>{const k=g=>{var x;r.length!==0&&r.every(C=>g[C]||g.code===C)&&((x=c.current)==null||x.focus())};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[r]),w.useEffect(()=>{const k=s.current,g=c.current;if(h&&k&&g){const v=()=>{if(!l.isClosePausedRef.current){const E=new CustomEvent(gd);g.dispatchEvent(E),l.isClosePausedRef.current=!0}},x=()=>{if(l.isClosePausedRef.current){const E=new CustomEvent(yd);g.dispatchEvent(E),l.isClosePausedRef.current=!1}},C=E=>{!k.contains(E.relatedTarget)&&x()},P=()=>{k.contains(document.activeElement)||x()};return k.addEventListener("focusin",v),k.addEventListener("focusout",C),k.addEventListener("pointermove",v),k.addEventListener("pointerleave",P),window.addEventListener("blur",v),window.addEventListener("focus",x),()=>{k.removeEventListener("focusin",v),k.removeEventListener("focusout",C),k.removeEventListener("pointermove",v),k.removeEventListener("pointerleave",P),window.removeEventListener("blur",v),window.removeEventListener("focus",x)}}},[h,l.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:k})=>{const v=a().map(x=>{const C=x.ref.current,P=[C,...RE(C)];return k==="forwards"?P:P.reverse()});return(k==="forwards"?v.reverse():v).flat()},[a]);return w.useEffect(()=>{const k=c.current;if(k){const g=v=>{var P,E,j;const x=v.altKey||v.ctrlKey||v.metaKey;if(v.key==="Tab"&&!x){const R=document.activeElement,A=v.shiftKey;if(v.target===k&&A){(P=u.current)==null||P.focus();return}const N=y({tabbingDirection:A?"backwards":"forwards"}),F=N.findIndex(_=>_===R);Qu(N.slice(F+1))?v.preventDefault():A?(E=u.current)==null||E.focus():(j=d.current)==null||j.focus()}};return k.addEventListener("keydown",g),()=>k.removeEventListener("keydown",g)}},[a,y]),m.jsxs(rE,{ref:s,role:"region","aria-label":i.replace("{hotkey}",f),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&m.jsx(vd,{ref:u,onFocusFromOutsideViewport:()=>{const k=y({tabbingDirection:"forwards"});Qu(k)}}),m.jsx(Vf.Slot,{scope:n,children:m.jsx(De.ol,{tabIndex:-1,...o,ref:p})}),h&&m.jsx(vd,{ref:d,onFocusFromOutsideViewport:()=>{const k=y({tabbingDirection:"backwards"});Qu(k)}})]})});Tx.displayName=Cx;var Px="ToastFocusProxy",vd=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,o=Gs(Px,n);return m.jsx(Qs,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:l=>{var u;const a=l.relatedTarget;!((u=o.viewport)!=null&&u.contains(a))&&r()}})});vd.displayName=Px;var Bl="Toast",xE="toast.swipeStart",kE="toast.swipeMove",wE="toast.swipeCancel",bE="toast.swipeEnd",jx=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...l}=e,[a,s]=uE({prop:r,defaultProp:i??!0,onChange:o,caller:Bl});return m.jsx(fi,{present:n||a,children:m.jsx(CE,{open:a,...l,ref:t,onClose:()=>s(!1),onPause:ot(e.onPause),onResume:ot(e.onResume),onSwipeStart:ge(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ge(e.onSwipeMove,u=>{const{x:d,y:c}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${c}px`)}),onSwipeCancel:ge(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ge(e.onSwipeEnd,u=>{const{x:d,y:c}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${c}px`),s(!1)})})})});jx.displayName=Bl;var[SE,EE]=Sx(Bl,{onClose(){}}
40),CE=w.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:i,open:o,onClose:l,onEscapeKeyDown:a,onPause:s,onResume:u,onSwipeStart:d,onSwipeMove:c,onSwipeCancel:p,onSwipeEnd:f,...h}=e,y=Gs(Bl,n),[k,g]=w.useState(null),v=qe(t,_=>g(_)),x=w.useRef(null),C=w.useRef(null),P=i||y.duration,E=w.useRef(0),j=w.useRef(P),R=w.useRef(0),{onToastAdd:A,onToastRemove:T}=y,O=ot(()=>{var H;(k==null?void 0:k.contains(document.activeElement))&&((H=y.viewport)==null||H.focus()),l()}),N=w.useCallback(_=>{!_||_===1/0||(window.clearTimeout(R.current),E.current=new Date().getTime(),R.current=window.setTimeout(O,_))},[O]);w.useEffect(()=>{const _=y.viewport;if(_){const H=()=>{N(j.current),u==null||u()},W=()=>{const Q=new Date().getTime()-E.current;j.current=j.current-Q,window.clearTimeout(R.current),s==null||s()};return _.addEventListener(gd,W),_.addEventListener(yd,H),()=>{_.removeEventListener(gd,W),_.removeEventListener(yd,H)}}},[y.viewport,P,s,u,N]),w.useEffect(()=>{o&&!y.isClosePausedRef.current&&N(P)},[o,P,y.isClosePausedRef,N]),w.useEffect(()=>(A(),()=>T()),[A,T]);const F=w.useMemo(()=>k?Lx(k):null,[k]);return y.viewport?m.jsxs(m.Fragment,{children:[F&&m.jsx(TE,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:F}),m.jsx(SE,{scope:n,onClose:O,children:zl.createPortal(m.jsx(Vf.ItemSlot,{scope:n,children:m.jsx(nE,{asChild:!0,onEscapeKeyDown:ge(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||O(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:m.jsx(De.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...h,ref:v,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ge(e.onKeyDown,_=>{_.key==="Escape"&&(a==null||a(_.nativeEvent),_.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:ge(e.onPointerDown,_=>{_.button===0&&(x.current={x:_.clientX,y:_.clientY})}),onPointerMove:ge(e.onPointerMove,_=>{if(!x.current)return;const H=_.clientX-x.current.x,W=_.clientY-x.current.y,Q=!!C.current,D=["left","right"].includes(y.swipeDirection),L=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,S=D?L(0,H):0,G=D?0:L(0,W),q=_.pointerType==="touch"?10:2,b={x:S,y:G},V={originalEvent:_,delta:b};Q?(C.current=b,ma(kE,c,V,{discrete:!1})):Jh(b,y.swipeDirection,q)?(C.current=b,ma(xE,d,V,{discrete:!1}),_.target.setPointerCapture(_.pointerId)):(Math.abs(H)>q||Math.abs(W)>q)&&(x.current=null)}),onPointerUp:ge(e.onPointerUp,_=>{const H=C.current,W=_.target;if(W.hasPointerCapture(_.pointerId)&&W.releasePointerCapture(_.pointerId),C.current=null,x.current=null,H){const Q=_.currentTarget,D={originalEvent:_,delta:H};Jh(H,y.swipeDirection,y.swipeThreshold)?ma(bE,f,D,{discrete:!0}):ma(wE,p,D,{discrete:!0}),Q.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),TE=e=>{const{__scopeToast:t,children:n,...r}=e,i=Gs(Bl,t),[o,l]=w.useState(!1),[a,s]=w.useState(!1);return NE(()=>l(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:m.jsx(bx,{asChild:!0,children:m.jsx(Qs,{...r,children:o&&m.jsxs(m.Fragment,{children:[i.label," ",n]})})})},PE="ToastTitle",Nx=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return m.jsx(De.div,{...r,ref:t})});Nx.displayName=PE;var jE="ToastDescription",Ax=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return m.jsx(De.div,{...r,ref:t})});Ax.displayName=jE;var Rx="ToastAction",Ix=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?m.jsx(Ox,{altText:n,asChild:!0,children:m.jsx(Wf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${Rx}\`. Expected non-empty \`string\`.`),null)});Ix.displayName=Rx;var Dx="ToastClose",Wf=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,i=EE(Dx,n);return m.jsx(Ox,{asChild:!0,children:m.jsx(De.button,{type:"button",...r,ref:t,onClick:ge(e.onClick,i.onClose)})})});Wf.displayName=Dx;var Ox=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...i}=e;return m.jsx(De.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function Lx(e){const t=[];
vendor: 14,761 bytes, lines 40-175
40return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),AE(r)){const i=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Lx(r))}}),t}function ma(e,t,n,{discrete:r}){const i=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?vx(i,o):i.dispatchEvent(o)}var Jh=(e,t,n=0)=>{const r=Math.abs(e.x),i=Math.abs(e.y),o=r>i;return t==="left"||t==="right"?o&&r>n:!o&&i>n};function NE(e=()=>{}){const t=ot(e);Bn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function AE(e){return e.nodeType===e.ELEMENT_NODE}function RE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qu(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var IE=Ex,Mx=Tx,_x=jx,Fx=Nx,zx=Ax,$x=Ix,Bx=Wf;function Ux(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ux(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Hx(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ux(e))&&(r&&(r+=" "),r+=t);return r}const Zh=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,em=Hx,Kf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return em(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,l=Object.keys(i).map(u=>{const d=n==null?void 0:n[u],c=o==null?void 0:o[u];if(d===null)return null;const p=Zh(d)||Zh(c);return i[u][p]}),a=n&&Object.entries(n).reduce((u,d)=>{let[c,p]=d;return p===void 0||(u[c]=p),u},{}),s=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,d)=>{let{class:c,className:p,...f}=d;return Object.entries(f).every(h=>{let[y,k]=h;return Array.isArray(k)?k.includes({...o,...a}[y]):{...o,...a}[y]===k})?[...u,c,p]:u},[]);return em(e,l,s,n==null?void 0:n.class,n==null?void 0:n.className)};/**
41 * @license lucide-react v0.462.0 - ISC
42 *
43 * This source code is licensed under the ISC license.
44 * See the LICENSE file in the root directory of this source tree.
45 */const DE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Vx=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46 * @license lucide-react v0.462.0 - ISC
47 *
48 * This source code is licensed under the ISC license.
49 * See the LICENSE file in the root directory of this source tree.
50 */var OE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
51 * @license lucide-react v0.462.0 - ISC
52 *
53 * This source code is licensed under the ISC license.
54 * See the LICENSE file in the root directory of this source tree.
55 */const LE=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...a},s)=>w.createElement("svg",{ref:s,...OE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Vx("lucide",i),...a},[...l.map(([u,d])=>w.createElement(u,d)),...Array.isArray(o)?o:[o]]));/**
56 * @license lucide-react v0.462.0 - ISC
57 *
58 * This source code is licensed under the ISC license.
59 * See the LICENSE file in the root directory of this source tree.
60 */const je=(e,t)=>{const n=w.forwardRef(({className:r,...i},o)=>w.createElement(LE,{ref:o,iconNode:t,className:Vx(`lucide-${DE(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61 * @license lucide-react v0.462.0 - ISC
62 *
63 * This source code is licensed under the ISC license.
64 * See the LICENSE file in the root directory of this source tree.
65 */const tm=je("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
66 * @license lucide-react v0.462.0 - ISC
67 *
68 * This source code is licensed under the ISC license.
69 * See the LICENSE file in the root directory of this source tree.
70 */const ME=je("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
71 * @license lucide-react v0.462.0 - ISC
72 *
73 * This source code is licensed under the ISC license.
74 * See the LICENSE file in the root directory of this source tree.
75 */const Wx=je("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
76 * @license lucide-react v0.462.0 - ISC
77 *
78 * This source code is licensed under the ISC license.
79 * See the LICENSE file in the root directory of this source tree.
80 */const _E=je("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
81 * @license lucide-react v0.462.0 - ISC
82 *
83 * This source code is licensed under the ISC license.
84 * See the LICENSE file in the root directory of this source tree.
85 */const FE=je("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
86 * @license lucide-react v0.462.0 - ISC
87 *
88 * This source code is licensed under the ISC license.
89 * See the LICENSE file in the root directory of this source tree.
90 */const bl=je("Dices",[["rect",{width:"12",height:"12",x:"2",y:"10",rx:"2",ry:"2",key:"6agr2n"}],["path",{d:"m17.92 14 3.5-3.5a2.24 2.24 0 0 0 0-3l-5-4.92a2.24 2.24 0 0 0-3 0L10 6",key:"1o487t"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M10 14h.01",key:"ssrbsk"}],["path",{d:"M15 6h.01",key:"cblpky"}],["path",{d:"M18 9h.01",key:"2061c0"}]]);/**
91 * @license lucide-react v0.462.0 - ISC
92 *
93 * This source code is licensed under the ISC license.
94 * See the LICENSE file in the root directory of this source tree.
95 */const zE=je("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
96 * @license lucide-react v0.462.0 - ISC
97 *
98 * This source code is licensed under the ISC license.
99 * See the LICENSE file in the root directory of this source tree.
100 */const $E=je("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
101 * @license lucide-react v0.462.0 - ISC
102 *
103 * This source code is licensed under the ISC license.
104 * See the LICENSE file in the root directory of this source tree.
105 */const BE=je("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
106 * @license lucide-react v0.462.0 - ISC
107 *
108 * This source code is licensed under the ISC license.
109 * See the LICENSE file in the root directory of this source tree.
110 */const UE=je("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
111 * @license lucide-react v0.462.0 - ISC
112 *
113 * This source code is licensed under the ISC license.
114 * See the LICENSE file in the root directory of this source tree.
115 */const HE=je("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
116 * @license lucide-react v0.462.0 - ISC
117 *
118 * This source code is licensed under the ISC license.
119 * See the LICENSE file in the root directory of this source tree.
120 */const VE=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
121 * @license lucide-react v0.462.0 - ISC
122 *
123 * This source code is licensed under the ISC license.
124 * See the LICENSE file in the root directory of this source tree.
125 */const Kx=je("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
126 * @license lucide-react v0.462.0 - ISC
127 *
128 * This source code is licensed under the ISC license.
129 * See the LICENSE file in the root directory of this source tree.
130 */const qx=je("Scroll",[["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
131 * @license lucide-react v0.462.0 - ISC
132 *
133 * This source code is licensed under the ISC license.
134 * See the LICENSE file in the root directory of this source tree.
135 */const WE=je("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
136 * @license lucide-react v0.462.0 - ISC
137 *
138 * This source code is licensed under the ISC license.
139 * See the LICENSE file in the root directory of this source tree.
140 */const KE=je("Skull",[["path",{d:"m12.5 17-.5-1-.5 1h1z",key:"3me087"}],["path",{d:"M15 22a1 1 0 0 0 1-1v-1a2 2 0 0 0 1.56-3.25 8 8 0 1 0-11.12 0A2 2 0 0 0 8 20v1a1 1 0 0 0 1 1z",key:"1o5pge"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}]]);/**
141 * @license lucide-react v0.462.0 - ISC
142 *
143 * This source code is licensed under the ISC license.
144 * See the LICENSE file in the root directory of this source tree.
145 */const Jo=je("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
146 * @license lucide-react v0.462.0 - ISC
147 *
148 * This source code is licensed under the ISC license.
149 * See the LICENSE file in the root directory of this source tree.
150 */const qE=je("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/**
151 * @license lucide-react v0.462.0 - ISC
152 *
153 * This source code is licensed under the ISC license.
154 * See the LICENSE file in the root directory of this source tree.
155 */const Qx=je("Swords",[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]]);/**
156 * @license lucide-react v0.462.0 - ISC
157 *
158 * This source code is licensed under the ISC license.
159 * See the LICENSE file in the root directory of this source tree.
160 */const QE=je("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
161 * @license lucide-react v0.462.0 - ISC
162 *
163 * This source code is licensed under the ISC license.
164 * See the LICENSE file in the root directory of this source tree.
165 */const qf=je("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
166 * @license lucide-react v0.462.0 - ISC
167 *
168 * This source code is licensed under the ISC license.
169 * See the LICENSE file in the root directory of this source tree.
170 */const GE=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
171 * @license lucide-react v0.462.0 - ISC
172 *
173 * This source code is licensed under the ISC license.
174 * See the LICENSE file in the root directory of this source tree.
175 */const YE=je("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Qf="-",XE=e=>{const t=ZE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const a=l.split(Qf);return a[0]===""&&a.length!==1&&a.shift(),Gx(a,t)||JE(l)},getConflictingClassGroupIds:(l,a)=>{const s=n[l]||[];return a&&r[l]?[...s,...r[l]]:s}}},Gx=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?Gx(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(Qf);return(l=t.validators.find(({validator:a})=>a(o)))==null?void 0:l.classGroupId},nm=/^\[(.+)\]$/,JE=e=>{if(nm.test(e)){const t=nm.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},ZE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};
vendor: 4,206 bytes, line 175
175return tC(Object.entries(e.classGroups),n).forEach(([o,l])=>{xd(l,r,o,t)}),r},xd=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:rm(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(eC(i)){xd(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,l])=>{xd(l,rm(t,o),n,r)})})},rm=(e,t)=>{let n=e;return t.split(Qf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},eC=e=>e.isThemeGetter,tC=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,a])=>[t+l,a])):o);return[n,i]}):e,nC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return i(o,l),l},set(o,l){n.has(o)?n.set(o,l):i(o,l)}}},Yx="!",rC=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,l=a=>{const s=[];let u=0,d=0,c;for(let k=0;k<a.length;k++){let g=a[k];if(u===0){if(g===i&&(r||a.slice(k,k+o)===t)){s.push(a.slice(d,k)),d=k+o;continue}if(g==="/"){c=k;continue}}g==="["?u++:g==="]"&&u--}const p=s.length===0?a:a.substring(d),f=p.startsWith(Yx),h=f?p.substring(1):p,y=c&&c>d?c-d:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:h,maybePostfixModifierPosition:y}};return n?a=>n({className:a,parseClassName:l}):l},iC=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},oC=e=>({cache:nC(e.cacheSize),parseClassName:rC(e),...XE(e)}),lC=/\s+/,aC=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],l=e.trim().split(lC);let a="";for(let s=l.length-1;s>=0;s-=1){const u=l[s],{modifiers:d,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:f}=n(u);let h=!!f,y=r(h?p.substring(0,f):p);if(!y){if(!h){a=u+(a.length>0?" "+a:a);continue}if(y=r(p),!y){a=u+(a.length>0?" "+a:a);continue}h=!1}const k=iC(d).join(":"),g=c?k+Yx:k,v=g+y;if(o.includes(v))continue;o.push(v);const x=i(y,h);for(let C=0;C<x.length;++C){const P=x[C];o.push(g+P)}a=u+(a.length>0?" "+a:a)}return a};function sC(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xx(t))&&(r&&(r+=" "),r+=n);return r}const Xx=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Xx(e[r]))&&(n&&(n+=" "),n+=t);return n};function uC(e,...t){let n,r,i,o=l;function l(s){const u=t.reduce((d,c)=>c(d),e());return n=oC(u),r=n.cache.get,i=n.cache.set,o=a,a(s)}function a(s){const u=r(s);if(u)return u;const d=aC(s,n);return i(s,d),d}return function(){return o(sC.apply(null,arguments))}}const ve=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jx=/^\[(?:([a-z-]+):)?(.+)\]$/i,cC=/^\d+\/\d+$/,dC=new Set(["px","full","screen"]),fC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,hC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,mC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jn=e=>Wi(e)||dC.has(e)||cC.test(e),Zn=e=>yo(e,"length",EC),Wi=e=>!!e&&!Number.isNaN(Number(e)),Gu=e=>yo(e,"number",Wi),Oo=e=>!!e&&Number.isInteger(Number(e)),yC=e=>e.endsWith("%")&&Wi(e.slice(0,-1)),re=e=>Jx.test(e),er=e=>fC.test(e),vC=new Set(["length","size","percentage"]),xC=e=>yo(e,vC,Zx),kC=e=>yo(e,"position",Zx),wC=new Set(["image","url"]),bC=e=>yo(e,wC,TC),SC=e=>yo(e,"",CC),Lo=()=>!0,yo=(e,t,n)=>{const r=Jx.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},EC=e=>pC.test(e)&&!hC.test(e),Zx=()=>!1,CC=e=>mC.test(e),TC=e=>gC.test(e),PC=()=>{const e=ve("colors"),t=ve("spacing"),n=ve("blur"),r=ve("brightness"),i=ve("borderColor"),o=ve("borderRadius"),l=ve("borderSpacing"),a=ve("borderWidth"),s=ve("contrast"),u=ve("grayscale"),d=ve("hueRotate"),c=ve("invert"),p=ve("gap"),f=ve("gradientColorStops"),h=ve("gradientColorStopPositions"),y=ve("inset"),k=ve("margin"),g=ve("op
175acity"),v=ve("padding"),x=ve("saturate"),C=ve("scale"),P=ve("sepia"),E=ve("skew"),j=ve("space"),R=ve("translate"),A=()=>["auto","contain","none"],T=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",re,t],N=()=>[re,t],F=()=>["",jn,Zn],_=()=>["auto",Wi,re],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",re],S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>[Wi,re];return{cacheSize:500,separator:":",theme:{colors:[Lo],spacing:[jn,Zn],blur:["none","",er,re],brightness:G(),borderColor:[e],borderRadius:["none","","full",er,re],borderSpacing:N(),borderWidth:F(),contrast:G(),grayscale:L(),hueRotate:G(),invert:L(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[yC,Zn],inset:O(),margin:O(),opacity:G(),padding:N(),saturate:G(),scale:G(),sepia:L(),skew:G(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",re]}],container:["container"],columns:[{columns:[er]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),re]}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Oo,re]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",re]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",Oo,re]}],"grid-cols":[{"grid-cols":[Lo]}],"col-start-end":[{col:["auto",{span:["full",Oo,re]},re]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[Lo]}],"row-start-end":[{row:["auto",{span:[Oo,re]},re]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",re]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",re]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],ms:[{ms:[k]}],me:[{me:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",re,t]}],"min-w":[{"min-w":[re,t,"min","max","fit"]}],"max-w":[{"max-w":[re,t,"none","full","min","max","fit","prose",{screen:[er]},er]}],h:[{h:[re,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[re,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[re,t,"auto","min","max","fit"]}],"font-size":[{text:["base",er,Zn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Gu]}],"font-family":[{font:[Lo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",re]}],"line-clamp":[{"line-clamp":["none",Wi,Gu]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jn,re]}],"list-image":[{"list-image":["none",re]}],"list-style-type":[{list:["none","disc","decimal",re]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jn,Zn]}],"underline-offset":[{"underline-offset":["auto",jn,re]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),kC]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",xC]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},bC]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}
vendor: 5,180 bytes, line 175
175],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:W()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[jn,re]}],"outline-w":[{outline:[jn,Zn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[jn,Zn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",er,SC]}],"shadow-color":[{shadow:[Lo]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",er,re]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[c]}],saturate:[{saturate:[x]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",re]}],duration:[{duration:G()}],ease:[{ease:["linear","in","out","in-out",re]}],delay:[{delay:G()}],animate:[{animate:["none","spin","ping","pulse","bounce",re]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Oo,re]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",re]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",re]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,647 bytes, line 175
175],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",re]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jn,Zn,Gu]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jC=uC(PC);function Fe(...e){return jC(Hx(e))}const NC=IE,e0=w.forwardRef(({className:e,...t},n)=>m.jsx(Mx,{ref:n,className:Fe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));e0.displayName=Mx.displayName;const AC=Kf("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),t0=w.forwardRef(({className:e,variant:t,...n},r)=>m.jsx(_x,{ref:r,className:Fe(AC({variant:t}),e),...n}));t0.displayName=_x.displayName;const RC=w.forwardRef(({className:e,...t},n)=>m.jsx($x,{ref:n,className:Fe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));RC.displayName=$x.displayName;const n0=w.forwardRef(({className:e,...t},n)=>m.jsx(Bx,{ref:n,className:Fe("absolute right-2 top-2 rounded-md p-1 text-foreground
175/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:m.jsx(GE,{className:"h-4 w-4"})}));n0.displayName=Bx.displayName;const r0=w.forwardRef(({className:e,...t},n)=>m.jsx(Fx,{ref:n,className:Fe("text-sm font-semibold",e),...t}));r0.displayName=Fx.displayName;const i0=w.forwardRef(({className:e,...t},n)=>m.jsx(zx,{ref:n,className:Fe("text-sm opacity-90",e),...t}));i0.displayName=zx.displayName;function IC(){const{toasts:e}=mx();return m.jsxs(NC,{children:[e.map(function({id:t,title:n,description:r,action:i,...o}){return m.jsxs(t0,{...o,children:[m.jsxs("div",{className:"grid gap-1",children:[n&&m.jsx(r0,{children:n}),r&&m.jsx(i0,{children:r})]}),i,m.jsx(n0,{})]},t)}),m.jsx(e0,{})]})}var im=["light","dark"],DC="(prefers-color-scheme: dark)",OC=w.createContext(void 0),LC={setTheme:e=>{},themes:[]},MC=()=>{var e;return(e=w.useContext(OC))!=null?e:LC};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:l,attrs:a,nonce:s})=>{let u=o==="system",d=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(h=>`'${h}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,c=i?im.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(h,y=!1,k=!0)=>{let g=l?l[h]:h,v=y?h+"|| ''":`'${g}'`,x="";return i&&k&&!y&&im.includes(h)&&(x+=`d.style.colorScheme = '${h}';`),n==="class"?y||g?x+=`c.add(${v})`:x+="null":g&&(x+=`d[s](n,${v})`),x},f=e?`!function(){${d}${p(e)}}()`:r?`!function(){try{${d}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${DC}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}${u?"":"else{"+p(o,!1,!1)+"}"}${c}}catch(e){}}()`:`!function(){try{${d}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}else{${p(o,!1,!1)};}${c}}catch(t){}}();`;return w.createElement("script",{nonce:s,dangerouslySetInnerHTML:{__html:f}})});var _C=e=>{switch(e){case"success":return $C;case"info":return UC;case"warning":return BC;case"error":return HC;default:return null}},FC=Array(12).fill(0),zC=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},FC.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),$C=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),BC=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),UC=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),HC=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),VC=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),WC=()=>{let[e,t]=$.useState(document.hidden);return $.useEffect(()=>{let n=()=>{t(document.hidden)};
175return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},kd=1,KC=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:kd++,o=this.toasts.find(a=>a.id===i),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:n}),{...a,...e,id:i,dismissible:l,title:n}):a):this.addToast({title:n,...r,dismissible:l,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
175this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,o,l=r.then(async s=>{if(o=["resolve",s],$.isValidElement(s))i=!1,this.create({id:n,type:"default",message:s});else if(QC(s)&&!s.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,d=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:n,type:"error",message:u,description:d})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(s):t.success,d=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:u,description:d})}}).catch(async s=>{if(o=["reject",s],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(s):t.error,d=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:u,description:d})}}).finally(()=>{var s;i&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),a=()=>new Promise((s,u)=>l.then(()=>o[0]==="reject"?u(o[1]):s(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:a}:Object.assign(n,{unwrap:a})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||kd++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},dt=new KC,qC=(e,t)=>{let n=(t==null?void 0:t.id)||kd++;return dt.addToast({title:e,...t,id:n}),n},QC=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",GC=qC,YC=()=>dt.toasts,XC=()=>dt.getActiveToasts();Object.assign(GC,{success:dt.success,info:dt.info,warning:dt.warning,error:dt.error,custom:dt.custom,message:dt.message,promise:dt.promise,dismiss:dt.dismiss,loading:dt.loading},{getHistory:YC,getToasts:XC});function JC(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}JC(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
175left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
175:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
175--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
176`);function ga(e){return e.label!==void 0}var ZC=3,eT="32px",tT="16px",om=4e3,nT=356,rT=14,iT=20,oT=200;function Qt(...e){return e.filter(Boolean).join(" ")}function lT(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var aT=e=>{var t,n,r,i,o,l,a,s,u,d,c;let{invert:p,toast:f,unstyled:h,interacting:y,setHeights:k,visibleToasts:g,heights:v,index:x,toasts:C,expanded:P,removeToast:E,defaultRichColors:j,closeButton:R,style:A,cancelButtonStyle:T,actionButtonStyle:O,className:N="",descriptionClassName:F="",duration:_,position:H,gap:W,loadingIcon:Q,expandByDefault:D,classNames:L,icons:S,closeButtonAriaLabel:G="Close toast",pauseWhenPageIsHidden:q}=e,[b,V]=$.useState(null),[X,J]=$.useState(null),[Y,Ee]=$.useState(!1),[Re,we]=$.useState(!1),[ze,Kn]=$.useState(!1),[un,gi]=$.useState(!1),[yi,Or]=$.useState(!1),[vi,Lr]=$.useState(0),[Cn,So]=$.useState(0),Mr=$.useRef(f.duration||_||om),Ql=$.useRef(null),Tn=$.useRef(null),pu=x===0,hu=x+1<=g,I=f.type,U=f.dismissible!==!1,ee=f.className||"",oe=f.descriptionClassName||"",ce=$.useMemo(()=>v.findIndex(te=>te.toastId===f.id)||0,[v,f.id]),xt=$.useMemo(()=>{var te;return(te=f.closeButton)!=null?te:R},[f.closeButton,R]),cn=$.useMemo(()=>f.duration||_||om,[f.duration,_]),kt=$.useRef(0),Rt=$.useRef(0),qn=$.useRef(0),Oe=$.useRef(null),[Qn,Ht]=H.split("-"),Rp=$.useMemo(()=>v.reduce((te,pe,be)=>be>=ce?te:te+pe.height,0),[v,ce]),Ip=WC(),Rk=f.invert||p,mu=I==="loading";Rt.current=$.useMemo(()=>ce*W+Rp,[ce,Rp]),$.useEffect(()=>{Mr.current=cn}
176,[cn]),$.useEffect(()=>{Ee(!0)},[]),$.useEffect(()=>{let te=Tn.current;if(te){let pe=te.getBoundingClientRect().height;return So(pe),k(be=>[{toastId:f.id,height:pe,position:f.position},...be]),()=>k(be=>be.filter(Vt=>Vt.toastId!==f.id))}},[k,f.id]),$.useLayoutEffect(()=>{if(!Y)return;let te=Tn.current,pe=te.style.height;te.style.height="auto";let be=te.getBoundingClientRect().height;te.style.height=pe,So(be),k(Vt=>Vt.find(Wt=>Wt.toastId===f.id)?Vt.map(Wt=>Wt.toastId===f.id?{...Wt,height:be}:Wt):[{toastId:f.id,height:be,position:f.position},...Vt])},[Y,f.title,f.description,k,f.id]);let Gn=$.useCallback(()=>{we(!0),Lr(Rt.current),k(te=>te.filter(pe=>pe.toastId!==f.id)),setTimeout(()=>{E(f)},oT)},[f,E,k,Rt]);$.useEffect(()=>{if(f.promise&&I==="loading"||f.duration===1/0||f.type==="loading")return;let te;return P||y||q&&Ip?(()=>{if(qn.current<kt.current){let pe=new Date().getTime()-kt.current;Mr.current=Mr.current-pe}qn.current=new Date().getTime()})():Mr.current!==1/0&&(kt.current=new Date().getTime(),te=setTimeout(()=>{var pe;(pe=f.onAutoClose)==null||pe.call(f,f),Gn()},Mr.current)),()=>clearTimeout(te)},[P,y,f,I,q,Ip,Gn]),$.useEffect(()=>{f.delete&&Gn()},[Gn,f.delete]);function Ik(){var te,pe,be;return S!=null&&S.loading?$.createElement("div",{className:Qt(L==null?void 0:L.loader,(te=f==null?void 0:f.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":I==="loading"},S.loading):Q?$.createElement("div",{className:Qt(L==null?void 0:L.loader,(pe=f==null?void 0:f.classNames)==null?void 0:pe.loader,"sonner-loader"),"data-visible":I==="loading"}
176,Q):$.createElement(zC,{className:Qt(L==null?void 0:L.loader,(be=f==null?void 0:f.classNames)==null?void 0:be.loader),visible:I==="loading"})}return $.createElement("li",{tabIndex:0,ref:Tn,className:Qt(N,ee,L==null?void 0:L.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[I],(n=f==null?void 0:f.classNames)==null?void 0:n[I]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:j,"data-styled":!(f.jsx||f.unstyled||h),"data-mounted":Y,"data-promise":!!f.promise,"data-swiped":yi,"data-removed":Re,"data-visible":hu,"data-y-position":Qn,"data-x-position":Ht,"data-index":x,"data-front":pu,"data-swiping":ze,"data-dismissible":U,"data-type":I,"data-invert":Rk,"data-swipe-out":un,"data-swipe-direction":X,"data-expanded":!!(P||D&&Y),style:{"--index":x,"--toasts-before":x,"--z-index":C.length-x,"--offset":`${Re?vi:Rt.current}px`,"--initial-height":D?"auto":`${Cn}px`,...A,...f.style},onDragEnd:()=>{Kn(!1),V(null),Oe.current=null},onPointerDown:te=>{mu||!U||(Ql.current=new Date,Lr(Rt.current),te.target.setPointerCapture(te.pointerId),te.target.tagName!=="BUTTON"&&(Kn(!0),Oe.current={x:te.clientX,y:te.clientY}))},onPointerUp:()=>{var te,pe,be,Vt;if(un||!U)return;Oe.current=null;let Wt=Number(((te=Tn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yn=Number(((pe=Tn.current)==null?void 0:pe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),_r=new Date().getTime()-((be=Ql.current)==null?void 0:be.getTime()),Kt=b==="x"?Wt:Yn,Xn=Math.abs(Kt)/_r;if(Math.abs(Kt)>=iT||Xn>.11){Lr(Rt.current),(Vt=f.onDismiss)==null||Vt.call(f,f),J(b==="x"?Wt>0?"right":"left":Yn>0?"down":"up"),Gn(),gi(!0),Or(!1);return}Kn(!1),V(null)},onPointerMove:te=>{var pe,be,Vt,Wt;if(!Oe.current||!U||((pe=window.getSelection())==null?void 0:pe.toString().length)>0)return;let Yn=te.clientY-Oe.current.y,_r=te.clientX-Oe.current.x,Kt=(be=e.swipeDirections)!=null?be:lT(H);!b&&(Math.abs(_r)>1||Math.abs(Yn)>1)&&V(Math.abs(_r)>Math.abs(Yn)?"x":"y");let Xn={x:0,y:0};b==="y"?(Kt.includes("top")||Kt.includes("bottom"))&&(Kt.includes("top")&&Yn<0||Kt.includes("bottom")&&Yn>0)&&(Xn.y=Yn):b==="x"&&(Kt.includes("left")||Kt.includes("right"))&&(Kt.includes("left")&&_r<0||Kt.includes("right")&&_r>0)&&(Xn.x=_r),(Math.abs(Xn.x)>0||Math.abs(Xn.y)>0)&&Or(!0),(Vt=Tn.current)==null||Vt.style.setProperty("--swipe-amount-x",`${Xn.x}px`),(Wt=Tn.current)==null||Wt.style.setProperty("--swipe-amount-y",`${Xn.y}px`)}},xt&&!f.jsx?$.createElement("button",{"aria-label":G,"data-disabled":mu,"data-close-button":!0,onClick:mu||!U?()=>{}:()=>{var te;Gn(),(te=f.onDismiss)==null||te.call(f,f)},className:Qt(L==null?void 0:L.closeButton,(i=f==null?void 0:f.classNames)==null?void 0:i.closeButton)},(o=S==null?void 0:S.close)!=null?o:VC):null,f.jsx||w.isValidElement(f.title)?f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title:$.createElement($.Fragment,null,I||f.icon||f.promise?$.createElement("div",{"data-icon":"",className:Qt(L==null?void 0:L.icon,(l=f==null?void 0:f.classNames)==null?void 0:l.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||Ik():null,f.type!=="loading"?f.icon||(S==null?void 0:S[I])||_C(I):null):null,$.createElement("div",{"data-content":"",className:Qt(L==null?void 0:L.content,(a=f==null?void 0:f.classNames)==null?void 0:a.content)},$.createElement("div",{"data-title":"",className:Qt(L==null?void 0:L.title,(s=f==null?void 0:f.classNames)==null?void 0:s.title)},typeof f.title=="function"?f.title():f.title),f.description?$.createElement("div",{"data-description":"",className:Qt(F,oe,L==null?void 0:L.description,(u=f==null?void 0:f.classNames)==null?void 0:u.description)},typeof f.description=="function"?f.description():f.description):null),w.isValidElement(f.cancel)?f.cancel:f.cancel&&ga(f.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||T,onClick:te=>{var pe,be;ga(f.cancel)&&U&&((be=(pe=f.cancel).onClick)==null||be.call(pe,te),Gn())},className:Qt(L==null?void 0:L.cancelButton,(d=f==null?void 0:f.classNames)==null?void 0:d.cancelButton)},f.cancel.label):null,w.isValidElement(f.action)?f.action:f.action&&ga(f.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||O,onClick:te=>{var pe,be;ga(f.action)&&((be=(pe=f.action).onClick)==null||be.call(pe,te),!te.defaultPrevented&&Gn())},className:Qt(L==null?void 0:L.actionButton,(c=f==null?void 0:f.classNames)==null?void 0:c.actionButton)},f.action.label):null))};function lm(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function sT(e,t){let n={};return[e,t].forEach((r,i)=>{let o=i===1,l=o?"--mobile-offset":"--offset",a=o?tT:eT;function s(u){["top","right","bottom","left"].forEach(d=>{n[`${l}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?s(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${l}-${u}`]=a:n[`${l}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):s(a)}),n}var uT=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:l,className:a,offset:s,mobileOffset:u,theme:d="light",richColors:c,duration:p,style:f,visibleToasts:h=ZC,toastOptions:y,dir:k=lm(),gap:g=rT,loadingIcon:v,icons:x,containerAriaLabel:C="Notifications",pauseWhenPageIsHidden:P}=e,[E,j]=$.useState([]),R=$.useMemo(()=>Array.from(new Set([r].concat(E.filter(q=>q.position).map(q=>q.position)))),[E,r]),[A,T]=$.useState([]),[O,N]=$.useState(!1),[F,_]=$.useState(!1),[H,W]=$.useState(d!=="system"?d:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
176k":"light"),Q=$.useRef(null),D=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),L=$.useRef(null),S=$.useRef(!1),G=$.useCallback(q=>{j(b=>{var V;return(V=b.find(X=>X.id===q.id))!=null&&V.delete||dt.dismiss(q.id),b.filter(({id:X})=>X!==q.id)})},[]);return $.useEffect(()=>dt.subscribe(q=>{if(q.dismiss){j(b=>b.map(V=>V.id===q.id?{...V,delete:!0}:V));return}setTimeout(()=>{lx.flushSync(()=>{j(b=>{let V=b.findIndex(X=>X.id===q.id);return V!==-1?[...b.slice(0,V),{...b[V],...q},...b.slice(V+1)]:[q,...b]})})})}),[]),$.useEffect(()=>{if(d!=="system"){W(d);return}if(d==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let q=window.matchMedia("(prefers-color-scheme: dark)");try{q.addEventListener("change",({matches:b})=>{W(b?"dark":"light")})}catch{q.addListener(({matches:V})=>{try{W(V?"dark":"light")}catch(X){console.error(X)}})}},[d]),$.useEffect(()=>{E.length<=1&&N(!1)},[E]),$.useEffect(()=>{let q=b=>{var V,X;i.every(J=>b[J]||b.code===J)&&(N(!0),(V=Q.current)==null||V.focus()),b.code==="Escape"&&(document.activeElement===Q.current||(X=Q.current)!=null&&X.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",q),()=>document.removeEventListener("keydown",q)},[i]),$.useEffect(()=>{if(Q.current)return()=>{L.current&&(L.current.focus({preventScroll:!0}),L.current=null,S.current=!1)}},[Q.current]),$.createElement("section",{ref:t,"aria-label":`${C} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},R.map((q,b)=>{var V;let[X,J]=q.split("-");return E.length?$.createElement("ol",{key:q,dir:k==="auto"?lm():k,tabIndex:-1,ref:Q,className:a,"data-sonner-toaster":!0,"data-theme":H,"data-y-position":X,"data-lifted":O&&E.length>1&&!o,"data-x-position":J,style:{"--front-toast-height":`${((V=A[0])==null?void 0:V.height)||0}px`,"--width":`${nT}px`,"--gap":`${g}px`,...f,...sT(s,u)},onBlur:Y=>{S.current&&!Y.currentTarget.contains(Y.relatedTarget)&&(S.current=!1,L.current&&(L.current.focus({preventScroll:!0}),L.current=null))},onFocus:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||S.current||(S.current=!0,L.current=Y.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{F||N(!1)},onDragEnd:()=>N(!1),onPointerDown:Y=>{Y.target instanceof HTMLElement&&Y.target.dataset.dismissible==="false"||_(!0)},onPointerUp:()=>_(!1)},E.filter(Y=>!Y.position&&b===0||Y.position===q).map((Y,Ee)=>{var Re,we;return $.createElement(aT,{key:Y.id,icons:x,index:Ee,toast:Y,defaultRichColors:c,duration:(Re=y==null?void 0:y.duration)!=null?Re:p,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:h,closeButton:(we=y==null?void 0:y.closeButton)!=null?we:l,interacting:F,position:q,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:G,toasts:E.filter(ze=>ze.position==Y.position),heights:A.filter(ze=>ze.position==Y.position),setHeights:T,expandByDefault:o,gap:g,loadingIcon:v,expanded:O,pauseWhenPageIsHidden:P,swipeDirections:e.swipeDirections})})):null}))});const cT=({...e})=>{const{theme:t="system"}=MC();return m.jsx(uT,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},dT=["top","right","bottom","left"],Tr=Math.min,St=Math.max,ys=Math.round,ya=Math.floor,Pr=e=>({x:e,y:e}),fT={left:"right",right:"left",bottom:"top",top:"bottom"},pT={start:"end",end:"start"};function wd(e,t,n){return St(e,Tr(t,n))}function Un(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function vo(e){return e.split("-")[1]}function Gf(e){return e==="x"?"y":"x"}function Yf(e){return e==="y"?"height":"width"}function jr(e){return["top","bottom"].includes(Hn(e))?"y":"x"}function Xf(e){return Gf(jr(e))}function hT(e,t,n){n===void 0&&(n=!1);const r=vo(e),i=Xf(e),o=Yf(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=vs(l)),[l,vs(l)]}function mT(e){const t=vs(e);return[bd(e),t,bd(t)]}function bd(e){return e.replace(/start|end/g,t=>pT[t])}function gT(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:l;default:return[]}}function yT(e,t,n,r){const i=vo(e);let o=gT(Hn(e),n==="start",r);
vendor: 10,638 bytes, line 176
176return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(bd)))),o}function vs(e){return e.replace(/left|right|bottom|top/g,t=>fT[t])}function vT(e){return{top:0,right:0,bottom:0,left:0,...e}}function o0(e){return typeof e!="number"?vT(e):{top:e,right:e,bottom:e,left:e}}function xs(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function am(e,t,n){let{reference:r,floating:i}=e;const o=jr(t),l=Xf(t),a=Yf(l),s=Hn(t),u=o==="y",d=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let f;switch(s){case"top":f={x:d,y:r.y-i.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:c};break;case"left":f={x:r.x-i.width,y:c};break;default:f={x:r.x,y:r.y}}switch(vo(t)){case"start":f[l]-=p*(n&&u?-1:1);break;case"end":f[l]+=p*(n&&u?-1:1);break}return f}const xT=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),s=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:c}=am(u,r,s),p=r,f={},h=0;for(let y=0;y<a.length;y++){const{name:k,fn:g}=a[y],{x:v,y:x,data:C,reset:P}=await g({x:d,y:c,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:u,platform:l,elements:{reference:e,floating:t}});d=v??d,c=x??c,f={...f,[k]:{...f[k],...C}},P&&h<=50&&(h++,typeof P=="object"&&(P.placement&&(p=P.placement),P.rects&&(u=P.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:d,y:c}=am(u,p,s)),y=-1)}return{x:d,y:c,placement:p,strategy:i,middlewareData:f}};async function Sl(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=Un(t,e),h=o0(f),k=a[p?c==="floating"?"reference":"floating":c],g=xs(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:s})),v=c==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),C=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},P=xs(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:s}):v);return{top:(g.top-P.top+h.top)/C.y,bottom:(P.bottom-g.bottom+h.bottom)/C.y,left:(g.left-P.left+h.left)/C.x,right:(P.right-g.right+h.right)/C.x}}const kT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:a,middlewareData:s}=t,{element:u,padding:d=0}=Un(e,t)||{};if(u==null)return{};const c=o0(d),p={x:n,y:r},f=Xf(i),h=Yf(f),y=await l.getDimensions(u),k=f==="y",g=k?"top":"left",v=k?"bottom":"right",x=k?"clientHeight":"clientWidth",C=o.reference[h]+o.reference[f]-p[f]-o.floating[h],P=p[f]-o.reference[f],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let j=E?E[x]:0;(!j||!await(l.isElement==null?void 0:l.isElement(E)))&&(j=a.floating[x]||o.floating[h]);const R=C/2-P/2,A=j/2-y[h]/2-1,T=Tr(c[g],A),O=Tr(c[v],A),N=T,F=j-y[h]-O,_=j/2-y[h]/2+R,H=wd(N,_,F),W=!s.arrow&&vo(i)!=null&&_!==H&&o.reference[h]/2-(_<N?T:O)-y[h]/2<0,Q=W?_<N?_-N:_-F:0;return{[f]:p[f]+Q,data:{[f]:H,centerOffset:_-H-Q,...W&&{alignmentOffset:Q}},reset:W}}}),wT=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:a,platform:s,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...k}=Un(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=Hn(i),v=jr(a),x=Hn(a)===a,C=await(s.isRTL==null?void 0:s.isRTL(u.floating)),P=p||(x||!y?[vs(a)]:mT(a)),E=h!=="none";!p&&E&&P.push(...yT(a,y,h,C));const j=[a,...P],R=await Sl(t,k),A=[];let T=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&A.push(R[g]),c){const _=hT(i,l,C);A.push(R[_[0]],R[_[1]])}if(T=[...T,{placement:i,overflows:A}],!A.every(_=>_<=0)){var O,N;const _=(((O=o.flip)==null?void 0:O.index)||0)+1,H=j[_];if(H)return{data:{index:_,overflows:T},reset:{placement:H}};let W=(N=T.filter(Q=>Q.overflows[0]<=0).sort((Q,D)=>Q.overflows[1]-D.overflows[1])[0])==null?void 0:N.placement;if(!W)switch(f){case"bestFit":{var F;const Q=(F=T.filter(D=>{if(E){const L=jr(D.placement);return L===v||L==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(L=>L>0).reduce((L,S)=>L+S,0)]).sort((D,L)=>D[1]-L[1])[0])==null?void 0:F[0];Q&&(W=Q);break}case"initialPlacement":W=a;break}if(i!==W)return{reset:{placement:W}}}return{}}}};function sm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function um(e){return dT.some(t=>e[t]>=0)}const bT=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Un(e,t);switch(r){case"referenceHidden":{const o=await Sl(t,{...i,elementContext:"reference"}),l=sm(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:um(l)}}}case"escaped":{const o=await Sl(t,{...i,altBoundary:!0}),l=sm(o,n.floating);return{data:{escapedOffsets:l,escaped:um(l)}}}default:return{}}}}};async function ST(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Hn(n),a=vo(n),s=jr(n)==="y",u=["left","top"].includes(l)?-1:1,d=o&&s?-1:1,c=Un(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof h=="number"&&(f=a==="end"?h*-1:h),s?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const ET=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:a}=t,s=await ST(t,e);return l===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:l}}}}},CT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:a={fn:k=>{let{x:g,y:v}=k;return{x:g,y:v}}},...s}=Un(e,t),u={x:n,y:r},d=await Sl(t,s),c=jr(Hn(i)),p=Gf(c);let f=u[p],h=u[c];if(o){const k=p==="y"?"top":"left",g=p==="y"?"bottom":"right",v=f+d[k],x=f-d[g];f=wd(v,f,x)}if(l){const k=c==="y"?"top":"left",g=c==="y"?"bottom":"right",v=h+d[k],x=h-d[g];h=wd(v,h,x)}const y=a.fn({...t,[p]:f,[c]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:o,[c]:l}}}}}},TT=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=Un(e,t),d={x:n,y:r},c=jr(i),p=Gf(c);let f=d[p],h=d[c];const y=Un(a,t),k=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const x=p==="y"?"height":"width",C=o.reference[p]-o.floating[x]+k.mainAxis,P=o.reference[p]+o.reference[x]-k.mainAxis;f<C?f=C:f>P&&(f=P)}if(u){var g,v;const x=p==="y"?"width":"height",C=["top","left"].includes(Hn(i)),P=o.reference[c]-o.floating[x]+(C&&((g=l.offset)==null?void 0:g[c])||0)+(C?0:k.crossAxis),E=o.reference[c]+o.reference[x]+(C?0:((v=l.offset)==null?void 0:v[c])||0)-(C?k.crossAxis:0);h<P?h=P:h>E&&(h=E)}return{[p]:f,[c]:h}}}},PT=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:a}=t,{apply:s=()=>{},...u}=Un(e,t),d=await Sl(t,u),c=Hn(i),p=vo(i),f=jr(i)==="y",{width:h,height:y}=o.floating;let k,g;c==="top"||c==="bottom"?(k=c,g=p===(await(l.isRTL==null?void 0:l.isRTL(a.floating))?"start":"end")?"left":"right"):(g=c,k=p==="end"?"top":"bottom");const v=y-d.top-d.bottom,x=h-d.left-d.right,C=Tr(y-d[k],v),P=Tr(h-d[g],x),E=!t.middlewareData.shift;let j=C,R=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=v),E&&!p){const T=St(d.left,0),O=St(d.right,0),N=St(d.top,0),F=St(d.bottom,0);f?R=h-2*(T!==0||O!==0?T+O:St(d.left,d.right)):j=y-2*(N!==0||F!==0?N+F:St(d.top,d.bottom))}await s({...t,availableWidth:R,availableHeight:j});const A=await l.getDimensions(a.floating);return h!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function Ys(){return typeof window<"u"}function xo(e){return l0(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(l0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function l0(e){return Ys()?e instanceof Node||e instanceof Tt(e).Node:!1}function an(e){return Ys()?e instanceof Element||e instanceof Tt(e).Element:!1}function wn(e){return Ys()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function cm(e){return!Ys()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function Ul(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function jT(e){return["table","td","th"].includes(xo(e))}function Xs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Jf(e){const t=Zf(),n=an(e)?sn(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function NT(e){let t=Nr(e);for(;wn(t)&&!uo(t);){if(Jf(t))return t;if(Xs(t))return null;t=Nr(t)}return null}function Zf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function uo(e){return["html","body","#document"].includes(xo(e))}function sn(e){return Tt(e).getComputedStyle(e)}function Js(e){return an(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Nr(e){if(xo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||cm(e)&&e.host||bn(e);return cm(t)?t.host:t}function a0(e){const t=Nr(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&Ul(t)?t:a0(t)}function El(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=a0(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Tt(i);if(o){const a=Sd(l);
vendor: 3,634 bytes, line 176
176return t.concat(l,l.visualViewport||[],Ul(i)?i:[],a&&n?El(a):[])}return t.concat(i,El(i,[],n))}function Sd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function s0(e){const t=sn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,a=ys(n)!==o||ys(r)!==l;return a&&(n=o,r=l),{width:n,height:r,$:a}}function ep(e){return an(e)?e:e.contextElement}function Ki(e){const t=ep(e);if(!wn(t))return Pr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=s0(t);let l=(o?ys(n.width):n.width)/r,a=(o?ys(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!a||!Number.isFinite(a))&&(a=1),{x:l,y:a}}const AT=Pr(0);function u0(e){const t=Tt(e);return!Zf()||!t.visualViewport?AT:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function RT(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function ai(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ep(e);let l=Pr(1);t&&(r?an(r)&&(l=Ki(r)):l=Ki(e));const a=RT(o,n,r)?u0(o):Pr(0);let s=(i.left+a.x)/l.x,u=(i.top+a.y)/l.y,d=i.width/l.x,c=i.height/l.y;if(o){const p=Tt(o),f=r&&an(r)?Tt(r):r;let h=p,y=Sd(h);for(;y&&r&&f!==h;){const k=Ki(y),g=y.getBoundingClientRect(),v=sn(y),x=g.left+(y.clientLeft+parseFloat(v.paddingLeft))*k.x,C=g.top+(y.clientTop+parseFloat(v.paddingTop))*k.y;s*=k.x,u*=k.y,d*=k.x,c*=k.y,s+=x,u+=C,h=Tt(y),y=Sd(h)}}return xs({width:d,height:c,x:s,y:u})}function IT(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=bn(r),a=t?Xs(t.floating):!1;if(r===l||a&&o)return n;let s={scrollLeft:0,scrollTop:0},u=Pr(1);const d=Pr(0),c=wn(r);if((c||!c&&!o)&&((xo(r)!=="body"||Ul(l))&&(s=Js(r)),wn(r))){const p=ai(r);u=Ki(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x,y:n.y*u.y-s.scrollTop*u.y+d.y}}function DT(e){return Array.from(e.getClientRects())}function Ed(e,t){const n=Js(e).scrollLeft;return t?t.left+n:ai(bn(e)).left+n}function OT(e){const t=bn(e),n=Js(e),r=e.ownerDocument.body,i=St(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=St(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Ed(e);const a=-n.scrollTop;return sn(r).direction==="rtl"&&(l+=St(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:a}}function LT(e,t){const n=Tt(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,a=0,s=0;if(i){o=i.width,l=i.height;const u=Zf();(!u||u&&t==="fixed")&&(a=i.offsetLeft,s=i.offsetTop)}return{width:o,height:l,x:a,y:s}}function MT(e,t){const n=ai(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wn(e)?Ki(e):Pr(1),l=e.clientWidth*o.x,a=e.clientHeight*o.y,s=i*o.x,u=r*o.y;return{width:l,height:a,x:s,y:u}}function dm(e,t,n){let r;if(t==="viewport")r=LT(e,n);else if(t==="document")r=OT(bn(e));else if(an(t))r=MT(t,n);else{const i=u0(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return xs(r)}function c0(e,t){const n=Nr(e);return n===t||!an(n)||uo(n)?!1:sn(n).position==="fixed"||c0(n,t)}function _T(e,t){const n=t.get(e);if(n)return n;let r=El(e,[],!1).filter(a=>an(a)&&xo(a)!=="body"),i=null;const o=sn(e).position==="fixed";let l=o?Nr(e):e;for(;an(l)&&!uo(l);){const a=sn(l),s=Jf(l);!s&&a.position==="fixed"&&(i=null),(o?!s&&!i:!s&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ul(l)&&!s&&c0(e,l))?r=r.filter(d=>d!==l):i=a,l=Nr(l)}return t.set(e,r),r}function FT(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Xs(t)?[]:_T(t,this._c):[].concat(n),r],a=l[0],s=l.reduce((u,d)=>{const c=dm(t,d,i);
vendor: 11,781 bytes, line 176
176return u.top=St(c.top,u.top),u.right=Tr(c.right,u.right),u.bottom=Tr(c.bottom,u.bottom),u.left=St(c.left,u.left),u},dm(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function zT(e){const{width:t,height:n}=s0(e);return{width:t,height:n}}function $T(e,t,n){const r=wn(t),i=bn(t),o=n==="fixed",l=ai(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const s=Pr(0);if(r||!r&&!o)if((xo(t)!=="body"||Ul(i))&&(a=Js(t)),r){const f=ai(t,!0,o,t);s.x=f.x+t.clientLeft,s.y=f.y+t.clientTop}else i&&(s.x=Ed(i));let u=0,d=0;if(i&&!r&&!o){const f=i.getBoundingClientRect();d=f.top+a.scrollTop,u=f.left+a.scrollLeft-Ed(i,f)}const c=l.left+a.scrollLeft-s.x-u,p=l.top+a.scrollTop-s.y-d;return{x:c,y:p,width:l.width,height:l.height}}function Yu(e){return sn(e).position==="static"}function fm(e,t){if(!wn(e)||sn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function d0(e,t){const n=Tt(e);if(Xs(e))return n;if(!wn(e)){let i=Nr(e);for(;i&&!uo(i);){if(an(i)&&!Yu(i))return i;i=Nr(i)}return n}let r=fm(e,t);for(;r&&jT(r)&&Yu(r);)r=fm(r,t);return r&&uo(r)&&Yu(r)&&!Jf(r)?n:r||NT(e)||n}const BT=async function(e){const t=this.getOffsetParent||d0,n=this.getDimensions,r=await n(e.floating);return{reference:$T(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function UT(e){return sn(e).direction==="rtl"}const HT={convertOffsetParentRelativeRectToViewportRelativeRect:IT,getDocumentElement:bn,getClippingRect:FT,getOffsetParent:d0,getElementRects:BT,getClientRects:DT,getDimensions:zT,getScale:Ki,isElement:an,isRTL:UT};function VT(e,t){let n=null,r;const i=bn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function l(a,s){a===void 0&&(a=!1),s===void 0&&(s=1),o();const{left:u,top:d,width:c,height:p}=e.getBoundingClientRect();if(a||t(),!c||!p)return;const f=ya(d),h=ya(i.clientWidth-(u+c)),y=ya(i.clientHeight-(d+p)),k=ya(u),v={rootMargin:-f+"px "+-h+"px "+-y+"px "+-k+"px",threshold:St(0,Tr(1,s))||1};let x=!0;function C(P){const E=P[0].intersectionRatio;if(E!==s){if(!x)return l();E?l(!1,E):r=setTimeout(()=>{l(!1,1e-7)},1e3)}x=!1}try{n=new IntersectionObserver(C,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(e)}return l(!0),o}function WT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=ep(e),d=i||o?[...u?El(u):[],...El(t)]:[];d.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const c=u&&a?VT(u,n):null;let p=-1,f=null;l&&(f=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var x;(x=f)==null||x.observe(t)})),n()}),u&&!s&&f.observe(u),f.observe(t));let h,y=s?ai(e):null;s&&k();function k(){const g=ai(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,h=requestAnimationFrame(k)}return n(),()=>{var g;d.forEach(v=>{i&&v.removeEventListener("scroll",n),o&&v.removeEventListener("resize",n)}),c==null||c(),(g=f)==null||g.disconnect(),f=null,s&&cancelAnimationFrame(h)}}const KT=ET,qT=CT,QT=wT,GT=PT,YT=bT,pm=kT,XT=TT,JT=(e,t,n)=>{const r=new Map,i={platform:HT,...n},o={...i.platform,_c:r};return xT(e,t,{...i,platform:o})};var $a=typeof document<"u"?w.useLayoutEffect:w.useEffect;function ks(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ks(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ks(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function f0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hm(e,t){const n=f0(e);return Math.round(t*n)/n}function Xu(e){const t=w.useRef(e);return $a(()=>{t.current=e}),t}function ZT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:a=!0,whileElementsMounted:s,open:u}=e,[d,c]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=w.useState(r);ks(p,r)||f(r);const[h,y]=w.useState(null),[k,g]=w.useState(null),v=w.useCallback(D=>{D!==E.current&&(E.current=D,y(D))},[]),x=w.useCallback(D=>{D!==j.current&&(j.current=D,g(D))},[]),C=o||h,P=l||k,E=w.useRef(null),j=w.useRef(null),R=w.useRef(d),A=s!=null,T=Xu(s),O=Xu(i),N=Xu(u),F=w.useCallback(()=>{if(!E.current||!j.current)return;const D={placement:t,strategy:n,middleware:p};O.current&&(D.platform=O.current),JT(E.current,j.current,D).then(L=>{const S={...L,isPositioned:N.current!==!1};_.current&&!ks(R.current,S)&&(R.current=S,zl.flushSync(()=>{c(S)}))})},[p,t,n,O,N]);$a(()=>{u===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,c(D=>({...D,isPositioned:!1})))},[u]);const _=w.useRef(!1);$a(()=>(_.current=!0,()=>{_.current=!1}),[]),$a(()=>{if(C&&(E.current=C),P&&(j.current=P),C&&P){if(T.current)return T.current(C,P,F);F()}},[C,P,F,T,A]);const H=w.useMemo(()=>({reference:E,floating:j,setReference:v,setFloating:x}),[v,x]),W=w.useMemo(()=>({reference:C,floating:P}),[C,P]),Q=w.useMemo(()=>{const D={position:n,left:0,top:0};if(!W.floating)return D;const L=hm(W.floating,d.x),S=hm(W.floating,d.y);return a?{...D,transform:"translate("+L+"px, "+S+"px)",...f0(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:S}},[n,a,W.floating,d.x,d.y]);return w.useMemo(()=>({...d,update:F,refs:H,elements:W,floatingStyles:Q}),[d,F,H,W,Q])}const e2=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?pm({element:r.current,padding:i}).fn(n):{}:r?pm({element:r,padding:i}).fn(n):{}}}},t2=(e,t)=>({...KT(e),options:[e,t]}),n2=(e,t)=>({...qT(e),options:[e,t]}),r2=(e,t)=>({...XT(e),options:[e,t]}),i2=(e,t)=>({...QT(e),options:[e,t]}),o2=(e,t)=>({...GT(e),options:[e,t]}),l2=(e,t)=>({...YT(e),options:[e,t]}),a2=(e,t)=>({...e2(e),options:[e,t]});var s2="Arrow",p0=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return m.jsx(De.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});p0.displayName=s2;var u2=p0;function c2(e){const[t,n]=w.useState(void 0);return Bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,a;if("borderBoxSize"in o){const s=o.borderBoxSize,u=Array.isArray(s)?s[0]:s;l=u.inlineSize,a=u.blockSize}else l=e.offsetWidth,a=e.offsetHeight;n({width:l,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var h0="Popper",[m0,g0]=$l(h0),[lL,y0]=m0(h0),v0="PopperAnchor",x0=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=y0(v0,n),l=w.useRef(null),a=qe(t,l);return w.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:m.jsx(De.div,{...i,ref:a})});x0.displayName=v0;var tp="PopperContent",[d2,f2]=m0(tp),k0=w.forwardRef((e,t)=>{var Y,Ee,Re,we,ze,Kn;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:a=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:p=!1,updatePositionStrategy:f="optimized",onPlaced:h,...y}=e,k=y0(tp,n),[g,v]=w.useState(null),x=qe(t,un=>v(un)),[C,P]=w.useState(null),E=c2(C),j=(E==null?void 0:E.width)??0,R=(E==null?void 0:E.height)??0,A=r+(o!=="center"?"-"+o:""),T=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},O=Array.isArray(u)?u:[u],N=O.length>0,F={padding:T,boundary:O.filter(h2),altBoundary:N},{refs:_,floatingStyles:H,placement:W,isPositioned:Q,middlewareData:D}=ZT({strategy:"fixed",placement:A,whileElementsMounted:(...un)=>WT(...un,{animationFrame:f==="always"}),elements:{reference:k.anchor},middleware:[t2({mainAxis:i+R,alignmentAxis:l}),s&&n2({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?r2():void 0,...F}),s&&i2({...F}),o2({...F,apply:({elements:un,rects:gi,availableWidth:yi,availableHeight:Or})=>{const{width:vi,height:Lr}=gi.reference,Cn=un.floating.style;Cn.setProperty("--radix-popper-available-width",`${yi}px`),Cn.setProperty("--radix-popper-available-height",`${Or}px`),Cn.setProperty("--radix-popper-anchor-width",`${vi}px`),Cn.setProperty("--radix-popper-anchor-height",`${Lr}px`)}}),C&&a2({element:C,padding:a}),m2({arrowWidth:j,arrowHeight:R}),p&&l2({strategy:"referenceHidden",...F})]}),[L,S]=S0(W),G=ot(h);Bn(()=>{Q&&(G==null||G())},[Q,G]);const q=(Y=D.arrow)==null?void 0:Y.x,b=(Ee=D.arrow)==null?void 0:Ee.y,V=((Re=D.arrow)==null?void 0:Re.centerOffset)!==0,[X,J]=w.useState();return Bn(()=>{g&&J(window.getComputedStyle(g).zIndex)},[g]),m.jsx("div",{ref:_.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:Q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[(we=D.transformOrigin)==null?void 0:we.x,(ze=D.transformOrigin)==null?void 0:ze.y].join(" "),...((Kn=D.hide)==null?void 0:Kn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:m.jsx(d2,{scope:n,placedSide:L,onArrowChange:P,arrowX:q,arrowY:b,shouldHideArrow:V,children:m.jsx(De.div,{"data-side":L,"data-align":S,...y,ref:x,style:{...y.style,animation:Q?void 0:"none"}})})})});k0.displayName=tp;var w0="PopperArrow",p2={top:"bottom",right:"left",bottom:"top",left:"right"},b0=w.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=f2(w0,r),l=p2[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(u2,{...i,ref:n,style:{...i.style,display:"block"}})})});b0.displayName=w0;function h2(e){return e!==null}var m2=e=>({name:"transformOrigin",options:e,fn(t){var k,g,v;const{placement:n,rects:r,middlewareData:i}=t,l=((k=i.arrow)==null?void 0:k.centerOffset)!==0,a=l?0:e.arrowWidth,s=l?0:e.arrowHeight,[u,d]=S0(n),c={start:"0%",center:"50%",end:"100%"}[d],p=(((g=i.arrow)==null?void 0:g.x)??0)+a/2,f=(((v=i.arrow)==null?void 0:v.y)??0)+s/2;let h="",y="";return u==="bottom"?(h=l?c:`${p}px`,y=`${-s}px`):u==="top"?(h=l?c:`${p}px`,y=`${r.floating.height+s}px`):u==="right"?(h=`${-s}px`,y=l?c:`${f}px`):u==="left"&&(h=`${r.floating.width+s}px`,y=l?c:`${f}px`),{data:{x:h,y}}}});function S0(e){const[t,n="center"]=e.split("-");return[t,n]}var g2=x0,y2=k0,v2=b0,[Zs,aL]=$l("Tooltip",[g0]),np=g0(),E0="TooltipProvider",x2=700,mm="tooltip.open",[k2,C0]=Zs(E0),T0=e=>{const{__scopeTooltip:t,delayDuration:n=x2,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,l=w.useRef(!0),a=w.useRef(!1),s=w.useRef(0);return w.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),m.jsx(k2,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(s.current),l.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:a,onPointerInTransitChange:w.useCallback(u=>{a.current=u}
vendor: 5,737 bytes, line 176
176,[]),disableHoverableContent:i,children:o})};T0.displayName=E0;var P0="Tooltip",[sL,eu]=Zs(P0),Cd="TooltipTrigger",w2=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=eu(Cd,n),o=C0(Cd,n),l=np(n),a=w.useRef(null),s=qe(t,a,i.onTriggerChange),u=w.useRef(!1),d=w.useRef(!1),c=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),m.jsx(g2,{asChild:!0,...l,children:m.jsx(De.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:ge(e.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:ge(e.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:ge(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:ge(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ge(e.onBlur,i.onClose),onClick:ge(e.onClick,i.onClose)})})});w2.displayName=Cd;var b2="TooltipPortal",[uL,S2]=Zs(b2,{forceMount:void 0}),co="TooltipContent",j0=w.forwardRef((e,t)=>{const n=S2(co,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=eu(co,e.__scopeTooltip);return m.jsx(fi,{present:r||l.open,children:l.disableHoverableContent?m.jsx(N0,{side:i,...o,ref:t}):m.jsx(E2,{side:i,...o,ref:t})})}),E2=w.forwardRef((e,t)=>{const n=eu(co,e.__scopeTooltip),r=C0(co,e.__scopeTooltip),i=w.useRef(null),o=qe(t,i),[l,a]=w.useState(null),{trigger:s,onClose:u}=n,d=i.current,{onPointerInTransitChange:c}=r,p=w.useCallback(()=>{a(null),c(!1)},[c]),f=w.useCallback((h,y)=>{const k=h.currentTarget,g={x:h.clientX,y:h.clientY},v=N2(g,k.getBoundingClientRect()),x=A2(g,v),C=R2(y.getBoundingClientRect()),P=D2([...x,...C]);a(P),c(!0)},[c]);return w.useEffect(()=>()=>p(),[p]),w.useEffect(()=>{if(s&&d){const h=k=>f(k,d),y=k=>f(k,s);return s.addEventListener("pointerleave",h),d.addEventListener("pointerleave",y),()=>{s.removeEventListener("pointerleave",h),d.removeEventListener("pointerleave",y)}}},[s,d,f,p]),w.useEffect(()=>{if(l){const h=y=>{const k=y.target,g={x:y.clientX,y:y.clientY},v=(s==null?void 0:s.contains(k))||(d==null?void 0:d.contains(k)),x=!I2(g,l);v?p():x&&(p(),u())};return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[s,d,l,u,p]),m.jsx(N0,{...e,ref:o})}),[C2,T2]=Zs(P0,{isInside:!1}),P2=HS("TooltipContent"),N0=w.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...a}=e,s=eu(co,n),u=np(n),{onClose:d}=s;return w.useEffect(()=>(document.addEventListener(mm,d),()=>document.removeEventListener(mm,d)),[d]),w.useEffect(()=>{if(s.trigger){const c=p=>{const f=p.target;f!=null&&f.contains(s.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[s.trigger,d]),m.jsx(Uf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:m.jsxs(y2,{"data-state":s.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[m.jsx(P2,{children:r}),m.jsx(C2,{scope:n,isInside:!0,children:m.jsx(hE,{id:s.contentId,role:"tooltip",children:i||r})})]})})});j0.displayName=co;var A0="TooltipArrow",j2=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=np(n);return T2(A0,n).isInside?null:m.jsx(v2,{...i,...r,ref:t})});j2.displayName=A0;function N2(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function A2(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function R2(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function I2(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const a=t[o],s=t[l],u=a.x,d=a.y,c=s.x,p=s.y;d>r!=p>r&&n<(c-u)*(r-d)/(p-d)+u&&(i=!i)}return i}function D2(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),O2(t)}function O2(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var L2=T0,R0=j0;const M2=L2,_2=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>m.jsx(R0,{ref:r,sideOffset:t,className:Fe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
176de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));_2.displayName=R0.displayName;var tu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},nu=typeof window>"u"||"Deno"in globalThis;function Yt(){}function F2(e,t){return typeof e=="function"?e(t):e}function z2(e){return typeof e=="number"&&e>=0&&e!==1/0}function $2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Td(e,t){return typeof e=="function"?e(t):e}function B2(e,t){return typeof e=="function"?e(t):e}function gm(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:l,stale:a}=e;if(l){if(r){if(t.queryHash!==rp(l,t.options))return!1}else if(!Tl(t.queryKey,l))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function ym(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Cl(t.options.mutationKey)!==Cl(o))return!1}else if(!Tl(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function rp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Cl)(e)}function Cl(e){return JSON.stringify(e,(t,n)=>Pd(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Tl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Tl(e[n],t[n])):!1}function I0(e,t){if(e===t)return e;const n=vm(e)&&vm(t);if(n||Pd(e)&&Pd(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),l=o.length,a=n?[]:{},s=new Set(r);let u=0;for(let d=0;d<l;d++){const c=n?d:o[d];(!n&&s.has(c)||n)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,u++):(a[c]=I0(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&u++)}return i===l&&u===i?e:a}return t}function vm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pd(e){if(!xm(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!xm(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function xm(e){return Object.prototype.toString.call(e)==="[object Object]"}function U2(e){return new Promise(t=>{setTimeout(t,e)})}function H2(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?I0(e,t):t}function V2(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function W2(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ip=Symbol();function D0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ip?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Qr,ar,Qi,zg,K2=(zg=class extends tu{constructor(){super();de(this,Qr);de(this,ar);de(this,Qi);ne(this,Qi,t=>{if(!nu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,ar)||this.setEventListener(M(this,Qi))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,ar))==null||t.call(this),ne(this,ar,void 0))}setEventListener(t){var n;ne(this,Qi,t),(n=M(this,ar))==null||n.call(this),ne(this,ar,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){M(this,Qr)!==t&&(ne(this,Qr,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,Qr)=="boolean"?M(this,Qr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qr=new WeakMap,ar=new WeakMap,Qi=new WeakMap,zg),O0=new K2,Gi,sr,Yi,$g,q2=($g=class extends tu{constructor(){super();de(this,Gi,!0);de(this,sr);de(this,Yi);ne(this,Yi,t=>{if(!nu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,sr)||this.setEventListener(M(this,Yi))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,sr))==null||t.call(this),ne(this,sr,void 0))}setEventListener(t){var n;ne(this,Yi,t),(n=M(this,sr))==null||n.call(this),ne(this,sr,t(this.setOnline.bind(this)))}setOnline(t){M(this,Gi)!==t&&(ne(this,Gi,t),this.listeners.forEac
vendor: 19,019 bytes, line 176
176h(r=>{r(t)}))}isOnline(){return M(this,Gi)}},Gi=new WeakMap,sr=new WeakMap,Yi=new WeakMap,$g),ws=new q2;function Q2(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}function G2(e){return Math.min(1e3*2**e,3e4)}function L0(e){return(e??"online")==="online"?ws.isOnline():!0}var M0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ju(e){return e instanceof M0}function _0(e){let t=!1,n=0,r=!1,i;const o=Q2(),l=y=>{var k;r||(p(new M0(y)),(k=e.abort)==null||k.call(e))},a=()=>{t=!0},s=()=>{t=!1},u=()=>O0.isFocused()&&(e.networkMode==="always"||ws.isOnline())&&e.canRun(),d=()=>L0(e.networkMode)&&e.canRun(),c=y=>{var k;r||(r=!0,(k=e.onSuccess)==null||k.call(e,y),i==null||i(),o.resolve(y))},p=y=>{var k;r||(r=!0,(k=e.onError)==null||k.call(e,y),i==null||i(),o.reject(y))},f=()=>new Promise(y=>{var k;i=g=>{(r||u())&&y(g)},(k=e.onPause)==null||k.call(e)}).then(()=>{var y;i=void 0,r||(y=e.onContinue)==null||y.call(e)}),h=()=>{if(r)return;let y;const k=n===0?e.initialPromise:void 0;try{y=k??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(c).catch(g=>{var E;if(r)return;const v=e.retry??(nu?0:3),x=e.retryDelay??G2,C=typeof x=="function"?x(n,g):x,P=v===!0||typeof v=="number"&&n<v||typeof v=="function"&&v(n,g);if(t||!P){p(g);return}n++,(E=e.onFail)==null||E.call(e,n,g),U2(C).then(()=>u()?void 0:f()).then(()=>{t?p(g):h()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:a,continueRetry:s,canStart:d,start:()=>(d()?h():f().then(h),o)}}var Y2=e=>setTimeout(e,0);function X2(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=Y2;const o=a=>{t?e.push(a):i(()=>{n(a)})},l=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(s=>{n(s)})})})};return{batch:a=>{let s;t++;try{s=a()}finally{t--,t||l()}return s},batchCalls:a=>(...s)=>{o(()=>{a(...s)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var it=X2(),Gr,Bg,F0=(Bg=class{constructor(){de(this,Gr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),z2(this.gcTime)&&ne(this,Gr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nu?1/0:5*60*1e3))}clearGcTimeout(){M(this,Gr)&&(clearTimeout(M(this,Gr)),ne(this,Gr,void 0))}},Gr=new WeakMap,Bg),Xi,Yr,Dt,Xr,Xe,Il,Jr,Xt,Nn,Ug,J2=(Ug=class extends F0{constructor(t){super();de(this,Xt);de(this,Xi);de(this,Yr);de(this,Dt);de(this,Xr);de(this,Xe);de(this,Il);de(this,Jr);ne(this,Jr,!1),ne(this,Il,t.defaultOptions),this.setOptions(t.options),this.observers=[],ne(this,Xr,t.client),ne(this,Dt,M(this,Xr).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ne(this,Xi,eP(this.options)),this.state=t.state??M(this,Xi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,Xe))==null?void 0:t.promise}setOptions(t){this.options={...M(this,Il),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Dt).remove(this)}setData(t,n){const r=H2(this.state.data,t,this.options);return Qe(this,Xt,Nn).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Qe(this,Xt,Nn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=M(this,Xe))==null?void 0:r.promise;return(i=M(this,Xe))==null||i.cancel(t),n?n.then(Yt).catch(Yt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,Xi))}isActive(){return this.observers.some(t=>B2(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ip||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Td(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!$2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Xe))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,Xe))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Dt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,Xe)&&(M(this,Jr)?M(this,Xe).cancel({revert:!0}):M(this,Xe).cancelRetry()),this.scheduleGc()),M(this,Dt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Qe(this,Xt,Nn).call(this,{type:"invalidate"})}fetch(t,n){var u,d,c;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,Xe))return M(this,Xe).continueRetry(),M(this,Xe).promise}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(f=>f.options.queryFn);p&&this.setOptions(p.options)}const r=new AbortController,i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(ne(this,Jr,!0),r.signal)})},o=()=>{const p=D0(this.options,n),h=(()=>{const y={client:M(this,Xr),queryKey:this.queryKey,meta:this.meta};return i(y),y})();return ne(this,Jr,!1),this.options.persister?this.options.persister(p,h,this):p(h)},a=(()=>{const p={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,Xr),state:this.state,fetchFn:o};return i(p),p})();(u=this.options.behavior)==null||u.onFetch(a,this),ne(this,Yr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=a.fetchOptions)==null?void 0:d.meta))&&Qe(this,Xt,Nn).call(this,{type:"fetch",meta:(c=a.fetchOptions)==null?void 0:c.meta});const s=p=>{var f,h,y,k;Ju(p)&&p.silent||Qe(this,Xt,Nn).call(this,{type:"error",error:p}),Ju(p)||((h=(f=M(this,Dt).config).onError)==null||h.call(f,p,this),(k=(y=M(this,Dt).config).onSettled)==null||k.call(y,this.state.data,p,this)),this.scheduleGc()};return ne(this,Xe,_0({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var f,h,y,k;if(p===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){s(g);return}(h=(f=M(this,Dt).config).onSuccess)==null||h.call(f,p,this),(k=(y=M(this,Dt).config).onSettled)==null||k.call(y,p,this.state.error,this),this.scheduleGc()},onError:s,onFail:(p,f)=>{Qe(this,Xt,Nn).call(this,{type:"failed",failureCount:p,error:f})},onPause:()=>{Qe(this,Xt,Nn).call(this,{type:"pause"})},onContinue:()=>{Qe(this,Xt,Nn).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),M(this,Xe).start()}},Xi=new WeakMap,Yr=new WeakMap,Dt=new WeakMap,Xr=new WeakMap,Xe=new WeakMap,Il=new WeakMap,Jr=new WeakMap,Xt=new WeakSet,Nn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Z2(r.data,this.options),fetchMeta:t.meta??null};case"success":return ne(this,Yr,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return Ju(i)&&i.revert&&M(this,Yr)?{...M(this,Yr),fetchStatus:"idle"}:{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),it.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,Dt).notify({query:this,type:"updated",action:t})})},Ug);function Z2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:L0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eP(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mn,Hg,tP=(Hg=class extends tu{constructor(t={}){super();de(this,mn);this.config=t,ne(this,mn,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??rp(i,n);let l=this.get(o);return l||(l=new J2({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}add(t){M(this,mn).has(t.queryHash)||(M(this,mn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,mn).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,mn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){it.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,mn).get(t)}getAll(){return[...M(this,mn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>gm(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>gm(t,r)):n}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){it.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},mn=new WeakMap,Hg),gn,nt,Zr,yn,nr,Vg,nP=(Vg=class extends F0{constructor(t){super();de(this,yn);de(this,gn);de(this,nt);de(this,Zr);this.mutationId=t.mutationId,ne(this,nt,t.mutationCache),ne(this,gn,[]),this.state=t.state||rP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,gn).includes(t)||(M(this,gn).push(t),this.clearGcTimeout(),M(this,nt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ne(this,gn,M(this,gn).filter(n=>n!==t)),this.scheduleGc(),M(this,nt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,gn).length||(this.state.status==="pending"?this.scheduleGc():M(this,nt).remove(this))}continue(){var t;return((t=M(this,Zr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,a,s,u,d,c,p,f,h,y,k,g,v,x,C,P,E,j,R;const n=()=>{Qe(this,yn,nr).call(this,{type:"continue"})};ne(this,Zr,_0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(A,T)=>{Qe(this,yn,nr).call(this,{type:"failed",failureCount:A,error:T})},onPause:()=>{Qe(this,yn,nr).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,nt).canRun(this)}));const r=this.state.status==="pending",i=!M(this,Zr).canStart();try{if(r)n();else{Qe(this,yn,nr).call(this,{type:"pending",variables:t,isPaused:i}),await((l=(o=M(this,nt).config).onMutate)==null?void 0:l.call(o,t,this));const T=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));T!==this.state.context&&Qe(this,yn,nr).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const A=await M(this,Zr).start();return await((d=(u=M(this,nt).config).onSuccess)==null?void 0:d.call(u,A,t,this.state.context,this)),await((p=(c=this.options).onSuccess)==null?void 0:p.call(c,A,t,this.state.context)),await((h=(f=M(this,nt).config).onSettled)==null?void 0:h.call(f,A,null,this.state.variables,this.state.context,this)),await((k=(y=this.options).onSettled)==null?void 0:k.call(y,A,null,t,this.state.context)),Qe(this,yn,nr).call(this,{type:"success",data:A}),A}catch(A){try{throw await((v=(g=M(this,nt).config).onError)==null?void 0:v.call(g,A,t,this.state.context,this)),await((C=(x=this.options).onError)==null?void 0:C.call(x,A,t,this.state.context)),await((E=(P=M(this,nt).config).onSettled)==null?void 0:E.call(P,void 0,A,this.state.variables,this.state.context,this)),await((R=(j=this.options).onSettled)==null?void 0:R.call(j,void 0,A,t,this.state.context)),A}finally{Qe(this,yn,nr).call(this,{type:"error",error:A})}}finally{M(this,nt).runNext(this)}}},gn=new WeakMap,nt=new WeakMap,Zr=new WeakMap,yn=new WeakSet,nr=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),it.batch(()=>{M(this,gn).forEach(r=>{r.onMutationUpdate(t)}),M(this,nt).notify({mutation:this,type:"updated",action:t})})},Vg);function rP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var In,Jt,Dl,Wg,iP=(Wg=class extends tu{constructor(t={}){super();de(this,In);de(this,Jt);de(this,Dl);this.config=t,ne(this,In,new Set),ne(this,Jt,new Map),ne(this,Dl,0)}build(t,n,r){const i=new nP({mutationCache:this,mutationId:++Gl(this,Dl)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){M(this,In).add(t);const n=va(t);if(typeof n=="string"){const r=M(this,Jt).get(n);r?r.push(t):M(this,Jt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,In).delete(t)){const n=va(t);if(typeof n=="string"){const r=M(this,Jt).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&M(this,Jt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=va(t);if(typeof n=="string"){const r=M(this,Jt).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=va(t);if(typeof n=="string"){const i=(r=M(this,Jt).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){it.batch(()=>{M(this,In).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,In).clear(),M(this,Jt).clear()})}getAll(){return Array.from(M(this,In))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ym(n,r))}findAll(t={}){return this.getAll().filter(n=>ym(t,n))}notify(t){it.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return it.batch(()=>Promise.all(t.map(n=>n.continue().catch(Yt))))}},In=new WeakMap,Jt=new WeakMap,Dl=new WeakMap,Wg);function va(e){var t;return(t=e.options.scope)==null?void 0:t.id}function km(e){return{onFetch:(t,n)=>{var d,c,p,f,h;const r=t.options,i=(p=(c=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:c.fetchMore)==null?void 0:p.direction,o=((f=t.state.data)==null?void 0:f.pages)||[],l=((h=t.state.data)==null?void 0:h.pageParams)||[];let a={pages:[],pageParams:[]},s=0;const u=async()=>{let y=!1;const k=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=D0(t.options,t.fetchOptions),v=async(x,C,P)=>{if(y)return Promise.reject();if(C==null&&x.pages.length)return Promise.resolve(x);const j=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:C,direction:P?"backward":"forward",meta:t.options.meta};return k(O),O})(),R=await g(j),{maxPages:A}=t.options,T=P?W2:V2;return{pages:T(x.pages,R,A),pageParams:T(x.pageParams,C,A)}};if(i&&o.length){const x=i==="backward",C=x?oP:wm,P={pages:o,pageParams:l},E=C(r,P);a=await v(P,E,x)}else{const x=e??o.length;do{const C=s===0?l[0]??r.initialPageParam:wm(r,a);if(s>0&&C==null)break;a=await v(a,C),s++}while(s<x)}return a};t.options.persister?t.fetchFn=()=>{var y,k;return(k=(y=t.options).persister)==null?void 0:k.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function wm(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function oP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ne,ur,cr,Ji,Zi,dr,eo,to,Kg,lP=(Kg=class{constructor(e={}){de(this,Ne);de(this,ur);de(this,cr);de(this,Ji);de(this,Zi);de(this,dr);de(this,eo);de(this,to);ne(this,Ne,e.queryCache||new tP),ne(this,ur,e.mutationCache||new iP),ne(this,cr,e.defaultOptions||{}),ne(this,Ji,new Map),ne(this,Zi,new Map),ne(this,dr,0)}mount(){Gl(this,dr)._++,M(this,dr)===1&&(ne(this,eo,O0.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ne).onFocus())})),ne(this,to,ws.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,Ne).onOnline())})))}unmount(){var e,t;Gl(this,dr)._--,M(this,dr)===0&&((e=M(this,eo))==null||e.call(this),ne(this,eo,void 0),(t=M(this,to))==null||t.call(this),ne(this,to,void 0))}isFetching(e){return M(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,ur).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,Ne).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Td(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return M(this,Ne).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=M(this,Ne).get(r.queryHash),o=i==null?void 0:i.state.data,l=F2(t,o);if(l!==void 0)return M(this,Ne).build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return it.batch(()=>M(this,Ne).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,Ne);it.batch(()=>
176{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,Ne);return it.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=it.batch(()=>M(this,Ne).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Yt).catch(Yt)}invalidateQueries(e,t={}){return it.batch(()=>(M(this,Ne).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=it.batch(()=>M(this,Ne).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch(Yt)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(Yt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,Ne).build(this,t);return n.isStaleByTime(Td(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Yt).catch(Yt)}fetchInfiniteQuery(e){return e.behavior=km(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Yt).catch(Yt)}ensureInfiniteQueryData(e){return e.behavior=km(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ws.isOnline()?M(this,ur).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,Ne)}getMutationCache(){return M(this,ur)}getDefaultOptions(){return M(this,cr)}setDefaultOptions(e){ne(this,cr,e)}setQueryDefaults(e,t){M(this,Ji).set(Cl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Ji).values()],n={};return t.forEach(r=>{Tl(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Zi).set(Cl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Zi).values()],n={};return t.forEach(r=>{Tl(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,cr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ip&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,cr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,Ne).clear(),M(this,ur).clear()}},Ne=new WeakMap,ur=new WeakMap,cr=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,dr=new WeakMap,eo=new WeakMap,to=new WeakMap,Kg),aP=w.createContext(void 0),sP=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),m.jsx(aP.Provider,{value:e,children:t}));/**
177 * @remix-run/router v1.23.0
178 *
179 * Copyright (c) Remix Software Inc.
180 *
181 * This source code is licensed under the MIT license found in the
182 * LICENSE.md file in the root directory of this source tree.
183 *
184 * @license MIT
185 */function Pl(){return Pl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pl.apply(this,arguments)}var hr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(hr||(hr={}));const bm="popstate";function uP(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:l,hash:a}=r.location;return jd("",{pathname:o,search:l,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:bs(i)}return dP(t,n,null,e)}function _e(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function z0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cP(){return Math.random().toString(36).substr(2,8)}function Sm(e,t){return{usr:e.state,key:e.key,idx:t}}function jd(e,t,n,r){return n===void 0&&(n=null),Pl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ko(t):t,{state:n,key:t&&t.key||r||cP()})}function bs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ko(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function dP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,a=hr.Pop,s=null,u=d();u==null&&(u=0,l.replaceState(Pl({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function c(){a=hr.Pop;let k=d(),g=k==null?null:k-u;u=k,s&&s({action:a,location:y.location,delta:g})}function p(k,g){a=hr.Push;let v=jd(y.location,k,g);u=d()+1;let x=Sm(v,u),C=y.createHref(v);try{l.pushState(x,"",C)}
vendor: 3,324 bytes, line 185
185catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(C)}o&&s&&s({action:a,location:y.location,delta:1})}function f(k,g){a=hr.Replace;let v=jd(y.location,k,g);u=d();let x=Sm(v,u),C=y.createHref(v);l.replaceState(x,"",C),o&&s&&s({action:a,location:y.location,delta:0})}function h(k){let g=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof k=="string"?k:bs(k);return v=v.replace(/ $/,"%20"),_e(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let y={get action(){return a},get location(){return e(i,l)},listen(k){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(bm,c),s=k,()=>{i.removeEventListener(bm,c),s=null}},createHref(k){return t(i,k)},createURL:h,encodeLocation(k){let g=h(k);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:f,go(k){return l.go(k)}};return y}var Em;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Em||(Em={}));function fP(e,t,n){return n===void 0&&(n="/"),pP(e,t,n,!1)}function pP(e,t,n,r){let i=typeof t=="string"?ko(t):t,o=op(i.pathname||"/",n);if(o==null)return null;let l=$0(e);hP(l);let a=null;for(let s=0;a==null&&s<l.length;++s){let u=CP(o);a=SP(l[s],u,r)}return a}function $0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,l,a)=>{let s={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};s.relativePath.startsWith("/")&&(_e(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=Sr([r,s.relativePath]),d=n.concat(s);o.children&&o.children.length>0&&(_e(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),$0(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:wP(u,o.index),routesMeta:d})};return e.forEach((o,l)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,l);else for(let s of B0(o.path))i(o,l,s)}),t}function B0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let l=B0(r.join("/")),a=[];return a.push(...l.map(s=>s===""?o:[o,s].join("/"))),i&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function hP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:bP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mP=/^:[\w-]+$/,gP=3,yP=2,vP=1,xP=10,kP=-2,Cm=e=>e==="*";function wP(e,t){let n=e.split("/"),r=n.length;return n.some(Cm)&&(r+=kP),t&&(r+=yP),n.filter(i=>!Cm(i)).reduce((i,o)=>i+(mP.test(o)?gP:o===""?vP:xP),r)}function bP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function SP(e,t,n){let{routesMeta:r}=e,i={},o="/",l=[];for(let a=0;a<r.length;++a){let s=r[a],u=a===r.length-1,d=o==="/"?t:t.slice(o.length)||"/",c=Tm({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),p=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=Tm({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!c)return null;
vendor: 6,834 bytes, lines 185-194
185Object.assign(i,c.params),l.push({params:i,pathname:Sr([o,c.pathname]),pathnameBase:NP(Sr([o,c.pathnameBase])),route:p}),c.pathnameBase!=="/"&&(o=Sr([o,c.pathnameBase]))}return l}function Tm(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=EP(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],l=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((u,d,c)=>{let{paramName:p,isOptional:f}=d;if(p==="*"){let y=a[c]||"";l=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const h=a[c];return f&&!h?u[p]=void 0:u[p]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:l,pattern:e}}function EP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),z0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,a,s)=>(r.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function CP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return z0(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function op(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function TP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ko(e):e;return{pathname:n?n.startsWith("/")?n:PP(n,t):t,search:AP(r),hash:RP(i)}}function PP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Zu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function U0(e,t){let n=jP(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function H0(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ko(e):(i=Pl({},e),_e(!i.pathname||!i.pathname.includes("?"),Zu("?","pathname","search",i)),_e(!i.pathname||!i.pathname.includes("#"),Zu("#","pathname","hash",i)),_e(!i.search||!i.search.includes("#"),Zu("#","search","hash",i)));let o=e===""||i.pathname==="",l=o?"/":i.pathname,a;if(l==null)a=n;else{let c=t.length-1;if(!r&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),c-=1;i.pathname=p.join("/")}a=c>=0?t[c]:"/"}let s=TP(i,a),u=l&&l!=="/"&&l.endsWith("/"),d=(o||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}const Sr=e=>e.join("/").replace(/\/\/+/g,"/"),NP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function IP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const V0=["post","put","patch","delete"];new Set(V0);const DP=["get",...V0];new Set(DP);/**
186 * React Router v6.30.1
187 *
188 * Copyright (c) Remix Software Inc.
189 *
190 * This source code is licensed under the MIT license found in the
191 * LICENSE.md file in the root directory of this source tree.
192 *
193 * @license MIT
194 */function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jl.apply(this,arguments)}const lp=w.createContext(null),OP=w.createContext(null),pi=w.createContext(null),ru=w.createContext(null),hi=w.createContext({outlet:null,matches:[],isDataRoute:!1}),W0=w.createContext(null);function LP(e,t){let{relative:n}=t===void 0?{}:t;Hl()||_e(!1);let{basename:r,navigator:i}=w.useContext(pi),{hash:o,pathname:l,search:a}=q0(e,{relative:n}),s=l;return r!=="/"&&(s=l==="/"?r:Sr([r,l])),i.createHref({pathname:s,search:a,hash:o})}function Hl(){return w.useContext(ru)!=null}function Vl(){return Hl()||_e(!1),w.useContext(ru).location}function K0(e){w.useContext(pi).static||w.useLayoutEffect(e)}function MP(){let{isDataRoute:e}=w.useContext(hi);return e?GP():_P()}function _P(){Hl()||_e(!1);let e=w.useContext(lp),{basename:t,future:n,navigator:r}=w.useContext(pi),{matches:i}=w.useContext(hi),{pathname:o}=Vl(),l=JSON.stringify(U0(i,n.v7_relativeSplatPath)),a=w.useRef(!1);return K0(()=>{a.current=!0}),w.useCallback(function(u,d){if(d===void 0&&(d={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let c=H0(u,JSON.parse(l),o,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Sr([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,l,o,e])}function q0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(pi),{matches:i}=w.useContext(hi),{pathname:o}=Vl(),l=JSON.stringify(U0(i,r.v7_relativeSplatPath));return w.useMemo(()=>H0(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function FP(e,t){return zP(e,t)}function zP(e,t,n,r){Hl()||_e(!1);let{navigator:i}=w.useContext(pi),{matches:o}=w.useContext(hi),l=o[o.length-1],a=l?l.params:{};l&&l.pathname;let s=l?l.pathnameBase:"/";l&&l.route;let u=Vl(),d;if(t){var c;let k=typeof t=="string"?ko(t):t;s==="/"||(c=k.pathname)!=null&&c.startsWith(s)||_e(!1),d=k}else d=u;let p=d.pathname||"/",f=p;if(s!=="/"){let k=s.replace(/^\//,"").split("/");f="/"+p.replace(/^\//,"").split("/").slice(k.length).join("/")}let h=fP(e,{pathname:f}),y=VP(h&&h.map(k=>Object.assign({},k,{params:Object.assign({},a,k.params),pathname:Sr([s,i.encodeLocation?i.encodeLocation(k.pathname).pathname:k.pathname]),pathnameBase:k.pathnameBase==="/"?s:Sr([s,i.encodeLocation?i.encodeLocation(k.pathnameBase).pathname:k.pathnameBase])})),o,n,r);return t&&y?w.createElement(ru.Provider,{value:{location:jl({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:hr.Pop}},y):y}function $P(){let e=QP(),t=IP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application 
194Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,null)}const BP=w.createElement($P,null);class UP extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(hi.Provider,{value:this.props.routeContext},w.createElement(W0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function HP(e){let{routeContext:t,match:n,children:r}=e,i=w.useContext(lp);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(hi.Provider,{value:t},r)}function VP(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let d=l.findIndex(c=>c.route.id&&(a==null?void 0:a[c.route.id])!==void 0);d>=0||_e(!1),l=l.slice(0,Math.min(l.length,d+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<l.length;d++){let c=l[d];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=d),c.route.id){let{loaderData:p,errors:f}=n,h=c.route.loader&&p[c.route.id]===void 0&&(!f||f[c.route.id]===void 0);if(c.route.lazy||h){s=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,c,p)=>{let f,h=!1,y=null,k=null;n&&(f=a&&c.route.id?a[c.route.id]:void 0,y=c.route.errorElement||BP,s&&(u<0&&p===0?(h=!0,k=null):u===p&&(h=!0,k=c.route.hydrateFallbackElement||null)));let g=t.concat(l.slice(0,p+1)),v=()=>{let x;return f?x=y:h?x=k:c.route.Component?x=w.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=d,w.createElement(HP,{match:c,routeContext:{outlet:d,matches:g,isDataRoute:n!=null},children:x})};return n&&(c.route.ErrorBoundary||c.route.errorElement||p===0)?w.createElement(UP,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var Q0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Q0||{}),Ss=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ss||{});function WP(e){let t=w.useContext(lp);return t||_e(!1),t}function KP(e){let t=w.useContext(OP);return t||_e(!1),t}function qP(e){let t=w.useContext(hi);return t||_e(!1),t}function G0(e){let t=qP(),n=t.matches[t.matches.length-1];return n.route.id||_e(!1),n.route.id}function QP(){var e;let t=w.useContext(W0),n=KP(Ss.UseRouteError),r=G0(Ss.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function GP(){let{router:e}=WP(Q0.UseNavigateStable),t=G0(Ss.UseNavigateStable),n=w.useRef(!1);return K0(()=>{n.current=!0}),w.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,jl({fromRouteId:t},o)))},[e,t])}function YP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Ba(e){_e(!1)}function XP(e){let{basename:t="/",children:n=null,location:r,navigationType:i=hr.Pop,navigator:o,static:l=!1,future:a}=e;Hl()&&_e(!1);let s=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:s,navigator:o,static:l,future:jl({v7_relativeSplatPath:!1},a)}),[s,a,o,l]);typeof r=="string"&&(r=ko(r));let{pathname:d="/",search:c="",hash:p="",state:f=null,key:h="default"}=r,y=w.useMemo(()=>{let k=op(d,s);return k==null?null:{location:{pathname:k,search:c,hash:p,state:f,key:h},navigationType:i}},[s,d,c,p,f,h,i]);return y==null?null:w.createElement(pi.Provider,{value:u},w.createElement(ru.Provider,{children:n,value:y}))}function JP(e){let{children:t,location:n}=e;return FP(Nd(t),n)}new Promise(()=>{});
194function Nd(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let o=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Nd(r.props.children,o));return}r.type!==Ba&&_e(!1),!r.props.index||!r.props.children||_e(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Nd(r.props.children,o)),n.push(l)}),n}/**
195 * React Router DOM v6.30.1
196 *
197 * Copyright (c) Remix Software Inc.
198 *
199 * This source code is licensed under the MIT license found in the
200 * LICENSE.md file in the root directory of this source tree.
201 *
202 * @license MIT
203 */function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function ZP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ej(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tj(e,t){return e.button===0&&(!t||t==="_self")&&!ej(e)}const nj=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rj="6";try{window.__reactRouterVersion=rj}catch{}const ij="startTransition",Pm=ry[ij];function oj(e){let{basename:t,children:n,future:r,window:i}=e,o=w.useRef();o.current==null&&(o.current=uP({window:i,v5Compat:!0}));let l=o.current,[a,s]=w.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=w.useCallback(c=>{u&&Pm?Pm(()=>s(c)):s(c)},[s,u]);return w.useLayoutEffect(()=>l.listen(d),[l,d]),w.useEffect(()=>YP(r),[r]),w.createElement(XP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:l,future:r})}const lj=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",aj=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xa=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:l,state:a,target:s,to:u,preventScrollReset:d,viewTransition:c}=t,p=ZP(t,nj),{basename:f}=w.useContext(pi),h,y=!1;if(typeof u=="string"&&aj.test(u)&&(h=u,lj))try{let x=new URL(window.location.href),C=u.startsWith("//")?new URL(x.protocol+u):new URL(u),P=op(C.pathname,f);C.origin===x.origin&&P!=null?u=P+C.search+C.hash:y=!0}catch{}let k=LP(u,{relative:i}),g=sj(u,{replace:l,state:a,target:s,preventScrollReset:d,relative:i,viewTransition:c});function v(x){r&&r(x),x.defaultPrevented||g(x)}return w.createElement("a",Ad({},p,{href:h||k,onClick:y||o?r:v,ref:n,target:s}))});var jm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jm||(jm={}));var Nm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Nm||(Nm={}));function sj(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:l,viewTransition:a}=t===void 0?{}:t,s=MP(),u=Vl(),d=q0(e,{relative:l});return w.useCallback(c=>{if(tj(c,n)){c.preventDefault();let p=r!==void 0?r:bs(u)===bs(d);s(e,{replace:p,state:i,preventScrollReset:o,relative:l,viewTransition:a})}},[u,s,d,r,i,n,e,o,l,a])}const _t=w.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Fe("rounded-lg border bg-card/80 backdrop-blur-sm text-card-foreground shadow-card-fantasy border-border/50",e),...t}));_t.displayName="Card";const Zo=w.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Fe("flex flex-col space-y-1.5 p-6",e),...t}));Zo.displayName="CardHeader";const Y0=w.forwardRef(({className:e,...t},n)=>m.jsx("h3",{ref:n,className:Fe("text-2xl font-semibold leading-none tracking-tight",e),...t}));
vendor: 2,561 bytes, line 203
203Y0.displayName="CardTitle";const Ua=w.forwardRef(({className:e,...t},n)=>m.jsx("p",{ref:n,className:Fe("text-sm text-muted-foreground",e),...t}));Ua.displayName="CardDescription";const el=w.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Fe("p-6 pt-0",e),...t}));el.displayName="CardContent";const uj=w.forwardRef(({className:e,...t},n)=>m.jsx("div",{ref:n,className:Fe("flex items-center p-6 pt-0",e),...t}));uj.displayName="CardFooter";const Mi=w.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{type:t,className:Fe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));Mi.displayName="Input";const cj=Kf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-gradient-magic text-primary-foreground hover:shadow-magic transition-all duration-300 hover:scale-105",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-primary/50 bg-background/20 backdrop-blur-sm text-foreground hover:bg-primary/10 hover:border-primary",secondary:"bg-gradient-ancient text-secondary-foreground hover:shadow-glow transition-all duration-300",ghost:"hover:bg-accent/20 hover:text-accent-foreground backdrop-blur-sm",link:"text-primary underline-offset-4 hover:underline",magic:"bg-gradient-magic text-primary-foreground hover:shadow-glow transition-all duration-500 hover:scale-105 border border-primary-glow/30"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pt=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},o)=>{const l=r?BS:"button";return m.jsx(l,{className:Fe(cj({variant:t,size:n,className:e})),ref:o,...i})});pt.displayName="Button";const X0=w.forwardRef(({className:e,...t},n)=>m.jsx("textarea",{className:Fe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm r
203ing-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));X0.displayName="Textarea";var dj="Label",J0=w.forwardRef((e,t)=>m.jsx(De.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));J0.displayName=dj;var Z0=J0;const fj=Kf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Br=w.forwardRef(({className:e,...t},n)=>m.jsx(Z0,{ref:n,className:Fe(fj(),e),...t}));Br.displayName=Z0.displayName;const Es=["styrka","vighet","vett","charm"],Ln={styrka:{label:"Styrka",blurb:"Slåss, bära, bryta, uthärda",skills:["strid","styrka","kraft","brottning","uthållighet","klättra","hugga"]},vighet:{label:"Vighet",blurb:"Smyga, undvika, sikta, springa",skills:["smyg","vighet","akrobatik","reflex","bågskytte","fingerfärdighet","undvika","springa"]},vett:{label:"Vett",blurb:"Se detaljer, minnas, magi, lista ut",skills:["vett","kunskap","runor","magi","spåra","iaktta","undersöka","läkekonst","överlevnad","lyssna"]},charm:{label:"Charm",blurb:"Övertala, ljuga, leda, trösta",skills:["charm","övertala","bluff","ljuga","förhandla","uppträda","skrämma","trösta"]}},pj=8,Am=1,Rm=5,hj={styrka:2,vighet:2,vett:2,charm:2};function iu(e){return Math.max(-1,Math.min(3,e-2))}function e1(e){return e>=0?`+${e}`:`${e}`}function t1(e){if(!e)return null;const t=e.toLowerCase();for(const n of Es)if(Ln[n].skills.some(r=>t.includes(r)))return n;return null}function mj(e,t){const n=t1(e);return!n||!t?{attribute:n,bonus:0}:{attribute:n,bonus:iu(t[n])}}const Kr=[{id:"jarnvinter",title:"Järnvinterns kall",emoji:"❄️",tagline:"En by svälter medan något går i snön om nätterna",prompt:"Byn Vargmyra har haft nio månaders vinter. Boskapen är slaktad, prästen har slutat predika, och varje morgon finns nya spår i snön runt husen — spår av något som går på två ben men saknar tår. Byborna har börjat lämna ut mat. Och sedan barn."},{id:"dimskogen",title:"Dimmorna över Dimskogen",emoji:"🌲",tagline:"Skogen flyttar stigarna och håller de försvunna vakna",prompt:"Dimskogen har ätit fjorton vandrare i år. De som kommer ut minns inget utom en sång, och de börjar alla nynna den samtidigt vid solnedgången. Djupt inne står något som en gång var ett kapell, och dess klocka ringer utan tåg."},{id:"grahamn",title:"Blodet i Gråhamn",emoji:"⚓",tagline:"Stadsintriger, gillen och en gudinna som kräver betalt",prompt:"I hamnstaden Gråhamn har tre gillesmästare mördats på fjorton dagar, alla med samma mynt under tungan. Vakten är köpt, Tiggarkungen vet mer än han säger, och något stiger ur hamnbassängen när dimman ligger tät."},{id:"runberget",title:"Runbergets sömn",emoji:"🪨",tagline:"En grav som öppnats för tidigt och en arvedel du inte bad om",prompt:"Gravhögen på Runberget bröts upp av gravplundrare i våras. Sedan dess drömmer alla i socknen samma dröm: en kvinna i järnmask som räknar namn — och ditt namn kommer sist. Runorna på hällen har börjat ändra sig av sig själva."},{id:"overraskning",title:"Överraska mig",emoji:"🎲",tagline:"Låt Sagovävaren väva något helt eget åt dig",prompt:""}],Cs=[0,100,250,475,800,1250,1850,2600,3550,4700];function tl(e){let t=1;for(let n=0;n<Cs.length;n++)e>=Cs[n]&&(t=n+1);return t}function gj(e){const t=tl(e),n=Cs[t-1]??0,r=Cs[t]??n+1200,i=Math.max(0,Math.min(100,(e-n)/(r-n)*100));return{level:t,floor:n,next:r,pct:i}}const Im=["Vandrare","Sökare","Väktare","Bane","Sagosmed","Ödesbärare","Legend","Runmästare","Sagokung","Evig"];function n1(e){return Im[Math.min(e,Im.length)-1]}const ec=["Lugnt","Vaksamt","Spänt","Farligt","Dödligt","Undergång"];function yj(e){return e===void 0?ec[0]:ec[Math.max(0,Math.min(ec.length-1,e))]}const vj=e=>e.replace(/\[T[ÄA]RNINGSKAST[^\]]*\]/gi,"").replace(/\[(NARRATIV|VAL|STATUS)\]/gi,"").trim();function Nl(e){const t=(e||"20/20").match(/(-?\d+)\s*\/\s*(\d+)/);return{current:t?parseInt(t[1],10):20,max:t?parseInt(t[2],10):20}}function xj(e){return Nl(e.hp).current<=0}function Dm(e){if(!e)return{narrative:"",choices:[],status:{}};const t=e.match(/\[NARRATIV\]([\s\S]*?)(?=\[VAL\]|\[STATUS\]|$)/i),n=e.match(/\[VAL\]([\s\S]*?)(?=\[STATUS\]|$)/i),r=e.match(/\[STATUS\]([\s\S]*?)$/i),i=vj(t?t[1]:e),o=[];if(n){const u=n[1].split(`
204`);for(const d of u){const c=d.replace(/^[\s\-•*\d.)\]]+/,"").trim(),p=/^\*?eller\b|beskriv din egen/i.test(c);c&&c.length>1&&!p&&o.push(c.replace(/\*+$/,"").trim())}}const l={};if(r){const u=r[1],d=R=>{const A=u.match(R);return A?A[1].trim():void 0},c=d(/HP\s*:\s*([^\n|]+)/i),p=d(/Plats\s*:\s*([^\n|]+)/i),f=d(/Tid\s*:\s*([^\n|]+)/i),h=d(/Stämning\s*:\s*([^\n|]+)/i),y=d(/Inventarie\s*:\s*([^\n]+)/i),k=d(/XP\s*:\s*(\d+)/i),g=d(/Guld\s*:\s
204*(\d+)/i),v=d(/Uppdrag\s*:\s*([^\n]+)/i),x=d(/Tillstånd\s*:\s*([^\n]+)/i),C=d(/Följeslagare\s*:\s*([^\n]+)/i),P=d(/Kapitel\s*:\s*([^\n|]+)/i),E=d(/Fara\s*:\s*(\d)/i);c&&(l.hp=c),p&&(l.location=p),f&&(l.time=f),h&&(l.mood=h),k&&(l.xp=parseInt(k,10)),g&&(l.gold=parseInt(g,10)),E&&(l.danger=parseInt(E,10)),P&&!/^(inget|ingen|-)$/i.test(P)&&(l.chapter=P),v&&!/^(inget|ingen|-)$/i.test(v)&&(l.quest=v);const j=R=>R.split(",").map(A=>A.trim()).filter(A=>A&&!/^(inget|inga|ingen|-)$/i.test(A));y&&(l.inventory=j(y)),x&&(l.effects=j(x)),C&&(l.companions=j(C))}let a;const s=e.match(/\[T[ÄA]RNINGSKAST\s*:\s*([^,\]]+)(?:,\s*sv[åa]righet\s*(\d+))?\]/i);return s&&(a={skill:s[1].trim(),difficulty:s[2]?parseInt(s[2],10):12}),{narrative:i,choices:o,status:l,dice:a}}function Rd(e=20){return Math.floor(Math.random()*e)+1}function r1(e,t,n){const r=n??e;return r===20?"critical":r===1?"disaster":t?e>=t?"success":e>=t-3?"partial":"failure":e>=15?"success":e>=10?"partial":e>=5?"failure":"disaster"}const i1={critical:"Naturlig 20 — spektakulär framgång!",success:"Framgång",partial:"Lyckat med komplikation",failure:"Misslyckande",disaster:"Dramatiskt misslyckande"};function kj(e,t,n){return i1[r1(e,t,n)]}const wj=[{label:"Undersök",text:"Jag undersöker omgivningen noggrant."},{label:"Lyssna",text:"Jag står still och lyssnar efter ljud."},{label:"Tala",text:"Jag försöker inleda ett samtal."},{label:"Vila",text:"Jag söker en trygg plats och vilar en stund."},{label:"Vad minns jag?",text:"Jag söker i mitt minne efter något som förklarar det här."}],bj=[{emoji:"🗡️",tagline:"Bruten krigare med ett löfte att hålla",name:"Astrid Järnhand",race:"Människa",class:"Krigare",background:"Legosoldat",attributes:{styrka:5,vighet:3,vett:2,charm:2},description:"En bredaxlad kvinna med grått i flätan och ett svärd hon svor att aldrig lyfta igen. Hon bär sin döda systers ring om halsen och söker mannen som brände byn Vargmyra. Hård utåt, lojal in i döden, sover aldrig hela nätter."},{emoji:"🔮",tagline:"Runmagiker som läser mer än hon borde",name:"Sigrun Nattöga",race:"Halvalv",class:"Runmagiker",background:"Klosterlärling",attributes:{styrka:1,vighet:2,vett:5,charm:4},description:"Smal, blek och alltid frusen. Hon lärde sig runornas språk i ett bibliotek som brann, och nu viskar bokstäverna till henne när hon somnar. Nyfiken till självdestruktivitet, känner att någonting följer henne genom drömmar."},{emoji:"🐺",tagline:"Skogsvandrare med varg i blodet",name:"Brynjar Ulvsson",race:"Människa",class:"Jägare",background:"Fälleman",attributes:{styrka:3,vighet:4,vett:4,charm:1},description:"Solbränd, tystlåten, luktar av rök och granris. Han växte upp bland vargar efter att hans far försvann i Dimskogen, och hör djurens språk bättre än människors. Söker sin fars sista lägerplats — och sanningen om vad som tog honom."},{emoji:"🎭",tagline:"Tjuv med charmen som vapen",name:"Vidar Räv",race:"Halvling",class:"Tjuv",background:"Gatubarn",attributes:{styrka:1,vighet:5,vett:2,charm:4},description:"Kortväxt, snabb och alltid leende — särskilt när han ljuger. Uppvuxen i hamnkvarteren i Gråhamn, med skulder till tre gillen och en gudinna. Bär en stulen nyckel som ingen dörr han hittat passar till."}],Sj=({onCharacterCreated:e})=>{const[t,n]=w.useState({name:"",race:"",class:"",background:"",description:""}),[r,i]=w.useState(hj),[o,l]=w.useState(Kr[0].id),a=Es.reduce((h,y)=>h+r[y],0),s=pj-a,u=Kr.find(h=>h.id===o)??Kr[0],d=(h,y)=>{i(k=>{const g=k[h]+y;return g<Am||g>Rm||y>0&&s<=0?k:{...k,[h]:g}})},c=h=>{h.preventDefault(),t.name&&t.description&&e({...t,attributes:r},u)},p=(h,y)=>{n(k=>({...k,[h]:y}))},f=h=>{const{emoji:y,tagline:k,...g}=h;e(g,u)};return m.jsxs("div",{className:"w-full max-w-2xl mx-auto space-y-6",children:[m.jsxs(_t,{className:"bg-card/80 backdrop-blur-md",children:[m.jsxs(Zo,{className:"text-center pb-3",children:[m.jsx("h2",{className:"text-2xl font-semibold leading-none tracking-tight text-xl text-secondary",children:"Välj äventyr"}),m.jsx(Ua,{children:"Vilken saga vill du kastas in i?"})]}),m.jsx(el,{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Kr.map(h=>m.jsxs("button",{type:"button",onClick:()=>l(h.id),"aria-pressed":h.id===o,className:`text-left p-3 rounded-lg border transition-all ${h.id===o?"border-secondary bg-secondary/15 shadow-magic":"border-border/60 bg-muted/20 hover:bg-primary/15 hover:border-primary/60"}`,children:[m.jsx("span",{className:"text-xl","aria-hidden":"true",children:h.emoji}),m.jsx("p",{className:"font-semibold text-sm mt-1",children:h.title}),m.jsx("p",{className:"text-xs text-muted-foreground",children:h.tagline})]}
204,h.id))})]}),m.jsxs(_t,{className:"bg-card/80 backdrop-blur-md",children:[m.jsxs(Zo,{className:"text-center pb-3",children:[m.jsx("h2",{className:"text-2xl font-semibold leading-none tracking-tight text-xl text-secondary",children:"Snabbstart — välj en hjälte"}),m.jsx(Ua,{children:"Färdiga egenskaper, äventyret börjar direkt"})]}),m.jsx(el,{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:bj.map(h=>m.jsxs("button",{type:"button",onClick:()=>f(h),className:"text-left p-3 rounded-lg border border-border/60 bg-muted/20 hover:bg-primary/20 hover:border-primary/60 transition-all",children:[m.jsx("span",{className:"text-2xl","aria-hidden":"true",children:h.emoji}),m.jsx("p",{className:"font-semibold mt-1",children:h.name}),m.jsx("p",{className:"text-xs text-muted-foreground",children:h.tagline}),m.jsxs("p",{className:"text-[11px] font-mono text-secondary/90 mt-1",children:["STY ",h.attributes.styrka," · VIG ",h.attributes.vighet," · VET"," ",h.attributes.vett," · CHA ",h.attributes.charm]})]},h.name))})]}),m.jsxs(_t,{className:"bg-card/80 backdrop-blur-md",children:[m.jsxs(Zo,{className:"text-center",children:[m.jsx("h2",{className:"text-3xl font-semibold leading-none tracking-tight bg-gradient-ancient bg-clip-text text-transparent",children:"Skapa din karaktär"}),m.jsx(Ua,{className:"text-lg",children:"Beskriv din hjälte och fördela hennes styrkor"})]}),m.jsx(el,{children:m.jsxs("form",{onSubmit:c,className:"space-y-6",children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(Br,{htmlFor:"name",children:"Namn"}),m.jsx(Mi,{id:"name",value:t.name,onChange:h=>p("name",h.target.value),placeholder:"T.ex. Astrid den Modiga",required:!0})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Br,{htmlFor:"race",children:"Ras"}),m.jsx(Mi,{id:"race",value:t.race,onChange:h=>p("race",h.target.value),placeholder:"T.ex. Människa, Alv, Dvärg"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Br,{htmlFor:"class",children:"Klass"}),m.jsx(Mi,{id:"class",value:t.class,onChange:h=>p("class",h.target.value),placeholder:"T.ex. Krigare, Magiker, Tjuv"})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Br,{htmlFor:"background",children:"Bakgrund"}),m.jsx(Mi,{id:"background",value:t.background,onChange:h=>p("background",h.target.value),placeholder:"T.ex. Smed, Handelsman, Eremit"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsxs("div",{className:"flex items-baseline justify-between",children:[m.jsx(Br,{children:"Egenskaper"}),m.jsxs("span",{className:`text-xs font-mono ${s===0?"text-muted-foreground":"text-secondary"}`,children:[s," poäng kvar"]})]}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:Es.map(h=>m.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg border border-border/50 bg-muted/20",children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("p",{className:"text-sm font-semibold",children:[Ln[h].label," ",m.jsx("span",{className:"text-xs font-mono text-secondary",children:e1(iu(r[h]))})]}),m.jsx("p",{className:"text-[11px] text-muted-foreground truncate",children:Ln[h].blurb})]}),m.jsx(pt,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7","aria-label":`Minska ${Ln[h].label}`,onClick:()=>d(h,-1),disabled:r[h]<=Am,children:m.jsx(UE,{className:"w-3 h-3"})}),m.jsx("span",{className:"w-5 text-center font-mono",children:r[h]}),m.jsx(pt,{type:"button",variant:"outline",size:"icon",className:"h-7 w-7","aria-label":`Öka ${Ln[h].label}`,onClick:()=>d(h,1),disabled:r[h]>=Rm||s<=0,children:m.jsx(VE,{className:"w-3 h-3"})})]},h))})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Br,{htmlFor:"description",children:"Beskrivning av din karaktär"}),m.jsx(X0,{id:"description",value:t.description,onChange:h=>p("description",h.target.value),placeholder:"Beskriv utseende, personlighet, bakgrundsstory och mål. Ju mer detaljer, desto mer personlig blir din saga.",className:"min-h-32",required:!0})]}),m.jsxs(pt,{type:"submit",variant:"magic",size:"lg",className:"w-full",disabled:!t.name||!t.de
vendor: 4,418 bytes, line 204
204scription,children:["Börja äventyret — ",u.title," ✨"]})]})})]})]})};var Ej=w.createContext(void 0);function Cj(e){const t=w.useContext(Ej);return e||t||"ltr"}function Tj(e,[t,n]){return Math.min(n,Math.max(t,e))}function Pj(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var ap="ScrollArea",[o1,cL]=$l(ap),[jj,Ut]=o1(ap),l1=w.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:r="hover",dir:i,scrollHideDelay:o=600,...l}=e,[a,s]=w.useState(null),[u,d]=w.useState(null),[c,p]=w.useState(null),[f,h]=w.useState(null),[y,k]=w.useState(null),[g,v]=w.useState(0),[x,C]=w.useState(0),[P,E]=w.useState(!1),[j,R]=w.useState(!1),A=qe(t,O=>s(O)),T=Cj(i);return m.jsx(jj,{scope:n,type:r,dir:T,scrollHideDelay:o,scrollArea:a,viewport:u,onViewportChange:d,content:c,onContentChange:p,scrollbarX:f,onScrollbarXChange:h,scrollbarXEnabled:P,onScrollbarXEnabledChange:E,scrollbarY:y,onScrollbarYChange:k,scrollbarYEnabled:j,onScrollbarYEnabledChange:R,onCornerWidthChange:v,onCornerHeightChange:C,children:m.jsx(De.div,{dir:T,...l,ref:A,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});l1.displayName=ap;var a1="ScrollAreaViewport",s1=w.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:r,nonce:i,...o}=e,l=Ut(a1,n),a=w.useRef(null),s=qe(t,a,l.onViewportChange);return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),m.jsx(De.div,{"data-radix-scroll-area-viewport":"",...o,ref:s,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:m.jsx("div",{ref:l.onContentChange,style:{minWidth:"100%",display:"table"},children:r})})]})});s1.displayName=a1;var Sn="ScrollAreaScrollbar",sp=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Ut(Sn,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:l}=i,a=e.orientation==="horizontal";return w.useEffect(()=>(a?o(!0):l(!0),()=>{a?o(!1):l(!1)}),[a,o,l]),i.type==="hover"?m.jsx(Nj,{...r,ref:t,forceMount:n}):i.type==="scroll"?m.jsx(Aj,{...r,ref:t,forceMount:n}):i.type==="auto"?m.jsx(u1,{...r,ref:t,forceMount:n}):i.type==="always"?m.jsx(up,{...r,ref:t}):null});sp.displayName=Sn;var Nj=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Ut(Sn,e.__scopeScrollArea),[o,l]=w.useState(!1);return w.useEffect(()=>{const a=i.scrollArea;let s=0;if(a){const u=()=>{window.clearTimeout(s),l(!0)},d=()=>{s=window.setTimeout(()=>l(!1),i.scrollHideDelay)};return a.addEventListener("pointerenter",u),a.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),a.removeEventListener("pointerenter",u),a.removeEventListener("pointerleave",d)}}},[i.scrollArea,i.scrollHideDelay]),m.jsx(fi,{present:n||o,children:m.jsx(u1,{"data-state":o?"visible":"hidden",...r,ref:t})})}),Aj=w.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Ut(Sn,e.__scopeScrollArea),o=e.orientation==="horizontal",l=lu(()=>s("SCROLL_END"),100),[a,s]=Pj("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return w.useEffect(()=>{if(a==="idle"){const u=window.setTimeout(()=>s("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(u)}},[a,i.scrollHideDelay,s]),w.useEffect(()=>{const u=i.viewport,d=o?"scrollLeft":"scrollTop";if(u){let c=u[d];const p=()=>{const f=u[d];c!==f&&(s("SCROLL"),l()),c=f};return u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[i.viewport,o,s,l]),m.jsx(fi,{present:n||a!=="hidden",children:m.jsx(up,{"data-state":a==="hidden"?"hidden":"visible",...r,ref:t,onPointerEnter:ge(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:ge(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),u1=w.forwardRef((e,t)=>{const n=Ut(Sn,e.__scopeScrollArea),{forceMount:r,...i}=e,[o,l]=w.useState(!1),a=e.orientation==="horizontal",s=lu(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;l(a?u:d)}},10);return fo(n.viewport,s),fo(n.content,s),m.jsx(fi,{present:r||o,children:m.jsx(up,{"data-state":o?"visible":"hidden",...i,ref:t})})}),up=w.forwardRef((e,t)=>
vendor: 4,364 bytes, line 204
204{const{orientation:n="vertical",...r}=e,i=Ut(Sn,e.__scopeScrollArea),o=w.useRef(null),l=w.useRef(0),[a,s]=w.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=h1(a.viewport,a.content),d={...r,sizes:a,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:p=>o.current=p,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:p=>l.current=p};function c(p,f){return Mj(p,l.current,a,f)}return n==="horizontal"?m.jsx(Rj,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const p=i.viewport.scrollLeft,f=Om(p,a,i.dir);o.current.style.transform=`translate3d(${f}px, 0, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollLeft=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollLeft=c(p,i.dir))}}):n==="vertical"?m.jsx(Ij,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&o.current){const p=i.viewport.scrollTop,f=Om(p,a);o.current.style.transform=`translate3d(0, ${f}px, 0)`}},onWheelScroll:p=>{i.viewport&&(i.viewport.scrollTop=p)},onDragScroll:p=>{i.viewport&&(i.viewport.scrollTop=c(p))}}):null}),Rj=w.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=Ut(Sn,e.__scopeScrollArea),[l,a]=w.useState(),s=w.useRef(null),u=qe(t,s,o.onScrollbarXChange);return w.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.jsx(d1,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ou(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.x),onDragScroll:d=>e.onDragScroll(d.x),onWheelScroll:(d,c)=>{if(o.viewport){const p=o.viewport.scrollLeft+d.deltaX;e.onWheelScroll(p),g1(p,c)&&d.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&r({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Ps(l.paddingLeft),paddingEnd:Ps(l.paddingRight)}})}})}),Ij=w.forwardRef((e,t)=>{const{sizes:n,onSizesChange:r,...i}=e,o=Ut(Sn,e.__scopeScrollArea),[l,a]=w.useState(),s=w.useRef(null),u=qe(t,s,o.onScrollbarYChange);return w.useEffect(()=>{s.current&&a(getComputedStyle(s.current))},[s]),m.jsx(d1,{"data-orientation":"vertical",...i,ref:u,sizes:n,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ou(n)+"px",...e.style},onThumbPointerDown:d=>e.onThumbPointerDown(d.y),onDragScroll:d=>e.onDragScroll(d.y),onWheelScroll:(d,c)=>{if(o.viewport){const p=o.viewport.scrollTop+d.deltaY;e.onWheelScroll(p),g1(p,c)&&d.preventDefault()}},onResize:()=>{s.current&&o.viewport&&l&&r({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Ps(l.paddingTop),paddingEnd:Ps(l.paddingBottom)}})}})}),[Dj,c1]=o1(Sn),d1=w.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:o,onThumbPointerUp:l,onThumbPointerDown:a,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:d,onResize:c,...p}=e,f=Ut(Sn,n),[h,y]=w.useState(null),k=qe(t,A=>y(A)),g=w.useRef(null),v=w.useRef(""),x=f.viewport,C=r.content-r.viewport,P=ot(d),E=ot(s),j=lu(c,10);function R(A){if(g.current){const T=A.clientX-g.current.left,O=A.clientY-g.current.top;u({x:T,y:O})}}return w.useEffect(()=>{const A=T=>{const O=T.target;(h==null?void 0:h.contains(O))&&P(T,C)};return document.addEventListener("wheel",A,{passive:!1}),()=>document.removeEventListener("wheel",A,{passive:!1})},[x,h,C,P]),w.useEffect(E,[r,E]),fo(h,j),fo(f.content,j),m.jsx(Dj,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:ot(o),onThumbPointerUp:ot(l),onThumbPositionChange:E,onThumbPointerDown:ot(a),children:m.jsx(De.div,{...p,ref:k,style:{position:"absolute",...p.style},onPointerDown:ge(e.onPointerDown,A=>{A.button===0&&(A.target.setPointerCapture(A.pointerId),g.current=h.getBoundingClientRect(),v.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),R(A))}),onPointerMove:ge(e.onPointerMove,R),onPointerUp:ge(e.onPointerUp,A=>{const T=A.target;T.hasPointerCapture(A.pointerId)&&T.releasePointerCapture(A.pointerId),document.body.style.webkitUserSelect=v.current,f.viewport&&(f.viewport.style.scrollBehavior=""),g.current=null})})})}),Ts="ScrollAreaThumb",f1=w.forwardRef((e,t)=>
vendor: 1,228 bytes, line 204
204{const{forceMount:n,...r}=e,i=c1(Ts,e.__scopeScrollArea);return m.jsx(fi,{present:n||i.hasThumb,children:m.jsx(Oj,{ref:t,...r})})}),Oj=w.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:r,...i}=e,o=Ut(Ts,n),l=c1(Ts,n),{onThumbPositionChange:a}=l,s=qe(t,c=>l.onThumbChange(c)),u=w.useRef(void 0),d=lu(()=>{u.current&&(u.current(),u.current=void 0)},100);return w.useEffect(()=>{const c=o.viewport;if(c){const p=()=>{if(d(),!u.current){const f=_j(c,a);u.current=f,a()}};return a(),c.addEventListener("scroll",p),()=>c.removeEventListener("scroll",p)}},[o.viewport,d,a]),m.jsx(De.div,{"data-state":l.hasThumb?"visible":"hidden",...i,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...r},onPointerDownCapture:ge(e.onPointerDownCapture,c=>{const f=c.target.getBoundingClientRect(),h=c.clientX-f.left,y=c.clientY-f.top;l.onThumbPointerDown({x:h,y})}),onPointerUp:ge(e.onPointerUp,l.onThumbPointerUp)})});f1.displayName=Ts;var cp="ScrollAreaCorner",p1=w.forwardRef((e,t)=>{const n=Ut(cp,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&r?m.jsx(Lj,{...e,ref:t}):null});p1.displayName=cp;var Lj=w.forwardRef((e,t)=>{const{__scopeScrollArea:n,...r}
vendor: 1,080 bytes, line 204
204=e,i=Ut(cp,n),[o,l]=w.useState(0),[a,s]=w.useState(0),u=!!(o&&a);return fo(i.scrollbarX,()=>{var c;const d=((c=i.scrollbarX)==null?void 0:c.offsetHeight)||0;i.onCornerHeightChange(d),s(d)}),fo(i.scrollbarY,()=>{var c;const d=((c=i.scrollbarY)==null?void 0:c.offsetWidth)||0;i.onCornerWidthChange(d),l(d)}),u?m.jsx(De.div,{...r,ref:t,style:{width:o,height:a,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Ps(e){return e?parseInt(e,10):0}function h1(e,t){const n=e/t;return isNaN(n)?0:n}function ou(e){const t=h1(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Mj(e,t,n,r="ltr"){const i=ou(n),o=i/2,l=t||o,a=i-l,s=n.scrollbar.paddingStart+l,u=n.scrollbar.size-n.scrollbar.paddingEnd-a,d=n.content-n.viewport,c=r==="ltr"?[0,d]:[d*-1,0];return m1([s,u],c)(e)}function Om(e,t,n="ltr"){const r=ou(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,l=t.content-t.viewport,a=o-r,s=n==="ltr"?[0,l]:[l*-1,0],u=Tj(e,s);
204return m1([0,l],[0,a])(u)}function m1(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function g1(e,t){return e>0&&e<t}var _j=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return function i(){const o={left:e.scrollLeft,top:e.scrollTop},l=n.left!==o.left,a=n.top!==o.top;(l||a)&&t(),n=o,r=window.requestAnimationFrame(i)}(),()=>window.cancelAnimationFrame(r)};function lu(e,t){const n=ot(e),r=w.useRef(0);return w.useEffect(()=>()=>window.clearTimeout(r.current),[]),w.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function fo(e,t){const n=ot(t);Bn(()=>{let r=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(r),i.unobserve(e)}}},[e,n])}var y1=l1,Fj=s1,zj=p1;const v1=w.forwardRef(({className:e,children:t,...n},r)=>m.jsxs(y1,{ref:r,className:Fe("relative overflow-hidden",e),...n,children:[m.jsx(Fj,{className:"h-full w-full rounded-[inherit]",children:t}),m.jsx(x1,{}),m.jsx(zj,{})]}));v1.displayName=y1.displayName;const x1=w.forwardRef(({className:e,orientation:t="vertical",...n},r)=>m.jsx(sp,{ref:r,orientation:t,className:Fe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...n,children:m.jsx(f1,{className:"relative flex-1 rounded-full bg-border"})}));x1.displayName=sp.displayName;var $j="Separator",Lm="horizontal",Bj=["horizontal","vertical"],k1=w.forwardRef((e,t)=>{const{decorative:n,orientation:r=Lm,...i}=e,o=Uj(r)?r:Lm,a=n?{role:"none"}:{"aria-orientation":o==="vertical"?o:void 0,role:"separator"};return m.jsx(De.div,{"data-orientation":o,...a,...i,ref:t})});k1.displayName=$j;function Uj(e){return Bj.includes(e)}var w1=k1;const Id=w.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...r},i)=>m.jsx(w1,{ref:i,decorative:n,orientation:t,className:Fe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...r}));Id.displayName=w1.displayName;const Hj=({character:e,status:t})=>{const n=t.hp||"20/20",{current:r,max:i}=Nl(n),o=Math.max(0,Math.min(100,r/i*100)),l=t.xp??0,{level:a,next:s,pct:u}=gj(l),d=t.danger??0;return m.jsxs(_t,{className:"p-4 space-y-4 bg-card/70 backdrop-blur-md border-border/60",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-bold bg-gradient-ancient bg-clip-text text-transparent",children:e.name}),m.jsx("p",{className:"text-xs text-muted-foreground",children:[e.race,e.class].filter(Boolean).join(" • ")}),m.jsxs("p",{className:"text-xs text-secondary mt-1 flex items-center gap-1",children:[m.jsx(qE,{className:"w-3 h-3"})," Nivå ",a," — ",n1(a)]})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-center justify-between text-xs",children:[m.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",children:[m.jsx($E,{className:"w-3 h-3"})," Hälsa"]}),m.jsx("span",{className:"font-mono",children:n})]}),m.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:m.jsx("div",{className:"h-full transition-all duration-500",style:{width:`${o}%`,background:o>50?"hsl(var(--secondary))":o>25?"hsl(35 85% 55%)":"hsl(var(--destructive))"}})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-center justify-between text-xs",children:[m.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",children:[m.jsx(YE,{className:"w-3 h-3"})," Erfarenhet"]}),m.jsxs("span",{className:"font-mono",children:[l," / ",s," XP"]})]}),m.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:m.jsx("div",{className:"h-full bg-gradient-magic transition-all duration-700",style:{width:`${u}%`}})})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-center justify-between text-xs",children:[m.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground",children:[m.jsx(zE,{className:"w-3 h-3"})," Fara"]}),m.jsx("span",{className:d>=4?"text-destructive":"text-muted-foreground",children:yj(d)})]}),m.jsx("div",{className:"flex gap-1","aria-hidden":"true",children:[0,1,2,3,4].map(c=>m.jsx("div",{className:`h-1.5 flex-1 rounded-full transition-colors duration-500 ${c<d?"bg-destructive":"bg-muted"}`},c))})]}),e.attributes&&m.jsx("div",{className:"grid grid-cols-2 gap-1",children:Es.map(c=>m.jsxs("div",{className:"flex items-center justify-between text-xs px-2 py-1 rounded bg-muted/40 border border-border/40",title:Ln[c].blurb,children:[m.jsx("span",{className:"text-muted-foreground",children:Ln[c].label.slice(0,3).toUpperCase()}),m.jsxs("span",{className:"font-mono",children:[e.attributes[c]," ",m.jsx("span",{className:"text-secondary",children:e1(iu(e.attributes[c]))})]})]},c))}),t.quest&&m.jsxs("div",{className:"rounded-md border border-secondary/40 bg-secondary/10 p-2",children:[m.jsxs("div",{className:"flex items-center gap-1 text-xs text-secondary mb-1",children:[m.jsx(qx,{className:"w-3 h-3"})," Aktivt uppdrag"]}),m.jsx("p",{className:"text-xs leading-relaxed",children:t.quest})]}),m.jsxs("div",{className:"space-y-2 text-sm",children:[t.location&&m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(BE,{className:"w-4 h-4 mt-0.5 text-primary-glow flex-shrink-0"}),m.jsx("span",{children:t.location})]}),t.time&&m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(_E,{className:"w-4 h-4 mt-0.5 text-primary-glow flex-shrink-0"}),m.jsx("span",{children:t.time})]}),t.mood&&m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(Jo,{className:"w-4 h-4 mt-0.5 text-primary-glow flex-shrink-0"}),m.jsx("span",{className:"italic",children:t.mood})]}),m.jsxs("div",{className:"flex items-start gap-2",children:[m.jsx(FE,{className:"w-4 h-4 mt-0.5 text-secondary flex-shrink-0"}),m.jsxs("span",{className:"font-mono",children:[t.gold??0," guldmynt"]})]})]}),t.effects&&t.effects.length>0&&m.jsx("div",{className:"flex flex-wrap gap-1",children:t.effects.map((c,p)=>m.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-destructive/20 border border-destructive/40",children:c},p))}),t.companions&&t.companions.length>0&&m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-1",children:[m.jsx(qf,{className:"w-3 h-3"})," Följeslagare"]}),m.jsx("div",{className:"flex flex-wrap gap-1",children:t.companions.map((c,p)=>m.jsx("span",{className:"text-[11px] px-2 py-0.5 rounded-full bg-primary/20 border border-primary/40",children:c},p))})]}),t.inventory&&t.inventory.length>0&&m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1 text-xs text-muted-foreground mb-2",children:[m.jsx(HE,{className:"w-3 h-3"})," Inventarie"]}),m.jsx("ul",{className:"space-y-1",children:t.inventory.map((c,p)=>m.jsx("li",{className:"text-xs px-2 py-1 rounded bg-muted/40 border border-border/40",children:c},p))})]})]})},Vj=({request:e,bonus:t=0,attributeLabel:n,disabled:r,onResult:i})=>{const[o,l]=w.useState(!1),[a,s]=w.useState(null),[u,d]=w.useState(null);w.useEffect(()=>{d(null),s(null)},[e==null?void 0:e.skill,e==null?void 0:e.difficulty]),w.useEffect(()=>{if(!o)return;const h=setInterval(()=>s(Rd(20)),70),y=setTimeout(()=>{clearInterval(h);const k=Rd(20);s(k),d(k),l(!1),i(k,k+t)},1100);return()=>{clearInterval(h),clearTimeout(y)}},[o]);const c=u===null?null:u+t,p=u===null?null:r1(c,e==null?void 0:e.difficulty,u),f=p==="critical"?"text-secondary":p==="success"?"text-primary-glow":p==="partial"?"text-muted-foreground":"text-destructive";return m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{type:"button",onClick:()=>!o&&!r&&l(!0),disabled:r||o,"aria-label":"Rulla tjugosidig tärning",className:`relative w-14 h-14 flex-shrink-0 rounded-xl border border-secondary/50 bg-gradient-magic shadow-magic flex items-center justify-center font-mono text-xl font-bold text-primary-foreground transition-transform disabled:opacity-50 ${o?"animate-spin":"hover:scale-105 active:scale-95"}`,children:a??m.jsx(bl,{className:"w-6 h-6"})}),m.jsxs("div",{className:"min-w-0 text-xs space-y-0.5",children:[e?m.jsxs("p",{className:"text-muted-foreground",children:[m.jsx("span",{className:"text-secondary font-semibold",children:e.skill})," — svårighet ",e.difficulty,n&&m.jsxs(m.Fragment,{children:[" ","· ",n," ",t>=0?`+${t}`:t]})]}):m.jsx("p",{className:"text-muted-foreground",children:"Rulla 1d20 för osäkra handlingar"}),u!==null&&p&&m.jsxs("p",{className:`font-semibold ${f}`,children:[u,t!==0&&` ${t>0?"+":"−"} ${Math.abs(t)} = ${c}`,":"," ",i1[p]]}),o&&m.jsx("p",{className:"italic text-muted-foreground",children:"Tärningen rullar…"})]})]})},Wj=({request:e,bonus:t,attributeLabel:n,disabled:r,onRoll:i})=>m.jsxs("div",{className:"mt-4 rounded-lg border border-secondary/40 bg-secondary/10 p-3 animate-scale-in",children:[m.jsx("p",{className:"text-xs uppercase tracking-wider text-secondary mb-2",children:"Tärningskast krävs"}),m.jsx(Vj,{request:e,bonus:t,attributeLabel:n,disabled:r,onResult:i})]}),Kj=({disabled:e,onRoll:t})=>m.jsx(pt,{type:"button",variant:"outline",size:"icon",title:"Rulla 1d20","aria-label":"Rulla tärning",disabled:e,onClick:()=>t(Rd(20)),children:m.jsx(bl,{className:"w-4 h-4"})}),bi=e=>e[Math.floor(Math.random()*e.length)],Mm=(e,t)=>{const n=[...e],r=[];for(;r.length<t&&n.length;)r.push(...n.splice(Math.floor(Math.random()*n.length),1));return r},qj=e=>Math.random()<e,fn="{namn}",Qj={jarnvinter:{npcs:["Halvard Skarv","gamla Ingebjörg","pojken Tove","smeden Bror"],opening:[`Snön ligger tre alnar djup över Vargmyra och den knarrar inte längre — den *gnisslar*, som järn mot järn. ${fn} står på bytorget med rimfrost i ögonfransarna, och luften smakar aska och blöt ull.`,`**Halvard Skarv**, byns äldste, håller upp en lykta med skakande hand. Två fingrar saknas på den handen; han talar långsamt, som om orden kostar honom värme.
205
206— Vi lägger ut gröt vid grinden varje kväll, säger han. — I går natt tog den gröten. I förrgår tog den Sigges yngsta.`,"Bakom honom, i snön mellan husen, löper ett spår: avlånga avtryck av något som går på två ben men saknar tår. Spåren går *in* mot byn. Ingenstans går de ut igen."],beats:[{chapter:"Kapitel I — Spåren som inte vänder",location:"Vargmyra by",time:"kväll",mood:"kylig fruktan",danger:2,quest:"Ta reda på vad som går i snön om nätterna",xp:20,paragraphs:["Spåren leder mellan ladan och brunnen, och där tar de slut mitt i det öppna — som om den som gick lyfte. Runt hålet i snön ligger en krans av döda getingar, mitt i vintern.","— Rör dem inte, viskar **Ingebjörg** bakom dig. Hon är torr som näver och har målat tjära i kors över sin dörr. — De vaknar när man räknar dem."],choices:["Räkna getingarna högt och se vad som händer","Följa Ingebjörg hem och pressa henne på vad hon vet","Klättra upp på ladtaket och se om spåren fortsätter där"]},{chapter:"Kapitel I — Spåren som inte vänder",location:"Ladan vid Vargmyra",time:"natt",mood:"hjärtat i halsgro
206pen",danger:3,quest:"Vaka över byn och se vad som kommer i mörkret",xp:25,paragraphs:["Du gömmer dig i höet med sikt mot grinden. Timmarna går. Kölden kryper in genom sömmarna, och månen lägger ett blått lakan över byn.","Sedan slutar hundarna skälla — alla samtidigt. Något står vid grinden och doppar en lång, vitgrå arm i grötfatet. Det äter inte. Det *rör om*."],dice:{skill:"Smygande",difficulty:13},choices:[]},{chapter:"Kapitel II — Det som bytts bort",location:"Byns utkant",time:"gryning",mood:"iskall insikt",danger:3,quest:"Hitta barnen innan nästa natt",xp:35,loot:["Vitgrå hårlock, kall att röra"],paragraphs:["I gryningsljuset hittar du det den lämnade: en hårlock, vitgrå, kall som en spik. Och avtryck som leder norrut mot Järnkärret.",`Pojken **Tove** har följt efter dig utan lov. Han är nio år och har en pinne som svärd.
207
208— Min syster är där ute, säger han. — Jag går med. Du kan inte hindra mig.`],companion:"Tove, pojke med pinnsvärd",choices:["Ta med Tove — han känner kärret bättre än du","Bära hem honom och gå ensam mot Järnkärret","Först väcka smeden Bror och be om ett järnvapen"]},{chapter:"Kapitel II — Det som bytts bort",location:"Järnkärret",time:"middag",mood:"tyst och fel",danger:4,quest:"Nå det som bor under isen",xp:40,paragraphs:["Kärret är fruset i vågor, som om vattnet stelnade mitt i ett skrik. Under isen syns ansikten — inte drunknade, utan *sovande*. Ett av dem öppnar ögonen när din skugga faller över det.","Längst ut står en dörr. Bara en dörr, i en karm av gråsten, utan hus omkring sig. Bakom den hörs barn som skrattar åt något som inte är roligt."],dice:{skill:"Vett",difficulty:14},choices:[]},{chapter:"Kapitel III — Vinterns pris",location:"Bakom dörren",time:"utanför tiden",mood:"vördnad och skräck",danger:5,quest:"Förhandla med Järnvintern — eller besegra henne",xp:60,gold:40,paragraphs:[`Bortom dörren är det sommar. Gräs, sol, syrsor — och elva barn som leker i en ring runt en kvinna av rimfrost och rostigt järn.
209
210> *Nio månader har jag hållit er vinter vid liv,* säger hon utan mun. *Nio månader har ni ätit. Vad trodde ni att det kostade?*`,`Hon vänder sig mot ${fn}. Där ansiktet borde vara finns en spegel, och i spegeln är du äldre, tröttare, och du bär hennes mask.`],choices:["Erbjuda henne något av ditt eget i utbyte mot barnen","Hugga mot spegelansiktet innan hon hinner tala klart","Fråga vem som band henne här första gången"]}]},dimskogen:{npcs:["vandraren Kvist","systern Marn","den nynnande gubben"],opening:[`Dimskogen tar emot ${fn} som en mun. Tre steg in och stigen bakom är borta — inte övervuxen, *borta*, med orörd mossa där dina egna fotspår borde vara.`,"Luften smakar sött och gammalt, som fallfrukt. Någonstans framför dig nynnar en människoröst en melodi i fel tonart. Den slutar när du stannar. Den börjar igen när du går.","Vid en gran hänger fjorton band av tyg, ett för varje försvunnen vandrare. Det fjortonde är fortfarande varmt."],beats:[{chapter:"Kapitel I — Sången i fel tonart",location:"Dimskogens bryn",time:"eftermiddag",mood:"vilsen vaksamhet",danger:2,quest:"Följa sången till dess källa",xp:20,paragraphs:[`Du hittar **Kvist** sittande mot en sten, en vandrare med kartor i bältet och jord under naglarna. Han ler för brett.
211
212— Jag har gått norrut i två dagar, säger han glatt. — Solen går upp i väster här. Är inte det praktiskt?`,"Hans skugga pekar åt fel håll. Han märker det inte."],choices:["Fråga Kvist vad han hörde precis innan han gick vilse","Peka på hans skugga och se vad som händer","Lämna honom och följa sången ensam"]},{chapter:"Kapitel I — Sången i fel tonart",location:"Djupa Dimskogen",time:"skymning",mood:"tryckande",danger:3,quest:"Nå kapellet innan mörkret",xp:30,paragraphs:["Granarna står så tätt att ljuset blir grönt och kvavt. Mossan sjunker två tum under varje steg och andas ut lukten av gammal kyrka.","Klockan ringer. Inget tåg, ingen klockare — bara tre slag, och vid det tredje har alla fåglar i skogen samma sång i näbben."],dice:{skill:"Vett",difficulty:13},choices:[]},{chapter:"Kapitel II — Kapellet utan präst",location:"Det vita kapellet",time:"natt",mood:"helig oro",danger:4,quest:"Ta reda på vem som ringer i klockan",xp:40,loot:["Tygband med okänt broderi"],paragraphs:["Kapellet är byggt av något vitt som inte är sten. Inuti sitter tretton personer i bänkarna, med ryggarna mot dig, och nynnar.","De andas i takt. De blinkar i takt. Den fjortonde platsen är tom, och den har ditt namn ristat i ryggstödet — inte nyss, utan för länge sedan, med mossa i bokstäverna."],choices:["Sätta dig på platsen med ditt namn","Skrika för att bryta sången","Gå fram och vända en av de nynnande mot dig"]},{chapter:"Kapitel II — Kapellet utan präst",location:"Klocktornet",time:"midnatt",mood:"svindel",danger:4,quest:"Tysta klockan",xp:45,paragraphs:["Trappan upp i tornet vrider sig fel — du går uppåt men luften blir tyngre, som djupt vatten. Klockan hänger utan kläpp och ringer ändå.","På insidan av klockan är namn ristade. Fjorton namn. Det sista skrivs medan du ser på, bokstav för bokstav, av ingenting."],dice:{skill:"Strid",difficulty:15},choices:[]},{chapter:"Kapitel III — Den fjortonde",location:"Skogens hjärta",time:"utanför tiden",mood:"sorg och vördnad",danger:5,quest:"Bryta sången — eller ta över den",xp:60,gold:30,paragraphs:[`**Systern Marn** står i en glänta där dimman viker undan för henne. Hon var kapellets sångare för trehundra år sedan, och hon är trött på ett sätt som gör ont att se.
213
214— Någon måste hålla tonen, säger hon. — Slutar jag, vaknar det som sover under rötterna.`,`Hon räcker fram handen mot ${fn}. Sången i din egen strupe har redan börjat, utan att du bad om det.`],choices:["Ta hennes hand och lära dig sången","Vägra och leta efter det som sover under rötterna","Fråga vad som händer med de fjorton om du säger nej"]}]},grahamn:{npcs:["Tiggarkungen Sylt","gillesmästarinnan Rove","vaktkaptenen Dag"],opening:[`Gråhamn stinker tjära, fisk och pengar. ${fn} kommer in genom Sjöporten just som den tredje kistan bärs ut ur Vävargillets hus.`,"Tre gillesmästare på fjorton dagar, alla med samma mynt under tungan: en gudinna med tre ansikten, präglad i en metall ingen växlare vill röra.","— Du ser ut som någon med tid, säger en röst vid din armbåge. **Tiggarkungen Sylt** saknar ett öra och har fyra ringar på handen som saknar tummen. — Tid kan man sälja här. Dyrt."],beats:[{chapter:"Kapitel I — Myntet under tungan",location:"Gråhamns hamnkvarter",time:"morgon",mood:"vaksam nyfikenhet",danger:2,quest:"Ta reda på vem som präglar mynten",xp:20,gold:10,loot:["Mynt med trefaldig gudinna"],paragraphs:[`Sylt säljer dig ett fjärde mynt för tio kopparbitar och en fråga du inte får ställa vidare.
215
216— Präglat i staden, säger han. — Men inte i något myntverk som står på kartan. Hör efter i Saltgränd, där det luktar bränt under gatan.`,"Myntet är varmt. Det har legat i hans hand hela tiden, men det är varmare än hans hand."],choices:["Gå till Saltgränd och leta efter värmen under gatan","Söka upp vaktkaptenen Dag och fråga vem som betalt honom","Skugga Sylt och se vem han rapporterar till"]},{chapter:"Kapitel I — Myntet under tungan",location:"Saltgränd",time:"eftermiddag",mood:"spänd",danger:3,quest:"Hitta myntverket under staden",xp:30,paragraphs:["Saltgränd är knappt en axel bred. Marken är varm genom sulorna, och mellan två stenar sipprar rök som luktar brända fjädrar.","En lucka. Under den en trappa. Och nerifrån hörs hammarslag i en rytm som mer liknar en bön än ett arbete."],dice:{skill:"Smygande",difficulty:14},choices:[]},{chapter:"Kapitel II — Gudinnan i bassängen",location:"Under Gråhamn",time:"kväll",mood:"kvävande",danger:4,quest:"Avslöja vem som betalar prästerna",xp:40,gold:25,paragraphs:[`Under staden präglas mynt i en smedja med tre ugnar och inga smeder — bara **Rove**, gillesmästarinnan som skulle vara död, med sotiga händer och ett leende som inte når ögonen.
217
218— Hon kräver betalt, säger hon. — Hamnen har inte frusit på sextio år. Trodde du att det var tur?`,"Bakom henne rör sig vattnet i en bassäng som borde vara stilla."],choices:["Fråga Rove vad priset är i år","Slå sönder pressen innan fler mynt präglas","Låtsas gå med i deras led för att komma närmare"]},{chapter:"Kapitel II — Gudinnan i bassängen",location:"Hamnbassängen",time:"natt",mood:"hotfull tystnad",danger:5,quest:"Möta det som stiger ur bassängen",xp:50,paragraphs:["Dimman lägger sig som ull. Vattnet i bassängen stiger utan tidvatten, och i det stiger något med tre ansikten: ett ungt, ett gammalt, ett vänt bort.","Vakterna på kajen står med ryggarna mot vattnet. Alla. Frivilligt."],dice:{skill:"Övertala",difficulty:15},choices:[]},{chapter:"Kapitel III — Priset för en isfri hamn",location:"Gråhamns kaj",time:"gryning",mood:"avgörande",danger:5,quest:"Bestämma vad Gråhamn ska betala — och med vad",xp:65,gold:60,paragraphs:[`Gudinnans tredje ansikte vänder sig äntligen mot dig, och det är ett vanligt kvinnoansikte, trött av tacksamhet från folk som inte vet vad de tackar för.
219
220> *Tre namn per år,* säger hon. *Ni valde dem själva. Jag bad aldrig om gillesmästare.*`,`Hela hamnen sover. Bara ${fn} står vaken, med ett varmt mynt i handen och tre liv på vågskålen.`],choices:["Erbjuda ditt eget namn i utbyte mot stadens frihet","Avslöja allt för folket i gryningen och låta dem välja","Söka det som en gång band henne till bassängen och bryta bandet"]}]},runberget:{npcs:["gravplundraren Ålf","runristerskan Hild","kvinnan i järnmask"],opening:[`Alla i socknen drömmer samma dröm, och ${fn} vaknar med samma fras i munnen: *ditt namn kommer sist*.`,"Gravhögen på Runberget står öppen som ett sår. Jorden runt hålet är svart och kokar av maskar mitt i frosten.","På hällen står runor ristade. Du läste dem i går. I dag står det något annat, och en av raderna slutar med tre bokstäver ur ditt eget namn."],beats:[{chapter:"Kapitel I — Runor som rör sig",location:"Runbergets fot",time:"morgon",mood:"olustig",danger:2,quest:"Ta reda på vad gravplundrarna tog",xp:20,paragraphs:[`**Ålf** grävde upp högen i våras och har inte sovit sedan dess. Han sitter i sitt skjul med alla ljus tända och en spade i knät.
221
222— Vi tog inget guld, väser han. — Vi tog en *lista*. En bränd trätavla med namn. Jag brände den igen. Den kom tillbaka.`,"Han visar dig händerna. I handflatorna har runor växt fram som ärr."],choices:["Be att få se trätavlan","Läsa runorna i hans handflator","Gå direkt upp till högen medan det är ljust"]},{chapter:"Kapitel I — Runor som rör sig",location:"Gravhögens mynning",time:"middag",mood:"tryckande tystnad",danger:3,quest:"Gå ner i högen",xp:30,paragraphs:["Nere i högen är luften stilla på ett sätt luft inte ska vara. Din fackla brinner rakt upp, orörlig, som målad.","Väggarna är täckta av namn. Tusentals. De äldsta är nästan bortnötta, de nyaste är blöta."],dice:{skill:"Runkunskap",difficulty:14},choices:[]},{chapter:"Kapitel II — Hon som räknar",location:"Kammaren i berget",time:"utanför tiden",mood:"kall vördnad",danger:4,quest:"Ta reda på varför ditt namn står sist",xp:45,loot:["Bränd trätavla med namn"],paragraphs:["I kammarens mitt sitter hon: **kvinnan i järnmask**, med en trätavla i knät och en griffel i handen, och hon räknar namn högt i en takt som matchar ditt hjärta.",`När hon når det näst sista namnet stannar hon. Masken vänds mot ${fn}.
223
224> *Du kom tidigt,* säger hon. *Det brukar de inte göra.*`],choices:["Fråga vad som händer när hon läser ditt namn","Slita tavlan ur hennes händer","Erbjuda henne ett annat namn i stället"]},{chapter:"Kapitel II — Hon som räknar",location:"Runhällen",time:"skymning",mood:"desperat",danger:5,quest:"Rista om hällen innan hon räknar klart",xp:50,paragraphs:[`**Hild** runristerskan möter dig vid hällen med en mejsel i varje hand. Hon är blind sedan tjugo år och ristar ändå rakare än någon seende.
225
226— Vi kan ändra en rad, säger hon. — En. Sedan märker hon.`,"Stenen är varm. Under den hörs räkningen fortsätta."],dice:{skill:"Runkunskap",difficulty:15},choices:[]},{chapter:"Kapitel III — Det sista namnet",location:"Runbergets krön",time:"natt",mood:"ödesmättad",danger:5,quest:"Avgöra vems namn som ska stå sist",xp:70,gold:45,paragraphs:["Hela socknen står i sömngång längs bergets sluttning, femhundra personer med öppna ögon och stängda ansikten.",`Kvinnan i järnmask räcker griffeln mot ${fn}.
227
228> *Någon måste räkna,* säger hon, och för första gången låter rösten mänsklig. *Jag har gjort det i niohundra år. Jag är så trött.*`],choices:["Ta griffeln och ta över räkningen","Rista ditt eget namn först i stället för sist","Bränna tavlan i hennes knä och ta konsekvenserna"]}]}},Gj=[{chapter:"Kapitel — Vägen vidare",location:"En korsväg utan vägvisare",time:"skymning",mood:"rastlös",danger:2,quest:"Följa vägen dit den vill",xp:20,paragraphs:["Fyra vägar möts och ingen av dem har vägvisare — bara en påle där någon spikat fast fyra skor, en åt varje håll.","En av skorna är din storlek. Den är sliten på insidan, som om du redan gått den vägen en gång."],choices:["Ta skon i din storlek och följa den vägen","Vänta vid korsvägen tills någon kommer","Gräva under pålen"]},{chapter:"Kapitel — Värdshuset Tre Korpar",location:"Värdshuset Tre Korpar",time:"kväll",mood:"falsk trygghet",danger:2,quest:"Vila — om det går",xp:20,gold:8,paragraphs:["Elden sprakar, ölet är beskt och en flöjtspelare med förband över ena ögat spelar en visa alla i rummet kan men ingen vill sjunga.",`Värdinnan ger dig rum tre utan att du frågat efter det.
229
230— Rum tre står alltid ledigt, säger hon. — Frukost vid gryning. Öppna inte om det knackar innan dess.`],choices:["Sova och inte öppna, vad som än händer","Öppna när det knackar","Fråga flöjtspelaren om visan"]},{chapter:"Kapitel — Bruden i myren",location:"Myren vid Kalvmossen",time:"dimmig gryning",mood:"sorgsen kyla",danger:3,quest:"Ta reda på vem som väntar i myren",xp:30,loot:["Silverring med inristat 'V'"],paragraphs:["Myren andas. Under mossan skymtar en klänning av brunt siden, och en hand med en silverring som fortfarande glänser.","Hon har legat här i hundra år och väntat på någon som skulle komma. Hon har inte slutat vänta."],dice:{skill:"Charm",difficulty:13},choices:[]},{chapter:"Kapitel — Rövarna vid passet",location:"Bergspasset",time:"middag",mood:"hotfull",danger:4,quest:"Ta dig förbi passet",xp:35,gold:20,paragraphs:["Fem gestalter i vargskinn spärrar passet. Deras ledare har en yxa och ett ansikte som gjort valet redan innan du kom.","— Vägavgift, säger hon. — Allt du bär, eller allt du är. Du väljer."],dice:{skill:"Strid",difficulty:14},choices:[]},{chapter:"Kapitel — Barnet som talar baklänges",location:"Övergivet torp",time:"natt",mood:"obehaglig",danger:3,quest:"Förstå vad barnet försöker säga",xp:30,companion:"Lilla Ruv, barnet som talar baklänges",paragraphs:["I torpet sitter ett barn vid ett bord dukat för sju. Ingen annan är där. Maten är varm.","— Nej, säger barnet glatt när du frågar om hon är ensam. Hon säger allt baklänges. Håller du upp orden mot en spegel blir de en varning."],choices:["Sätta dig och äta med henne","Ta med henne bort från torpet genast","Fråga vem de andra sex stolarna är till för"]}],Yj=e=>{const t=e.toLowerCase();return/(slå|hugg|anfall|strid|kämp|slåss|dräp|attack|vapen|svärd|yxa)/.test(t)?"strid":/(smyg|gömm|tyst|skugg|list|osedd|krypa)/.test(t)?"smyg":/(fråg|tala|säg|övertal|förhandl|ljug|be |bön|tröst|charm|hälsa)/.test(t)?"social":/(undersök|läs|studer|minns|iaktta|lyssna|spår|granska|leta|sök)/.test(t)?"vett":/(vila|sov|läk|rast|äta|lägra)/.test(t)?"vila":"fri"},Xj={strid:["Du rör dig först. Det finns ett ögonblick före varje slag där världen är alldeles tyst — du lever i det ögonblicket nu, och sedan är det över.","Stål mot något som inte helt är kött. Slaget tar, men det ger ifrån sig ett ljud som en dörr som öppnas i ett annat rum.","Du går rakt på. Det är inte modigt så mycket som nödvändigt, och det märks på hur din motståndare backar ett halvt steg innan hen hinner tänka."],smyg:["Du håller andan tills bröstet bränner och sätter foten där mossan är djupast. Ingen vänder sig om. Ännu.","Skuggorna är villiga i kväll. Du rör dig i dem som i vatten, och först efteråt märker du att du hållit knogarna vita om något.","Ett steg. Ännu ett. En kvist under klacken som inte knäcks — bara böjs, långsamt, som om den bestämt sig för att hjälpa dig."],social:["Du talar, och orden gör något du inte räknat med: de landar. Den du talar med sänker axlarna en tum, och den tummen är allt du behövde.","— Du är inte härifrån, blir svaret. Det är inte en anklagelse. Det är en öppning, och du tar den.","Rösten bär bättre än du trodde. Någon lyssnar som inte borde ha lyssnat, och det ska visa sig betyda något senare."],vett:["Du ser det andra missar: en detalj på fel plats, en skarv i verkligheten där någon lagat den slarvigt.","Minnet ger dig något — en ramsa din farmor sa, ett gammalt förbud, en regel du aldrig förstod förrän nu.","Du samlar bitarna. De passar inte ihop ännu, men de vill, och det är alltid det farligaste tecknet."],vila:["Du hittar lä bakom en sten, tuggar torrt bröd och låter musklerna sjunka. Vilan är kort men äkta.","En stund av lugn: elden, händerna, andningen. Världen väntar tåligt på att du ska bli redo, vilket i sig är oroande."],fri:["Du gör det på ditt eget vis, och världen svarar som världen gör — inte med ja eller nej, utan med ännu en fråga.","Handlingen får följder du inte tänkt dig. Så är det alltid här. Något rör sig i utkanten av synfältet."]},Jj={critical:["Tärningen visar tjugo och världen viker sig efter din vilja. Det du försökte lyckas bättre än du vågat hoppas — och något extra faller i din hand på köpet.","Fulländat. Under ett andetag är du precis den hjälte sagorna skulle vilja berätta om, och till och med dina fiender vet det."],success:["Det lyckas. Inte elegant, inte utan kostnad i svett, men det lyckas — och världen rör sig ett steg framåt.","Du klarar det. Andningen kommer tillbaka först efteråt, och med den insikten att det kunde ha gått mycket annorlunda."],partial:["Du når målet — men det kostar. Något går sönder, något hörs, någon ser dig. Priset ska betalas senare, med ränta.","Nästan. Du får det du ville ha, men inte som du ville ha det, och den skillnaden ska hinna ikapp dig."],failure:["Det brister. Inte katastrofalt, men tillräckligt: läget förändras, och nu är det du som måste anpassa dig.","Misslyckandet är tyst och tydligt. Ingen återvändsgränd — bara en dörr som stängs och två andra som glider upp."],disaster:["En etta. Allt går fel på ett sätt som nästan är konstfärdigt. Blod, ljud, uppmärksamhet — och ett minne du får bära.","Katastrof. Du faller, något går sönder som inte kan lagas, och berättelsen tar en riktning ingen av er valde."]},_m=["Bakom dig, mycket nära, säger någon ditt namn precis som din mor brukade säga det.","En dörr du är säker på var stängd står nu på glänt.","Långt bort, men inte tillräckligt långt, börjar en klocka slå — och den slår tretton slag.","En hand läggs på din axel. Den är kall, och den har en finger för mycket.","Något andas ut precis vid ditt öra, och lukten är av gammal snö.","På marken framför dig ligger en sak som borde vara omöjlig att hitta här: din egen kniv, rostig av femtio års väntan."],Fm="*Eller beskriv din egen handling...*",zm=["Gå vidare, försiktigt men beslutsamt","Stanna och undersöka platsen närmare","Söka någon som kan svara på dina frågor","Dra dig tillbaka och tänka om","Göra det ingen förväntar sig"],b1=e=>Qj[e==null?void 0:e.id]??null,Zj=(e,t)=>{const n=b1(e);return n&&t<n.beats.length?n.beats[t]:{...bi(Gj)}},eN=e=>/🎲/.test(e)?/naturlig 20|spektakulär/i.test(e)?"critical":/dramatiskt misslyckande/i.test(e)?"disaster":/komplikation/i.test(e)?"partial":/framgång/i.test(e)?"success":/misslyckande/i.test(e)?"failure":"success":null,$m=(e,t)=>
230e.replace(/\{namn\}/g,t.name).replace(/\{ras\}/g,t.race||"vandrare").replace(/\{klass\}/g,t.class||"äventyrare"),Bm=e=>{var t,n,r;return[`HP: ${e.hp} | Plats: ${e.location} | Tid: ${e.time} | Stämning: ${e.mood} | Fara: ${e.danger}`,`Kapitel: ${e.chapter}`,`XP: ${e.xp} | Guld: ${e.gold}`,`Uppdrag: ${e.quest}`,`Inventarie: ${(t=e.inventory)!=null&&t.length?e.inventory.join(", "):"inga"}`,`Tillstånd: ${(n=e.effects)!=null&&n.length?e.effects.join(", "):"inga"}`,`Följeslagare: ${(r=e.companions)!=null&&r.length?e.companions.join(", "):"inga"}`].join(`
231`)};function tN(e){var T,O;const{character:t,scenario:n,status:r,beat:i,action:o}=e,l=b1(n),a=Nl(r.hp),s=[];let u=0,d=0,c=0;const p=[];let f;if(i===0&&!o){const N=l?l.opening:[`${fn} vaknar av att någon ropar — inte ett namn, utan ett ord på ett språk du inte borde förstå men gör.`,`Du är ${t.background||"en vandrare med mer bakgrund än du gärna berättar"}, och i dag är den dagen då det du flytt ifrån hinner ikapp.`,"Vägen framför dig delar sig i tre. Alla tre luktar rök."],F=l==null?void 0:l.beats[0],_=[...N.map(W=>$m(W,t)),bi(_m)].join(`
232
233`),H=(T=F==null?void 0:F.choices)!=null&&T.length?F.choices:zm;return["[NARRATIV]",_,"","[VAL]",...Mm(H,Math.min(3,H.length)).map(W=>`- ${W}`),`- ${Fm}`,"","[STATUS]",Bm({hp:r.hp||"20/20",location:(F==null?void 0:F.location)??(n==null?void 0:n.title)??"Okänd plats",time:(F==null?void 0:F.time)??"gryning",mood:(F==null?void 0:F.mood)??"förväntan",danger:(F==null?void 0:F.danger)??1,chapter:(F==null?void 0:F.chapter)??"Kapitel I — Vägens början",xp:r.xp??0,gold:r.gold??0,quest:(F==null?void 0:F.quest)??"Ta reda på varför just du blev kallad",inventory:r.inventory,effects:r.effects,companions:r.companions})].join(`
234`)}const h=eN(o||""),y=Yj(o||"");h?(s.push(bi(Jj[h])),h==="critical"?(u+=35,d+=15,p.push(bi(["Amulett av valben","Flaska med sirapstjock läkedryck","Runristad dolk i valbensskaft","Nyckel utan känt lås"]))):h==="success"?u+=25:h==="partial"?(u+=18,c+=2):h==="failure"?(u+=12,c+=3):(u+=10,c+=6)):(s.push(bi(Xj[y])),u+=y==="vila"?5:15,y==="strid"&&qj(.5)&&(c+=2),y==="vila"&&(c-=4));const k=Zj(n,Math.min(i,l?l.beats.length:0));s.push(...k.paragraphs.map(N=>$m(N,t))),u+=k.xp,d+=k.gold??0,k.loot&&p.push(...k.loot),k.companion&&(f=k.companion),k.damage&&(c+=k.damage);const g=!!k.dice&&!h;g||s.push(bi(_m));const v=a.max||20,x=Math.max(0,Math.min(v,a.current-c)),C=Array.from(new Set([...r.inventory??[],...p])),P=Array.from(new Set([...r.companions??[],...f?[f]:[]])),E=s.join(`
235
236`),j=(O=k.choices)!=null&&O.length?k.choices:zm,R=g?[]:Mm(j,Math.min(3,j.length)),A=["[NARRATIV]",E,""];if(g&&k.dice){const N=t1(k.dice.skill),F=N&&t.attributes?iu(t.attributes[N]):0,_=F>0?`
237Din ${N} talar för dig här.`:F<0?`
238Din ${N} är svag — det här blir svårt.`:"";A.push(`[TÄRNINGSKAST: ${k.dice.skill}, svårighet ${k.dice.difficulty}]${_}`,"")}else A.push("[VAL]",...R.map(N=>`- ${N}`),`- ${Fm}`,"");return A.push("[STATUS]",Bm({hp:`${x}/${v}`,location:k.location,time:k.time,mood:k.mood,danger:k.danger,chapter:k.chapter,xp:(r.xp??0)+u,gold:(r.gold??0)+d,quest:k.quest,inventory:C,effects:r.effects,companions:P})),A.join(`
239`)}function nN(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const rN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oN={};function Um(e,t){return(oN.jsx?iN:rN).test(e)}const lN=/[ \t\n\f\r]/g;function aN(e){return typeof e=="object"?e.type==="text"?Hm(e.value):!1:Hm(e)}function Hm(e){return e.replace(lN,"")===""}class Wl{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Wl.prototype.normal={};Wl.prototype.property={};Wl.prototype.space=void 0;function S1(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Wl(n,r,t)}function Dd(e){return e.toLowerCase()}class vt{constructor(t,n){this.attribute=n,this.property=t}}vt.prototype.attribute="";vt.prototype.booleanish=!1;vt.prototype.boolean=!1;vt.prototype.commaOrSpaceSeparated=!1;vt.prototype.commaSeparated=!1;vt.prototype.defined=!1;vt.prototype.mustUseProperty=!1;vt.prototype.number=!1;vt.prototype.overloadedBoolean=!1;vt.prototype.property="";vt.prototype.spaceSeparated=!1;vt.prototype.space=void 0;let sN=0;const ie=mi(),Le=mi(),Od=mi(),B=mi(),me=mi(),qi=mi(),wt=mi();function mi(){return 2**++sN}const Ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:ie,booleanish:Le,commaOrSpaceSeparated:wt,commaSeparated:qi,number:B,overloadedBoolean:Od,spaceSeparated:me},Symbol.toStringTag,{value:"Module"})),tc=Object.keys(Ld);class dp extends vt{constructor(t,n,r,i){let o=-1;if(super(t,n),Vm(this,"space",i),typeof r=="number")for(;++o<tc.length;){const l=tc[o];Vm(this,tc[o],(r&Ld[l])===Ld[l])}}}dp.prototype.defined=!0;function Vm(e,t,n){n&&(e[t]=n)}function wo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new dp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Dd(r)]=r,n[Dd(o.attribute)]=r}return new Wl(t,n,e.space)}const E1=wo({properties:{ariaActiveDescendant:null,ariaAtomic:Le,ariaAutoComplete:null,ariaBusy:Le,ariaChecked:Le,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControl
vendor: 5,400 bytes, line 239
239s:me,ariaCurrent:null,ariaDescribedBy:me,ariaDetails:null,ariaDisabled:Le,ariaDropEffect:me,ariaErrorMessage:null,ariaExpanded:Le,ariaFlowTo:me,ariaGrabbed:Le,ariaHasPopup:null,ariaHidden:Le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:me,ariaLevel:B,ariaLive:null,ariaModal:Le,ariaMultiLine:Le,ariaMultiSelectable:Le,ariaOrientation:null,ariaOwns:me,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:Le,ariaReadOnly:Le,ariaRelevant:null,ariaRequired:Le,ariaRoleDescription:me,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:Le,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function C1(e,t){return t in e?e[t]:t}function T1(e,t){return C1(e,t.toLowerCase())}const uN=wo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:qi,acceptCharset:me,accessKey:me,action:null,allow:null,allowFullScreen:ie,allowPaymentRequest:ie,allowUserMedia:ie,alt:null,as:null,async:ie,autoCapitalize:null,autoComplete:me,autoFocus:ie,autoPlay:ie,blocking:me,capture:null,charSet:null,checked:ie,cite:null,className:me,cols:B,colSpan:null,content:null,contentEditable:Le,controls:ie,controlsList:me,coords:B|qi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ie,defer:ie,dir:null,dirName:null,disabled:ie,download:Od,draggable:Le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ie,formTarget:null,headers:me,height:B,hidden:Od,high:B,href:null,hrefLang:null,htmlFor:me,httpEquiv:me,id:null,imageSizes:null,imageSrcSet:null,inert:ie,inputMode:null,integrity:null,is:null,isMap:ie,itemId:null,itemProp:me,itemRef:me,itemScope:ie,itemType:me,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ie,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:ie,muted:ie,name:null,nonce:null,noModule:ie,noValidate:ie,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ie,optimum:B,pattern:null,ping:me,placeholder:null,playsInline:ie,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ie,referrerPolicy:null,rel:me,required:ie,reversed:ie,rows:B,rowSpan:B,sandbox:me,scope:null,scoped:ie,seamless:ie,selected:ie,shadowRootClonable:ie,shadowRootDelegatesFocus:ie,shadowRootMode:null,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:Le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:ie,useMap:null,value:Le,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:me,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ie,declare:ie,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:ie,noHref:ie,noShade:ie,noWrap:ie,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:Le,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ie,disableRemotePlayback:ie,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:T1}),cN=wo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
239dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:wt,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:me,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
239dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:ie,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:qi,g2:qi,glyphName:qi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:B,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:me,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wt,rev:wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wt,requiredFeatures:wt,requiredFonts:wt,requiredFormats:wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wt,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C1}),P1=wo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}
vendor: 4,749 bytes, lines 239-240
239,space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),j1=wo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T1}),N1=wo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dN={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},fN=/[A-Z]/g,Wm=/-[a-z]/g,pN=/^data[-\w.:]+$/i;function hN(e,t){const n=Dd(t);let r=t,i=vt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&pN.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Wm,gN);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Wm.test(o)){let l=o.replace(fN,mN);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=dp}return new i(r,t)}function mN(e){return"-"+e.toLowerCase()}function gN(e){return e.charAt(1).toUpperCase()}const yN=S1([E1,uN,P1,j1,N1],"html"),fp=S1([E1,cN,P1,j1,N1],"svg");function vN(e){return e.join(" ").trim()}var pp={},Km=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,xN=/\n/g,kN=/^\s*/,wN=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,bN=/^:\s*/,SN=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,EN=/^[;\s]*/,CN=/^\s+|\s+$/g,TN=`
240`,qm="/",Qm="*",Ur="",PN="comment",jN="declaration";function NN(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var y=h.match(xN);y&&(n+=y.length);var k=h.lastIndexOf(TN);r=~k?h.length-k:r+h.length}function o(){var h={line:n,column:r};return function(y){return y.position=new l(h),u(),y}}function l(h){this.start=h,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(h){var y=new Error(t.source+":"+n+":"+r+": "+h);if(y.reason=h,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function s(h){var y=h.exec(e);if(y){var k=y[0];return i(k),e=e.slice(k.length),y}}function u(){s(kN)}function d(h){var y;for(h=h||[];y=c();)y!==!1&&h.push(y);return h}function c(){var h=o();if(!(qm!=e.charAt(0)||Qm!=e.charAt(1))){for(var y=2;Ur!=e.charAt(y)&&(Qm!=e.charAt(y)||qm!=e.charAt(y+1));)++y;if(y+=2,Ur===e.charAt(y-1))return a("End of comment missing");var k=e.slice(2,y-2);return r+=2,i(k),e=e.slice(y),r+=2,h({type:PN,comment:k})}}function p(){var h=o(),y=s(wN);if(y){if(c(),!s(bN))return a("property missing ':'");var k=s(SN),g=h({type:jN,property:Gm(y[0].replace(Km,Ur)),value:k?Gm(k[0].replace(Km,Ur)):Ur});return s(EN),g}}function f(){var h=[];d(h);for(var y;y=p();)y!==!1&&(h.push(y),d(h));return h}return u(),f()}function Gm(e){return e?e.replace(CN,Ur):Ur}var AN=NN,RN=Wa&&Wa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(pp,"__esModule",{value:!0});pp.default=DN;const IN=RN(AN);function DN(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,IN.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var au={};Object.defineProperty(au,"__esModule",{value:!0});au.camelCase=void 0;var ON=/^--[a-zA-Z0-9_-]+$/,LN=/-([a-z])/g,MN=/^[^-]+$/,_N=/^-(webkit|moz|ms|o|khtml)-/,FN=/^-(ms)-/,zN=function(e){return!e||MN.test(e)||ON.test(e)},$N=function(e,t){return t.toUpperCase()},Ym=function(e,t){return"".concat(t,"-")},BN=function(e,t){return t===void 0&&(t={}),zN(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(FN,Ym):e=e.replace(_N,Ym),e.replace(LN,$N))};au.camelCase=BN;var UN=Wa&&Wa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},HN=UN(pp),VN=au;function Md(e,t){var n={};return!e||typeof e!="string"||(0,HN.default)(e,function(r,i){r&&i&&(n[(0,VN.camelCase)(r,t)]=i)}),n}Md.default=Md;var WN=Md;const KN=ui(WN),A1=R1("end"),hp=R1("start");function R1(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function qN(e){const t=hp(e),n=A1(e);if(t&&n)return{start:t,end:n}}function nl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Xm(e.position):"start"in e||"end"in e?Xm(e):"line"in e||"column"in e?_d(e):""}function _d(e){return Jm(e&&e.line)+":"+Jm(e&&e.column)}function Xm(e){return _d(e&&e.start)+"-"+_d(e&&e.end)}function Jm(e){return e&&typeof e=="number"?e:1}
vendor: 1,921 bytes, line 240
240class tt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=nl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}tt.prototype.file="";tt.prototype.name="";tt.prototype.reason="";tt.prototype.message="";tt.prototype.stack="";tt.prototype.column=void 0;tt.prototype.line=void 0;tt.prototype.ancestors=void 0;tt.prototype.cause=void 0;tt.prototype.fatal=void 0;tt.prototype.place=void 0;tt.prototype.ruleId=void 0;tt.prototype.source=void 0;const mp={}.hasOwnProperty,QN=new Map,GN=/[A-Z]/g,YN=new Set(["table","tbody","thead","tfoot","tr"]),XN=new Set(["td","th"]),I1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function JN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=lA(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 10,526 bytes, line 240
240if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=oA(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?fp:yN,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=D1(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function D1(e,t,n){if(t.type==="element")return ZN(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return eA(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return nA(e,t,n);if(t.type==="mdxjsEsm")return tA(e,t);if(t.type==="root")return rA(e,t,n);if(t.type==="text")return iA(e,t)}function ZN(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=fp,e.schema=i),e.ancestors.push(t);const o=L1(e,t.tagName,!1),l=aA(e,t);let a=yp(e,t);return YN.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!aN(s):!0})),O1(e,l,o,t),gp(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function eA(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Al(e,t.position)}function tA(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Al(e,t.position)}function nA(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=fp,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:L1(e,t.name,!0),l=sA(e,t),a=yp(e,t);return O1(e,l,o,t),gp(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function rA(e,t,n){const r={};return gp(r,yp(e,t)),e.create(t,e.Fragment,r,n)}function iA(e,t){return t.value}function O1(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function gp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function oA(e,t,n){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function lA(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=hp(r);return t(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function aA(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&mp.call(t.properties,i)){const o=uA(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&XN.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function sA(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Al(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Al(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function yp(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:QN;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=D1(e,o,l);a!==void 0&&n.push(a)}return n}function uA(e,t,n){const r=hN(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?nN(n):vN(n)),r.property==="style"){let i=typeof n=="object"?n:cA(e,String(n));return e.stylePropertyNameCase==="css"&&(i=dA(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?dN[r.property]||r.property:r.attribute,n]}}function cA(e,t){try{return KN(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new tt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=I1+"#cannot-parse-style-attribute",i}}function L1(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=Um(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Um(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return mp.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Al(e)}function Al(e,t){const n=new tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=I1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function dA(e){const t={};let n;for(n in e)mp.call(e,n)&&(t[fA(n)]=e[n]);return t}function fA(e){let t=e.replace(GN,pA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function pA(e){return"-"+e.toLowerCase()}const nc={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},hA={};function vp(e,t){const n=hA,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return M1(e,r,i)}function M1(e,t,n){if(mA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zm(e.children,t,n)}return Array.isArray(e)?Zm(e,t,n):""}function Zm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=M1(e[i],t,n);return r.join("")}function mA(e){return!!(e&&typeof e=="object")}const eg=document.createElement("i");function xp(e){const t="&"+e+";";eg.innerHTML=t;const n=eg.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Pt(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function Mt(e,t){return e.length>0?(Pt(e,e.length,0,t),e):t}const tg={}.hasOwnProperty;function _1(e){const t={};let n=-1;for(;++n<e.length;)gA(t,e[n]);return t}function gA(e,t){let n;for(n in t){const i=(tg.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){tg.call(i,l)||(i[l]=[]);const a=o[l];yA(i[l],Array.isArray(a)?a:a?[a]:[])}}}function yA(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Pt(e,0,0,r)}function F1(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function on(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lt=Dr(/[A-Za-z]/),Ze=Dr(/[\dA-Za-z]/),vA=Dr(/[#-'*+\--9=?A-Z^-~]/);function js(e){return e!==null&&(e<32||e===127)}const Fd=Dr(/\d/),xA=Dr(/[\dA-Fa-f]/),kA=Dr(/[!-/:-@[-`{-~]/);function Z(e){return e!==null&&e<-2}function he(e){return e!==null&&(e<0||e===32)}function le(e){return e===-2||e===-1||e===32}const su=Dr(new RegExp("\\p{P}|\\p{S}","u")),si=Dr(/\s/);function Dr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bo(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Ze(e.charCodeAt(n+1))&&Ze(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function se(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return le(s)?(e.enter(n),a(s)):t(s)}function a(s){return le(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const wA={tokenize:bA};function bA(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),se(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return Z(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const SA={tokenize:EA},ng={tokenize:CA};function EA(e){const t=this,n=[];let r=0,i,o,l;return a;function a(x){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,s,u)(x)}return u(x)}function s(x){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const C=t.events.length;let P=C,E;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){E=t.events[P][1].end;break}g(r);let j=C;for(;j<t.events.length;)t.events[j][1].end={...E},j++;return Pt(t.events,P+1,0,t.events.slice(C)),t.events.length=j,u(x)}return a(x)}function u(x){if(r===n.length){if(!i)return p(x);if(i.currentConstruct&&i.currentConstruct.concrete)return h(x);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ng,d,c)(x)}function d(x){return i&&v(),g(r),p(x)}function c(x){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,h(x)}function p(x){return t.containerState={},e.attempt(ng,f,h)(x)}function f(x){return r++,n.push([t.currentConstruct,t.containerState]),p(x)}function h(x){if(x===null){i&&v(),g(0),e.consume(x);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),y(x)}function y(x){if(x===null){k(e.exit("chunkFlow"),!0),g(0),e.consume(x);return}return Z(x)?(e.consume(x),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(x),y)}function k(x,C){const P=t.sliceStream(x);
vendor: 6,652 bytes, line 240
240if(C&&P.push(null),x.previous=o,o&&(o.next=x),o=x,i.defineSkip(x.start),i.write(P),t.parser.lazy[x.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<l&&(!i.events[E][1].end||i.events[E][1].end.offset>l))return;const j=t.events.length;let R=j,A,T;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(A){T=t.events[R][1].end;break}A=!0}for(g(r),E=j;E<t.events.length;)t.events[E][1].end={...T},E++;Pt(t.events,R+1,0,t.events.slice(j)),t.events.length=E}}function g(x){let C=n.length;for(;C-- >x;){const P=n[C];t.containerState=P[1],P[0].exit.call(t,e)}n.length=x}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function CA(e,t,n){return se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function po(e){if(e===null||he(e)||si(e))return 1;if(su(e))return 2}function uu(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const zd={name:"attention",resolveAll:TA,tokenize:PA};function TA(e,t){let n=-1,r,i,o,l,a,s,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};rg(c,-s),rg(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Mt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Mt(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=Mt(u,uu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Mt(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=Mt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Pt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function PA(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=po(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),d=po(s),c=!d||d===2&&i||n.includes(s),p=!i||i===2&&d||n.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(d||!c)),t(s)}}function rg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const jA={name:"autolink",tokenize:NA};function NA(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return lt(f)?(e.consume(f),l):f===64?n(f):u(f)}function l(f){return f===43||f===45||f===46||Ze(f)?(r=1,a(f)):u(f)}function a(f){return f===58?(e.consume(f),r=0,s):(f===43||f===45||f===46||Ze(f))&&r++<32?(e.consume(f),a):(r=0,u(f))}function s(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||js(f)?n(f):(e.consume(f),s)}function u(f){return f===64?(e.consume(f),d):vA(f)?(e.consume(f),u):n(f)}function d(f){return Ze(f)?c(f):n(f)}function c(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||Ze(f))&&r++<63){const h=f===45?p:c;return e.consume(f),h}return n(f)}}const Kl={partial:!0,tokenize:AA};function AA(e,t,n){return r;function r(o){return le(o)?se(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||Z(o)?t(o):n(o)}}const z1={continuation:{tokenize:IA},exit:DA,name:"blockQuote",tokenize:RA};function RA(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return le(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function IA(e,t,n){const r=this;return i;function i(l){return le(l)?se(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(z1,t,n)(l)}}function DA(e){e.exit("blockQuote")}const $1={name:"characterEscape",tokenize:OA};function OA(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return kA(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const B1={name:"characterReference",tokenize:LA};function LA(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Ze,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=xA,d):(e.enter("characterReferenceValue"),o=7,l=Fd,d(c))}function d(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Ze&&!xp(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),d):n(c)}}const ig={partial:!0,tokenize:_A},og={concrete:!0,name:"codeFenced",tokenize:MA};function MA(e,t,n){const r=this,i={partial:!0,tokenize:P};let o=0,l=0,a;return s;function s(E){return u(E)}function u(E){const j=r.events[r.events.length-1];return o=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=E,e.enter("co
240deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(E)}function d(E){return E===a?(l++,e.consume(E),d):l<3?n(E):(e.exit("codeFencedFenceSequence"),le(E)?se(e,c,"whitespace")(E):c(E))}function c(E){return E===null||Z(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(ig,y,C)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||Z(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(E)):le(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,f,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),p)}function f(E){return E===null||Z(E)?c(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(E))}function h(E){return E===null||Z(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(E)):E===96&&E===a?n(E):(e.consume(E),h)}function y(E){return e.attempt(i,C,k)(E)}function k(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),g}function g(E){return o>0&&le(E)?se(e,v,"linePrefix",o+1)(E):v(E)}function v(E){return E===null||Z(E)?e.check(ig,y,C)(E):(e.enter("codeFlowValue"),x(E))}function x(E){return E===null||Z(E)?(e.exit("codeFlowValue"),v(E)):(e.consume(E),x)}function C(E){return e.exit("codeFenced"),t(E)}function P(E,j,R){let A=0;return T;function T(H){return E.enter("lineEnding"),E.consume(H),E.exit("lineEnding"),O}function O(H){return E.enter("codeFencedFence"),le(H)?se(E,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):N(H)}function N(H){return H===a?(E.enter("codeFencedFenceSequence"),F(H)):R(H)}function F(H){return H===a?(A++,E.consume(H),F):A>=l?(E.exit("codeFencedFenceSequence"),le(H)?se(E,_,"whitespace")(H):_(H)):R(H)}function _(H){return H===null||Z(H)?(E.exit("codeFencedFence"),j(H)):R(H)}}}function _A(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const rc={name:"codeIndented",tokenize:zA},FA={partial:!0,tokenize:$A};function zA(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),se(e,o,"linePrefix",5)(u)}function o(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):Z(u)?e.attempt(FA,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||Z(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function $A(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):Z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):se(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):Z(l)?i(l):n(l)}}const BA={name:"codeText",previous:HA,resolve:UA,tokenize:VA};function UA(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function HA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function VA(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,d(c)):Z(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||Z(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class WA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Mo(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Mo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Mo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Mo(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Mo(this.left,n.reverse())}}}function Mo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function U1(e){const t={};let n=-1,r,i,o,l,a,s,u;const d=new WA(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,KA(d,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=d.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},a=d.slice(i,n),a.unshift(r),d.splice(i,n-i+1,a))}}return Pt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function KA(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let d,c,p=-1,f=n,h=0,y=0;const k=[y];for(;f;){for(;e.get(++i)[1]!==f;);o.push(i),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),c&&l.defineSki
vendor: 18,521 bytes, line 240
240p(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(d),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=f,f=f.next}for(f=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(y=p+1,k.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):k.pop(),p=k.length;p--;){const g=a.slice(k[p],k[p+1]),v=o.pop();s.push([v,v+g.length-1]),e.splice(v,2,g)}for(s.reverse(),p=-1;++p<s.length;)u[h+s[p][0]]=h+s[p][1],h+=s[p][1]-s[p][0]-1;return u}const qA={resolve:GA,tokenize:YA},QA={partial:!0,tokenize:XA};function GA(e){return U1(e),e}function YA(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):Z(a)?e.check(QA,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function XA(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),se(e,o,"linePrefix")}function o(l){if(l===null||Z(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function H1(e,t,n,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let d=0;return c;function c(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),p):g===null||g===32||g===41||js(g)?n(g):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),y(g))}function p(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===62?(e.exit("chunkString"),e.exit(a),p(g)):g===null||g===60||Z(g)?n(g):(e.consume(g),g===92?h:f)}function h(g){return g===60||g===62||g===92?(e.consume(g),f):f(g)}function y(g){return!d&&(g===null||g===41||he(g))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(g)):d<u&&g===40?(e.consume(g),d++,y):g===41?(e.consume(g),d--,y):g===null||g===32||g===40||js(g)?n(g):(e.consume(g),g===92?k:y)}function k(g){return g===40||g===41||g===92?(e.consume(g),y):y(g)}}function V1(e,t,n,r,i,o){const l=this;let a=0,s;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(o),d}function d(f){return a>999||f===null||f===91||f===93&&!s||f===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(f):f===93?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===null||f===91||f===93||Z(f)||a++>999?(e.exit("chunkString"),d(f)):(e.consume(f),s||(s=!le(f)),f===92?p:c)}function p(f){return f===91||f===92||f===93?(e.consume(f),a++,c):c(f)}}function W1(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):n(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?n(p):Z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),se(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===l||p===null||Z(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:d)}function c(p){return p===l||p===92?(e.consume(p),d):d(p)}}function rl(e,t){let n;return r;function r(i){return Z(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):le(i)?se(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const JA={name:"definition",tokenize:eR},ZA={partial:!0,tokenize:tR};function eR(e,t,n){const r=this;let i;return o;function o(f){return e.enter("definition"),l(f)}function l(f){return V1.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function a(f){return i=on(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),s):n(f)}function s(f){return he(f)?rl(e,u)(f):u(f)}function u(f){return H1(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(ZA,c,c)(f)}function c(f){return le(f)?se(e,p,"whitespace")(f):p(f)}function p(f){return f===null||Z(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function tR(e,t,n){return r;function r(a){return he(a)?rl(e,i)(a):n(a)}function i(a){return W1(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return le(a)?se(e,l,"whitespace")(a):l(a)}function l(a){return a===null||Z(a)?t(a):n(a)}}const nR={name:"hardBreakEscape",tokenize:rR};function rR(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return Z(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const iR={name:"headingAtx",resolve:oR,tokenize:lR};function oR(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Pt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function lR(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),l(d)}function l(d){return d===35&&r++<6?(e.consume(d),l):d===null||he(d)?(e.exit("atxHeadingSequence"),a(d)):n(d)}function a(d){return d===35?(e.enter("atxHeadingSequence"),s(d)):d===null||Z(d)?(e.exit("atxHeading"),t(d)):le(d)?se(e,a,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function s(d){return d===35?(e.consume(d),s):(e.exit("atxHeadingSequence"),a(d))}function u(d){return d===null||d===35||he(d)?(e.exit("atxHeadingText"),a(d)):(e.consume(d),u)}}const aR=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],lg=["pre","script","style","textarea"],sR={concrete:!0,name:"htmlFlow",resolveTo:dR,tokenize:fR},uR={partial:!0,tokenize:hR},cR={partial:!0,tokenize:pR};function dR(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function fR(e,t,n){const r=this;let i,o,l,a,s;return u;function u(b){return d(b)}function d(b){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(b),c}function c(b){return b===33?(e.consume(b),p):b===47?(e.consume(b),o=!0,y):b===63?(e.consume(b),i=3,r.interrupt?t:S):lt(b)?(e.consume(b),l=String.fromCharCode(b),k):n(b)}function p(b){return b===45?(e.consume(b),i=2,f):b===91?(e.consume(b),i=5,a=0,h):lt(b)?(e.consume(b),i=4,r.interrupt?t:S):n(b)}function f(b){return b===45?(e.consume(b),r.interrupt?t:S):n(b)}function h(b){const V="CDATA[";return b===V.charCodeAt(a++)?(e.consume(b),a===V.length?r.interrupt?t:N:h):n(b)}function y(b){return lt(b)?(e.consume(b),l=String.fromCharCode(b),k):n(b)}function k(b){if(b===null||b===47||b===62||he(b)){const V=b===47,X=l.toLowerCase();return!V&&!o&&lg.includes(X)?(i=1,r.interrupt?t(b):N(b)):aR.includes(l.toLowerCase())?(i=6,V?(e.consume(b),g):r.interrupt?t(b):N(b)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):o?v(b):x(b))}return b===45||Ze(b)?(e.consume(b),l+=String.fromCharCode(b),k):n(b)}function g(b){return b===62?(e.consume(b),r.interrupt?t:N):n(b)}function v(b){return le(b)?(e.consume(b),v):T(b)}function x(b){return b===47?(e.consume(b),T):b===58||b===95||lt(b)?(e.consume(b),C):le(b)?(e.consume(b),x):T(b)}function C(b){return b===45||b===46||b===58||b===95||Ze(b)?(e.consume(b),C):P(b)}function P(b){return b===61?(e.consume(b),E):le(b)?(e.consume(b),P):x(b)}function E(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),s=b,j):le(b)?(e.consume(b),E):R(b)}function j(b){return b===s?(e.consume(b),s=null,A):b===null||Z(b)?n(b):(e.consume(b),j)}function R(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||he(b)?P(b):(e.consume(b),R)}function A(b){return b===47||b===62||le(b)?x(b):n(b)}function T(b){return b===62?(e.consume(b),O):n(b)}function O(b){return b===null||Z(b)?N(b):le(b)?(e.consume(b),O):n(b)}function N(b){return b===45&&i===2?(e.consume(b),W):b===60&&i===1?(e.consume(b),Q):b===62&&i===4?(e.consume(b),G):b===63&&i===3?(e.consume(b),S):b===93&&i===5?(e.consume(b),L):Z(b)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uR,q,F)(b)):b===null||Z(b)?(e.exit("htmlFlowData"),F(b)):(e.consume(b),N)}function F(b){return e.check(cR,_,q)(b)}function _(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),H}function H(b){return b===null||Z(b)?F(b):(e.enter("htmlFlowData"),N(b))}function W(b){return b===45?(e.consume(b),S):N(b)}function Q(b){return b===47?(e.consume(b),l="",D):N(b)}function D(b){if(b===62){const V=l.toLowerCase();return lg.includes(V)?(e.consume(b),G):N(b)}return lt(b)&&l.length<8?(e.consume(b),l+=String.fromCharCode(b),D):N(b)}function L(b){return b===93?(e.consume(b),S):N(b)}function S(b){return b===62?(e.consume(b),G):b===45&&i===2?(e.consume(b),S):N(b)}function G(b){return b===null||Z(b)?(e.exit("htmlFlowData"),q(b)):(e.consume(b),G)}function q(b){return e.exit("htmlFlow"),t(b)}}function pR(e,t,n){const r=this;return i;function i(l){return Z(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function hR(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Kl,t,n)}}const mR={name:"htmlText",tokenize:gR};function gR(e,t,n){const r=this;let i,o,l;return a;function a(S){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(S),s}function s(S){return S===33?(e.consume(S),u):S===47?(e.consume(S),P):S===63?(e.consume(S),x):lt(S)?(e.consume(S),R):n(S)}function u(S){return S===45?(e.consume(S),d):S===91?(e.consume(S),o=0,h):lt(S)?(e.consume(S),v):n(S)}function d(S){return S===45?(e.consume(S),f):n(S)}function c(S){return S===null?n(S):S===45?(e.consume(S),p):Z(S)?(l=c,Q(S)):(e.consume(S),c)}function p(S){return S===45?(e.consume(S),f):c(S)}function f(S){return S===62?W(S):S===45?p(S):c(S)}function h(S){const G="CDATA[";return S===G.charCodeAt(o++)?(e.consume(S),o===G.length?y:h):n(S)}function y(S){return S===null?n(S):S===93?(e.consume(S),k):Z(S)?(l=y,Q(S)):(e.consume(S),y)}function k(S){return S===93?(e.consume(S),g):y(S)}function g(S){return S===62?W(S):S===93?(e.consume(S),g):y(S)}function v(S){return S===null||S===62?W(S):Z(S)?(l=v,Q(S)):(e.consume(S),v)}function x(S){return S===null?n(S):S===63?(e.consume(S),C):Z(S)?(l=x,Q(S)):(e.consume(S),x)}function C(S){return S===62?W(S):x(S)}function P(S){return lt(S)?(e.consume(S),E):n(S)}function E(S){return S===45||Ze(S)?(e.consume(S),E):j(S)}function j(S){return Z(S)?(l=j,Q(S)):le(S)?(e.consume(S),j):W(S)}function R(S){return S===45||Ze(S)?(e.consume(S),R):S===47||S===62||he(S)?A(S):n(S)}function A(S){return S===47?(e.consume(S),W):S===58||S===95||lt(S)?(e.consume(S),T):Z(S)?(l=A,Q(S)):le(S)?(e.consume(S),A):W(S)}function T(S){return S===45||S===46||S===58||S===95||Ze(S)?(e.consume(S),T):O(S)}function O(S){return S===61?(e.consume(S),N):Z(S)?(l=O,Q(S)):le(S)?(e.consume(S),O):A(S)}function N(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),i=S,F):Z(S)?(l=N,Q(S)):le(S)?(e.consume(S),N):(e.consume(S),_)}function F(S){return S===i?(e.consume(S),i=void 0,H):S===null?n(S):Z(S)?(l=F,Q(S)):(e.consume(S),F)}function _(S){return S===null||S===34||S===39||S===60||S===61||S===96?n(S):S===47||S===62||he(S)?A(S):(e.consume(S),_)}function H(S){return S===47||S===62||he(S)?A(S):n(S)}function W(S){return S===62?(e.consume(S),e.exit("htmlTextData"),e.exit("htmlText"),t):n(S)}function Q(S){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),D}function D(S){return le(S)?se(e,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(S):L(S)}function L(S){return e.enter("htmlTextData"),l(S)}}const kp={name:"labelEnd",resolveAll:kR,resolveTo:wR,tokenize:bR},yR={tokenize:SR},vR={tokenize:ER},xR={tokenize:CR};function kR(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Pt(e,0,e.length,n),e}function wR(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},d={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=Mt(a,e.slice(o+1,o+r+3)),a=Mt(a,[["enter",d,t]]),a=Mt(a,uu(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=Mt(a,[["exit",d,t],e[l-2],e[l-1],["exit",u,t]]),a=Mt(a,e.slice(l+1)),a=Mt(a,[["exit",s,t]]),Pt(e,o,e.length,a),e}function bR(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(on(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(yR,d,l?d:c)(p):p===91?e.attempt(vR,d,l?u:c)(p):l?d(p):c(p)}function u(p){return e.attempt(xR,d,c)(p)}function d(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function SR(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return he(c)?rl(e,o)(c):o(c)}function o(c){return c===41?d(c):H1(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return he(c)?rl(e,s)(c):d(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?W1(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return he(c)?rl(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function ER(e,t,n){const r=this;return i;function i(a){return V1.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(on(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function CR(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const TR={name:"labelStartImage",resolveAll:kp.resolveAll,tokenize:PR};function PR(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const jR={name:"labelStartLink",resolveAll:kp.resolveAll,tokenize:NR};function NR(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const ic={name:"lineEnding",tokenize:AR};function AR(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),se(e,t,"linePrefix")}}const Ha={name:"thematicBreak",tokenize:RR};function RR(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||Z(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),le(u)?se(e,a,"whitespace")(u):a(u))}}const ct={continuation:{tokenize:LR},exit:_R,name:"list",tokenize:OR},IR={partial:!0,tokenize:FR},DR={partial:!0,tokenize:MR};function OR(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(f){const h=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Fd(f)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ha,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(f)}return n(f)}function s(f){return Fd(f)&&++l<10?(e.consume(f),s):(!r.interrupt||l<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Kl,r.interrupt?n:d,e.attempt(IR,p,c))}
vendor: 5,229 bytes, line 240
240function d(f){return r.containerState.initialBlankLine=!0,o++,p(f)}function c(f){return le(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function LR(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Kl,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,se(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!le(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(DR,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,se(e,e.attempt(ct,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function MR(e,t,n){const r=this;return se(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function _R(e){e.exit(this.containerState.type)}function FR(e,t,n){const r=this;return se(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!le(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ag={name:"setextUnderline",resolveTo:zR,tokenize:$R};function zR(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function $R(e,t,n){const r=this;let i;return o;function o(u){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),le(u)?se(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||Z(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const BR={tokenize:UR};function UR(e){const t=this,n=e.attempt(Kl,r,e.attempt(this.parser.constructs.flowInitial,i,se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qA,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const HR={resolveAll:q1()},VR=K1("string"),WR=K1("text");function K1(e){return{resolveAll:q1(e==="text"?KR:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(d){return u(d)?o(d):a(d)}function a(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),s}function s(d){return u(d)?(n.exit("data"),o(d)):(n.consume(d),s)}function u(d){if(d===null)return!0;const c=i[d];let p=-1;if(c)for(;++p<c.length;){const f=c[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function q1(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function KR(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const qR={42:ct,43:ct,45:ct,48:ct,49:ct,50:ct,51:ct,52:ct,53:ct,54:ct,55:ct,56:ct,57:ct,62:z1},QR={91:JA},GR={[-2]:rc,[-1]:rc,32:rc},YR={35:iR,42:Ha,45:[ag,Ha],60:sR,61:ag,95:Ha,96:og,126:og},XR={38:B1,92:$1},JR={[-5]:ic,[-4]:ic,[-3]:ic,33:TR,38:B1,42:zd,60:[jA,mR],91:jR,92:[nR,$1],93:kp,95:zd,96:BA},ZR={null:[zd,HR]},eI={null:[42,95]},tI={null:[]},nI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:eI,contentInitial:QR,disable:tI,document:qR,flow:YR,flowInitial:GR,insideSpan:Z
vendor: 14,709 bytes, lines 240-242
240R,string:XR,text:JR},Symbol.toStringTag,{value:"Module"}));function rI(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:j(P),check:j(E),consume:v,enter:x,exit:C,interrupt:j(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:c};let d=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(O){return l=Mt(l,O),k(),l[l.length-1]!==null?[]:(R(t,0),u.events=uu(o,u.events,u),u.events)}function p(O,N){return oI(f(O),N)}function f(O){return iI(l,O)}function h(){const{_bufferIndex:O,_index:N,line:F,column:_,offset:H}=r;return{_bufferIndex:O,_index:N,line:F,column:_,offset:H}}function y(O){i[O.line]=O.column,T()}function k(){let O;for(;r._index<l.length;){const N=l[r._index];if(typeof N=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<N.length;)g(N.charCodeAt(r._bufferIndex));else g(N)}}function g(O){d=d(O)}function v(O){Z(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,T()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function x(O,N){const F=N||{};return F.type=O,F.start=h(),u.events.push(["enter",F,u]),a.push(F),F}function C(O){const N=a.pop();return N.end=h(),u.events.push(["exit",N,u]),N}function P(O,N){R(O,N.from)}function E(O,N){N.restore()}function j(O,N){return F;function F(_,H,W){let Q,D,L,S;return Array.isArray(_)?q(_):"tokenize"in _?q([_]):G(_);function G(J){return Y;function Y(Ee){const Re=Ee!==null&&J[Ee],we=Ee!==null&&J.null,ze=[...Array.isArray(Re)?Re:Re?[Re]:[],...Array.isArray(we)?we:we?[we]:[]];return q(ze)(Ee)}}function q(J){return Q=J,D=0,J.length===0?W:b(J[D])}function b(J){return Y;function Y(Ee){return S=A(),L=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?X():J.tokenize.call(N?Object.assign(Object.create(u),N):u,s,V,X)(Ee)}}function V(J){return O(L,S),H}function X(J){return S.restore(),++D<Q.length?b(Q[D]):W}}}function R(O,N){O.resolveAll&&!o.includes(O)&&o.push(O),O.resolve&&Pt(u.events,N,u.events.length-N,O.resolve(u.events.slice(N),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function A(){const O=h(),N=u.previous,F=u.currentConstruct,_=u.events.length,H=Array.from(a);return{from:_,restore:W};function W(){r=O,u.previous=N,u.currentConstruct=F,u.events.length=_,a=H,T()}}function T(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function iI(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function oI(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
241`;break}case-3:{l=`\r
242`;break}case-2:{l=t?" ":"	";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function lI(e){const r={constructs:_1([nI,...(e||{}).extensions||[]]),content:i(wA),defined:[],document:i(SA),flow:i(BR),lazy:{},string:i(VR),text:i(WR)};return r;function i(o){return l;function l(a){return rI(r,o,a)}}}function aI(e){for(;!U1(e););return e}const sg=/[\0\t\n\r]/g;function sI(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,d,c,p,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(sg.lastIndex=c,u=sg.exec(o),p=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(p),!u){t=o.slice(c);break}if(f===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),f){case 0:{s.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,s.push(-2);e++<d;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const uI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cI(e){return e.replace(uI,dI)}function dI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return F1(n.slice(o?2:1),o?16:10)}return xp(n)||e}const Q1={}.hasOwnProperty;function fI(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),pI(n)(aI(lI(n).document().write(sI()(e,t,!0))))}function pI(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Cn),autolinkProtocol:A,autolinkEmail:A,atxHeading:o(yi),blockQuote:o(we),characterEscape:A,characterReference:A,codeFenced:o(ze),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ze,l),codeText:o(Kn,l),codeTextData:A,data:A,codeFlowValue:A,definition:o(un),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(gi),hardBreakEscape:o(Or),hardBreakTrailing:o(Or),htmlFlow:o(vi,l),htmlFlowData:A,htmlText:o(vi,l),htmlTextData:A,image:o(Lr),label:l,link:o(Cn),listItem:o(Mr),listItemValue:p,listOrdered:o(So,c),listUnordered:o(So),paragraph:o(Ql),reference:b,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(yi),strong:o(Tn),thematicBreak:o(hu)},exit:{atxHeading:s(),atxHeadingSequence:P,autolink:s(),autolinkEmail:Re,autolinkProtocol:Ee,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:J,characterReference:Y,codeFenced:s(k),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:s(g),codeText:s(H),codeTextData:T,data:T,definition:s(),definitionDestinationString:C,definitionLabelString:v,definitionTitleString:x,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(F),htmlFlowData:T,htmlText:s(_),htmlTextData:T,image:s(Q),label:L,labelText:D,lineEnding:O,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:V,resourceDestinationString:S,resourceTitleString:G,resource:q,setextHeading:s(R),setextHeadingLineSequence:j,setextHeadingText:E,strong:s(),thematicBreak:s()}};G1(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let U={type:"root",children:[]};const ee={stack:[U],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:d,data:n},oe=[];let ce=-1;for(;++ce<I.length;)if(I[ce][1].type==="listOrdered"||I[ce][1].type==="listUnordered")if(I[ce][0]==="enter")oe.push(ce);else{const xt=oe.pop();ce=i(I,xt,ce)}for(ce=-1;++ce<I.length;){const xt=t[I[ce][0]];Q1.call(xt,I[ce][1].type)&&xt[I[ce][1].type].call(Object.assign({sliceSerialize:I[ce][2].sliceSerialize},ee),I[ce][1])}if(ee.tokenStack.length>0){const xt=ee.tokenStack[ee.tokenStack.length-1];(xt[1]||ug).call(ee,void 0,xt[0])}for(U.position={start:tr(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:tr(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},ce=-1;++ce<t.transforms.length;)U=t.transforms[ce](U)||U;return U}function i(I,U,ee){let oe=U-1,ce=-1,xt=!1,cn,kt,Rt,qn;for(;++oe<=ee;){const Oe=I[oe];switch(Oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Oe[0]==="enter"?ce++:ce--,qn=void 0;break}case"lineEndingBlank":{Oe[0]==="enter"&&(cn&&!qn&&!ce&&!Rt&&(Rt=oe),qn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qn=void 0}if(!ce&&Oe[0]==="enter"&&Oe[1].type==="listItemPrefix"||ce===-1&&Oe[0]==="exit"&&(Oe[1].type==="listUnordered"||Oe[1].type==="listOrdered")){if(cn){let Qn=oe;for(kt=void 0;Qn--;){const Ht=I[Qn];if(Ht[1].type==="lineEnding"||Ht[1].type==="lineEndingBlank"){if(Ht[0]==="exit")continue;kt&&(I[kt][1].type="lineEndingBlank",xt=!0),Ht[1].type="lineEnding",kt=Qn}else if(!(Ht[1].type==="linePrefix"||Ht[1].type==="blockQuotePrefix"||Ht[1].type==="blockQuotePrefixWhitespace"||Ht[1].type==="blockQuoteMarker"||Ht[1].type==="listItemIndent"))break}Rt&&(!kt||Rt<kt)&&(cn._spread=!0),cn.end=Object.assign({},kt?I[kt][1].start:Oe[1].end),I.splice(kt||oe,0,["exit",cn,Oe[2]]),oe++,ee++}if(Oe[1].type==="listItemPrefix"){const Qn={type:"listItem",_spread:!1,start:Object.assign({},Oe[1].start),end:void 0};cn=Qn,I.splice(oe,0,["enter",Qn,Oe[2]]),oe++,ee++,Rt=void 0,qn=!0}}}return I[U][1]._spread=xt,ee}function o(I,U){return ee;function ee(oe){a.call(this,I(oe),oe),U&&U.call(this,oe)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(I,U,ee){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([U,ee||void 0]),I.position={start:tr(U.start),end:void 0}}function s(I){return U;function U(ee){I&&I.call(this,ee),u.call(this,ee)}}function u(I,U){const ee=this.stack.pop(),oe=this.tokenStack.pop();if(oe)oe[0].type!==I.type&&(U?U.call(this,I,oe[0]):(oe[1]||ug).call(this,I,oe[0]));else throw new Error("Cannot close `"+I.type+"` ("+nl({start:I.start,end:I.end})+"): it’s not open");ee.position.end=tr(I.end)}function d(){return vp(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(I){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function f(){const I=this.resume(),U=this.stack[this.stack.length-1];U.lang=I}function h(){const I=this.resume(),U=this.stack[this.stack.length-1];U.meta=I}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const I=this.resume(),U=this.stack[this.stack.length-1];U.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const I=this.resume(),U=this.stack[this.stack.length-1];U.value=I.replace(/(\r?\n|\r)$/g,"")}function v(I){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.label=U,ee.identifier=on(this.sliceSerialize(I)).toLowerCase()}function x(){const I=this.resume(),U=this.stack[this.stack.length-1];U.title=I}function C(){const I=this.resume(),U=this.stack[this.stack.length-1];U.url=I}function P(I){const U=this.stack[this.stack.length-1];if(!U.depth){const ee=this.sliceSerialize(I).length;U.depth=ee}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function j(I){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function A(I){const ee=this.stack[this.stack.length-1].children;let oe=ee[ee.length-1];(!oe||oe.type!=="text")&&(oe=pu(),oe.position={start:tr(I.start),end:void 0},ee.push(oe)),this.stack.push(oe)}function T(I){const U=this.stack.pop();U.value+=this.sliceSerialize(I),U.position.end=tr(I.end)}function O(I){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ee=U.children[U.children.length-1];ee.position.end=tr(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(U.type)&&(A.call(this,I),T.call(this,I))}function N(){this.data.atHardBreak=!0}function F(){const I=this.resume(),U=this.stack[this.stack.length-1];U.value=I}function _(){const I=this.resume(),U=this.stack[this.stack.length-1];U.value=I}function H(){const I=this.resume(),U=this.stack[this.stack.length-1];U.value=I}function W(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=U,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function Q(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=U,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function D(I){const U=this.sliceSerialize(I),ee=this.stack[this.stack.length-2];ee.label=cI(U),ee.identifier=on(U).toLowerCase()}function L(){const I=this.stack[this.stack.length-1],U=this.resume(),ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,ee.type==="link"){const oe=I.children;ee.children=oe}else ee.alt=U}function S(){const I=this.resume(),U=this.stack[this.stack.length-1];U.url=I}function G(){const I=this.resume(),U=this.stack[this.stack.length-1];U.title=I}function q(){this.data.inReference=void 0}function b(){this.data.referenceType="collapsed"}function V(I){const U=this.resume(),ee=this.stack[this.stack.length-1];ee.label=U,ee.identifier=on(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function X(I){this.data.characterReferenceType=I.type}function J(I){const U=this.sliceSerialize(I),ee=this.data.characterReferenceType;let oe;ee?(oe=F1(U,ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):oe=xp(U);const ce=this.stack[this.stack.length-1];ce.value+=oe}function Y(I){const U=this.stack.pop();U.position.end=tr(I.end)}function Ee(I){T.call(this,I);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(I)}function Re(I){T.call(this,I);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(I)}function we(){return{type:"blockquote",children:[]}}function ze(){return{type:"code",lang:null,meta:null,value:""}}function Kn(){return{type:"inlineCode",value:""}}function un(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function gi(){return{type:"emphasis",children:[]}}function yi(){return{type:"heading",depth:0,children:[]}}function Or(){return{type:"break"}}function vi(){return{type:"html",value:""}}function Lr(){return{type:"image",title:null,url:"",alt:null}}function Cn(){return{type:"link",title:null,url:"",children:[]}}function So(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function Mr(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Ql(){return{type:"paragraph",children:[]}}function Tn(){return{type:"strong",children:[]}}function pu(){return{type:"text",value:""}}function hu(){return{type:"thematicBreak"}}}function tr(e){return{line:e.line,column:e.column,offset:e.offset}}function G1(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?G1(e,r):hI(e,r)}}function hI(e,t){let n;for(n in t)if(Q1.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ug(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nl({start:t.start,end:t.end}
vendor: 12,156 bytes, lines 242-247
242)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nl({start:t.start,end:t.end})+") is still open")}function mI(e){const t=this;t.parser=n;function n(r){return fI(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function gI(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function yI(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
243`}]}function vI(e,t){const n=t.value?t.value+`
244`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function xI(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kI(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wI(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=bo(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function bI(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SI(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Y1(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function EI(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Y1(e,t);const i={src:bo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function CI(e,t){const n={src:bo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function TI(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function PI(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Y1(e,t);const i={href:bo(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function jI(e,t){const n={href:bo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function NI(e,t,n){const r=e.all(t),i=n?AI(n):X1(t),o={},l=[];if(typeof t.checked=="boolean"){const d=r[0];let c;d&&d.type==="element"&&d.tagName==="p"?c=d:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const d=r[a];(i||a!==0||d.type!=="element"||d.tagName!=="p")&&l.push({type:"text",value:`
245`}),d.type==="element"&&d.tagName==="p"&&!i?l.push(...d.children):l.push(d)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
246`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function AI(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=X1(n[r])}return t}function X1(e){const t=e.spread;return t??e.children.length>1}function RI(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function II(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DI(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function OI(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LI(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=hp(t.children[1]),s=A1(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function MI(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],p={},f=l?l[s]:void 0;f&&(p.align=f);let h={type:"element",tagName:o,properties:p,children:[]};c&&(h.children=e.all(c),e.patch(c,h),h=e.applyData(c,h)),u.push(h)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function _I(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cg=9,dg=32;function FI(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(fg(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fg(t.slice(i),i>0,!1)),o.join("")}function fg(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===cg||o===dg;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===cg||o===dg;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function zI(e,t){const n={type:"text",value:FI(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function $I(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const BI={blockquote:gI,break:yI,code:vI,delete:xI,emphasis:kI,footnoteReference:wI,heading:bI,html:SI,imageReference:EI,image:CI,inlineCode:TI,linkReference:PI,link:jI,listItem:NI,list:RI,paragraph:II,root:DI,strong:OI,table:LI,tableCell:_I,tableRow:MI,text:zI,thematicBreak:$I,toml:ka,yaml:ka,definition:ka,footnoteDefinition:ka};function ka(){}const J1=-1,cu=0,il=1,Ns=2,wp=3,bp=4,Sp=5,Ep=6,Z1=7,ek=8,pg=typeof self=="object"?self:globalThis,UI=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case cu:case J1:return n(l,i);case il:{const a=n([],i);for(const s of l)a.push(r(s));return a}case Ns:{const a=n({},i);for(const[s,u]of l)a[r(s)]=r(u);return a}case wp:return n(new Date(l),i);case bp:{const{source:a,flags:s}=l;return n(new RegExp(a,s),i)}case Sp:{const a=n(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case Ep:{const a=n(new Set,i);for(const s of l)a.add(r(s));return a}case Z1:{const{name:a,message:s}=l;return n(new pg[a](s),i)}case ek:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new pg[o](l),i)};return r},hg=e=>UI(new Map,e)(0),wi="",{toString:HI}={},{keys:VI}=Object,_o=e=>{const t=typeof e;if(t!=="object"||!e)return[cu,t];const n=HI.call(e).slice(8,-1);switch(n){case"Array":return[il,wi];case"Object":return[Ns,wi];case"Date":return[wp,wi];case"RegExp":return[bp,wi];case"Map":return[Sp,wi];case"Set":return[Ep,wi];case"DataView":return[il,n]}return n.includes("Array")?[il,n]:n.includes("Error")?[Z1,n]:[Ns,n]},wa=([e,t])=>e===cu&&(t==="function"||t==="symbol"),WI=(e,t,n,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=_o(l);switch(a){case cu:{let d=l;switch(s){case"bigint":a=ek,d=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);d=null;break;case"undefined":return i([J1],l)}return i([a,d],l)}case il:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const d=[],c=i([a,d],l);for(const p of l)d.push(o(p));return c}case Ns:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const d=[],c=i([a,d],l);for(const p of VI(l))(e||!wa(_o(l[p])))&&d.push([o(p),o(l[p])]);return c}case wp:return i([a,l.toISOString()],l);case bp:{const{source:d,flags:c}=l;return i([a,{source:d,flags:c}],l)}case Sp:{const d=[],c=i([a,d],l);for(const[p,f]of l)(e||!(wa(_o(p))||wa(_o(f))))&&d.push([o(p),o(f)]);return c}case Ep:{const d=[],c=i([a,d],l);for(const p of l)(e||!wa(_o(p)))&&d.push(o(p));return c}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},mg=(e,{json:t,lossy:n}={})=>{const r=[];return WI(!(t||n),!!t,new Map,r)(e),r},As=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?hg(mg(e,t)):structuredClone(e):(e,t)=>hg(mg(e,t));function KI(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function qI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function QI(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KI,r=e.options.footnoteBackLabel||qI,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const d=e.all(u),c=String(u.identifier).toUpperCase(),p=bo(c.toLowerCase());let f=0;const h=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++f<=y;){h.length>0&&h.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,f);typeof v=="string"&&(v={type:"text",value:v}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,f),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const v=k.children[k.children.length-1];v&&v.type==="text"?v.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...h)}else d.push(...h);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...As(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
247`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
vendor: 18,854 bytes, lines 247-252
247,{type:"text",value:`
248`}]}}const du=function(e){if(e==null)return JI;if(typeof e=="function")return fu(e);if(typeof e=="object")return Array.isArray(e)?GI(e):YI(e);if(typeof e=="string")return XI(e);throw new Error("Expected function, string, or object as test")};function GI(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=du(e[n]);return fu(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function YI(e){const t=e;return fu(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function XI(e){return fu(t);function t(n){return n&&n.type===e}}function fu(e){return t;function t(n,r,i){return!!(ZI(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function JI(){return!0}function ZI(e){return e!==null&&typeof e=="object"&&"type"in e}const tk=[],eD=!0,$d=!1,tD="skip";function nk(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=du(i),l=r?-1:1;a(e,void 0,[])();function a(s,u,d){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=tk,h,y,k;if((!t||o(s,u,d[d.length-1]||void 0))&&(f=nD(n(s,d)),f[0]===$d))return f;if("children"in s&&s.children){const g=s;if(g.children&&f[0]!==tD)for(y=(r?g.children.length:-1)+l,k=d.concat(g);y>-1&&y<g.children.length;){const v=g.children[y];if(h=a(v,y,k)(),h[0]===$d)return h;y=typeof h[1]=="number"?h[1]:y+l}}return f}}}function nD(e){return Array.isArray(e)?e:typeof e=="number"?[eD,e]:e==null?tk:[e]}function Cp(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),nk(e,o,a,i);function a(s,u){const d=u[u.length-1],c=d?d.children.indexOf(s):void 0;return l(s,c,d)}}const Bd={}.hasOwnProperty,rD={};function iD(e,t){const n=t||rD,r=new Map,i=new Map,o=new Map,l={...BI,...n.handlers},a={all:u,applyData:lD,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:oD,wrap:sD};return Cp(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const c=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();c.has(p)||c.set(p,d)}}),a;function s(d,c){const p=d.type,f=a.handlers[p];if(Bd.call(a.handlers,p)&&f)return f(a,d,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in d){const{children:y,...k}=d,g=As(k);return g.children=a.all(d),g}return As(d)}return(a.options.unknownHandler||aD)(a,d,c)}function u(d){const c=[];if("children"in d){const p=d.children;let f=-1;for(;++f<p.length;){const h=a.one(p[f],d);if(h){if(f&&p[f-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=gg(h.value)),!Array.isArray(h)&&h.type==="element")){const y=h.children[0];y&&y.type==="text"&&(y.value=gg(y.value))}Array.isArray(h)?c.push(...h):c.push(h)}}}return c}}function oD(e,t){e.position&&(t.position=qN(e))}function lD(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,As(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function aD(e,t){const n=t.data||{},r="value"in t&&!(Bd.call(n,"hProperties")||Bd.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sD(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
249`});++r<e.length;)r&&n.push({type:"text",value:`
250`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
251`}),n}function gg(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yg(e,t){const n=iD(e,t),r=n.one(e,void 0),i=QI(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
252`},i),o}function uD(e,t){return e&&"run"in e?async function(n,r){const i=yg(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yg(n,{file:r,...e||t})}}function vg(e){if(e)throw e}var Va=Object.prototype.hasOwnProperty,rk=Object.prototype.toString,xg=Object.defineProperty,kg=Object.getOwnPropertyDescriptor,wg=function(t){return typeof Array.isArray=="function"?Array.isArray(t):rk.call(t)==="[object Array]"},bg=function(t){if(!t||rk.call(t)!=="[object Object]")return!1;var n=Va.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Va.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Va.call(t,i)},Sg=function(t,n){xg&&n.name==="__proto__"?xg(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Eg=function(t,n){if(n==="__proto__")if(Va.call(t,n)){if(kg)return kg(t,n).value}else return;return t[n]},cD=function e(){var t,n,r,i,o,l,a=arguments[0],s=1,u=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},s=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});s<u;++s)if(t=arguments[s],t!=null)for(n in t)r=Eg(a,n),i=Eg(t,n),a!==i&&(d&&i&&(bg(i)||(o=wg(i)))?(o?(o=!1,l=r&&wg(r)?r:[]):l=r&&bg(r)?r:{},Sg(a,{name:n,newValue:e(d,l,i)})):typeof i<"u"&&Sg(a,{name:n,newValue:i}));return a};const oc=ui(cD);function Ud(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function dD(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const d=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,d?fD(d,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function fD(e,t){let n;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const d=u;if(a&&n)throw d;return i(d)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const hn={basename:pD,dirname:hD,extname:mD,join:gD,sep:"/"};function pD(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ql(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function hD(e){if(ql(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function mD(e){ql(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function gD(...e){let t=-1,n;for(;++t<e.length;)ql(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":yD(n)}function yD(e){ql(e);const t=e.codePointAt(0)===47;let n=vD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function vD(e,t){let n="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function ql(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const xD={cwd:kD};function kD(){return"/"}function Hd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function wD(e){if(typeof e=="string")e=new URL(e);else if(!Hd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return bD(e)}function bD(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const lc=["history","path","basename","stem","extname","dirname"];class ik{constructor(t){let n;t?Hd(t)?n={path:t}:typeof t=="string"||SD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":xD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<lc.length;){const o=lc[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)lc.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?hn.basename(this.path):void 0}set basename(t){sc(t,"basename"),ac(t,"basename"),this.path=hn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?hn.dirname(this.path):void 0}set dirname(t){Cg(this.basename,"dirname"),this.path=hn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?hn.extname(this.path):void 0}set extname(t){if(ac(t,"extname"),Cg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hd(t)&&(t=wD(t)),sc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?hn.basename(this.path,this.extname):void 0}set stem(t){sc(t,"stem"),ac(t,"stem"),this.path=hn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new tt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ac(e,t){if(e&&e.includes(hn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+hn.sep+"`")}function sc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Cg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function SD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ED=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},CD={}.hasOwnProperty;class Tp extends ED{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=dD()}copy(){const t=new Tp;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(oc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(dc("data",this.frozen),this.namespace[t]=n,this):CD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(dc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=ba(t),r=this.parser||this.Parser;return uc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),uc("process",this.parser||this.Parser),cc("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=ba(t),s=r.parse(a);r.run(s,a,function(d,c,p){if(d||!c||!p)return u(d);const f=c,h=r.stringify(f,p);jD(h)?p.value=h:p.result=h,u(d,p)});function u(d,c){d||!c?l(d):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),uc("processSync",this.parser||this.Parser),cc("processSync",this.compiler||this.Compiler),this.process(t,i),Pg("processSync","process",n),r;function i(o,l){n=!0,vg(o),r=l}}run(t,n,r){Tg(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=ba(n);i.run(t,s,u);function u(d,c,p){const f=c||t;d?a(d):l?l(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Pg("runSync","run",r),i;function o(l,a){vg(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=ba(n),i=this.compiler||this.Compiler;return cc("stringify",i),Tg(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(dc("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...c]=u;s(d,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=oc(!0,i.settings,u.settings))}function a(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const c=u[d];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,d){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[f,...h]=d;const y=r[p][1];Ud(y)&&Ud(f)&&(f=oc(!0,y,f)),r[p]=[u,f,...h]}}}}const TD=new Tp().freeze();function uc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function cc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Tg(e){if(!Ud(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Pg(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ba(e){return PD(e)?e:new ik(e)}function PD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function jD(e){return typeof e=="string"||ND(e)}function ND(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const AD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",jg=[],Ng={allowDangerousHtml:!0},RD=/^(https?|ircs?|mailto|xmpp)$/i,ID=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function fc(e){const t=DD(e),n=OD(e);return LD(t.runSync(t.parse(n),n),e)}function DD(e){const t=e.rehypePlugins||jg,n=e.remarkPlugins||jg,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ng}:Ng;return TD().use(mI).use(n).use(uD,r).use(t)}function OD(e){const t=e.children||"",n=new ik;return typeof t=="string"&&(n.value=t),n}function LD(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||MD;for(const d of ID)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+AD+d.id,void 0);return Cp(e,u),JN(e,{Fragment:m.Fragment,components:i,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0});function u(d,c,p){if(d.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:d.value},c;if(d.type==="element"){let f;for(f in nc)if(Object.hasOwn(nc,f)&&Object.hasOwn(d.properties,f)){const h=d.properties[f],y=nc[f];(y===null||y.includes(d.tagName))&&(d.properties[f]=s(String(h||""),f,d))}}if(d.type==="element"){let f=n?!n.includes(d.tagName):o?o.includes(d.tagName):!1;if(!f&&r&&typeof c=="number"&&(f=!r(d,c,p)),f&&p&&typeof c=="number")return a&&d.children?p.children.splice(c,1,...d.children):p.children.splice(c,1),c}}}function MD(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||RD.test(e.slice(0,t))?e:""}function Ag(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function _D(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}
vendor: 8,459 bytes, lines 252-256
252function FD(e,t,n){const i=du((n||{}).ignore||[]),o=zD(t);let l=-1;for(;++l<o.length;)nk(e,"text",a);function a(u,d){let c=-1,p;for(;++c<d.length;){const f=d[c],h=p?p.children:void 0;if(i(f,h?h.indexOf(f):void 0,p))return;p=f}if(p)return s(u,d)}function s(u,d){const c=d[d.length-1],p=o[l][0],f=o[l][1];let h=0;const k=c.children.indexOf(u);let g=!1,v=[];p.lastIndex=0;let x=p.exec(u.value);for(;x;){const C=x.index,P={index:x.index,input:x.input,stack:[...d,u]};let E=f(...x,P);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?p.lastIndex=C+1:(h!==C&&v.push({type:"text",value:u.value.slice(h,C)}),Array.isArray(E)?v.push(...E):E&&v.push(E),h=C+x[0].length,g=!0),!p.global)break;x=p.exec(u.value)}return g?(h<u.value.length&&v.push({type:"text",value:u.value.slice(h)}),c.children.splice(k,1,...v)):v=[u],k+v.length}}function zD(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([$D(i[0]),BD(i[1])])}return t}function $D(e){return typeof e=="string"?new RegExp(_D(e),"g"):e}function BD(e){return typeof e=="function"?e:function(){return e}}const pc="phrasing",hc=["autolink","link","image","label"];function UD(){return{transforms:[GD],enter:{literalAutolink:VD,literalAutolinkEmail:mc,literalAutolinkHttp:mc,literalAutolinkWww:mc},exit:{literalAutolink:QD,literalAutolinkEmail:qD,literalAutolinkHttp:WD,literalAutolinkWww:KD}}}function HD(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pc,notInConstruct:hc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pc,notInConstruct:hc},{character:":",before:"[ps]",after:"\\/",inConstruct:pc,notInConstruct:hc}]}}function VD(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function mc(e){this.config.enter.autolinkProtocol.call(this,e)}function WD(e){this.config.exit.autolinkProtocol.call(this,e)}function KD(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function qD(e){this.config.exit.autolinkEmail.call(this,e)}function QD(e){this.exit(e)}function GD(e){FD(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,YD],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),XD]],{ignore:["link","linkReference"]})}function YD(e,t,n,r,i){let o="";if(!ok(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!JD(n)))return!1;const l=ZD(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function XD(e,t,n,r){return!ok(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function JD(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ZD(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Ag(e,"(");let o=Ag(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function ok(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||si(n)||su(n))&&(!t||n!==47)}lk.peek=s4;function e4(){this.buffer()}function t4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function n4(){this.buffer()}function r4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function i4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=on(this.sliceSerialize(e)).toLowerCase(),n.label=t}function o4(e){this.exit(e)}function l4(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=on(this.sliceSerialize(e)).toLowerCase(),n.label=t}function a4(e){this.exit(e)}function s4(){return"["}function lk(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function u4(){return{enter:{gfmFootnoteCallString:e4,gfmFootnoteCall:t4,gfmFootnoteDefinitionLabelString:n4,gfmFootnoteDefinition:r4},exit:{gfmFootnoteCallString:i4,gfmFootnoteCall:o4,gfmFootnoteDefinitionLabelString:l4,gfmFootnoteDefinition:a4}}}function c4(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:lk},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),d=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),d(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
253`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?ak:d4))),u(),s}}function d4(e,t,n){return t===0?e:ak(e,t,n)}function ak(e,t,n){return(n?"":"    ")+e}const f4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];sk.peek=y4;function p4(){return{canContainEols:["delete"],enter:{strikethrough:m4},exit:{strikethrough:g4}}}function h4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:f4}],handlers:{delete:sk}}}function m4(e){this.enter({type:"delete",children:[]},e)}function g4(e){this.exit(e)}function sk(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function y4(){return"~"}function v4(e){return e.length}function x4(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||v4,o=[],l=[],a=[],s=[];let u=0,d=-1;for(;++d<e.length;){const y=[],k=[];let g=-1;for(e[d].length>u&&(u=e[d].length);++g<e[d].length;){const v=k4(e[d][g]);if(n.alignDelimiters!==!1){const x=i(v);k[g]=x,(s[g]===void 0||x>s[g])&&(s[g]=x)}y.push(v)}l[d]=y,a[d]=k}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=Rg(r[c]);else{const y=Rg(r);for(;++c<u;)o[c]=y}c=-1;const p=[],f=[];for(;++c<u;){const y=o[c];let k="",g="";y===99?(k=":",g=":"):y===108?k=":":y===114&&(g=":");let v=n.alignDelimiters===!1?1:Math.max(1,s[c]-k.length-g.length);const x=k+"-".repeat(v)+g;n.alignDelimiters!==!1&&(v=k.length+v+g.length,v>s[c]&&(s[c]=v),f[c]=v),p[c]=x}l.splice(1,0,p),a.splice(1,0,f),d=-1;const h=[];for(;++d<l.length;){const y=l[d],k=a[d];c=-1;const g=[];for(;++c<u;){const v=y[c]||"";let x="",C="";if(n.alignDelimiters!==!1){const P=s[c]-(k[c]||0),E=o[c];E===114?x=" ".repeat(P):E===99?P%2?(x=" ".repeat(P/2+.5),C=" ".repeat(P/2-.5)):(x=" ".repeat(P/2),C=x):C=" ".repeat(P)}n.delimiterStart!==!1&&!c&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||c)&&g.push(" "),n.alignDelimiters!==!1&&g.push(x),g.push(v),n.alignDelimiters!==!1&&g.push(C),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&g.push("|")}h.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return h.join(`
254`)}function k4(e){return e==null?"":String(e)}function Rg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function w4(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),b4);return i(),l}function b4(e,t,n){return">"+(n?"":" ")+e}function S4(e,t){return Ig(e,t.inConstruct,!0)&&!Ig(e,t.notInConstruct,!1)}function Ig(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Dg(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
255`&&S4(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
256`}function E4(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function C4(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function T4(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function P4(e,t,n,r){const i=T4(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";
vendor: 12,628 bytes, lines 256-267
256if(C4(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,j4);return c(),p}const a=n.createTracker(r),s=i.repeat(Math.max(E4(o,i)+1,3)),u=n.enter("codeFenced");let d=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${l}`);d+=a.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);d+=a.move(" "),d+=a.move(n.safe(e.meta,{before:d,after:`
257`,encode:["`"],...a.current()})),c()}return d+=a.move(`
258`),o&&(d+=a.move(o+`
259`)),d+=a.move(s),u(),d}function j4(e,t,n){return(n?"":"    ")+e}function Pp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function N4(e,t,n,r){const i=Pp(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
260`,...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function A4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Rl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Rs(e,t,n){const r=po(e),i=po(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}uk.peek=R4;function uk(e,t,n,r){const i=A4(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),d=Rs(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(s=Rl(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Rs(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+Rl(c));const f=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},a+s+f}function R4(e,t,n){return n.options.emphasis||"*"}function I4(e,t){let n=!1;return Cp(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$d}),!!((!e.depth||e.depth<3)&&vp(e)&&(t.options.setext||n))}function D4(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(I4(e,n)){const d=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
261`,after:`
262`});return c(),d(),p+`
263`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
264`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
265`,...o.current()});return/^[\t ]/.test(u)&&(u=Rl(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),s(),a(),u}ck.peek=O4;function ck(e){return e.value||""}function O4(){return"<"}dk.peek=L4;function dk(e,t,n,r){const i=Pp(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function L4(){return"!"}fk.peek=M4;function fk(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=d,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function M4(){return"!"}pk.peek=_4;function pk(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let s;if(l.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function _4(){return"`"}function hk(e,t){const n=vp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}mk.peek=F4;function mk(e,t,n,r){const i=Pp(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(hk(e,n)){const d=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=d,c}a=n.enter("link"),s=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function F4(e,t,n){return hk(e,n)?"<":"["}gk.peek=z4;function gk(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const d=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=d,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function z4(){return"["}function jp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function $4(e){const t=jp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function B4(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function yk(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function U4(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?B4(n):jp(n);const a=e.ordered?l==="."?")":".":$4(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),yk(n)===l&&d){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u}function H4(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function V4(e,t,n,r){const i=H4(n);let o=n.bulletCurrent||jp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),d);return s(),u;function d(c,p,f){return p?(f?"":" ".repeat(l))+c:(f?o:o+" ".repeat(l-o.length))+c}}function W4(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const K4=du(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function q4(e,t,n,r){return(e.children.some(function(l){return K4(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Q4(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}vk.peek=G4;function vk(e,t,n,r){const i=Q4(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),d=Rs(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(s=Rl(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=Rs(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+Rl(c));const f=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},a+s+f}function G4(e,t,n){return n.options.strong||"*"}function Y4(e,t,n,r){return n.safe(e.value,r)}function X4(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function J4(e,t,n){const r=(yk(n)+(n.options.ruleSpaces?" ":"")).repeat(X4(n));return n.options.ruleSpaces?r.slice(0,-1):r}const xk={blockquote:w4,break:Dg,code:P4,definition:N4,emphasis:uk,hardBreak:Dg,heading:D4,html:ck,image:dk,imageReference:fk,inlineCode:pk,link:mk,linkReference:gk,list:U4,listItem:V4,paragraph:W4,root:q4,strong:vk,text:Y4,thematicBreak:J4};function Z4(){return{enter:{table:eO,tableData:Og,tableHeader:Og,tableRow:nO},exit:{codeText:rO,table:tO,tableData:gc,tableHeader:gc,tableRow:gc}}}function eO(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function tO(e){this.exit(e),this.data.inTable=void 0}function nO(e){this.enter({type:"tableRow",children:[]},e)}function gc(e){this.exit(e)}function Og(e){this.enter({type:"tableCell",children:[]},e)}function rO(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,iO));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function iO(e,t){return t==="|"?t:e}function oO(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
266`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(f,h,y,k){return u(d(f,y,k),f.align)}function a(f,h,y,k){const g=c(f,y,k),v=u([g]);return v.slice(0,v.indexOf(`
267`))}function s(f,h,y,k){const g=y.enter("tableCell"),v=y.enter("phrasing"),x=y.containerPhrasing(f,{...k,before:o,after:o});return v(),g(),x}function u(f,h){return x4(f,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function d(f,h,y){const k=f.children;let g=-1;const v=[],x=h.enter("table");for(;++g<k.length;)v[g]=c(k[g],h,y);return x(),v}function c(f,h,y){const k=f.children;let g=-1;const v=[],x=h.enter("tableRow");for(;++g<k.length;)v[g]=s(k[g],f,h,y);return x(),v}
vendor: 4,398 bytes, line 267
267function p(f,h,y){let k=xk.inlineCode(f,h,y);return y.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function lO(){return{exit:{taskListCheckValueChecked:Lg,taskListCheckValueUnchecked:Lg,paragraph:sO}}}function aO(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:uO}}}function Lg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function sO(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function uO(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=xk.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(d){return d+l}}function cO(){return[UD(),u4(),p4(),Z4(),lO()]}function dO(e){return{extensions:[HD(),c4(e),h4(),oO(e),aO()]}}const fO={tokenize:vO,partial:!0},kk={tokenize:xO,partial:!0},wk={tokenize:kO,partial:!0},bk={tokenize:wO,partial:!0},pO={tokenize:bO,partial:!0},Sk={name:"wwwAutolink",tokenize:gO,previous:Ck},Ek={name:"protocolAutolink",tokenize:yO,previous:Tk},Wn={name:"emailAutolink",tokenize:mO,previous:Pk},En={};function hO(){return{text:En}}let Fr=48;for(;Fr<123;)En[Fr]=Wn,Fr++,Fr===58?Fr=65:Fr===91&&(Fr=97);En[43]=Wn;En[45]=Wn;En[46]=Wn;En[95]=Wn;En[72]=[Wn,Ek];En[104]=[Wn,Ek];En[87]=[Wn,Sk];En[119]=[Wn,Sk];function mO(e,t,n){const r=this;let i,o;return l;function l(c){return!Vd(c)||!Pk.call(r,r.previous)||Np(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Vd(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(pO,d,u)(c):c===45||c===95||Ze(c)?(o=!0,e.consume(c),s):d(c)}function u(c){return e.consume(c),i=!0,s}function d(c){return o&&i&&lt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function gO(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Ck.call(r,r.previous)||Np(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(fO,e.attempt(kk,e.attempt(wk,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function yO(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Tk.call(r,r.previous)&&!Np(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(lt(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):n(c)}function u(c){return c===null||js(c)||he(c)||si(c)||su(c)?n(c):e.attempt(kk,e.attempt(wk,d),n)(c)}function d(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function vO(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function xO(e,t,n){let r,i,o;return l;function l(u){return u===46||u===95?e.check(bk,s,a)(u):u===null||he(u)||si(u)||u!==45&&su(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?n(u):t(u)}}function kO(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(bk,t,o)(l):l===null||he(l)||si(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function wO(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||he(a)||si(a)?t(a):n(a)}
vendor: 6,695 bytes, line 267
267function i(a){return a===null||a===40||a===91||he(a)||si(a)?t(a):r(a)}function o(a){return lt(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):lt(a)?(e.consume(a),l):n(a)}}function bO(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ze(o)?n(o):t(o)}}function Ck(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||he(e)}function Tk(e){return!lt(e)}function Pk(e){return!(e===47||Vd(e))}function Vd(e){return e===43||e===45||e===46||e===95||Ze(e)}function Np(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const SO={tokenize:RO,partial:!0};function EO(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:jO,continuation:{tokenize:NO},exit:AO}},text:{91:{name:"gfmFootnoteCall",tokenize:PO},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:CO,resolveTo:TO}}}}function CO(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!l||!l._balanced)return n(s);const u=on(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function TO(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function PO(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||he(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(on(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return he(c)||(l=!0),o++,e.consume(c),c===92?d:u}function d(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function jO(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(h)}function d(h){if(l>999||h===93&&!a||h===null||h===91||he(h))return n(h);if(h===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return o=on(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return he(h)||(a=!0),l++,e.consume(h),h===92?c:d}function c(h){return h===91||h===92||h===93?(e.consume(h),l++,d):d(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),se(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function NO(e,t,n){return e.check(Kl,t,e.attempt(SO,t,n))}function AO(e){e.exit("gfmFootnoteDefinition")}function RO(e,t,n){const r=this;return se(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function IO(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",d,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],f=a.parser.constructs.insideSpan.null;f&&Pt(p,p.length,0,uu(f,l.slice(u+1,s),a)),Pt(p,p.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",d,a]]),Pt(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,d=this.events;let c=0;return p;function p(h){return u===126&&d[d.length-1][1].type!=="characterEscape"?s(h):(l.enter("strikethroughSequenceTemporary"),f(h))}function f(h){const y=po(u);if(h===126)return c>1?s(h):(l.consume(h),c++,f);if(c<2&&!n)return s(h);const k=l.exit("strikethroughSequenceTemporary"),g=po(h);return k._open=!g||g===2&&!!y,k._close=!y||y===2&&!!g,a(h)}}}class DO{constructor(){this.map=[]}add(t,n,r){OO(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];
vendor: 4,512 bytes, line 267
267r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function OO(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function LO(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function MO(){return{flow:{null:{name:"table",tokenize:_O,resolveAll:FO}}}}function _O(e,t,n){const r=this;let i=0,o=0,l;return a;function a(T){let O=r.events.length-1;for(;O>-1;){const _=r.events[O][1].type;if(_==="lineEnding"||_==="linePrefix")O--;else break}const N=O>-1?r.events[O][1].type:null,F=N==="tableHead"||N==="tableRow"?E:s;return F===E&&r.parser.lazy[r.now().line]?n(T):F(T)}function s(T){return e.enter("tableHead"),e.enter("tableRow"),u(T)}function u(T){return T===124||(l=!0,o+=1),d(T)}function d(T){return T===null?n(T):Z(T)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),f):n(T):le(T)?se(e,d,"whitespace")(T):(o+=1,l&&(l=!1,i+=1),T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),l=!0,d):(e.enter("data"),c(T)))}function c(T){return T===null||T===124||he(T)?(e.exit("data"),d(T)):(e.consume(T),T===92?p:c)}function p(T){return T===92||T===124?(e.consume(T),c):c(T)}function f(T){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(T):(e.enter("tableDelimiterRow"),l=!1,le(T)?se(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):h(T))}function h(T){return T===45||T===58?k(T):T===124?(l=!0,e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),y):P(T)}function y(T){return le(T)?se(e,k,"whitespace")(T):k(T)}function k(T){return T===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),g):T===45?(o+=1,g(T)):T===null||Z(T)?C(T):P(T)}function g(T){return T===45?(e.enter("tableDelimiterFiller"),v(T)):P(T)}function v(T){return T===45?(e.consume(T),v):T===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(T),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(T))}function x(T){return le(T)?se(e,C,"whitespace")(T):C(T)}function C(T){return T===124?h(T):T===null||Z(T)?!l||i!==o?P(T):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(T)):P(T)}function P(T){return n(T)}function E(T){return e.enter("tableRow"),j(T)}function j(T){return T===124?(e.enter("tableCellDivider"),e.consume(T),e.exit("tableCellDivider"),j):T===null||Z(T)?(e.exit("tableRow"),t(T)):le(T)?se(e,j,"whitespace")(T):(e.enter("data"),R(T))}function R(T){return T===null||T===124||he(T)?(e.exit("data"),j(T)):(e.consume(T),T===92?A:R)}function A(T){return T===92||T===124?(e.consume(T),R):R(T)}}function FO(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,d,c;const p=new DO;for(;++n<e.length;){const f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(a=!1,s!==0&&(Mg(p,t,s,u,d),d=void 0,s=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,d={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",d,t]])),i=h.type==="tableDelimiterRow"?2:d?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=Sa(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=Sa(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):h.type==="tableHead"?(a=!0,s=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],c=Sa(p,t,o,i,n,c)):l[1]!==0&&(c=Sa(p,t,l,i,n,c)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&Mg(p,t,s,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=LO(t.events,n))}return e}function Sa(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({}
267,Si(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Si(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Si(t.events,n[2]),d=Si(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,y=n[3]-n[2]-1;e.add(h,y,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Si(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Mg(e,t,n,r,i){const o=[],l=Si(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Si(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const zO={name:"tasklistCheck",tokenize:BO};function $O(){return{text:{91:zO}}}function BO(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return he(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return Z(s)?t(s):le(s)?e.check({tokenize:UO},t,n)(s):n(s)}}function UO(e,t,n){return se(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function HO(e){return _1([hO(),EO(),IO(e),MO(),$O()])}const VO={};function yc(e){const t=this,n=e||VO,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(HO(n)),o.push(cO()),l.push(dO(n))}const Ap="mystiska-aventyr-save-v1",_g={hp:"20/20",location:"Okänd plats",time:"Gryning",mood:"Förväntan",inventory:[],xp:0,gold:0,danger:0};function jk(){var e,t;try{const n=localStorage.getItem(Ap);if(!n)return null;const r=JSON.parse(n);return!((e=r==null?void 0:r.character)!=null&&e.name)||!((t=r.messages)!=null&&t.length)?null:r}catch{return null}}function Nk(){localStorage.removeItem(Ap)}const WO=({character:e,scenario:t,onBackToCharacterCreation:n})=>{var q;const{toast:r}=mx(),i=jk(),o=i&&i.character.name===e.name?i:null,l=t??Kr.find(b=>b.id===(o==null?void 0:o.scenarioId))??Kr[0],[a,s]=w.useState((o==null?void 0:o.messages)??[]),[u,d]=w.useState(""),[c,p]=w.useState(!1),[f,h]=w.useState(""),[y,k]=w.useState((o==null?void 0:o.status)??_g),[g,v]=w.useState(!1),x=w.useRef(null),C=w.useRef(!1),P=w.useRef(tl((o==null?void 0:o.status.xp)??0)),E=()=>{var V;const b=(V=x.current)==null?void 0:V.querySelector("[data-radix-scroll-area-viewport]");b&&(b.scrollTop=b.scrollHeight)};w.useEffect(()=>{E()},[a,c,f]),w.useEffect(()=>{if(a.length!==0)try{localStorage.setItem(Ap,JSON.stringify({character:e,scenarioId:l.id,messages:a,status:y,updatedAt:new Date().toISOString()}))}catch{}},[a,y,e,l.id]);const j=w.useRef((o==null?void 0:o.status)??_g),R=b=>{if(Object.keys(b.status).length===0)return;const V=j.current,X={...V,...b.status};j.current=X,k(X);const J=(X.xp??0)-(V.xp??0);J>0&&r({title:`+${J} XP`,description:"Erfarenhet vunnen genom dina handlingar."});const Y=(X.gold??0)-(V.gold??0);Y>0&&r({title:`+${Y} guldmynt`});const Ee=Nl(V.hp).current,Re=Nl(X.hp).current;Re<Ee&&(v(!0),setTimeout(()=>v(!1),700),r({title:`${Ee-Re} skada`,description:`Hälsa: ${X.hp}`,variant:"destructive"}));const we=tl(X.xp??0);we>P.current&&(P.current=we,r({title:`Nivå ${we} — ${n1(we)}!`,description:"Din saga växer. Nya möjligheter öppnar sig."}))},A=async(b,V)=>{const X=b.filter(ze=>ze.type==="dm").length,J=[...b].reverse().find(ze=>ze.type==="player"),Y=tN({character:e,scenario:l,status:j.current,beat:V==="opening"?0:X,action:V==="opening"||J==null?void 0:J.content}),Ee=Y.search(/\n\[(VAL|STATUS|TÄRNINGSKAST)/),Re=Ee>0?Ee:Y.length;let we=0;for(;we<Re;
267)we=Math.min(Re,we+3+Math.floor(Math.random()*4)),h(Y.slice(0,we)),await new Promise(ze=>setTimeout(ze,12));return Y},T=async(b,V)=>{p(!0),h("");try{const X=await A(b,V),J=Dm(X);s(Y=>[...Y,{id:V==="opening"?"opening":`${Date.now()}-dm`,type:"dm",content:X,parsed:J,timestamp:new Date().toISOString()}]),R(J)}catch(X){r({title:"Sagovävaren tystnar",description:X instanceof Error?X.message:"Försök igen",variant:"destructive"})}finally{h(""),p(!1)}};w.useEffect(()=>{C.current||(C.current=!0,a.length===0&&T([],"opening"))},[]);const O=async b=>{if(!b.trim()||c)return;const V={id:`${Date.now()}-player`,type:"player",content:b,timestamp:new Date().toISOString()},X=[...a,V];s(X),d(""),await T(X)},N=[...a].reverse().find(b=>b.type==="dm"),F=(q=N==null?void 0:N.parsed)==null?void 0:q.dice,_=mj(F==null?void 0:F.skill,e.attributes),H=y.chapter,W=xj(y),Q=(b,V,X,J)=>{const Y=kj(V,X,b);if(J){const Ee=_.bonus!==0?` ${_.bonus>0?"+":"−"} ${Math.abs(_.bonus)} (${Ln[_.attribute].label}) = **${V}**`:"";O(`🎲 ${J} (svårighet ${X}): jag rullar **${b}**${Ee} — ${Y}.`)}else O(`🎲 Jag rullar 1d20 och får **${b}** — ${Y}.`)},D=async()=>{const b="https://sagobygge-ai.lovable.app/",V=`Jag spelar som ${e.name} i Mystiska Äventyr — ett svenskt AI-rollspel. Nivå ${tl(y.xp??0)}, ${y.location}.`;try{navigator.share?await navigator.share({title:"Mystiska Äventyr",text:V,url:b}):(await navigator.clipboard.writeText(`${V} ${b}`),r({title:"Kopierat!",description:"Dela din saga med vänner."}))}catch{}},L=()=>{Nk(),n()},S=b=>{b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),O(u))},G=f?Dm(f):null;return m.jsxs("div",{className:"w-full max-w-7xl mx-auto h-screen flex flex-col lg:flex-row gap-4 p-2",children:[m.jsxs("aside",{className:"lg:w-72 flex-shrink-0 lg:overflow-y-auto",children:[m.jsx("div",{className:g?"animate-pulse":"",children:m.jsx(Hj,{character:e,status:y})}),m.jsxs("div",{className:"mt-3 space-y-2",children:[m.jsxs(pt,{variant:"outline",size:"sm",className:"w-full",onClick:D,children:[m.jsx(WE,{className:"w-4 h-4 mr-2"})," Dela din saga"]}),m.jsxs(pt,{variant:"outline",size:"sm",className:"w-full",onClick:L,children:[m.jsx(QE,{className:"w-4 h-4 mr-2"})," Ny karaktär"]})]})]}),m.jsxs(_t,{className:`flex-1 flex flex-col overflow-hidden bg-card/70 backdrop-blur-md transition-shadow duration-500 ${g?"ring-2 ring-destructive":""}`,children:[m.jsxs(Zo,{className:"flex-shrink-0 py-4",children:[m.jsxs(Y0,{className:"text-2xl bg-gradient-ancient bg-clip-text text-transparent flex items-center gap-2",children:[m.jsx(qx,{className:"w-6 h-6 text-secondary"}),e.name,"s Saga"]}),m.jsxs("p",{className:"text-xs text-muted-foreground",children:[l.emoji," ",l.title,H&&m.jsxs("span",{className:"text-secondary",children:[" • ",H]})]})]}),m.jsx(Id,{}),m.jsxs(el,{className:"flex-1 flex flex-col p-0 overflow-hidden",children:[m.jsx(v1,{className:"flex-1 px-6 py-4",ref:x,children:m.jsxs("div",{className:"space-y-6",children:[a.map(b=>{var V,X;return m.jsx("div",{className:`flex animate-fade-in ${b.type==="player"?"justify-end":"justify-start"}`,children:b.type==="dm"?m.jsxs("div",{className:"max-w-[92%] rounded-lg p-5 bg-card/80 border border-border/60 shadow-card",children:[m.jsx("div",{className:"prose prose-invert prose-sm max-w-none prose-p:my-2 prose-p:leading-relaxed prose-strong:text-secondary prose-em:text-primary-glow prose-blockquote:border-l-secondary prose-blockquote:text-muted-foreground",children:m.jsx(fc,{remarkPlugins:[yc],children:((V=b.parsed)==null?void 0:V.narrative)||b.content})}),b.id===(N==null?void 0:N.id)&&F&&!W&&m.jsx(Wj,{request:F,bonus:_.bonus,attributeLabel:_.attribute?Ln[_.attribute].label:null,disabled:c,onRoll:(J,Y)=>Q(J,Y,F.difficulty,F.skill)}),((X=b.parsed)==null?void 0:X.choices)&&b.parsed.choices.length>0&&b.id===(N==null?void 0:N.id)&&!F&&m.jsxs("div",{className:"mt-4 pt-4 border-t border-border/40 space-y-2",children:[m.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-2",children:"Vad gör du?"}),b.parsed.choices.map((J,Y)=>m.jsxs("button",{onClick:()=>O(J),disabled:c,className:"w-full text-left text-sm px-3 py-2 rounded-md bg-muted/30 hover:bg-primary/20 hover:border-primary/50 border border-border/40 transition-all disabled:opacity-50",children:[m.jsxs("span",{className:"text-secondary mr-2",children:[Y+1," ▸"]}),J]},Y))]})]}):m.jsx("div",{className:"max-w-[80%] rounded-lg p-4 bg-gradient-magic text-primary-foreground shadow-magic",children:m.jsx("div",{className:"prose prose-invert prose-sm max-w-none prose-p:my-1",children:m.jsx(fc,{remarkPlugins:[yc],children:b.content})})})},b.id)}),(G==null?void 0:G.narrative)&&m.jsx("div",{className:"flex justify-start",children:m.jsxs("div",{className:"max-w-[92%] rounded-lg p-5 bg-card/80 border border-border/60 shadow-card",children:[m.jsx("div",{className:"prose prose-invert prose-sm max-w-none prose-p:my-2 prose-p:leading-relaxed prose-strong:text-secondary prose-em:text-primary-glow",children:m.jsx(fc,{remarkPlugins:[yc],children:G.narrative})}),m.jsx("span",{className:"inline-block w-2 h-4 align-middle bg-secondary animate-pulse"})]})}),c&&!(G!=null&&G.narrative)&&m.jsx("div",{className:"flex justify-start",children:m.jsx("div",{className:"bg-card/60 backdrop-blur-sm border border-border/50 rounded-lg p-4",children:m.jsxs("div",{className:"flex items-center space-x-2",children:[m.jsx("span",{className:"italic text-muted-foreground",children:"Sagovävaren spinner sin tråd"}),m.jsxs("div",{className:"flex space-x-1",children:[m.jsx("div",{className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce"}),m.jsx("div",{className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce",style:{animationDelay:"0.15s"}}),m.jsx("div",{className:"w-2 h-2 bg-primary/60 rounded-full animate-bounce",style:{animationDelay:"0.3s"}})]})]})})})]})}),m.jsx(Id,{}),W?m.jsxs("div",{className:"p-4 text-center space-y-3",children:[m.jsxs("p",{className:"flex items-center justify-center gap-2 text-destructive font-semibold",children:[m.jsx(KE,{className:"w-5 h-5"})," ",e.name," har fallit"]}),m.jsx("p",{className:"text-sm text-muted-foreground",children:"Sagan slutar sällan här — kämpa vidare mot allt förnuft, eller börja en ny saga."}),m.jsxs("div",{className:"flex gap-2 justify-center",children:[m.jsx(pt,{variant:"magic",disabled:c,onClick:()=>O("Jag vägrar dö här. Jag samlar mina sista krafter och kämpar vidare — vad som helst till vilket pris som helst."),children:"Kämpa vidare"}),m.jsx(pt,{variant:"outline",onClick:L,children:"Ny saga"})]})]}):m.jsxs("div",{className:"p-4 space-y-2",children:[m.jsx("div",{className:"flex flex-wrap gap-1",children:wj.map(b=>m.jsx("button",{type:"button",disabled:c,onClick:()=>O(b.text),className:"text-xs px-2 py-1 rounded-full border border-border/50 bg-muted/30 hover:bg-primary/20 hover:border-primary/50 transition-all disabled:opacity-50",children:b.label},b.label))}),m.jsxs("div",{className:"flex space-x-2",children:[m.jsx(Kj,{disabled:c,onRoll:b=>Q(b,b)}),m.jsx(Mi,{value:u,onChange:b=>d(b.target.value),onKeyPress:S,placeholder:"Beskriv vad du vill göra...",disabled:c,
267className:"flex-1"}),m.jsx(pt,{onClick:()=>O(u),disabled:!u.trim()||c,variant:"magic",children:"Skicka"})]}),m.jsx("p",{className:"text-xs text-muted-foreground",children:"Enter skickar • Egenskaper ger bonus på tärningskast • Ditt äventyr sparas automatiskt"})]})]})]})]})},KO=[{icon:Wx,title:"AI-spelledare på svenska",text:"Sagovävaren improviserar en levande värld i realtid — sensorisk, mörk och full av hemligheter. Ingen historia blir densamma."},{icon:bl,title:"Tärningar som avgör ödet",text:"Animerade 1d20-kast med svårighetsgrader. Naturlig 20 ger spektakulär framgång, en etta ger dramatiskt bakslag — aldrig återvändsgränd."},{icon:Qx,title:"XP, nivåer och fynd",text:"Samla erfarenhet, stig i nivå från Vandrare till Legend, hitta namngivna föremål med egna egenheter och fyll din pung med guld."},{icon:Kx,title:"Sparas automatiskt",text:"Ditt äventyr, din status och hela din saga sparas i webbläsaren. Stäng fliken och fortsätt exakt där du slutade."},{icon:qf,title:"Din karaktär, din berättelse",text:"Välj en färdig hjälte för snabbstart eller skriv din egen bakgrund. Världen formas efter vem du är och vad du gjort."},{icon:Jo,title:"Helt gratis i webbläsaren",text:"Ingen nedladdning, ingen registrering, inga spelledare att boka. Öppna sidan och kliv rakt in i sagan."}],qO=["Välj en färdig hjälte eller skapa din egen karaktär med namn, ras, klass och bakgrund.","Läs öppningsscenen som Sagovävaren skriver just för din karaktär — mitt i något som redan händer.","Klicka på ett val eller skriv fritt vad du vill göra. Rulla tärningen när utfallet är osäkert.","Samla XP, guld och föremål, avancera i nivå och följ ditt uppdrag mot sagans klimax."],QO=[{q:"Vad är ett AI-rollspel?",a:"Ett rollspel där en språkmodell agerar spelledare. Du beskriver vad din karaktär gör i fri text, och AI:n berättar vad som händer, spelar alla bifigurer och håller reda på regler, skador och uppdrag."},{q:"Är Mystiska Äventyr gratis?",a:"Ja. Du kan spela direkt i webbläsaren utan konto, nedladdning eller betalning."},{q:"Behöver jag kunna Dungeons & Dragons?",a:"Nej. Mekaniken är avsiktligt enkel — ett tjugosidigt tärningskast, 20 hälsopoäng och erfarenhetspoäng. Sagovävaren förklarar allt du behöver längs vägen."},{q:"Kan jag spela på svenska?",a:"Hela spelet är på svenska, från karaktärsskapande till berättelse, val och statuspanel."},{q:"Sparas mitt äventyr?",a:"Ja, din saga sparas automatiskt lokalt i din webbläsare. Du kan stänga fliken och fortsätta senare på samma enhet."}],GO=()=>m.jsxs("div",{className:"mt-16 space-y-16 max-w-5xl mx-auto text-foreground/90",children:[m.jsxs("section",{"aria-labelledby":"funktioner",children:[m.jsx("h2",{id:"funktioner",className:"text-3xl font-bold mb-6 text-center bg-gradient-ancient bg-clip-text text-transparent",children:"Ett rollspel som svarar på allt du hittar på"}),m.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:KO.map(({icon:e,title:t,text:n})=>m.jsxs(_t,{className:"p-5 bg-card/70 backdrop-blur-md",children:[m.jsx(e,{className:"w-6 h-6 text-secondary mb-3","aria-hidden":"true"}),m.jsx("h3",{className:"font-semibold mb-1",children:t}),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n})]},t))})]}),m.jsxs("section",{"aria-labelledby":"sa-funkar-det",children:[m.jsx("h2",{id:"sa-funkar-det",className:"text-3xl font-bold mb-6 text-center bg-gradient-ancient bg-clip-text text-transparent",children:"Så funkar det — fyra steg till din saga"}),m.jsx("ol",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:qO.map((e,t)=>m.jsxs("li",{className:"flex gap-3 p-4 rounded-lg bg-card/60 backdrop-blur-md border border-border/50",children:[m.jsx("span",{className:"flex-shrink-0 w-8 h-8 rounded-full bg-gradient-magic text-primary-foreground font-bold flex items-center justify-center",children:t+1}),m.jsx("p",{className:"text-sm leading-relaxed",children:e})]},t))})]}),m.jsxs("section",{"aria-labelledby":"vanliga-fragor",children:[m.jsx("h2",{id:"vanliga-fragor",className:"text-3xl font-bold mb-6 text-center bg-gradient-ancient bg-clip-text text-transparent",children:"Vanliga frågor om AI-rollspel"}),m.jsx("div",{className:"space-y-3",children:QO.map(({q:e,a:t})=>m.jsxs("details",{className:"rounded-lg bg-card/60 backdrop-blur-md border border-border/50 p-4",children:[m.jsx("summary",{className:"cursor-pointer font-semibold text-secondary",children:e}),m.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:t})]},e))})]}),m.jsx("section",{className:"text-center max-w-2xl mx-auto py-6",children:m.jsxs("p",{className:"text-base text-foreground
267/90 mb-3",children:["Nybörjare? Läs vår"," ",m.jsx("a",{href:"/nyborjare",className:"text-secondary font-semibold underline underline-offset-2 hover:text-primary transition-colors",children:"guide för rollspel för nybörjare"})," ","— tärningar, egenskaper och hur du startar din första saga på fem minuter."]})}),m.jsx("footer",{className:"text-center text-xs text-muted-foreground pb-10",children:m.jsx("p",{children:"Mystiska Äventyr — svenskt AI-drivet textrollspel med tärningar, XP och en spelledare som aldrig sover."})})]}),Ak="/assets/fantasy-background-DVsQ3EAO.jpg",YO=()=>{const[e,t]=w.useState(null),[n,r]=w.useState(),[i,o]=w.useState(null);w.useEffect(()=>{o(jk())},[]);const l=(u,d)=>{Nk(),r(d),t(u)},a=()=>{i&&(r(Kr.find(u=>u.id===i.scenarioId)),t(i.character))},s=()=>{o(null),r(void 0),t(null)};return m.jsxs(m.Fragment,{children:[m.jsxs(Bf,{children:[m.jsx("title",{children:"Mystiska Äventyr — gratis AI-rollspel på svenska"}),m.jsx("meta",{name:"description",content:"Spela ett gratis textrollspel på svenska med AI som spelledare. Tärningskast, XP, nivåer och en mörk fantasyvärld som formas av dina val."}),m.jsx("link",{rel:"canonical",href:"https://sagobygge-ai.lovable.app/"}),m.jsx("meta",{property:"og:title",content:"Mystiska Äventyr — gratis AI-rollspel på svenska"}),m.jsx("meta",{property:"og:description",content:"Tärningar, XP och en AI-spelledare som skriver din egen mörka fantasysaga. Spela direkt i webbläsaren, helt gratis."}),m.jsx("meta",{property:"og:url",content:"https://sagobygge-ai.lovable.app/"})]}),m.jsxs("div",{className:"min-h-screen bg-gradient-mystical relative",style:{backgroundImage:`url(${Ak})`,backgroundSize:"cover",backgroundPosition:"center",backgroundAttachment:"fixed"},children:[m.jsx("div",{className:"absolute inset-0 bg-background/40 backdrop-blur-[1px]"}),m.jsx("main",{className:"relative z-10 min-h-screen flex items-center justify-center p-4",children:e?m.jsx(WO,{character:e,scenario:n,onBackToCharacterCreation:s}):m.jsxs("div",{className:"w-full py-10",children:[m.jsxs("header",{className:"text-center mb-8 max-w-3xl mx-auto",children:[m.jsx("h1",{className:"text-5xl md:text-6xl font-bold mb-4 bg-gradient-ancient bg-clip-text text-transparent",children:"Mystiska Äventyr — svenskt AI-rollspel"}),m.jsx("p",{className:"text-xl text-foreground/90",children:"Spela ett gratis textrollspel på svenska med AI som spelledare. Tärningar, egenskaper, erfarenhetspoäng och en mörk fantasyvärld som formas av dina val."})]}),i&&m.jsxs("div",{className:"max-w-2xl mx-auto mb-6 p-4 rounded-lg bg-card/80 backdrop-blur-md border border-secondary/50 text-center",children:[m.jsxs("p",{className:"text-sm text-muted-foreground mb-3",children:["Du har en pågående saga:"," ",m.jsx("strong",{className:"text-secondary",children:i.character.name})," — nivå ",tl(i.status.xp??0),","," ",i.status.location??"okänd plats"]}),m.jsx(pt,{variant:"magic",size:"lg",onClick:a,children:"Fortsätt äventyret"})]}),m.jsx(Sj,{onCharacterCreated:l}),m.jsx(GO,{})]})})]})]})},XO=[{title:"Välj en hjälte",text:"Snabbstart med en av fyra färdiga karaktärer — krigare, runmagiker, jägare eller tjuv — eller skapa din egen med namn, ras, klass och bakgrund. Det tar trettio sekunder."},{title:"Lyssna på öppningsscenen",text:"Sagovävaren, din AI-spelledare, skriver en inledning mitt i något som redan händer. Du står i en by som svälter, en skog som rör sig, en hamn med mördade gillesmästare eller vid en grav som öppnats för tidigt."},{title:"Välj eller skriv fritt",text:"Klicka ett av de förslagna valen, eller skriv exakt vad din karaktär gör i fri text. Vill du försöka övertala vakten, klättra på väggen eller undersöka runorna? Säg det."},{title:"Rulla när det är osäkert",text:"När utfallet inte är givet ber Sagovävaren dig rulla en tjugosidig tärning. Din bonus från rätt egenskap läggs till, och resultatet avgör om du lyckas — eller om allt går snett på ett intressant sätt."},{title:"Samla och väx",text:"Du tjänar erfarenhetspoäng, hittar föremål och guld, och stiger i nivå från Vandrare till Legend. Ditt äventyr sparas automatiskt i webbläsaren — stäng fliken och fortsätt imorgon."}
267],JO=[{label:"Styrka",blurb:"Slåss, bära, bryta, uthärda. Högre styrka ger bättre bonus på strid, klättring och råstyrka."},{label:"Vighet",blurb:"Smyga, undvika, sikta, springa. Avgör smygande, akrobatik, bågskytte och fingerfärdighet."},{label:"Vett",blurb:"Se detaljer, minnas, magi, lista ut. Bakom kunskap, runor, spårning, iakttagelse och läkekonst."},{label:"Charm",blurb:"Övertala, ljuga, leda, trösta. Avgör förhandlingar, bluffar, uppträdande och att trösta någon i nöd."}],ZO=[{emoji:"❄️",title:"Järnvinterns kall",text:"En by har haft nio månaders vinter. Varje morgon finns nya spår i snön — av något som går på två ben men saknar tår."},{emoji:"🌲",title:"Dimmorna över Dimskogen",text:"Skogen har ätit fjorton vandrare i år. De som kommer ut minns inget utom en sång, och de börjar nynna den vid solnedgången."},{emoji:"⚓",title:"Blodet i Gråhamn",text:"Tre gillesmästare mördade på fjorton dagar, alla med samma mynt under tungan. Vakten är köpt och något stiger ur hamnbassängen."},{emoji:"🪨",title:"Runbergets sömn",text:"En gravhög bröts upp av plundrare. Sedan dess drömmer alla samma dröm: en kvinna i järnmask som räknar namn — och ditt kommer sist."}],Fg=[{q:"Behöver jag ha spelat rollspel förut?",a:"Nej. Mystiska Äventyr är byggt för att öppna dörren för nybörjare. Det finns ingen regelbok att läsa och inga tärningar att köpa. Du läser vad som händer och väljer vad du vill göra — spelledaren sköter resten."},{q:"Hur fungerar tärningarna?",a:"En vanlig tjugosidig tärning (1d20) slås när utfallet av din handling är osäkert. Din bonus från den mest relevanta egenskapen läggs till. En naturlig 20 är en spektakulär framgång, en etta ett dramatiskt bakslag. Svårighetsgraden sätts av spelledaren utifrån situationen."},{q:"Måste jag kunna Dungeons & Dragons?",a:"Nej. Mekaniken är medvetet enkel — ett tärningskast, tjugo hälsopoäng och erfarenhetspoäng. Allt du behöver veta förklaras längs vägen, direkt i spelet."},{q:"Vad är en AI-spelledare?",a:"Sagovävaren är en språkmodell som agerar spelledare: den beskriver världen, spelar alla bifigurer, tolkar dina val och håller reda på regler, skador och uppdrag. Varje berättelse blir unik eftersom den skapas kring det du gör."},{q:"Kostar det något?",a:"Nej. Du spelar direkt i webbläsaren, helt gratis, utan konto eller nedladdning."}],eL=()=>m.jsxs(m.Fragment,{children:[m.jsxs(Bf,{children:[m.jsx("title",{children:"Rollspel för nybörjare — så funkar Mystiska Äventyr"}),m.jsx("meta",{name:"description",content:"Nyfiken på rollspel men vet inte var du börjar? Den här guiden förklarar hur AI-rollspelet Mystiska Äventyr funkar — tärningar, egenskaper och hur du startar din första saga på svenska, helt gratis."}),m.jsx("link",{rel:"canonical",href:"https://sagobygge-ai.lovable.app/nyborjare"}),m.jsx("meta",{property:"og:title",content:"Rollspel för nybörjare — guide till Mystiska Äventyr"}),m.jsx("meta",{property:"og:description",content:"Lär dig hur ett AI-drivet textrollspel funkar — från första tärningskastet till din första saga. Gratis, på svenska, direkt i webbläsaren."}),m.jsx("meta",{property:"og:url",content:"https://sagobygge-ai.lovable.app/nyborjare"}),m.jsx("meta",{property:"og:type",content:"article"}),m.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"FAQPage",mainEntity:Fg.map(({q:e,a:t})=>({"@type":"Question",name:e,acceptedAnswer:{"@type":"Answer",text:t}}))})})]}),m.jsxs("div",{className:"min-h-screen bg-gradient-mystical relative",style:{backgroundImage:`url(${Ak})`,backgroundSize:"cover",backgroundPosition:"center",backgroundAttachment:"fixed"},children:[m.jsx("div",{className:"absolute inset-0 bg-background/50 backdrop-blur-[1px]"}),m.jsxs("main",{className:"relative z-10 max-w-3xl mx-auto px-4 py-12 text-foreground/95",children:[m.jsxs("nav",{"aria-label":"Brödsmulor",className:"mb-6 text-sm text-muted-foreground",children:[m.jsx(xa,{to:"/",className:"hover:text-secondary transition-colors",children:"Mystiska Äventyr"}),m.jsx("span",{className:"mx-2","aria-hidden":"true",children:"/"}
267),m.jsx("span",{className:"text-foreground/80",children:"Rollspel för nybörjare"})]}),m.jsxs("header",{className:"mb-10",children:[m.jsxs("div",{className:"flex items-center gap-2 text-secondary mb-3",children:[m.jsx(ME,{className:"w-5 h-5","aria-hidden":"true"}),m.jsx("span",{className:"text-sm font-semibold uppercase tracking-wide",children:"Nybörjarguide"})]}),m.jsx("h1",{className:"text-4xl md:text-5xl font-bold mb-4 bg-gradient-ancient bg-clip-text text-transparent",children:"Rollspel för nybörjare — börja din första saga på fem minuter"}),m.jsxs("p",{className:"text-lg text-foreground/90 leading-relaxed",children:["Rollspel låter som mycket regelverk och många böcker, men det behöver inte vara så. I ",m.jsx("strong",{children:"Mystiska Äventyr"})," är en AI-spelledare som heter Sagovävaren som berättar historien, spelar alla andra roller och sköter reglerna — du behöver bara bestämma vad din karaktär gör. Den här guiden visar exakt hur det funkar, från första tärningskastet till din första färdigbokförda seger."]})]}),m.jsxs(_t,{className:"p-6 mb-12 bg-card/80 backdrop-blur-md border-secondary/40 text-center",children:[m.jsx("p",{className:"mb-4 text-foreground/90",children:"Redo att hoppa över teorin och bara spela? Välj en färdig hjälte och sätt igång direkt."}),m.jsx(xa,{to:"/",children:m.jsxs(pt,{variant:"magic",size:"lg",children:["Starta ditt första äventyr ",m.jsx(tm,{className:"w-4 h-4 ml-1","aria-hidden":"true"})]})})]}),m.jsxs("section",{"aria-labelledby":"vad-ar-rollspel",className:"mb-12",children:[m.jsx("h2",{id:"vad-ar-rollspel",className:"text-2xl font-bold mb-3 bg-gradient-ancient bg-clip-text text-transparent",children:"Vad är ett rollspel, egentligen?"}),m.jsx("p",{className:"leading-relaxed mb-3",children:"Ett rollspel är en gemensam berättelse där du styr en karaktär och en spelledare beskriver världen omkring henne. Du säger vad din karaktär försöker göra; spelledaren berättar vad som händer sedan — hur världen reagerar, vilka faror som dyker upp och vad du hittar."}),m.jsx("p",{className:"leading-relaxed",children:"Traditionella rollspel som Dungeons & Dragons bygger på tjocka regelböcker och en mänsklig spelledare som förberett allt. Ett AI-rollspel som Mystiska Äventyr lägger ansvaret hos en språkmodell: den improviserar världen i realtid, tolkar dina val i fri text och räknar ut tärningsslag och skador åt dig. Du slipper regler, förberedelser och att boka in en spelledare."})]}),m.jsxs("section",{"aria-labelledby":"sa-spelar-man",className:"mb-12",children:[m.jsx("h2",{id:"sa-spelar-man",className:"text-2xl font-bold mb-6 bg-gradient-ancient bg-clip-text text-transparent",children:"Så spelar man — steg för steg"}),m.jsx("ol",{className:"space-y-4",children:XO.map((e,t)=>m.jsxs("li",{className:"flex gap-4 p-4 rounded-lg bg-card/60 backdrop-blur-md border border-border/50",children:[m.jsx("span",{className:"flex-shrink-0 w-9 h-9 rounded-full bg-gradient-magic text-primary-foreground font-bold flex items-center justify-center","aria-hidden":"true",children:t+1}),m.jsxs("div",{children:[m.jsx("h3",{className:"font-semibold text-secondary mb-1",children:e.title}),m.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:e.text})]})]},t))})]}),m.jsxs("section",{"aria-labelledby":"tarningar",className:"mb-12",children:[m.jsxs("h2",{id:"tarningar",className:"text-2xl font-bold mb-3 bg-gradient-ancient bg-clip-text text-transparent flex items-center gap-2",children:[m.jsx(bl,{className:"w-6 h-6 text-secondary","aria-hidden":"true"}),"Tärningar — spelets hjärta"]}),m.jsx("p",{className:"leading-relaxed mb-3",children:"I Mystiska Äventyr rullas en tjugosidig tärning (1d20) varje gång utfallet av din handling är osäkert. Ju högre resultat, desto bättre. Två specialfall gör varje slag dramatiskt:"}),m.jsxs("ul",{className:"space-y-2 mb-3",children:[m.jsxs("li",{className:"flex gap-2 items-start",children:[m.jsx(Jo,{className:"w-4 h-4 text-secondary flex-shrink-0 mt-1","aria-hidden":"true"}),m.jsxs("span",{children:[m.jsx("strong",{className:"text-secondary",children:"Naturlig 20"})," — när tärningen i sig landar på 20 sker en spektakulär framgång, oavsett svårighet."]})]}),m.jsxs("li",{className:"flex gap-2 items-start",children:[m.jsx(Jo,{className:"w-4 h-4 text-secondary flex-shrink-0 mt-1","aria-hidden":"true"}),m.jsxs("span",{children:[m.jsx("strong",{className:"text-secondary",children:"Naturlig 1"})," — en etta är ett dramatiskt bakslag, men aldrig en återvändsgränd. Det är där de bästa historierna brukar börja."]})]})]}),m.jsx("p",{className:"leading-relaxed",children:"Din bonus från den egenskap som passar handlingen läggs till resultatet. Försöker du övertala någon läggs din Charm-bonus till; försöker du klättra en vägg läggs din Styrka eller Vighet till. Svårighetsgraden sätts av spelledaren utifrån hur farligt läget är."})]}),m.jsxs("section",{"aria-labelledby":"egenskaper",className:"mb-12",children:[m.jsx("h2",{id:"egenskaper",className:"text-2xl font-bold mb-3 bg-gradient-ancient bg-clip-text text-transparent",children:"Egenskaper — din karaktärs fyra sidor"}),m.jsx("p",{className:"leading-relaxed mb-4",children:"Vid starten fördelar du åtta poäng mellan fyra egenskaper, värderade från 1 till 5. V
267arje egenskap ger en bonus (eller nackdel) på tärningsslag som rör den färdigheten. En egenskap på 5 ger +3, en på 1 ger −1."}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:JO.map(e=>m.jsxs(_t,{className:"p-4 bg-card/60 backdrop-blur-md border border-border/50",children:[m.jsx("h3",{className:"font-semibold text-secondary mb-1",children:e.label}),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.blurb})]},e.label))})]}),m.jsxs("section",{"aria-labelledby":"aventyr",className:"mb-12",children:[m.jsxs("h2",{id:"aventyr",className:"text-2xl font-bold mb-3 bg-gradient-ancient bg-clip-text text-transparent flex items-center gap-2",children:[m.jsx(Qx,{className:"w-6 h-6 text-secondary","aria-hidden":"true"}),"Välj var din saga börjar"]}),m.jsx("p",{className:"leading-relaxed mb-4",children:"Du behöver inte hitta på en värld själv. Välj en av fyra färdiga öppningscener — eller låt spelledaren överraska dig med något helt eget."}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:ZO.map(e=>m.jsxs(_t,{className:"p-4 bg-card/60 backdrop-blur-md border border-border/50",children:[m.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[m.jsx("span",{className:"text-xl","aria-hidden":"true",children:e.emoji}),m.jsx("h3",{className:"font-semibold",children:e.title})]}),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e.text})]},e.title))})]}),m.jsxs("section",{"aria-labelledby":"utveckling",className:"mb-12",children:[m.jsxs("h2",{id:"utveckling",className:"text-2xl font-bold mb-3 bg-gradient-ancient bg-clip-text text-transparent flex items-center gap-2",children:[m.jsx(Jo,{className:"w-6 h-6 text-secondary","aria-hidden":"true"}),"Så växer din karaktär"]}),m.jsxs("p",{className:"leading-relaxed mb-3",children:["Din karaktär börjar med tjugo hälsopoäng och noll erfarenhet. Allt du åstadkommer — lösa ett mysterium, besegra ett hot, rädda en by — ger erfarenhetspoäng (XP). Samla tillräckligt så stiger du i nivå, med titlar från ",m.jsx("strong",{children:"Vandrare"})," till ",m.jsx("strong",{children:"Legend"}),"."]}),m.jsx("p",{className:"leading-relaxed",children:"Längs vägen samlar du namngivna föremål med egna egenheter, fyller din pung med guld och får ibland följeslagare. Vid noll hälsa erbjuds du att kämpa vidare till ett pris eller att börja en ny saga — döden är inte slutet, bara ett vägskäl."})]}),m.jsxs("section",{"aria-labelledby":"varfor",className:"mb-12",children:[m.jsx("h2",{id:"varfor",className:"text-2xl font-bold mb-6 bg-gradient-ancient bg-clip-text text-transparent",children:"Varför Mystiska Äventyr är en bra första Rollspel"}),m.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[{icon:Wx,title:"Ingen regelbok",text:"AI-spelledaren sköter alla regler. Du läser och väljer, inget mer."},{icon:bl,title:"En enda tärning",text:"1d20 med egenskapsbonus. Enkelt att förstå, rikt på dramatik."},{icon:Kx,title:"Sparas automatiskt",text:"Din saga ligger kvar i webbläsaren. Fortsätt nästa dag på samma plats."},{icon:qf,title:"Din karaktär, din berättelse",text:"Världen formas efter vem du är och vad du valt göra."}].map(({icon:e,title:t,text:n})=>m.jsxs(_t,{className:"p-4 bg-card/60 backdrop-blur-md border border-border/50",children:[m.jsx(e,{className:"w-5 h-5 text-secondary mb-2","aria-hidden":"true"}),m.jsx("h3",{className:"font-semibold mb-1",children:t}),m.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n})]},t))})]}),m.jsxs("section",{"aria-labelledby":"faq",className:"mb-12",children:[m.jsx("h2",{id:"faq",className:"text-2xl font-bold mb-6 bg-gradient-ancient bg-clip-text text-transparent",children:"Vanliga frågor från nybörjare"}),m.jsx("div",{className:"space-y-3",children:Fg.map(({q:e,a:t})=>m.jsxs("details",{className:"rounded-lg bg-card/60 backdrop-blur-md border border-border/50 p-4",children:[m.jsx("summary",{className:"cursor-pointer font-semibold text-secondary",children:e}),m.jsx("p",{className:"mt-2 text-sm text-muted-foreground leading-relaxed",children:t})]},e))})]}),m.jsxs(_t,{className:"p-6 mb-10 bg-card/80 backdrop-blur-md border-secondary/40 text-center",children:[m.jsx("h2",{className:"text-xl font-bold mb-2 text-secondary",children:"Nu vet du allt du behöver"}
267),m.jsx("p",{className:"mb-4 text-foreground/90",children:"Det enda som återstår är att välja en hjälte och kliva in i sagan. Ingen registrering, ingen nedladdning — bara du och Sagovävaren."}),m.jsx(xa,{to:"/",children:m.jsxs(pt,{variant:"magic",size:"lg",children:["Spela Mystiska Äventyr gratis ",m.jsx(tm,{className:"w-4 h-4 ml-1","aria-hidden":"true"})]})})]}),m.jsx("footer",{className:"text-center text-xs text-muted-foreground pb-10",children:m.jsxs("p",{children:[m.jsx(xa,{to:"/",className:"hover:text-secondary transition-colors",children:"Tillbaka till spelet"})," ","· Mystiska Äventyr — svenskt AI-drivet textrollspel"]})})]})]})]}),tL=()=>{const e=Vl();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),m.jsxs(m.Fragment,{children:[m.jsxs(Bf,{children:[m.jsx("title",{children:"Sidan hittades inte — Mystiska Äventyr"}),m.jsx("meta",{name:"description",content:"Den här sidan finns inte i Mystiska Äventyr. Gå tillbaka till startsidan och börja din saga med AI-spelledaren."}),m.jsx("meta",{name:"robots",content:"noindex, follow"}),m.jsx("link",{rel:"canonical",href:"https://sagobygge-ai.lovable.app/404"}),m.jsx("meta",{property:"og:title",content:"Sidan hittades inte — Mystiska Äventyr"}),m.jsx("meta",{property:"og:description",content:"Stigen tog slut. Vänd tillbaka till startsidan och börja ditt svenska AI-rollspel."}),m.jsx("meta",{property:"og:url",content:"https://sagobygge-ai.lovable.app/404"})]}),m.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background p-4",children:m.jsxs("div",{className:"text-center max-w-md",children:[m.jsx("p",{className:"text-6xl font-bold text-secondary mb-2",children:"404"}),m.jsx("h1",{className:"text-2xl font-semibold mb-3",children:"Stigen tar slut här"}),m.jsx("p",{className:"text-muted-foreground mb-6",children:"Sidan du letade efter finns inte. Sagovävaren väntar på startsidan."}),m.jsx(pt,{variant:"magic",size:"lg",asChild:!0,children:m.jsx("a",{href:"/",children:"Tillbaka till äventyret"})})]})})]})},nL=new lP,rL=()=>m.jsx(sP,{client:nL,children:m.jsxs(M2,{children:[m.jsx(IC,{}),m.jsx(cT,{}),m.jsx(oj,{children:m.jsxs(JP,{children:[m.jsx(Ba,{path:"/",element:m.jsx(YO,{})}),m.jsx(Ba,{path:"/nyborjare",element:m.jsx(eL,{})}),m.jsx(Ba,{path:"*",element:m.jsx(tL,{})})]})})]})});ax(document.getElementById("root")).render(m.jsx(hx,{children:m.jsx(rL,{})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.