@akairos/typeset-studio 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +91 -95
- package/dist/assets/index-3Ko1UCBU.css +1 -0
- package/dist/assets/index-C9J0f4Lf.js +317 -0
- package/dist/index.html +2 -2
- package/dist/lib/adapter.js +6 -7734
- package/dist/lib/canvas-renderer-cxnar75n.js +23 -0
- package/dist/lib/font-loader-j28mt43t.js +11 -0
- package/dist/lib/index-0370qz9e.js +303 -0
- package/dist/lib/index-37x76zdn.js +4 -0
- package/dist/lib/index-6c43c7h4.js +3880 -0
- package/dist/lib/index-t9w3p2p9.js +3366 -0
- package/dist/lib/index-zdhqg5f0.js +459 -0
- package/dist/lib/index.js +26 -7734
- package/dist/lib/render-xxd348m1.js +11 -0
- package/package.json +3 -7
- package/src/adapter.test.ts +117 -0
- package/src/adapter.ts +190 -281
- package/src/core/canvas-draw.ts +150 -47
- package/src/core/canvas-renderer.test.ts +58 -0
- package/src/core/canvas-renderer.ts +2 -1
- package/src/core/data-dir.ts +13 -0
- package/src/core/engine.ts +86 -56
- package/src/core/font-loader.test.ts +20 -0
- package/src/core/font-loader.ts +6 -2
- package/src/core/image-layout.ts +4 -0
- package/src/core/inline-text.ts +6 -4
- package/src/core/obstacle-flow.ts +29 -15
- package/src/core/page-images.test.ts +90 -0
- package/src/core/pretext.ts +4 -10
- package/src/core/template.test.ts +38 -1
- package/src/core/template.ts +53 -41
- package/src/core/types.ts +46 -0
- package/src/core/typography.ts +0 -14
- package/src/index.ts +6 -3
- package/src/server/auth.ts +18 -13
- package/src/server/index.ts +11 -16
- package/src/server/routes/fonts.ts +1 -1
- package/src/server/routes/render.ts +60 -17
- package/src/server/routes/slots.test.ts +96 -0
- package/src/server/routes/templates.ts +37 -48
- package/src/server/routes/upload.ts +2 -1
- package/src/web/App.tsx +15 -6
- package/src/web/components/CanvasViewport.tsx +56 -42
- package/src/web/components/EditorSidebar.tsx +59 -48
- package/src/web/components/Header.tsx +1 -1
- package/src/web/components/TemplateModal.tsx +25 -28
- package/src/web/hooks/image-layout.ts +31 -0
- package/src/web/hooks/useLocalFonts.ts +10 -1
- package/src/web/hooks/useTypeset.ts +139 -100
- package/data/templates/.gitkeep +0 -0
- package/data/templates/tpl_1791681833354_iofsk.json +0 -46
- package/data/templates/tpl_1791682603199_875ny.json +0 -66
- package/data/templates/tpl_1791682780929_qnuiy.json +0 -66
- package/data/templates/tpl_longform_paper_sage.json +0 -47
- package/data/templates/tpl_longform_vintage_news.json +0 -47
- package/data/templates/tpl_newspic_poster_cover.json +0 -64
- package/data/templates/tpl_square_quote_card.json +0 -46
- package/data/templates/tpl_wechat_cover_editorial.json +0 -64
- package/data/templates/tpl_wechat_cover_minimal.json +0 -64
- package/data/templates/tpl_wide_tech_banner.json +0 -46
- package/dist/assets/index-CZ352D7X.css +0 -1
- package/dist/assets/index-Dpnz-F2g.js +0 -317
|
@@ -1,317 +0,0 @@
|
|
|
1
|
-
var z2=Object.defineProperty;var Ix=i=>{throw TypeError(i)};var _2=(i,c,r)=>c in i?z2(i,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[c]=r;var Bu=(i,c,r)=>_2(i,typeof c!="symbol"?c+"":c,r),$x=(i,c,r)=>c.has(i)||Ix("Cannot "+r);var Px=(i,c,r)=>($x(i,c,"read from private field"),r?r.call(i):c.get(i)),e1=(i,c,r)=>c.has(i)?Ix("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(i):c.set(i,r),t1=(i,c,r,o)=>($x(i,c,"write to private field"),o?o.call(i,r):c.set(i,r),r);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function r(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(d){if(d.ep)return;d.ep=!0;const h=r(d);fetch(d.href,h)}})();function _1(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Jr={exports:{}},Ou={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and 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 l1;function R2(){if(l1)return Ou;l1=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(o,d,h){var p=null;if(h!==void 0&&(p=""+h),d.key!==void 0&&(p=""+d.key),"key"in d){h={};for(var N in d)N!=="key"&&(h[N]=d[N])}else h=d;return d=h.ref,{$$typeof:i,type:o,key:p,ref:d!==void 0?d:null,props:h}}return Ou.Fragment=c,Ou.jsx=r,Ou.jsxs=r,Ou}var n1;function L2(){return n1||(n1=1,Jr.exports=R2()),Jr.exports}var f=L2(),Wr={exports:{}},be={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and 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 a1;function H2(){if(a1)return be;a1=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),S=Symbol.for("react.view_transition"),D=Symbol.iterator;function Y(C){return C===null||typeof C!="object"?null:(C=D&&C[D]||C["@@iterator"],typeof C=="function"?C:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,ee={};function K(C,te,se){this.props=C,this.context=te,this.refs=ee,this.updater=se||P}K.prototype.isReactComponent={},K.prototype.setState=function(C,te){if(typeof C!="object"&&typeof C!="function"&&C!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,C,te,"setState")},K.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function Q(){}Q.prototype=K.prototype;function ie(C,te,se){this.props=C,this.context=te,this.refs=ee,this.updater=se||P}var V=ie.prototype=new Q;V.constructor=ie,U(V,K.prototype),V.isPureReactComponent=!0;var E=Array.isArray;function z(){}var R={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function W(C,te,se){var re=se.ref;return{$$typeof:i,type:C,key:te,ref:re!==void 0?re:null,props:se}}function A(C,te){return W(C.type,te,C.props)}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===i}function X(C){var te={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(se){return te[se]})}var Z=/\/+/g;function k(C,te){return typeof C=="object"&&C!==null&&C.key!=null?X(""+C.key):te.toString(36)}function F(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(z,z):(C.status="pending",C.then(function(te){C.status==="pending"&&(C.status="fulfilled",C.value=te)},function(te){C.status==="pending"&&(C.status="rejected",C.reason=te)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function w(C,te,se,re,oe){var me=typeof C;(me==="undefined"||me==="boolean")&&(C=null);var pe=!1;if(C===null)pe=!0;else switch(me){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(C.$$typeof){case i:case c:pe=!0;break;case g:return pe=C._init,w(pe(C._payload),te,se,re,oe)}}if(pe)return oe=oe(C),pe=re===""?"."+k(C,0):re,E(oe)?(se="",pe!=null&&(se=pe.replace(Z,"$&/")+"/"),w(oe,te,se,"",function(qe){return qe})):oe!=null&&(le(oe)&&(oe=A(oe,se+(oe.key==null||C&&C.key===oe.key?"":(""+oe.key).replace(Z,"$&/")+"/")+pe)),te.push(oe)),1;pe=0;var ue=re===""?".":re+":";if(E(C))for(var de=0;de<C.length;de++)re=C[de],me=ue+k(re,de),pe+=w(re,te,se,me,oe);else if(de=Y(C),typeof de=="function")for(C=de.call(C),de=0;!(re=C.next()).done;)re=re.value,me=ue+k(re,de++),pe+=w(re,te,se,me,oe);else if(me==="object"){if(typeof C.then=="function")return w(F(C),te,se,re,oe);throw te=String(C),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return pe}function L(C,te,se){if(C==null)return C;var re=[],oe=0;return w(C,re,"","",function(me){return te.call(se,me,oe++)}),re}function $(C){if(C._status===-1){var te=C._result,se=te();se.then(function(re){(C._status===0||C._status===-1)&&(C._status=1,C._result=re,se.status===void 0&&(se.status="fulfilled",se.value=re))},function(re){(C._status===0||C._status===-1)&&(C._status=2,C._result=re,se.status===void 0&&(se.status="rejected",se.reason=re))}),C._status===-1&&(C._status=0,C._result=se)}if(C._status===1)return C._result.default;throw C._result}var J=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)};function ne(C){var te=R.T,se={};se.types=te!==null?te.types:null,R.T=se;try{var re=C(),oe=R.S;oe!==null&&oe(se,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(z,J)}catch(me){J(me)}finally{te!==null&&se.types!==null&&(te.types=se.types),R.T=te}}function he(C){var te=R.T;if(te!==null){var se=te.types;se===null?te.types=[C]:se.indexOf(C)===-1&&se.push(C)}else ne(he.bind(null,C))}var Te={map:L,forEach:function(C,te,se){L(C,function(){te.apply(this,arguments)},se)},count:function(C){var te=0;return L(C,function(){te++}),te},toArray:function(C){return L(C,function(te){return te})||[]},only:function(C){if(!le(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return be.Activity=m,be.Children=Te,be.Component=K,be.Fragment=r,be.Profiler=d,be.PureComponent=ie,be.StrictMode=o,be.Suspense=b,be.ViewTransition=S,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,be.__COMPILER_RUNTIME={__proto__:null,c:function(C){return R.H.useMemoCache(C)}},be.addTransitionType=he,be.cache=function(C){return function(){return C.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(C,te,se){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var re=U({},C.props),oe=C.key;if(te!=null)for(me in te.key!==void 0&&(oe=""+te.key),te)!I.call(te,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&te.ref===void 0||(re[me]=te[me]);var me=arguments.length-2;if(me===1)re.children=se;else if(1<me){for(var pe=Array(me),ue=0;ue<me;ue++)pe[ue]=arguments[ue+2];re.children=pe}return W(C.type,oe,re)},be.createContext=function(C){return C={$$typeof:p,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:h,_context:C},C},be.createElement=function(C,te,se){var re,oe={},me=null;if(te!=null)for(re in te.key!==void 0&&(me=""+te.key),te)I.call(te,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(oe[re]=te[re]);var pe=arguments.length-2;if(pe===1)oe.children=se;else if(1<pe){for(var ue=Array(pe),de=0;de<pe;de++)ue[de]=arguments[de+2];oe.children=ue}if(C&&C.defaultProps)for(re in pe=C.defaultProps,pe)oe[re]===void 0&&(oe[re]=pe[re]);return W(C,me,oe)},be.createRef=function(){return{current:null}},be.forwardRef=function(C){return{$$typeof:N,render:C}},be.isValidElement=le,be.lazy=function(C){return{$$typeof:g,_payload:{_status:-1,_result:C},_init:$}},be.memo=function(C,te){return{$$typeof:v,type:C,compare:te===void 0?null:te}},be.startTransition=ne,be.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},be.use=function(C){return R.H.use(C)},be.useActionState=function(C,te,se){return R.H.useActionState(C,te,se)},be.useCallback=function(C,te){return R.H.useCallback(C,te)},be.useContext=function(C){return R.H.useContext(C)},be.useDebugValue=function(){},be.useDeferredValue=function(C,te){return R.H.useDeferredValue(C,te)},be.useEffect=function(C,te){return R.H.useEffect(C,te)},be.useEffectEvent=function(C){return R.H.useEffectEvent(C)},be.useId=function(){return R.H.useId()},be.useImperativeHandle=function(C,te,se){return R.H.useImperativeHandle(C,te,se)},be.useInsertionEffect=function(C,te){return R.H.useInsertionEffect(C,te)},be.useLayoutEffect=function(C,te){return R.H.useLayoutEffect(C,te)},be.useMemo=function(C,te){return R.H.useMemo(C,te)},be.useOptimistic=function(C,te){return R.H.useOptimistic(C,te)},be.useReducer=function(C,te,se){return R.H.useReducer(C,te,se)},be.useRef=function(C){return R.H.useRef(C)},be.useState=function(C){return R.H.useState(C)},be.useSyncExternalStore=function(C,te,se){return R.H.useSyncExternalStore(C,te,se)},be.useTransition=function(){return R.H.useTransition()},be.version="19.3.0",be}var u1;function bo(){return u1||(u1=1,Wr.exports=H2()),Wr.exports}var ge=bo();const U2=_1(ge);var Ir={exports:{}},ju={},$r={exports:{}},Pr={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and 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
|
-
*/var i1;function q2(){return i1||(i1=1,(function(i){function c(F,w){var L=F.length;F.push(w);e:for(;0<L;){var $=L-1>>>1,J=F[$];if(0<d(J,w))F[$]=w,F[L]=J,L=$;else break e}}function r(F){return F.length===0?null:F[0]}function o(F){if(F.length===0)return null;var w=F[0],L=F.pop();if(L!==w){F[0]=L;e:for(var $=0,J=F.length,ne=J>>>1;$<ne;){var he=2*($+1)-1,Te=F[he],C=he+1,te=F[C];if(0>d(Te,L))C<J&&0>d(te,Te)?(F[$]=te,F[C]=L,$=C):(F[$]=Te,F[he]=L,$=he);else if(C<J&&0>d(te,L))F[$]=te,F[C]=L,$=C;else break e}}return w}function d(F,w){var L=F.sortIndex-w.sortIndex;return L!==0?L:F.id-w.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var p=Date,N=p.now();i.unstable_now=function(){return p.now()-N}}var b=[],v=[],g=1,m=null,S=3,D=!1,Y=!1,P=!1,U=!1,ee=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function ie(F){for(var w=r(v);w!==null;){if(w.callback===null)o(v);else if(w.startTime<=F)o(v),w.sortIndex=w.expirationTime,c(b,w);else break;w=r(v)}}function V(F){if(P=!1,ie(F),!Y)if(r(b)!==null)Y=!0,E||(E=!0,le());else{var w=r(v);w!==null&&k(V,w.startTime-F)}}var E=!1,z=-1,R=5,I=-1;function W(){return U?!0:!(i.unstable_now()-I<R)}function A(){if(U=!1,E){var F=i.unstable_now();I=F;var w=!0;try{e:{Y=!1,P&&(P=!1,K(z),z=-1),D=!0;var L=S;try{t:{for(ie(F),m=r(b);m!==null&&!(m.expirationTime>F&&W());){var $=m.callback;if(typeof $=="function"){m.callback=null,S=m.priorityLevel;var J=$(m.expirationTime<=F);if(F=i.unstable_now(),typeof J=="function"){m.callback=J,ie(F),w=!0;break t}m===r(b)&&o(b),ie(F)}else o(b);m=r(b)}if(m!==null)w=!0;else{var ne=r(v);ne!==null&&k(V,ne.startTime-F),w=!1}}break e}finally{m=null,S=L,D=!1}w=void 0}}finally{w?le():E=!1}}}var le;if(typeof Q=="function")le=function(){Q(A)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=A,le=function(){Z.postMessage(null)}}else le=function(){ee(A,0)};function k(F,w){z=ee(function(){F(i.unstable_now())},w)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(F){F.callback=null},i.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<F?Math.floor(1e3/F):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(F){switch(S){case 1:case 2:case 3:var w=3;break;default:w=S}var L=S;S=w;try{return F()}finally{S=L}},i.unstable_requestPaint=function(){U=!0},i.unstable_runWithPriority=function(F,w){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var L=S;S=F;try{return w()}finally{S=L}},i.unstable_scheduleCallback=function(F,w,L){var $=i.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?$+L:$):L=$,F){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=L+J,F={id:g++,callback:w,priorityLevel:F,startTime:L,expirationTime:J,sortIndex:-1},L>$?(F.sortIndex=L,c(v,F),r(b)===null&&F===r(v)&&(P?(K(z),z=-1):P=!0,k(V,L-$))):(F.sortIndex=J,c(b,F),Y||D||(Y=!0,E||(E=!0,le()))),F},i.unstable_shouldYield=W,i.unstable_wrapCallback=function(F){var w=S;return function(){var L=S;S=w;try{return F.apply(this,arguments)}finally{S=L}}}})(Pr)),Pr}var c1;function G2(){return c1||(c1=1,$r.exports=q2()),$r.exports}var eo={exports:{}},rt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and 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 s1;function Y2(){if(s1)return rt;s1=1;var i=bo();function c(g){var m="https://react.dev/errors/"+g;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)m+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+g+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal"),h=Symbol.for("react.recoverable"),p=Symbol.for("react.optimistic_key");function N(g,m,S){var D=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:D==null?null:D===p?p:""+D,children:g,containerInfo:m,implementation:S}}var b=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(g,m){if(g==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,rt.browser=function(g){return{$$typeof:h,_reason:g}},rt.createPortal=function(g,m){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(c(299));return N(g,m,null,S)},rt.flushSync=function(g){var m=b.T,S=o.p;try{if(b.T=null,o.p=2,g)return g()}finally{b.T=m,o.p=S,o.d.f()}},rt.preconnect=function(g,m){typeof g=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(g,m))},rt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},rt.preinit=function(g,m){if(typeof g=="string"&&m&&typeof m.as=="string"){var S=m.as,D=v(S,m.crossOrigin),Y=typeof m.integrity=="string"?m.integrity:void 0,P=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;S==="style"?o.d.S(g,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:D,integrity:Y,fetchPriority:P}):S==="script"&&o.d.X(g,{crossOrigin:D,integrity:Y,fetchPriority:P,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},rt.preinitModule=function(g,m){if(typeof g=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var S=v(m.as,m.crossOrigin);o.d.M(g,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}}else m==null&&o.d.M(g)},rt.preload=function(g,m){if(typeof g=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var S=m.as,D=v(S,m.crossOrigin);o.d.L(g,S,{crossOrigin:D,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},rt.preloadModule=function(g,m){if(typeof g=="string")if(m){var S=v(m.as,m.crossOrigin);o.d.m(g,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0})}else o.d.m(g)},rt.requestFormReset=function(g){o.d.r(g)},rt.unstable_batchedUpdates=function(g,m){return g(m)},rt.useFormState=function(g,m,S){return b.H.useFormState(g,m,S)},rt.useFormStatus=function(){return b.H.useHostTransitionStatus()},rt.version="19.3.0",rt}var r1;function X2(){if(r1)return eo.exports;r1=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),eo.exports=Y2(),eo.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var o1;function Q2(){if(o1)return ju;o1=1;var i=G2(),c=bo(),r=X2();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){for(var t=e,l=t;l&&!l.alternate;)t=l,(t.flags&4098)!==0&&(e=t.return),l=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function p(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 N(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,n=t;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return b(a),e;if(u===n)return b(a),t;u=u.sibling}throw Error(o(188))}if(l.return!==n.return)l=a,n=u;else{for(var s=!1,x=a.child;x;){if(x===l){s=!0,l=a,n=u;break}if(x===n){s=!0,n=a,l=u;break}x=x.sibling}if(!s){for(x=u.child;x;){if(x===l){s=!0,l=u,n=a;break}if(x===n){s=!0,n=u,l=a;break}x=x.sibling}if(!s)throw Error(o(189))}}if(l.alternate!==n)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function g(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=g(e),t!==null)return t;e=e.sibling}return null}function m(e,t,l,n,a,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&l(e,n,a,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,l,n,a,u))return!0;e=e.sibling}return!1}function S(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function D(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Y(e){var t=[null,null],l=S(e);return l===null||P(t,e,l.child,{foundSelf:!1}),t}function P(e,t,l,n){for(;l!==null;){if(l===t)n.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(n.foundSelf)return e[1]=l,!0;e[0]=l}else if((l.tag!==22||l.memoizedState===null)&&P(e,t,l.child,n))return!0;l=l.sibling}return!1}function U(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var ee=null,K=null;function Q(e,t,l){return e===l?!0:e===t?(ee=e,!0):!1}function ie(e,t,l){return e===l?(K=e,!1):e===t?(K!==null&&(ee=e),!0):!1}function V(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function E(e,t,l){for(var n=0,a=e;a;a=l(a))n++;a=0;for(var u=t;u;u=l(u))a++;for(;0<n-a;)e=l(e),n--;for(;0<a-n;)t=l(t),a--;for(;n--;){if(e===t||t!==null&&e===t.alternate)return e;e=l(e),t=l(t)}return null}var z=Object.assign,R=Symbol.for("react.element"),I=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),k=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),he=Symbol.for("react.legacy_hidden"),Te=Symbol.for("react.memo_cache_sentinel"),C=Symbol.for("react.view_transition"),te=Symbol.for("react.recoverable"),se=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=se&&e[se]||e["@@iterator"],typeof e=="function"?e:null)}var oe=Symbol.for("react.client.reference");function me(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===oe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case X:return"Profiler";case le:return"StrictMode";case w:return"Suspense";case L:return"SuspenseList";case ne:return"Activity";case C:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case W:return"Portal";case k:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:me(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return me(e(t))}catch{}}return null}var pe=Array.isArray,ue=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qe={pending:!1,data:null,method:null,action:null},cn=[],Et=-1;function ot(e){return{current:e}}function Ie(e){0>Et||(e.current=cn[Et],cn[Et]=null,Et--)}function _e(e,t){Et++,cn[Et]=e.current,e.current=t}var gt=ot(null),sn=ot(null),dl=ot(null),Xt=ot(null);function xl(e,t){switch(_e(dl,t),_e(sn,e),_e(gt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?ix(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=ix(t),e=cx(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ie(gt),_e(gt,e)}function $t(){Ie(gt),Ie(sn),Ie(dl)}function rn(e){var t=e.memoizedState;t!==null&&(Ma._currentValue=t.memoizedState,_e(Xt,e)),t=gt.current;var l=cx(t,e.type);t!==l&&(_e(sn,e),_e(gt,l))}function Fl(e){sn.current===e&&(Ie(gt),Ie(sn)),Xt.current===e&&(Ie(Xt),Ma._currentValue=qe)}var Ln,_a;function Pt(e){if(Ln===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ln=t&&t[1]||"",_a=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ln+e+_a}var Ra=!1;function Hn(e,t){if(!e||Ra)return"";Ra=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(ae){var T=ae}Reflect.construct(e,[],G)}else{try{G.call()}catch(ae){T=ae}G=!1;try{var _=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),G=!0,new e}finally{G&&(_!==void 0?Object.defineProperty(e.prototype,"props",_):delete e.prototype.props)}}}else{try{throw Error()}catch(ae){T=ae}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(ae){if(ae&&T&&typeof ae.stack=="string")return[ae.stack,T.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),s=u[0],x=u[1];if(s&&x){var y=s.split(`
|
|
44
|
-
`),O=x.split(`
|
|
45
|
-
`);for(a=n=0;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;for(;a<O.length&&!O[a].includes("DetermineComponentFrameRoot");)a++;if(n===y.length||a===O.length)for(n=y.length-1,a=O.length-1;1<=n&&0<=a&&y[n]!==O[a];)a--;for(;1<=n&&0<=a;n--,a--)if(y[n]!==O[a]){if(n!==1||a!==1)do if(n--,a--,0>a||y[n]!==O[a]){var H=`
|
|
46
|
-
`+y[n].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=n&&0<=a);break}}}finally{Ra=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Hh(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return Hn(e.type,!1);case 11:return Hn(e.type.render,!1);case 1:return Hn(e.type,!0);case 31:return Pt("Activity");case 30:return Pt("ViewTransition");default:return""}}function ko(e){try{var t="",l=null;do t+=Hh(e,l),l=e,e=e.return;while(e);return t}catch(n){return`
|
|
47
|
-
Error generating stack: `+n.message+`
|
|
48
|
-
`+n.stack}}var pc=Object.prototype.hasOwnProperty,yc=i.unstable_scheduleCallback,Nc=i.unstable_cancelCallback,Uh=i.unstable_shouldYield,qh=i.unstable_requestPaint,At=i.unstable_now,Gh=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Fo=i.unstable_UserBlockingPriority,_u=i.unstable_NormalPriority,Yh=i.unstable_LowPriority,Do=i.unstable_IdlePriority,Xh=i.log,Qh=i.unstable_setDisableYieldValue,La=null,Ct=null;function Dl(e){if(typeof Xh=="function"&&Qh(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(La,e)}catch{}}var Mt=Math.clz32?Math.clz32:Kh,Vh=Math.log,Zh=Math.LN2;function Kh(e){return e>>>=0,e===0?32:31-(Vh(e)/Zh|0)|0}var Ru=256,Lu=262144,Hu=4194304;function on(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Uu(e,t,l){var n=e.pendingLanes;if(n===0)return 0;var a=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var x=n&134217727;return x!==0?(n=x&~u,n!==0?a=on(n):(s&=x,s!==0?a=on(s):l||(l=x&~e,l!==0&&(a=on(l))))):(x=n&~u,x!==0?a=on(x):s!==0?a=on(s):l||(l=n&~e,l!==0&&(a=on(l)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:a}function Ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bo(e,t){(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-Mt(l),a=1<<n;t|=e[n],l&=~a}return t}function Jh(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oo(){var e=Hu;return Hu<<=1,(Hu&62914560)===0&&(Hu=4194304),e}function Sc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ua(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Wh(e,t,l,n,a,u){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var x=e.entanglements,y=e.expirationTimes,O=e.hiddenUpdates;for(l=s&~l;0<l;){var H=31-Mt(l),G=1<<H;x[H]=0,y[H]=-1;var T=O[H];if(T!==null)for(O[H]=null,H=0;H<T.length;H++){var _=T[H];_!==null&&(_.lane&=-536870913)}l&=~G}n!==0&&jo(e,n,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function jo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Mt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|l&261930}function wo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var n=31-Mt(l),a=1<<n;a&t|e[n]&t&&(e[n]|=t),l&=~a}}function zo(e,t){var l=t&-t;return l=(l&42)!==0?1:Ec(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ec(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ac(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _o(){var e=de.p;return e!==0?e:(e=window.event,e===void 0?32:Xx(e.type))}function Ro(e,t){var l=de.p;try{return de.p=e,t()}finally{de.p=l}}var hl=Math.random().toString(36).slice(2),nt="__reactFiber$"+hl,vt="__reactProps$"+hl,Un="__reactContainer$"+hl,Lo="__reactEvents$"+hl,Ih="__reactListeners$"+hl,$h="__reactHandles$"+hl,Ho="__reactResources$"+hl,qa="__reactMarker$"+hl,qu="__reactLoad$"+hl;function Gu(e){delete e[nt],delete e[vt],delete e[Ih],delete e[$h]}function fn(e){var t;if(t=e[nt])return t;for(var l=e.parentNode;l;){if(t=l[Un]||l[nt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Ax(e);e!==null;){if(l=e[nt])return l;e=Ax(e)}return t}e=l,l=e.parentNode}return null}function qn(e){if(e=e[nt]||e[Un]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ga(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Gn(e){var t=e[Ho];return t||(t=e[Ho]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pe(e){e[qa]=!0}function Uo(e){e[qu]=void 0}var qo=new Set,Go={};function dn(e,t){Yn(e,t),Yn(e+"Capture",t)}function Yn(e,t){for(Go[e]=t,e=0;e<t.length;e++)qo.add(t[e])}var Ph=RegExp("^[: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]*$"),Yo={},Xo={};function em(e){return pc.call(Xo,e)?!0:pc.call(Yo,e)?!1:Ph.test(e)?Xo[e]=!0:(Yo[e]=!0,!1)}var De=!1;function Qo(){var e=De;return De=!1,e}function Yu(e,t,l){if(em(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,l)}}function Xu(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,l)}}function ml(e,t,l,n){if(n===null)e.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,n)}}function kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tm(e,t,l){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cc(e){if(!e._valueTracker){var t=Vo(e)?"checked":"value";e._valueTracker=tm(e,t,""+e[t])}}function Zo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),n="";return e&&(n=Vo(e)?e.checked?"true":"false":e.value),e=n,e!==l?(t.setValue(e),!0):!1}var lm=/[\n"\\]/g;function zt(e){return e.replace(lm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mc(e,t,l,n,a,u,s,x){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kt(t)):e.value!==""+kt(t)&&(e.value=""+kt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?s==="number"&&e.value==t?kc(e,kt(e.value)):kc(e,kt(t)):l!=null?kc(e,kt(l)):n!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+kt(x):e.removeAttribute("name")}function Ko(e,t,l,n,a,u,s,x){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Cc(e);return}l=l!=null?""+kt(l):"",t=t!=null?""+kt(t):l,x||t===e.value||(e.value=t),e.defaultValue=t}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=x?e.checked:!!n,e.defaultChecked=!!n,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Cc(e)}function kc(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Xn(e,t,l,n){if(e=e.options,t){t={};for(var a=0;a<l.length;a++)t["$"+l[a]]=!0;for(l=0;l<e.length;l++)a=t.hasOwnProperty("$"+e[l].value),e[l].selected!==a&&(e[l].selected=a),a&&n&&(e[l].defaultSelected=!0)}else{for(l=""+kt(l),t=null,a=0;a<e.length;a++){if(e[a].value===l){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Jo(e,t,l){if(t!=null&&(t=""+kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+kt(l):""}function Wo(e,t,l,n){if(t==null){if(n!=null){if(l!=null)throw Error(o(92));if(pe(n)){if(1<n.length)throw Error(o(93));n=n[0]}l=n}l==null&&(l=""),t=l}l=kt(t),e.defaultValue=l,n=e.textContent,n===l&&n!==""&&n!==null&&(e.value=n),Cc(e)}function Qn(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var nm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Io(e,t,l){var n=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,l):typeof l!="number"||l===0||nm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function $o(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="",De=!0);for(var a in t)n=t[a],t.hasOwnProperty(a)&&l[a]!==n&&(Io(e,a,n),De=!0)}else for(var u in t)t.hasOwnProperty(u)&&Io(e,u,t[u])}function Tc(e){if(e.indexOf("-")===-1)return!1;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 am=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),um=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qu(e){return um.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function el(){}var Fc=null;function Dc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vn=null,Zn=null;function Po(e){var t=qn(e);if(t&&(e=t.stateNode)){var l=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var n=l[t];if(n!==e&&n.form===e.form){var a=n[vt]||null;if(!a)throw Error(o(90));Mc(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<l.length;t++)n=l[t],n.form===e.form&&Zo(n)}break e;case"textarea":Jo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Xn(e,!!l.multiple,t,!1)}}}var Bc=!1;function ef(e,t,l){if(Bc)return e(t,l);Bc=!0;try{var n=e(t);return n}finally{if(Bc=!1,(Vn!==null||Zn!==null)&&(Qi(),Vn&&(t=Vn,e=Zn,Zn=Vn=null,Po(t),e)))for(t=0;t<e.length;t++)Po(e[t])}}function Ya(e,t){var l=e.stateNode;if(l===null)return null;var n=l[vt]||null;if(n===null)return null;l=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var gl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oc=!1;if(gl)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{Oc=!1}var Bl=null,jc=null,Vu=null;function tf(){if(Vu)return Vu;var e,t=jc,l=t.length,n,a="value"in Bl?Bl.value:Bl.textContent,u=a.length;for(e=0;e<l&&t[e]===a[e];e++);var s=l-e;for(n=1;n<=s&&t[l-n]===a[u-n];n++);return Vu=a.slice(e,1<n?1-n:void 0)}function Zu(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 Ku(){return!0}function lf(){return!1}function dt(e){function t(l,n,a,u,s){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(l=e[x],this[x]=l?l(u):u[x]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ku:lf,this.isPropagationStopped=lf,this}return z(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ku)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ku)},persist:function(){},isPersistent:Ku}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ju=dt(Ol),Qa=z({},Ol,{view:0,detail:0}),im=dt(Qa),wc,zc,Va,Wu=z({},Qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,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!==Va&&(Va&&e.type==="mousemove"?(wc=e.screenX-Va.screenX,zc=e.screenY-Va.screenY):zc=wc=0,Va=e),wc)},movementY:function(e){return"movementY"in e?e.movementY:zc}}),nf=dt(Wu),cm=z({},Wu,{dataTransfer:0}),sm=dt(cm),rm=z({},Qa,{relatedTarget:0}),_c=dt(rm),om=z({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),fm=dt(om),dm=z({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xm=dt(dm),hm=z({},Ol,{data:0}),af=dt(hm),mm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gm={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"},vm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vm[e])?!!t[e]:!1}function Rc(){return bm}var pm=z({},Qa,{key:function(e){if(e.key){var t=mm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?gm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(e){return e.type==="keypress"?Zu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ym=dt(pm),Nm=z({},Wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=dt(Nm),Sm=z({},Ol,{submitter:0}),Em=dt(Sm),Am=z({},Qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),Cm=dt(Am),Mm=z({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),km=dt(Mm),Tm=z({},Wu,{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}),Fm=dt(Tm),Dm=z({},Ol,{newState:0,oldState:0,source:0}),Bm=dt(Dm),Om=[9,13,27,32],Lc=gl&&"CompositionEvent"in window,Za=null;gl&&"documentMode"in document&&(Za=document.documentMode);var jm=gl&&"TextEvent"in window&&!Za,cf=gl&&(!Lc||Za&&8<Za&&11>=Za),sf=" ",rf=!1;function of(e,t){switch(e){case"keyup":return Om.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ff(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kn=!1;function wm(e,t){switch(e){case"compositionend":return ff(t);case"keypress":return t.which!==32?null:(rf=!0,sf);case"textInput":return e=t.data,e===sf&&rf?null:e;default:return null}}function zm(e,t){if(Kn)return e==="compositionend"||!Lc&&of(e,t)?(e=tf(),Vu=jc=Bl=null,Kn=!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 cf&&t.locale!=="ko"?null:t.data;default:return null}}var _m={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 df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_m[e.type]:t==="textarea"}function xf(e,t,l,n){Vn?Zn?Zn.push(n):Zn=[n]:Vn=n,t=Ii(t,"onChange"),0<t.length&&(l=new Ju("onChange","change",null,l,n),e.push({event:l,listeners:t}))}var Ka=null,Ja=null;function Rm(e){ex(e,0)}function Iu(e){var t=Ga(e);if(Zo(t))return e}function hf(e,t){if(e==="change")return t}var mf=!1;if(gl){var Hc;if(gl){var Uc="oninput"in document;if(!Uc){var gf=document.createElement("div");gf.setAttribute("oninput","return;"),Uc=typeof gf.oninput=="function"}Hc=Uc}else Hc=!1;mf=Hc&&(!document.documentMode||9<document.documentMode)}function vf(){Ka&&(Ka.detachEvent("onpropertychange",bf),Ja=Ka=null)}function bf(e){if(e.propertyName==="value"&&Iu(Ja)){var t=[];xf(t,Ja,e,Dc(e)),ef(Rm,t)}}function Lm(e,t,l){e==="focusin"?(vf(),Ka=t,Ja=l,Ka.attachEvent("onpropertychange",bf)):e==="focusout"&&vf()}function Hm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Iu(Ja)}function Um(e,t){if(e==="click")return Iu(t)}function qm(e,t){if(e==="input"||e==="change")return Iu(t)}function Gm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Gm;function Wa(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),n=Object.keys(t);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!pc.call(t,a)||!Tt(e[a],t[a]))return!1}return!0}function qc(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 pf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yf(e,t){var l=pf(e);e=0;for(var n;l;){if(l.nodeType===3){if(n=e+l.textContent.length,e<=t&&n>=t)return{node:l,offset:t-e};e=n}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pf(l)}}function Nf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qc(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=qc(e.document)}return t}function Gc(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")}var Ym=gl&&"documentMode"in document&&11>=document.documentMode,Jn=null,Yc=null,Ia=null,Xc=!1;function Ef(e,t,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Xc||Jn==null||Jn!==qc(n)||(n=Jn,"selectionStart"in n&&Gc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ia&&Wa(Ia,n)||(Ia=n,n=Ii(Yc,"onSelect"),0<n.length&&(t=new Ju("onSelect","select",null,t,l),e.push({event:t,listeners:n}),t.target=Jn)))}function xn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Wn={animationend:xn("Animation","AnimationEnd"),animationiteration:xn("Animation","AnimationIteration"),animationstart:xn("Animation","AnimationStart"),transitionrun:xn("Transition","TransitionRun"),transitionstart:xn("Transition","TransitionStart"),transitioncancel:xn("Transition","TransitionCancel"),transitionend:xn("Transition","TransitionEnd")},Qc={},Af={};gl&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function hn(e){if(Qc[e])return Qc[e];if(!Wn[e])return e;var t=Wn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Af)return Qc[e]=t[l];return e}var Cf=hn("animationend"),Mf=hn("animationiteration"),kf=hn("animationstart"),Xm=hn("transitionrun"),Qm=hn("transitionstart"),Vm=hn("transitioncancel"),Tf=hn("transitionend"),Ff=new Map,Vc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Vc.push("scrollEnd");function Qt(e,t){Ff.set(e,t),dn(t,[e])}var Zm=0;function vl(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=Jt.identifierPrefix;var l=Zm++;return e="_"+e+"t_"+l.toString(32)+"_",t.autoName=e}function Df(e){if(e==null||typeof e=="string")return e;var t=null,l=ga;if(l!==null)for(var n=0;n<l.length;n++){var a=e[l[n]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function bl(e,t){return e=Df(e),t=Df(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var $u=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],In=0,Zc=0;function Pu(){for(var e=In,t=Zc=In=0;t<e;){var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var u=_t[t];if(_t[t++]=null,n!==null&&a!==null){var s=n.pending;s===null?a.next=a:(a.next=s.next,s.next=a),n.pending=a}u!==0&&Bf(l,a,u)}}function ei(e,t,l,n){_t[In++]=e,_t[In++]=t,_t[In++]=l,_t[In++]=n,Zc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Kc(e,t,l,n){return ei(e,t,l,n),ti(e)}function mn(e,t){return ei(e,null,null,t),ti(e)}function Bf(e,t,l){e.lanes|=l;var n=e.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=e.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-Mt(l),e=u.hiddenUpdates,n=e[a],n===null?e[a]=[t]:n.push(t),t.lane=l|536870912),u):null}function ti(e){if(50<pu)throw pu=0,Xi=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $n={};function Km(e,t,l,n){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,l,n){return new Km(e,t,l,n)}function Jc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pl(e,t){var l=e.alternate;return l===null?(l=bt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&1206910976,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Of(e,t){e.flags&=1206910978;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,l,n,a,u){var s=0;if(n=e,typeof n=="function")Jc(n)&&(s=1);else if(typeof n=="string")s=S2(e,l,gt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(n){case ne:return e=bt(31,l,t,a),e.elementType=ne,e.lanes=u,e;case A:return gn(l.children,a,u,t);case le:s=8,a|=24;break;case X:return e=bt(12,l,t,a|2),e.elementType=X,e.lanes=u,e;case w:return e=bt(13,l,t,a),e.elementType=w,e.lanes=u,e;case L:return e=bt(19,l,t,a),e.elementType=L,e.lanes=u,e;case he:case C:return e=a|32,e=bt(30,l,t,e),e.elementType=C,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case k:s=10;break e;case Z:s=9;break e;case F:s=11;break e;case $:s=14;break e;case J:s=16,n=null;break e}s=29,l=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=bt(s,l,t,a),t.elementType=e,t.type=n,t.lanes=u,t}function gn(e,t,l,n){return e=bt(7,e,n,t),e.lanes=l,e}function Wc(e,t,l){return e=bt(6,e,null,t),e.lanes=l,e}function jf(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Ic(e,t,l){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var wf=new WeakMap;function Rt(e,t){if(typeof e=="object"&&e!==null){var l=wf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ko(t)},wf.set(e,t),t)}return{value:e,source:t,stack:ko(t)}}var Pn=[],ea=0,ni=null,$a=0,Lt=[],Ht=0,jl=null,tl=1,ll="";function yl(e,t){Pn[ea++]=$a,Pn[ea++]=ni,ni=e,$a=t}function zf(e,t,l){Lt[Ht++]=tl,Lt[Ht++]=ll,Lt[Ht++]=jl,jl=e;var n=tl;e=ll;var a=32-Mt(n)-1;n&=~(1<<a),l+=1;var u=32-Mt(t)+a;if(30<u){var s=a-a%5;u=(n&(1<<s)-1).toString(32),n>>=s,a-=s,tl=1<<32-Mt(t)+a|l<<a|n,ll=u+e}else tl=1<<u|l<<a|n,ll=e}function ai(e){e.return!==null&&(yl(e,1),zf(e,1,0))}function $c(e){for(;e===ni;)ni=Pn[--ea],Pn[ea]=null,$a=Pn[--ea],Pn[ea]=null;for(;e===jl;)jl=Lt[--Ht],Lt[Ht]=null,ll=Lt[--Ht],Lt[Ht]=null,tl=Lt[--Ht],Lt[Ht]=null}function _f(e,t){Lt[Ht++]=tl,Lt[Ht++]=ll,Lt[Ht++]=jl,tl=t.id,ll=t.overflow,jl=e}var et=null,He=null,Se=!1,wl=null,Ut=!1,Pc=Error(o(519));function zl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pa(Rt(t,e)),Pc}function Rf(e){var t=e.stateNode,l=e.type,n=e.memoizedProps;switch(t[nt]=e,t[vt]=n,l){case"dialog":Ce("cancel",t),Ce("close",t);break;case"iframe":case"object":case"embed":Ce("load",t);break;case"video":case"audio":for(l=0;l<Nu.length;l++)Ce(Nu[l],t);break;case"source":Ce("error",t);break;case"img":case"image":case"link":Ce("error",t),Ce("load",t);break;case"details":Ce("toggle",t);break;case"input":Ce("invalid",t),Ko(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ce("invalid",t);break;case"textarea":Ce("invalid",t),Wo(t,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||n.suppressHydrationWarning===!0||ax(t.textContent,l)?(n.popover!=null&&(Ce("beforetoggle",t),Ce("toggle",t)),n.onScroll!=null&&Ce("scroll",t),n.onScrollEnd!=null&&Ce("scrollend",t),n.onClick!=null&&(t.onclick=el),t=!0):t=!1,t||zl(e,!0)}function ui(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:et=et.return}}function ta(e){if(e!==et)return!1;if(!Se)return ui(e),Se=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Fr(e.type,e.memoizedProps)),l=!l),l&&He&&zl(e),ui(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));He=Ex(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));He=Ex(e)}else t===27?(t=He,Il(e.type)?(e=Lr,Lr=null,He=e):He=t):He=et?Gt(e.stateNode.nextSibling):null;return!0}function vn(){He=et=null,Se=!1}function es(){var e=wl;return e!==null&&(Nt===null?Nt=e:Nt.push.apply(Nt,e),wl=null),e}function Pa(e){wl===null?wl=[e]:wl.push(e)}var ts=ot(null),bn=null,Nl=null;function _l(e,t,l){_e(ts,t._currentValue),t._currentValue=l}function Sl(e){e._currentValue=ts.current,Ie(ts)}function ii(e,t,l){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===l)break;e=e.return}}function ls(e,t,l,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var s=a.child;u=u.firstContext;e:for(;u!==null;){var x=u;u=a;for(var y=0;y<t.length;y++)if(x.context===t[y]){u.lanes|=l,x=u.alternate,x!==null&&(x.lanes|=l),ii(u.return,l,e),n||(s=null);break e}u=x.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(o(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),ii(s,l,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=l,s=a.alternate,s!==null&&(s.lanes|=l),ii(a.return,l,e),s=a.child,s=s!==null?s.sibling:null):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function pn(e,t,l,n){e=null;for(var a=t,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var x=a.type;Tt(a.pendingProps.value,s.value)||(e!==null?e.push(x):e=[x])}}else if(a===Xt.current){if(s=a.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Ma):e=[Ma])}a=a.return}return e!==null&&ls(t,e,l,n),t.flags|=262144,e!==null}function ci(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yn(e){bn=e,Nl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return Lf(bn,e)}function si(e,t){return bn===null&&yn(e),Lf(e,t)}function Lf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Nl===null){if(e===null)throw Error(o(308));Nl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Nl=Nl.next=t;return l}var Jm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Wm=i.unstable_scheduleCallback,Im=i.unstable_NormalPriority,Ze={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ns(){return{controller:new Jm,data:new Map,refCount:0}}function eu(e){e.refCount--,e.refCount===0&&Wm(Im,function(){e.controller.abort()})}function Hf(e,t){if((e.pendingLanes&4194048)!==0){var l=e.transitionTypes;for(l===null&&(l=e.transitionTypes=[]),e=0;e<t.length;e++){var n=t[e];l.indexOf(n)===-1&&l.push(n)}}}var tu=null;function $m(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var lu=null,as=0,Nn=0,la=null;function Pm(e,t){if(lu===null){var l=lu=[];as=0,Nn=yr(),la={status:"pending",value:void 0,then:function(n){l.push(n)}}}return as++,t.then(Uf,Uf),t}function Uf(){if(--as===0&&(tu=null,lu!==null)){la!==null&&(la.status="fulfilled");var e=lu;lu=null,Nn=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function eg(e,t){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var a=0;a<l.length;a++)(0,l[a])(t)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var qf=ue.S;ue.S=function(e,t){if(jd=At(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pm(e,t),tu!==null)for(var l=ya;l!==null;)Hf(l,tu),l=l.next;if(l=e.types,l!==null){for(var n=ya;n!==null;)Hf(n,l),n=n.next;if(Nn!==0){n=tu,n===null&&(n=tu=[]);for(var a=0;a<l.length;a++){var u=l[a];n.indexOf(u)===-1&&n.push(u)}}}qf!==null&&qf(e,t)};var Sn=ot(null);function us(){var e=Sn.current;return e!==null?e:Le.pooledCache}function ri(e,t){t===null?_e(Sn,Sn.current):_e(Sn,t.pool)}function Gf(){var e=us();return e===null?null:{parent:Ze._currentValue,pool:e}}var na=Error(o(460)),is=Error(o(474)),oi=Error(o(542)),fi={then:function(){}};function Yf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(el,el),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(el,el);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=n}},function(n){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vf(e),e}throw An=t,na}}function En(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(An=l,na):l}}var An=null;function Qf(){if(An===null)throw Error(o(459));var e=An;return An=null,e}function Vf(e){if(e===na||e===oi)throw Error(o(483))}var aa=null,nu=0;function di(e){var t=nu;return nu+=1,aa===null&&(aa=[]),Xf(aa,e,t)}function Rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(e,t){throw t.$$typeof===R?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zf(e){function t(B,M){if(e){var j=B.deletions;j===null?(B.deletions=[M],B.flags|=16):j.push(M)}}function l(B,M){if(!e)return null;for(;M!==null;)t(B,M),M=M.sibling;return null}function n(B){for(var M=new Map;B!==null;)B.key===null?M.set(B.index,B):M.set(B.key,B),B=B.sibling;return M}function a(B,M){return B=pl(B,M),B.index=0,B.sibling=null,B}function u(B,M,j){return B.index=j,e?(j=B.alternate,j!==null?(j=j.index,j<M?(B.flags|=2,M):j):(B.flags|=134217730,M)):(B.flags|=1048576,M)}function s(B){return e&&B.alternate===null&&(B.flags|=134217730),B}function x(B,M,j,q){return M===null||M.tag!==6?(M=Wc(j,B.mode,q),M.return=B,M):(M=a(M,j),M.return=B,M)}function y(B,M,j,q){var ce=j.type;return ce===A?(B=H(B,M,j.props.children,q,j.key),Rl(B,j),B):M!==null&&(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===J&&En(ce)===M.type)?(M=a(M,j.props),Rl(M,j),M.return=B,M):(M=li(j.type,j.key,j.props,null,B.mode,q),Rl(M,j),M.return=B,M)}function O(B,M,j,q){return M===null||M.tag!==4||M.stateNode.containerInfo!==j.containerInfo||M.stateNode.implementation!==j.implementation?(M=Ic(j,B.mode,q),M.return=B,M):(M=a(M,j.children||[]),M.return=B,M)}function H(B,M,j,q,ce){return M===null||M.tag!==7?(M=gn(j,B.mode,q,ce),M.return=B,M):(M=a(M,j),M.return=B,M)}function G(B,M,j){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Wc(""+M,B.mode,j),M.return=B,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case I:return j=li(M.type,M.key,M.props,null,B.mode,j),Rl(j,M),j.return=B,j;case W:return M=Ic(M,B.mode,j),M.return=B,M;case J:return M=En(M),G(B,M,j)}if(pe(M)||re(M))return M=gn(M,B.mode,j,null),M.return=B,M;if(typeof M.then=="function")return G(B,di(M),j);if(M.$$typeof===k)return G(B,si(B,M),j);xi(B,M)}return null}function T(B,M,j,q){var ce=M!==null?M.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return ce!==null?null:x(B,M,""+j,q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case I:return j.key===ce?y(B,M,j,q):null;case W:return j.key===ce?O(B,M,j,q):null;case J:return j=En(j),T(B,M,j,q)}if(pe(j)||re(j))return ce!==null?null:H(B,M,j,q,null);if(typeof j.then=="function")return T(B,M,di(j),q);if(j.$$typeof===k)return T(B,M,si(B,j),q);xi(B,j)}return null}function _(B,M,j,q,ce){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return B=B.get(j)||null,x(M,B,""+q,ce);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case I:return B=B.get(q.key===null?j:q.key)||null,y(M,B,q,ce);case W:return B=B.get(q.key===null?j:q.key)||null,O(M,B,q,ce);case J:return q=En(q),_(B,M,j,q,ce)}if(pe(q)||re(q))return B=B.get(j)||null,H(M,B,q,ce,null);if(typeof q.then=="function")return _(B,M,j,di(q),ce);if(q.$$typeof===k)return _(B,M,j,si(M,q),ce);xi(M,q)}return null}function ae(B,M,j,q){for(var ce=null,ke=null,xe=M,ve=M=0,We=null;xe!==null&&ve<j.length;ve++){xe.index>ve?(We=xe,xe=null):We=xe.sibling;var Fe=T(B,xe,j[ve],q);if(Fe===null){xe===null&&(xe=We);break}e&&xe&&Fe.alternate===null&&t(B,xe),M=u(Fe,M,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe,xe=We}if(ve===j.length)return l(B,xe),Se&&yl(B,ve),ce;if(xe===null){for(;ve<j.length;ve++)xe=G(B,j[ve],q),xe!==null&&(M=u(xe,M,ve),ke===null?ce=xe:ke.sibling=xe,ke=xe);return Se&&yl(B,ve),ce}for(xe=n(xe);ve<j.length;ve++)We=_(xe,B,ve,j[ve],q),We!==null&&(e&&(Fe=We.alternate,Fe!==null&&xe.delete(Fe.key===null?ve:Fe.key)),M=u(We,M,ve),ke===null?ce=We:ke.sibling=We,ke=We);return e&&xe.forEach(function(ln){return t(B,ln)}),Se&&yl(B,ve),ce}function fe(B,M,j,q){if(j==null)throw Error(o(151));for(var ce=null,ke=null,xe=M,ve=M=0,We=null,Fe=j.next();xe!==null&&!Fe.done;ve++,Fe=j.next()){xe.index>ve?(We=xe,xe=null):We=xe.sibling;var ln=T(B,xe,Fe.value,q);if(ln===null){xe===null&&(xe=We);break}e&&xe&&ln.alternate===null&&t(B,xe),M=u(ln,M,ve),ke===null?ce=ln:ke.sibling=ln,ke=ln,xe=We}if(Fe.done)return l(B,xe),Se&&yl(B,ve),ce;if(xe===null){for(;!Fe.done;ve++,Fe=j.next())Fe=G(B,Fe.value,q),Fe!==null&&(M=u(Fe,M,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe);return Se&&yl(B,ve),ce}for(xe=n(xe);!Fe.done;ve++,Fe=j.next())Fe=_(xe,B,ve,Fe.value,q),Fe!==null&&(e&&(We=Fe.alternate,We!==null&&xe.delete(We.key===null?ve:We.key)),M=u(Fe,M,ve),ke===null?ce=Fe:ke.sibling=Fe,ke=Fe);return e&&xe.forEach(function(w2){return t(B,w2)}),Se&&yl(B,ve),ce}function Ne(B,M,j,q){if(typeof j=="object"&&j!==null&&j.type===A&&j.key===null&&j.props.ref===void 0&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case I:e:{for(var ce=j.key;M!==null;){if(M.key===ce){if(ce=j.type,ce===A){if(M.tag===7){l(B,M.sibling),q=a(M,j.props.children),Rl(q,j),q.return=B,B=q;break e}}else if(M.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===J&&En(ce)===M.type){l(B,M.sibling),q=a(M,j.props),Rl(q,j),q.return=B,B=q;break e}l(B,M);break}else t(B,M);M=M.sibling}j.type===A?(q=gn(j.props.children,B.mode,q,j.key),Rl(q,j),q.return=B,B=q):(q=li(j.type,j.key,j.props,null,B.mode,q),Rl(q,j),q.return=B,B=q)}return s(B);case W:e:{for(ce=j.key;M!==null;){if(M.key===ce)if(M.tag===4&&M.stateNode.containerInfo===j.containerInfo&&M.stateNode.implementation===j.implementation){l(B,M.sibling),q=a(M,j.children||[]),q.return=B,B=q;break e}else{l(B,M);break}else t(B,M);M=M.sibling}q=Ic(j,B.mode,q),q.return=B,B=q}return s(B);case J:return j=En(j),Ne(B,M,j,q)}if(pe(j))return ae(B,M,j,q);if(re(j)){if(ce=re(j),typeof ce!="function")throw Error(o(150));return j=ce.call(j),fe(B,M,j,q)}if(typeof j.then=="function")return Ne(B,M,di(j),q);if(j.$$typeof===k)return Ne(B,M,si(B,j),q);xi(B,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,M!==null&&M.tag===6?(l(B,M.sibling),q=a(M,j),q.return=B,B=q):(l(B,M),q=Wc(j,B.mode,q),q.return=B,B=q),s(B)):l(B,M)}return function(B,M,j,q){try{nu=0;var ce=Ne(B,M,j,q);return aa=null,ce}catch(xe){if(xe===na||xe===oi)throw xe;var ke=bt(29,xe,null,B.mode);return ke.lanes=q,ke.return=B,ke}finally{}}}var Cn=Zf(!0),Kf=Zf(!1),Ll=!1;function cs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ul(e,t,l){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Be&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,t=ti(e),Bf(e,null,l),t}return ei(e,n,t,l),ti(e)}function au(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,wo(e,l)}}function rs(e,t){var l=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?a=u=t:u=u.next=t}else a=u=t;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var os=!1;function uu(){if(os){var e=la;if(e!==null)throw e}}function iu(e,t,l,n){os=!1;var a=e.updateQueue;Ll=!1;var u=a.firstBaseUpdate,s=a.lastBaseUpdate,x=a.shared.pending;if(x!==null){a.shared.pending=null;var y=x,O=y.next;y.next=null,s===null?u=O:s.next=O,s=y;var H=e.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==s&&(x===null?H.firstBaseUpdate=O:x.next=O,H.lastBaseUpdate=y))}if(u!==null){var G=a.baseState;s=0,H=O=y=null,x=u;do{var T=x.lane&-536870913,_=T!==x.lane;if(_?(Me&T)===T:(n&T)===T){T!==0&&T===Nn&&(os=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ae=e,fe=x;T=t;var Ne=l;switch(fe.tag){case 1:if(ae=fe.payload,typeof ae=="function"){G=ae.call(Ne,G,T);break e}G=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=fe.payload,T=typeof ae=="function"?ae.call(Ne,G,T):ae,T==null)break e;G=z({},G,T);break e;case 2:Ll=!0}}T=x.callback,T!==null&&(e.flags|=64,_&&(e.flags|=8192),_=a.callbacks,_===null?a.callbacks=[T]:_.push(T))}else _={lane:T,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(O=H=_,y=G):H=H.next=_,s|=T;if(x=x.next,x===null){if(x=a.shared.pending,x===null)break;_=x,x=_.next,_.next=null,a.lastBaseUpdate=_,a.shared.pending=null}}while(!0);H===null&&(y=G),a.baseState=y,a.firstBaseUpdate=O,a.lastBaseUpdate=H,u===null&&(a.shared.lanes=0),Zl|=s,e.lanes=s,e.memoizedState=G}}function Jf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Wf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Jf(l[e],t)}var ql=ot(null),hi=ot(0);function If(e,t){e=kl,_e(hi,e),_e(ql,t),kl=e|t.baseLanes}function fs(){_e(hi,kl),_e(ql,ql.current)}function ds(){kl=hi.current,Ie(ql),Ie(hi)}var ut=ot(null),ft=null;function Gl(e){var t=e.alternate;_e(it,it.current&1),_e(ut,e),ft===null&&(t===null||ql.current!==null||t.memoizedState!==null)&&(ft=e)}function xs(e){_e(it,it.current),_e(ut,e),ft===null&&(ft=e)}function $f(e){e.tag===22?(_e(it,it.current),_e(ut,e),ft===null&&(ft=e)):Yl()}function Yl(){_e(it,it.current),_e(ut,ut.current)}function Ft(e){Ie(ut),ft===e&&(ft=null),Ie(it)}var it=ot(0);function cu(e,t){_e(ut,ut.current),_e(it,t)}function hs(e){Ie(it),Ie(ut),ft===e&&(ft=null)}function mi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_r(l)||Rr(l)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)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 El=0,ye=null,Re=null,Ke=null,gi=!1,ua=!1,Mn=!1,vi=0,su=0,ia=null,tg=0;function Xe(){throw Error(o(321))}function ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Tt(e[l],t[l]))return!1;return!0}function gs(e,t,l,n,a,u){return El=u,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ue.H=e===null||e.memoizedState===null?z0:_0,Mn=!1,u=l(n,a),Mn=!1,ua&&(u=e0(t,l,n,a)),Pf(e),u}function Pf(e){ue.H=Ai;var t=Re!==null&&Re.next!==null;if(El=0,Ke=Re=ye=null,gi=!1,su=0,ia=null,t)throw Error(o(300));e===null||Je||(e=e.dependencies,e!==null&&ci(e)&&(Je=!0))}function e0(e,t,l,n){ye=e;var a=0;do{if(ua&&(ia=null),su=0,ua=!1,25<=a)throw Error(o(301));if(a+=1,Ke=Re=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}ue.H=rg,u=t(l,n)}while(ua);return u}function lg(){var e=ue.H,t=e.useState()[0];return t=typeof t.then=="function"?ru(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ye.flags|=1024),t}function vs(){var e=vi!==0;return vi=0,e}function bs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ps(e){if(gi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gi=!1}El=0,Ke=Re=ye=null,ua=!1,su=vi=0,ia=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ye.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ve(){if(Re===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ke===null?ye.memoizedState:Ke.next;if(t!==null)Ke=t,Re=e;else{if(e===null)throw ye.alternate===null?Error(o(467)):Error(o(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ke===null?ye.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function bi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ru(e){var t=su;return su+=1,ia===null&&(ia=[]),e=Xf(ia,e,t),t=ye,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,ue.H=t===null||t.memoizedState===null?z0:_0),e}function pi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ru(e);if(e.$$typeof===te)return;if(e.$$typeof===k)return at(e)}throw Error(o(438,String(e)))}function ys(e){var t=null,l=ye.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var n=ye.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=bi(),ye.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),n=0;n<e;n++)l[n]=Te;return t.index++,l}function Al(e,t){return typeof t=="function"?t(e):t}function yi(e){var t=Ve();return Ns(t,Re,e)}function Ns(e,t,l){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=l;var a=e.baseQueue,u=n.pending;if(u!==null){if(a!==null){var s=a.next;a.next=u.next,u.next=s}t.baseQueue=a=u,n.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var x=s=null,y=null,O=t,H=!1;do{var G=O.lane&-536870913;if(G!==O.lane?(Me&G)===G:(El&G)===G){var T=O.revertLane;if(T===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),G===Nn&&(H=!0);else if((El&T)===T){O=O.next,T===Nn&&(H=!0);continue}else G={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},y===null?(x=y=G,s=u):y=y.next=G,ye.lanes|=T,Zl|=T;G=O.action,Mn&&l(u,G),u=O.hasEagerState?O.eagerState:l(u,G)}else T={lane:G,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},y===null?(x=y=T,s=u):y=y.next=T,ye.lanes|=G,Zl|=G;O=O.next}while(O!==null&&O!==t);if(y===null?s=u:y.next=x,!Tt(u,e.memoizedState)&&(Je=!0,H&&(l=la,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=y,n.lastRenderedState=u}return a===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Ss(e){var t=Ve(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var n=l.dispatch,a=l.pending,u=t.memoizedState;if(a!==null){l.pending=null;var s=a=a.next;do u=e(u,s.action),s=s.next;while(s!==a);Tt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,n]}function t0(e,t,l){var n=ye,a=Ve(),u=Se;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var s=!Tt((Re||a).memoizedState,l);if(s&&(a.memoizedState=l,Je=!0),a=a.queue,Cs(a0.bind(null,n,a,e),[e]),e=a.getSnapshot!==t||s||Ke!==null&&(Ke.memoizedState.tag&1)!==0,ca(e?9:8,{destroy:void 0},n0.bind(null,n,a,l,t),null),e){if(n.flags|=2048,Le===null)throw Error(o(349));u||(El&127)!==0||l0(n,t,l)}return l}function l0(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ye.updateQueue,t===null?(t=bi(),ye.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function n0(e,t,l,n){t.value=l,t.getSnapshot=n,u0(t)&&i0(e)}function a0(e,t,l){return l(function(){u0(t)&&i0(e)})}function u0(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Tt(e,l)}catch{return!0}}function i0(e){var t=mn(e,2);t!==null&&St(t,e,2)}function Es(e){var t=xt();if(typeof e=="function"){var l=e;if(e=l(),Mn){Dl(!0);try{l()}finally{Dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:e},t}function c0(e,t,l,n){return e.baseState=l,Ns(e,Re,typeof n=="function"?n:Al)}function ng(e,t,l,n,a){if(Ei(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};ue.T!==null?l(!0):u.isTransition=!1,n(u),l=t.pending,l===null?(u.next=t.pending=u,s0(t,u)):(u.next=l.next,t.pending=l.next=u)}}function s0(e,t){var l=t.action,n=t.payload,a=e.state;if(t.isTransition){var u=ue.T,s={};s.types=u!==null?u.types:null,ue.T=s;try{var x=l(a,n),y=ue.S;y!==null&&y(s,x),r0(e,t,x)}catch(O){As(e,t,O)}finally{u!==null&&s.types!==null&&(u.types=s.types),ue.T=u}}else try{u=l(a,n),r0(e,t,u)}catch(O){As(e,t,O)}}function r0(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){o0(e,t,n)},function(n){return As(e,t,n)}):o0(e,t,l)}function o0(e,t,l){t.status="fulfilled",t.value=l,f0(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,s0(e,l)))}function As(e,t,l){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=l,f0(t),t=t.next;while(t!==n)}e.action=null}function f0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function d0(e,t){return t}function x0(e,t){if(Se){var l=Le.formState;if(l!==null){e:{var n=ye;if(Se){if(He){t:{for(var a=He,u=Ut;a.nodeType!==8;){if(!u){a=null;break t}if(a=Gt(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){He=Gt(a.nextSibling),n=a.data==="F!";break e}}zl(n)}n=!1}n&&(t=l[0])}}return l=xt(),l.memoizedState=l.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:d0,lastRenderedState:t},l.queue=n,l=O0.bind(null,ye,n),n.dispatch=l,n=Es(!1),u=Ds.bind(null,ye,!1,n.queue),n=xt(),a={state:t,dispatch:null,action:e,pending:null},n.queue=a,l=ng.bind(null,ye,a,u,l),a.dispatch=l,n.memoizedState=e,[t,l,!1]}function h0(e){var t=Ve();return m0(t,Re,e)}function m0(e,t,l){if(t=Ns(e,t,d0)[0],e=yi(Al)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ru(t)}catch(s){throw s===na?oi:s}else n=t;t=Ve();var a=t.queue,u=a.dispatch;return l!==t.memoizedState&&(ye.flags|=2048,ca(9,{destroy:void 0},ag.bind(null,a,l),null)),[n,u,e]}function ag(e,t){e.action=t}function g0(e){var t=Ve(),l=Re;if(l!==null)return m0(t,l,e);Ve(),t=t.memoizedState,l=Ve();var n=l.queue.dispatch;return l.memoizedState=e,[t,n,!1]}function ca(e,t,l,n){return e={tag:e,create:l,deps:n,inst:t,next:null},t=ye.updateQueue,t===null&&(t=bi(),ye.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(n=l.next,l.next=e,e.next=n,t.lastEffect=e),e}function v0(){return Ve().memoizedState}function Ni(e,t,l,n){var a=xt();ye.flags|=e,a.memoizedState=ca(1|t,{destroy:void 0},l,n===void 0?null:n)}function Si(e,t,l,n){var a=Ve();n=n===void 0?null:n;var u=a.memoizedState.inst;Re!==null&&n!==null&&ms(n,Re.memoizedState.deps)?a.memoizedState=ca(t,u,l,n):(ye.flags|=e,a.memoizedState=ca(1|t,u,l,n))}function b0(e,t){Ni(8390656,8,e,t)}function Cs(e,t){Si(2048,8,e,t)}function ug(e){ye.flags|=4;var t=ye.updateQueue;if(t===null)t=bi(),ye.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function p0(e){var t=Ve().memoizedState;return ug({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function y0(e,t){return Si(4,2,e,t)}function N0(e,t){return Si(4,4,e,t)}function S0(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function E0(e,t,l){l=l!=null?l.concat([e]):null,Si(4,4,S0.bind(null,t,e),l)}function Ms(){}function A0(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;return t!==null&&ms(t,n[1])?n[0]:(l.memoizedState=[e,t],e)}function C0(e,t){var l=Ve();t=t===void 0?null:t;var n=l.memoizedState;if(t!==null&&ms(t,n[1]))return n[0];if(n=e(),Mn){Dl(!0);try{e()}finally{Dl(!1)}}return l.memoizedState=[n,t],n}function ks(e,t,l){return l===void 0||(El&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=zd(),ye.lanes|=e,Zl|=e,l)}function M0(e,t,l,n){return Tt(l,t)?l:ql.current!==null?(e=ks(e,l,n),Tt(e,t)||(Je=!0),e):(El&106)===0||(El&1073741824)!==0&&(Me&261930)===0?(Je=!0,e.memoizedState=l):(e=zd(),ye.lanes|=e,Zl|=e,t)}function k0(e,t,l,n,a){var u=de.p;de.p=u!==0&&8>u?u:8;var s=ue.T,x={};x.types=s!==null?s.types:null,ue.T=x,Ds(e,!1,t,l);try{var y=a(),O=ue.S;if(O!==null&&O(x,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var H=eg(y,n);ou(e,t,H,jt(e))}else ou(e,t,n,jt(e))}catch(G){ou(e,t,{then:function(){},status:"rejected",reason:G},jt())}finally{de.p=u,s!==null&&x.types!==null&&(s.types=x.types),ue.T=s}}function ig(){}function Ts(e,t,l,n){if(e.tag!==5)throw Error(o(476));var a=T0(e).queue;k0(e,a,t,qe,l===null?ig:function(){return F0(e),l(n)})}function T0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qe,baseState:qe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:qe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Al,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function F0(e){var t=T0(e);t.next===null&&(t=e.alternate.memoizedState),ou(e,t.next.queue,{},jt())}function Fs(){return at(Ma)}function D0(){return Ve().memoizedState}function B0(){return Ve().memoizedState}function cg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=jt();e=Hl(l);var n=Ul(t,e,l);n!==null&&(St(n,t,l),au(n,t,l)),t={cache:ns()},e.payload=t;return}t=t.return}}function sg(e,t,l){var n=jt();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ei(e)?j0(t,l):(l=Kc(e,t,l,n),l!==null&&(St(l,e,n),w0(l,t,n)))}function O0(e,t,l){var n=jt();ou(e,t,l,n)}function ou(e,t,l,n){var a={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ei(e))j0(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,x=u(s,l);if(a.hasEagerState=!0,a.eagerState=x,Tt(x,s))return ei(e,t,a,0),Le===null&&Pu(),!1}catch{}finally{}if(l=Kc(e,t,a,n),l!==null)return St(l,e,n),w0(l,t,n),!0}return!1}function Ds(e,t,l,n){if(n={lane:2,revertLane:yr(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ei(e)){if(t)throw Error(o(479))}else t=Kc(e,l,n,2),t!==null&&St(t,e,2)}function Ei(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function j0(e,t){ua=gi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function w0(e,t,l){if((l&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,l|=n,t.lanes=l,wo(e,l)}}var Ai={readContext:at,use:pi,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useLayoutEffect:Xe,useInsertionEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useSyncExternalStore:Xe,useId:Xe,useHostTransitionStatus:Xe,useFormState:Xe,useActionState:Xe,useOptimistic:Xe,useMemoCache:Xe,useCacheRefresh:Xe,useEffectEvent:Xe},z0={readContext:at,use:pi,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:b0,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Ni(4194308,4,S0.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var l=xt();t=t===void 0?null:t;var n=e();if(Mn){Dl(!0);try{e()}finally{Dl(!1)}}return l.memoizedState=[n,t],n},useReducer:function(e,t,l){var n=xt();if(l!==void 0){var a=l(t);if(Mn){Dl(!0);try{l(t)}finally{Dl(!1)}}}else a=t;return n.memoizedState=n.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},n.queue=e,e=e.dispatch=sg.bind(null,ye,e),[n.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Es(e);var t=e.queue,l=O0.bind(null,ye,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ms,useDeferredValue:function(e,t){var l=xt();return ks(l,e,t)},useTransition:function(){var e=Es(!1);return e=k0.bind(null,ye,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var n=ye,a=xt();if(Se){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),Le===null)throw Error(o(349));(Me&127)!==0||l0(n,t,l)}a.memoizedState=l;var u={value:l,getSnapshot:t};return a.queue=u,b0(a0.bind(null,n,u,e),[e]),n.flags|=2048,ca(9,{destroy:void 0},n0.bind(null,n,u,l,t),null),l},useId:function(){var e=xt(),t=Le.identifierPrefix;if(Se){var l=ll,n=tl;l=(n&~(1<<32-Mt(n)-1)).toString(32)+l,t="_"+t+"R_"+l,l=vi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tg++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fs,useFormState:x0,useActionState:x0,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Ds.bind(null,ye,!0,l),l.dispatch=t,[e,t]},useMemoCache:ys,useCacheRefresh:function(){return xt().memoizedState=cg.bind(null,ye)},useEffectEvent:function(e){var t=xt(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},_0={readContext:at,use:pi,useCallback:A0,useContext:at,useEffect:Cs,useImperativeHandle:E0,useInsertionEffect:y0,useLayoutEffect:N0,useMemo:C0,useReducer:yi,useRef:v0,useState:function(){return yi(Al)},useDebugValue:Ms,useDeferredValue:function(e,t){var l=Ve();return M0(l,Re.memoizedState,e,t)},useTransition:function(){var e=yi(Al)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:t0,useId:D0,useHostTransitionStatus:Fs,useFormState:h0,useActionState:h0,useOptimistic:function(e,t){var l=Ve();return c0(l,Re,e,t)},useMemoCache:ys,useCacheRefresh:B0,useEffectEvent:p0},rg={readContext:at,use:pi,useCallback:A0,useContext:at,useEffect:Cs,useImperativeHandle:E0,useInsertionEffect:y0,useLayoutEffect:N0,useMemo:C0,useReducer:Ss,useRef:v0,useState:function(){return Ss(Al)},useDebugValue:Ms,useDeferredValue:function(e,t){var l=Ve();return Re===null?ks(l,e,t):M0(l,Re.memoizedState,e,t)},useTransition:function(){var e=Ss(Al)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ru(e),t]},useSyncExternalStore:t0,useId:D0,useHostTransitionStatus:Fs,useFormState:g0,useActionState:g0,useOptimistic:function(e,t){var l=Ve();return Re!==null?c0(l,Re,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:ys,useCacheRefresh:B0,useEffectEvent:p0};function Bs(e,t,l,n){t=e.memoizedState,l=l(n,t),l=l==null?t:z({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Os={enqueueSetState:function(e,t,l){e=e._reactInternals;var n=jt(),a=Hl(n);a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(St(t,e,n),au(t,e,n))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var n=jt(),a=Hl(n);a.tag=1,a.payload=t,l!=null&&(a.callback=l),t=Ul(e,a,n),t!==null&&(St(t,e,n),au(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=jt(),n=Hl(l);n.tag=2,t!=null&&(n.callback=t),t=Ul(e,n,l),t!==null&&(St(t,e,l),au(t,e,l))}};function R0(e,t,l,n,a,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,u,s):t.prototype&&t.prototype.isPureReactComponent?!Wa(l,n)||!Wa(a,u):!0}function L0(e,t,l,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,n),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function kn(e,t){var l=t;if("ref"in t){l={};for(var n in t)n!=="ref"&&(l[n]=t[n])}if(e=e.defaultProps){l===t&&(l=z({},l));for(var a in e)l[a]===void 0&&(l[a]=e[a])}return l}function H0(e){$u(e)}function U0(e){console.error(e)}function q0(e){$u(e)}function Ci(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function G0(e,t,l){try{var n=e.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function js(e,t,l){return l=Hl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ci(e,t)},l}function Y0(e){return e=Hl(e),e.tag=3,e}function X0(e,t,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;e.payload=function(){return a(u)},e.callback=function(){G0(t,l,n)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){G0(t,l,n),typeof a!="function"&&(Kl===null?Kl=new Set([this]):Kl.add(this));var x=n.stack;this.componentDidCatch(n.value,{componentStack:x!==null?x:""})})}function og(e,t,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,a,!0),l=ut.current,l!==null){switch(l.tag){case 31:case 13:case 19:return ft===null?Vi():l.alternate===null&&Qe===0&&(Qe=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===fi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([n]):t.add(n),vr(e,n,a)),!1;case 22:return l.flags|=65536,n===fi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([n]):l.add(n)),vr(e,n,a)),!1}throw Error(o(435,l.tag))}return vr(e,n,a),Vi(),!1}if(Se)return t=ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,n!==Pc&&(e=Error(o(422),{cause:n}),Pa(Rt(e,l)))):(n!==Pc&&(t=Error(o(423),{cause:n}),Pa(Rt(t,l))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,n=Rt(n,l),a=js(e.stateNode,n,a),rs(e,a),Qe!==4&&(Qe=2)),!1;var u=Error(o(520),{cause:n});if(u=Rt(u,l),bu===null?bu=[u]:bu.push(u),Qe!==4&&(Qe=2),t===null)return!0;n=Rt(n,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=a&-a,l.lanes|=e,e=js(l.stateNode,n,e),rs(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Kl===null||!Kl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=Y0(a),X0(a,e,l,n),rs(l,a),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var ws=Error(o(461)),Je=!1;function $e(e,t,l,n){t.child=e===null?Kf(t,null,l,n):Cn(t,e.child,l,n)}function Q0(e,t,l,n,a){l=l.render;var u=t.ref;if("ref"in n){var s={};for(var x in n)x!=="ref"&&(s[x]=n[x])}else s=n;return yn(t),n=gs(e,t,l,s,u,a),x=vs(),e!==null&&!Je?(bs(e,t,a),Cl(e,t,a)):(Se&&x&&ai(t),t.flags|=1,$e(e,t,n,a),t.child)}function V0(e,t,l,n,a){if(e===null){var u=l.type;return typeof u=="function"&&!Jc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Z0(e,t,u,n,a)):(e=li(l.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Gs(e,a)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Wa,l(s,n)&&e.ref===t.ref)return Cl(e,t,a)}return t.flags|=1,e=pl(u,n),e.ref=t.ref,e.return=t,t.child=e}function Z0(e,t,l,n,a){if(e!==null){var u=e.memoizedProps;if(Wa(u,n)&&e.ref===t.ref)if(Je=!1,t.pendingProps=n=u,Gs(e,a))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Cl(e,t,a)}return zs(e,t,l,n,a)}function K0(e,t,l,n){var a=n.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(n=t.child=e.child,a=0;n!==null;)a=a|n.lanes|n.childLanes,n=n.sibling;n=a&~u}else n=0,t.child=null;return J0(e,t,u,l,n)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ri(t,u!==null?u.cachePool:null),u!==null?If(t,u):fs(),$f(t);else return n=t.lanes=536870912,J0(e,t,u!==null?u.baseLanes|l:l,l,n)}else u!==null?(ri(t,u.cachePool),If(t,u),Yl(),t.memoizedState=null):(e!==null&&ri(t,null),fs(),Yl());return $e(e,t,a,l),t.child}function fu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function J0(e,t,l,n,a){var u=us();return u=u===null?null:{parent:Ze._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&ri(t,null),fs(),$f(t),e!==null&&pn(e,t,n,!0),t.childLanes=a,null}function Mi(e,t){return t=ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function W0(e,t,l){return Cn(t,e.child,null,l),e=Mi(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function fg(e,t,l){var n=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Se){if(n.mode==="hidden")return e=Mi(t,n),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},fu(null,e);if(xs(t),(e=He)?(e=Sx(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=jf(e),l.return=t,t.child=l,et=t,He=null)):e=null,e===null)throw zl(t);return t.lanes=536870912,null}return Mi(t,n)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(xs(t),a)if(t.flags&256)t.flags&=-257,t=W0(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Je||pn(e,t,l,!1),a=(l&e.childLanes)!==0,Je||a){if(ql.current===null){if(n=Le,n!==null&&(s=zo(n,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,mn(e,s),St(n,e,s),ws;Vi()}t=W0(e,t,l)}else e=u.treeContext,He=Gt(s.nextSibling),et=t,Se=!0,wl=null,Ut=!1,e!==null&&_f(t,e),t=Mi(t,n),t.flags|=134221824;return t}return e=pl(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function sa(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function zs(e,t,l,n,a){return yn(t),l=gs(e,t,l,n,void 0,a),n=vs(),e!==null&&!Je?(bs(e,t,a),Cl(e,t,a)):(Se&&n&&ai(t),t.flags|=1,$e(e,t,l,a),t.child)}function I0(e,t,l,n,a,u){return yn(t),t.updateQueue=null,l=e0(t,n,l,a),Pf(e),n=vs(),e!==null&&!Je?(bs(e,t,u),Cl(e,t,u)):(Se&&n&&ai(t),t.flags|=1,$e(e,t,l,u),t.child)}function $0(e,t,l,n,a){if(yn(t),t.stateNode===null){var u=$n,s=l.contextType;typeof s=="object"&&s!==null&&(u=at(s)),u=new l(n,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Os,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=n,u.state=t.memoizedState,u.refs={},cs(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?at(s):$n,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Bs(t,l,s,n),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Os.enqueueReplaceState(u,u.state,null),iu(t,n,u,a),uu(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){u=t.stateNode;var x=t.memoizedProps,y=kn(l,x);u.props=y;var O=u.context,H=l.contextType;s=$n,typeof H=="object"&&H!==null&&(s=at(H));var G=l.getDerivedStateFromProps;H=typeof G=="function"||typeof u.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,H||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(x||O!==s)&&L0(t,u,n,s),Ll=!1;var T=t.memoizedState;u.state=T,iu(t,n,u,a),uu(),O=t.memoizedState,x||T!==O||Ll?(typeof G=="function"&&(Bs(t,l,G,n),O=t.memoizedState),(y=Ll||R0(t,l,y,n,T,O,s))?(H||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=O),u.props=n,u.state=O,u.context=s,n=y):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{u=t.stateNode,ss(e,t),s=t.memoizedProps,H=kn(l,s),u.props=H,G=t.pendingProps,T=u.context,O=l.contextType,y=$n,typeof O=="object"&&O!==null&&(y=at(O)),x=l.getDerivedStateFromProps,(O=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==G||T!==y)&&L0(t,u,n,y),Ll=!1,T=t.memoizedState,u.state=T,iu(t,n,u,a),uu();var _=t.memoizedState;s!==G||T!==_||Ll||e!==null&&e.dependencies!==null&&ci(e.dependencies)?(typeof x=="function"&&(Bs(t,l,x,n),_=t.memoizedState),(H=Ll||R0(t,l,H,n,T,_,y)||e!==null&&e.dependencies!==null&&ci(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,_,y),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,_,y)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=_),u.props=n,u.state=_,u.context=y,n=H):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}return u=n,sa(e,t),n=(t.flags&128)!==0,u||n?(u=t.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&n?(t.child=Cn(t,e.child,null,a),t.child=Cn(t,null,l,a)):$e(e,t,l,a),t.memoizedState=u.state,e=t.child):e=Cl(e,t,a),e}function P0(e,t,l,n){return vn(),t.flags|=256,$e(e,t,l,n),t.child}var _s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rs(e){return{baseLanes:e,cachePool:Gf()}}function Ls(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function ed(e,t,l){var n=t.pendingProps,a=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Se){if(a?Gl(t):Yl(),(e=He)?(e=Sx(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:jl!==null?{id:tl,overflow:ll}:null,retryLane:536870912,hydrationErrors:null},l=jf(e),l.return=t,t.child=l,et=t,He=null)):e=null,e===null)throw zl(t);return Rr(e)?t.lanes=32:t.lanes=536870912,null}return u=n.children,n=n.fallback,a?(Yl(),a=t.mode,u=ki({mode:"hidden",children:u},a),n=gn(n,a,l,null),u.return=t,n.return=t,u.sibling=n,t.child=u,n=t.child,n.memoizedState=Rs(l),n.childLanes=Ls(e,s,l),t.memoizedState=_s,fu(null,n)):(Gl(t),Hs(t,u))}var x=e.memoizedState;if(x!==null){var y=x.dehydrated;if(y!==null)return dg(e,t,u,s,n,y,x,l)}return a?(Yl(),a=n.fallback,u=t.mode,x=e.child,y=x.sibling,n=pl(x,{mode:"hidden",children:n.children}),n.subtreeFlags=x.subtreeFlags&1206910976,y!==null?a=pl(y,a):(a=gn(a,u,l,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,fu(null,n),n=t.child,a=e.child.memoizedState,a===null?a=Rs(l):(u=a.cachePool,u!==null?(x=Ze._currentValue,u=u.parent!==x?{parent:x,pool:x}:u):u=Gf(),a={baseLanes:a.baseLanes|l,cachePool:u}),n.memoizedState=a,n.childLanes=Ls(e,s,l),t.memoizedState=_s,fu(e.child,n)):(Gl(t),l=e.child,e=l.sibling,l=pl(l,{mode:"visible",children:n.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Hs(e,t){return t=ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ki(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Ti(e,t,l){return Cn(t,e.child,null,l),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dg(e,t,l,n,a,u,s,x){if(l)return t.flags&256?(Gl(t),t.flags&=-257,Ti(e,t,x)):t.memoizedState!==null?(Yl(),t.child=e.child,t.flags|=128,null):(Yl(),u=a.fallback,s=t.mode,a=ki({mode:"visible",children:a.children},s),u=gn(u,s,x,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,Cn(t,e.child,null,x),a=t.child,a.memoizedState=Rs(x),a.childLanes=Ls(e,n,x),t.memoizedState=_s,fu(null,a));if(Gl(t),Rr(u)){if(n=u.nextSibling&&u.nextSibling.dataset,n)var y=n.dgst;return n=y,n!==""&&(a=Error(o(419)),a.stack="",a.digest=n,Pa({value:a,source:null,stack:null})),Ti(e,t,x)}if(Je||pn(e,t,x,!1),n=(x&e.childLanes)!==0,Je||n){if(ql.current!==null)return Ti(e,t,x);if(n=Le,n!==null&&(a=zo(n,x),a!==0&&a!==s.retryLane))throw s.retryLane=a,mn(e,a),St(n,e,a),ws;return _r(u)||Vi(),Ti(e,t,x)}return _r(u)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,He=Gt(u.nextSibling),et=t,Se=!0,wl=null,Ut=!1,e!==null&&_f(t,e),t=Hs(t,a.children),t.flags|=134221824,t)}function td(e,t,l){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ii(e.return,t,l)}function ld(e){for(var t=null;e!==null;){var l=e.alternate;l!==null&&mi(l)===null&&(t=e),e=e.sibling}return t}function Fi(e,t,l,n,a,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=l,s.tailMode=a,s.treeForkCount=u)}function Us(e){var t=e.child;for(e.child=null;t!==null;){var l=t.sibling;t.sibling=e.child,e.child=t,t=l}}function qs(e,t,l){var n=t.pendingProps,a=n.revealOrder,u=n.tail;n=n.children;var s=it.current;if(t.flags&128)return cu(t,s),null;var x=(s&2)!==0;if(x?(s=s&1|2,t.flags|=128):s&=1,cu(t,s),a==="backwards"&&e!==null?(Us(e),$e(e,t,n,l),Us(e)):$e(e,t,n,l),n=Se?$a:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&td(e,l,t);else if(e.tag===19)td(e,l,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}switch(a){case"backwards":l=ld(t.child),l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null,Us(t)),Fi(t,!0,a,null,u,n);break;case"unstable_legacy-backwards":for(l=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&mi(e)===null){t.child=a;break}e=a.sibling,a.sibling=l,l=a,a=e}Fi(t,!0,l,null,u,n);break;case"together":Fi(t,!1,null,null,void 0,n);break;case"independent":t.memoizedState=null;break;default:l=ld(t.child),l===null?(a=t.child,t.child=null):(a=l.sibling,l.sibling=null),Fi(t,!1,a,l,u,n)}return t.child}function nd(e,t,l){var n=t.pendingProps;return _l(t,t.type,n.value),$e(e,t,n.children,l),t.child}function Cl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=pl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=pl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Gs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ci(e)))}function xg(e,t,l){switch(t.tag){case 3:xl(t,t.stateNode.containerInfo),_l(t,Ze,e.memoizedState.cache),vn();break;case 27:case 5:rn(t);break;case 4:xl(t,t.stateNode.containerInfo);break;case 10:_l(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xs(t),null;break;case 13:var n=t.memoizedState;if(n!==null){if(n.dehydrated!==null)return Gl(t),t.flags|=128,null;n=pn(e,t,l,!1);var a=t.child.childLanes;return n||(l&a)!==0?ed(e,t,l):(Gl(t),e=Cl(e,t,l),e!==null?e.sibling:null)}Gl(t);break;case 19:if(t.flags&128)return qs(e,t,l);if(a=(e.flags&128)!==0,n=(l&t.childLanes)!==0,n||(pn(e,t,l,!1),n=(l&t.childLanes)!==0),a){if(n)return qs(e,t,l);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),cu(t,it.current),n)break;return null;case 22:return t.lanes=0,K0(e,t,l,t.pendingProps);case 24:_l(t,Ze,e.memoizedState.cache)}return Cl(e,t,l)}function ad(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Gs(e,l)&&(t.flags&128)===0)return Je=!1,xg(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,Se&&(t.flags&1048576)!==0&&zf(t,$a,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=En(t.elementType),t.type=e,typeof e=="function")Jc(e)?(n=kn(e,n),t.tag=1,t=$0(null,t,e,n,l)):(t.tag=0,t=zs(null,t,e,n,l));else{if(e!=null){var a=e.$$typeof;if(a===F){t.tag=11,t=Q0(null,t,e,n,l);break e}else if(a===$){t.tag=14,t=V0(null,t,e,n,l);break e}else if(a===k){t.tag=10,t.type=e,t=nd(null,t,l);break e}}throw t=me(e)||e,Error(o(306,t,""))}}return t;case 0:return zs(e,t,t.type,t.pendingProps,l);case 1:return n=t.type,a=kn(n,t.pendingProps),$0(e,t,n,a,l);case 3:e:{if(xl(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var u=t.memoizedState;a=u.element,ss(e,t),iu(t,n,null,l);var s=t.memoizedState;if(n=s.cache,_l(t,Ze,n),n!==u.cache&&ls(t,[Ze],l,!0),uu(),n=s.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=P0(e,t,n,l);break e}else if(n!==a){a=Rt(Error(o(424)),t),Pa(a),t=P0(e,t,n,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Gt(e.firstChild),et=t,Se=!0,wl=null,Ut=!0,l=Kf(t,null,n,l),t.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(vn(),n===a){t=Cl(e,t,l);break e}$e(e,t,n,l)}t=t.child}return t;case 26:return sa(e,t),e===null?(l=Fx(t.type,null,t.pendingProps,null))?t.memoizedState=l:Se||(t.stateNode=sx(t.type,t.pendingProps,dl.current,t)):t.memoizedState=Fx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return rn(t),e===null&&Se&&(n=t.stateNode=Cx(t.type,t.pendingProps,dl.current),et=t,Ut=!0,a=He,Il(t.type)?(Lr=a,He=Gt(n.firstChild)):He=a),$e(e,t,t.pendingProps.children,l),sa(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Se&&((a=n=He)&&(n=c2(n,t.type,t.pendingProps,Ut),n!==null?(t.stateNode=n,et=t,He=Gt(n.firstChild),Ut=!1,a=!0):a=!1),a||zl(t)),rn(t),a=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,n=u.children,Fr(a,u)?n=null:s!==null&&Fr(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=gs(e,t,lg,null,null,l),Ma._currentValue=a),sa(e,t),$e(e,t,n,l),t.child;case 6:return e===null&&Se&&((e=l=He)&&(l=s2(l,t.pendingProps,Ut),l!==null?(t.stateNode=l,et=t,He=null,e=!0):e=!1),e||zl(t)),null;case 13:return ed(e,t,l);case 4:return xl(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Cn(t,null,n,l):$e(e,t,n,l),t.child;case 11:return Q0(e,t,t.type,t.pendingProps,l);case 7:return n=t.pendingProps,sa(e,t),$e(e,t,n,l),t.child;case 8:return $e(e,t,t.pendingProps.children,l),t.child;case 12:return $e(e,t,t.pendingProps.children,l),t.child;case 10:return nd(e,t,l);case 9:return a=t.type._context,n=t.pendingProps.children,yn(t),a=at(a),n=n(a),t.flags|=1,$e(e,t,n,l),t.child;case 14:return V0(e,t,t.type,t.pendingProps,l);case 15:return Z0(e,t,t.type,t.pendingProps,l);case 19:return qs(e,t,l);case 31:return fg(e,t,l);case 22:return K0(e,t,l,t.pendingProps);case 24:return yn(t),n=at(Ze),e===null?(a=us(),a===null&&(a=Le,u=ns(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),t.memoizedState={parent:n,cache:a},cs(t),_l(t,Ze,a)):((e.lanes&l)!==0&&(ss(e,t),iu(t,null,null,l),uu()),a=e.memoizedState,u=t.memoizedState,a.parent!==n?(a={parent:n,cache:n},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),_l(t,Ze,n)):(n=u.cache,_l(t,Ze,n),n!==a.cache&&ls(t,[Ze],l,!0))),$e(e,t,t.pendingProps.children,l),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=t.pendingProps,n.name!=null&&n.name!=="auto"?t.flags|=e===null?18882560:18874368:Se&&ai(t),e!==null&&e.memoizedProps.name!==n.name?t.flags|=4194816:sa(e,t),$e(e,t,n.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Ml(e){e.flags|=4}function Ys(e,t,l,n,a){var u;if((u=(e.mode&32)!==0)&&(u=l===null?jx(t,n):jx(t,n)&&(n.src!==l.src||n.srcSet!==l.srcSet)),u){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw An=fi,is}else e.flags&=-16777217}function ud(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wx(t))if(Hd())e.flags|=8192;else throw An=fi,is}function Di(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oo():536870912,e.lanes|=t,xa|=t)}function du(e,t){if(!Se)switch(e.tailMode){case"visible":break;case"collapsed":for(var l=e.tail,n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(t=e.tail,l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,n=0;if(t)for(var a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&1206910976,n|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=l,t}function hg(e,t,l){var n=t.pendingProps;switch($c(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sl(Ze),$t(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ta(t)?Ml(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,es())),Ue(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(Ml(t),u!==null?(Ue(t),ud(t,u)):(Ue(t),Ys(t,a,null,n,l))):u?u!==e.memoizedState?(Ml(t),Ue(t),ud(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Ml(t),Ue(t),Ys(t,a,e,n,l)),null;case 27:if(Fl(t),l=dl.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ue(t),t.subtreeFlags&=-33554433,null}e=gt.current,ta(t)?Rf(t):(e=Cx(a,n,l),t.stateNode=e,Ml(t))}return Ue(t),t.subtreeFlags&=-33554433,null;case 5:if(Fl(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ue(t),t.subtreeFlags&=-33554433,null}if(u=gt.current,ta(t))Rf(t);else{var s=Eu(dl.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof n.is=="string"?s.createElement("select",{is:n.is}):s.createElement("select"),n.multiple?u.multiple=!0:n.size&&(u.size=n.size);break;default:u=typeof n.is=="string"?s.createElement(a,{is:n.is}):s.createElement(a)}}u[nt]=t,u[vt]=n;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(st(u,a,n),a){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ml(t)}}return Ue(t),t.subtreeFlags&=-33554433,Ys(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Ml(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=dl.current,ta(t)){if(e=t.stateNode,l=t.memoizedProps,n=null,a=et,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}e[nt]=t,e=!!(e.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||ax(e.nodeValue,l)),e||zl(t,!0)}else e=Eu(e).createTextNode(n),e[nt]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(n=ta(t),l!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[nt]=t}else vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ue(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=ta(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[nt]=t}else vn(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),a=!1}else a=es(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(t),(t.flags&128)!==0?(t.lanes=l,t):(l=n!==null,e=e!==null&&e.memoizedState!==null,l&&(n=t.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Di(t,t.updateQueue),Ue(t),null);case 4:return $t(),e===null&&Ar(t.stateNode.containerInfo),t.flags|=67108864,Ue(t),null;case 10:return Sl(t.type),Ue(t),null;case 19:if(hs(t),n=t.memoizedState,n===null)return Ue(t),null;if(a=(t.flags&128)!==0,u=n.rendering,u===null)if(a)du(n,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=mi(e),u!==null){for(t.flags|=128,du(n,!1),e=u.updateQueue,t.updateQueue=e,Di(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Of(l,e),l=l.sibling;return cu(t,it.current&1|2),Se&&yl(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&At()>Gi&&(t.flags|=128,a=!0,du(n,!1),t.lanes=4194304)}else{if(!a)if(e=mi(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Di(t,e),du(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!u.alternate&&!Se)return Ue(t),null}else 2*At()-n.renderingStartTime>Gi&&l!==536870912&&(t.flags|=128,a=!0,du(n,!1),t.lanes=4194304);n.isBackwards?(u.sibling=t.child,t.child=u):(e=n.last,e!==null?e.sibling=u:t.child=u,n.last=u)}if(n.tail!==null){e=n.tail;e:{for(l=e;l!==null;){if(l.alternate!==null){l=!1;break e}l=l.sibling}l=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=At(),e.sibling=null,u=it.current,u=a?u&1|2:u&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!l||Se?cu(t,u):(l=u,_e(ut,t),_e(it,l),ft===null&&(ft=t)),Se&&yl(t,n.treeForkCount),e}return Ue(t),null;case 22:case 23:return Ft(t),ds(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&Di(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==l&&(t.flags|=2048),e!==null&&Ie(Sn),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sl(Ze),Ue(t),null;case 25:return null;case 30:return t.flags|=33554432,Ue(t),null}throw Error(o(156,t.tag))}function mg(e,t){switch($c(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sl(Ze),$t(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fl(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(o(340));vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));vn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return hs(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return $t(),null;case 10:return Sl(t.type),null;case 22:case 23:return Ft(t),ds(),e!==null&&Ie(Sn),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sl(Ze),null;case 25:return null;default:return null}}function id(e,t){switch($c(t),t.tag){case 3:Sl(Ze),$t();break;case 26:case 27:case 5:Fl(t);break;case 4:$t();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:hs(t);break;case 10:Sl(t.type);break;case 22:case 23:Ft(t),ds(),e!==null&&Ie(Sn);break;case 24:Sl(Ze)}}function xu(e,t){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&e)===e){n=void 0;var u=l.create,s=l.inst;n=u(),s.destroy=n}l=l.next}while(l!==a)}}catch(x){we(t,t.return,x)}}function Xl(e,t,l){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&e)===e){var s=n.inst,x=s.destroy;if(x!==void 0){s.destroy=void 0,a=t;var y=l,O=x;try{O()}catch(H){we(a,y,H)}}}n=n.next}while(n!==u)}}catch(H){we(t,t.return,H)}}function cd(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Wf(t,l)}catch(n){we(e,e.return,n)}}}function sd(e,t,l){l.props=kn(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(n){we(e,t,n)}}function nl(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var a=e.stateNode,u=vl(e.memoizedProps,a);(a.ref===null||a.ref.name!==u)&&(a.ref=mx(u)),n=a.ref;break;case 7:if(e.stateNode===null){var s=new wt(e);m(e.child,!1,u2,s,void 0,void 0),e.stateNode=s}n=e.stateNode;break;default:n=e.stateNode}typeof l=="function"?e.refCleanup=l(n):l.current=n}}catch(x){we(e,t,x)}}function ct(e,t){var l=e.ref,n=e.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){we(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){we(e,t,a)}else l.current=null}function Bi(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var l=0;l<t.length;l++)Nx(e.stateNode,t[l])}function rd(e){for(var t=e.return;t!==null&&(Qs(t)&&Nx(e.stateNode,t.stateNode),!Xs(t));)t=t.return}function hu(e){for(var t=e.return;t!==null&&(Qs(t)&&i2(e.stateNode,t.stateNode),!Xs(t));)t=t.return}function Xs(e){return e.tag===5||e.tag===3||e.tag===27}function Qs(e){return e&&e.tag===7&&e.stateNode!==null}function Vs(e){var t=e.type,l=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break e;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){we(e,e.return,a)}}function Zs(e,t,l){try{var n=e.stateNode;qg(n,e.type,l,t),n[vt]=t}catch(a){we(e,e.return,a)}}function od(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Il(e.type)||e.tag===4}function Ks(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||od(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.tag===27&&Il(e.type)||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 Js(e,t,l,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(a),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=el)),Bi(e,n),De=!0;else if(a!==4&&(a===27&&(Bi(e,n),n=null,Il(e.type)&&(l=e.stateNode,t=null)),e=e.child,e!==null))for(Js(e,t,l,n),e=e.sibling;e!==null;)Js(e,t,l,n),e=e.sibling}function Oi(e,t,l,n){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?l.insertBefore(a,t):l.appendChild(a),Bi(e,n),De=!0;else if(a!==4&&(a===27&&(Bi(e,n),n=null,Il(e.type)&&(l=e.stateNode)),e=e.child,e!==null))for(Oi(e,t,l,n),e=e.sibling;e!==null;)Oi(e,t,l,n),e=e.sibling}function fd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var n=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);st(t,n,l),t[nt]=e,t[vt]=l}catch(u){we(e,e.return,u)}}var ji=!1,Dt=null;function dd(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(ji=!0)}var al=null;function xd(){var e=al;return al=null,e}var pt=0;function ra(e,t,l,n,a){return pt=0,hd(e.child,t,l,n,a)}function hd(e,t,l,n,a){for(var u=!1;e!==null;){if(e.tag===5){var s=e.stateNode;if(n!==null){var x=Or(s);n.push(x),x.view&&(u=!0)}else u||Or(s).view&&(u=!0);ji=!0,xx(s,pt===0?t:t+"_"+pt,l),pt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||hd(e.child,t,l,n,a)&&(u=!0));e=e.sibling}return u}function ul(e,t){for(;e!==null;)e.tag===5?hx(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ul(e.child,t)),e=e.sibling}function wi(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(wi(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var l=t.name;t=bl(t.default,t.share),t!=="none"&&(ra(e,l,t,null,!1)||ul(e.child,!1))}e=e.sibling}}function Ws(e,t){if(e.tag===30){var l=e.stateNode,n=e.memoizedProps,a=vl(n,l),u=bl(n.default,l.paired?n.share:n.enter);u!=="none"?ra(e,a,u,null,!1)?(wi(e),l.paired||t||va(e,n.onEnter)):ul(e.child,!1):wi(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Ws(e,t),e=e.sibling;else wi(e)}function Is(e){if(Dt!==null&&Dt.size!==0){var t=Dt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var l=e.memoizedProps,n=l.name;if(n!=null&&n!=="auto"){var a=t.get(n);if(a!==void 0){var u=bl(l.default,l.share);if(u!=="none"&&(ra(e,n,u,null,!1)?(u=e.stateNode,a.paired=u,u.paired=a,va(e,l.onShare)):ul(e.child,!1)),t.delete(n),t.size===0)break}}}Is(e)}e=e.sibling}}}function $s(e){if(e.tag===30){var t=e.memoizedProps,l=vl(t,e.stateNode),n=Dt!==null?Dt.get(l):void 0,a=bl(t.default,n!==void 0?t.share:t.exit);a!=="none"&&(ra(e,l,a,null,!1)?n!==void 0?(a=e.stateNode,n.paired=a,a.paired=n,Dt.delete(l),va(e,t.onShare)):va(e,t.onExit):ul(e.child,!1)),Dt!==null&&Is(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)$s(e),e=e.sibling;else Dt!==null&&Is(e)}function md(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,l=vl(t,e.stateNode);t=bl(t.default,t.update),e.flags&=-5,t!=="none"&&ra(e,l,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&md(e);e=e.sibling}}function Ps(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,ul(e.child,!1))}Ps(e)}e=e.sibling}}function zi(e){if(e.tag===30)e.stateNode.paired=null,ul(e.child,!1),Ps(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)zi(e),e=e.sibling;else Ps(e)}function gd(e){for(e=e.child;e!==null;)e.tag===30?ul(e.child,!1):(e.subtreeFlags&33554432)!==0&&gd(e),e=e.sibling}function er(e,t,l,n,a,u,s){for(var x=!1;t!==null;){if(t.tag===5){var y=t.stateNode;if(u!==null&&pt<u.length){var O=u[pt],H=Or(y);(O.view||H.view)&&(x=!0);var G;if(G=(e.flags&4)===0)if(H.clip)G=!0;else{G=O.rect;var T=H.rect;G=G.y!==T.y||G.x!==T.x||G.height!==T.height||G.width!==T.width}G&&(e.flags|=4),H.abs?H=!O.abs:(O=O.rect,H=H.rect,H=O.height!==H.height||O.width!==H.width),H&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&xx(y,pt===0?l:l+"_"+pt,a),x&&(e.flags&4)!==0||(al===null&&(al=[]),al.push(y,pt===0?n:n+"_"+pt,t.memoizedProps)),pt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&s?e.flags|=t.flags&32:er(e,t.child,l,n,a,u,s)&&(x=!0));t=t.sibling}return x}function vd(e,t){for(e=e.child;e!==null;){if(e.tag===30){var l=e.memoizedProps,n=e.stateNode,a=vl(l,n),u=bl(l.default,l.update),s;s=e.memoizedState,e.memoizedState=null,n=e;var x=e.child;pt=0,a=er(n,x,a,a,u,s,!1),(e.flags&4)!==0&&a&&va(e,l.onUpdate)}else(e.subtreeFlags&33554432)!==0&&vd(e);e=e.sibling}}var tt=!1,Oe=!1,il=!1,tr=!1,bd=typeof WeakSet=="function"?WeakSet:Set,lt=null,cl=!1,mu=!1,_i=!1,lr=!1;function gg(e,t,l){if(e=e.containerInfo,kr=ka,e=Sf(e),Gc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var u=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var x=0,y=-1,O=-1,H=0,G=0,T=e,_=null;t:for(;;){for(var ae;T!==n||u!==0&&T.nodeType!==3||(y=x+u),T!==s||a!==0&&T.nodeType!==3||(O=x+a),T.nodeType===3&&(x+=T.nodeValue.length),(ae=T.firstChild)!==null;)_=T,T=ae;for(;;){if(T===e)break t;if(_===n&&++H===u&&(y=x),_===s&&++G===a&&(O=x),(ae=T.nextSibling)!==null)break;T=_,_=T.parentNode}T=ae}n=y===-1||O===-1?null:{start:y,end:O}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tr={focusedElem:e,selectionRange:n},ka=!1,l=(l&335544064)===l,lt=t,t=l?9270:1024;lt!==null;){if(e=lt,l&&(n=e.deletions,n!==null))for(u=0;u<n.length;u++)l&&$s(n[u]);if(e.alternate===null&&(e.flags&2)!==0)l&&dd(e),Ri(l);else{if(e.tag===22){if(n=e.alternate,e.memoizedState!==null){n!==null&&n.memoizedState===null&&l&&$s(n),Ri(l);continue}else if(n!==null&&n.memoizedState!==null){l&&dd(e),Ri(l);continue}}n=e.child,(e.subtreeFlags&t)!==0&&n!==null?(n.return=e,lt=n):(l&&md(e),Ri(l))}}Dt=null}function Ri(e){for(;lt!==null;){var t=lt,l=e,n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&n!==null){l=void 0,a=n.memoizedProps,n=n.memoizedState;var u=t.stateNode;try{var s=kn(t.type,a);l=u.getSnapshotBeforeUpdate(s,n),u.__reactInternalSnapshotBeforeUpdate=l}catch(x){we(t,t.return,x)}}break;case 3:if((a&1024)!==0){if(n=t.stateNode.containerInfo,l=n.nodeType,l===9)zr(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":zr(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&n!==null&&(l=vl(n.memoizedProps,n.stateNode),a=t.memoizedProps,a=bl(a.default,a.update),a!=="none"&&ra(n,l,a,n.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(o(163))}if(n=t.sibling,n!==null){n.return=t.return,lt=n;break}lt=t.return}}function pd(e,t,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:sl(e,l),n&4&&xu(5,l);break;case 1:if(sl(e,l),n&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){we(l,l.return,s)}else{var a=kn(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){we(l,l.return,s)}}n&64&&cd(l),n&512&&nl(l,l.return);break;case 3:if(sl(e,l),n&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Wf(e,t)}catch(s){we(l,l.return,s)}}break;case 27:t===null&&n&4&&fd(l);case 26:case 5:sl(e,l),t===null&&n&4&&Vs(l),n&512&&nl(l,l.return);break;case 12:sl(e,l);break;case 31:sl(e,l),n&4&&Ed(e,l);break;case 13:sl(e,l),n&4&&Ad(e,l),n&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Tg.bind(null,l),r2(e,l))));break;case 22:if(n=l.memoizedState!==null||tt,!n){var u=t!==null&&t.memoizedState!==null||Oe;t=tt,a=Oe,tt=n,(Oe=u)&&!a?(n=2,(l.subtreeFlags&8772)!==0&&(n|=1),Kt(e,l,n)):sl(e,l),tt=t,Oe=a}break;case 30:sl(e,l),n&512&&nl(l,l.return);break;case 7:n&512&&nl(l,l.return);default:sl(e,l)}}function nr(e,t){for(e=e.child;e!==null;)yd(e,t),e=e.sibling}function yd(e,t){switch(e.tag){case 5:case 26:try{var l=e.stateNode;if(t){var n=l.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var a=e.stateNode,u=e.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null;a.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(y){we(e,e.return,y)}ar(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,De=!0}catch(y){we(e,e.return,y)}break;case 18:try{var x=e.stateNode;t?dx(x,!0):dx(e.stateNode,!1)}catch(y){we(e,e.return,y)}break;case 22:case 23:e.memoizedState===null&&nr(e,t);break;default:nr(e,t)}}function ar(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var l=e,n=t;switch(l.tag){case 4:yd(l,n);break e;case 22:l.memoizedState===null&&ar(l,n);break e;default:ar(l,n)}}e=e.sibling}}function Nd(e){var t=e.alternate;t!==null&&(e.alternate=null,Nd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Gu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ge=null,yt=!1;function Vt(e,t,l){for(l=l.child;l!==null;)Sd(e,t,l),l=l.sibling}function Sd(e,t,l){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(La,l)}catch{}switch(l.tag){case 26:Oe||ct(l,t),Vt(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Oe&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Oe||ct(l,t),hu(l);var n=Ge,a=yt;Il(l.type)&&(Ge=l.stateNode,yt=!1),Vt(e,t,l),Mx(l.stateNode,l.type,l.memoizedProps),Ge=n,yt=a;break;case 5:Oe||ct(l,t),hu(l);case 6:if(l.tag===6&&hu(l),n=Ge,a=yt,Ge=null,Vt(e,t,l),Ge=n,yt=a,Ge!==null)if(yt)try{(Ge.nodeType===9?Ge.body:Ge.nodeName==="HTML"?Ge.ownerDocument.body:Ge).removeChild(l.stateNode),De=!0}catch(u){we(l,t,u)}else try{Ge.removeChild(l.stateNode),De=!0}catch(u){we(l,t,u)}break;case 18:Ge!==null&&(yt?(e=Ge,fx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ta(e)):fx(Ge,l.stateNode));break;case 4:n=Ge,a=yt,Ge=l.stateNode.containerInfo,yt=!0,Vt(e,t,l),Ge=n,yt=a;break;case 0:case 11:case 14:case 15:Xl(2,l,t),Oe||Xl(4,l,t),Vt(e,t,l);break;case 1:Oe||(ct(l,t),n=l.stateNode,typeof n.componentWillUnmount=="function"&&sd(l,t,n)),Vt(e,t,l);break;case 21:Vt(e,t,l);break;case 22:Oe=(n=Oe)||l.memoizedState!==null,Vt(e,t,l),Oe=n;break;case 30:ct(l,t),Vt(e,t,l);break;case 7:Oe||ct(l,t),Vt(e,t,l);break;default:Vt(e,t,l)}}function Ed(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ta(e)}catch(l){we(t,t.return,l)}}}function Ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ta(e)}catch(l){we(t,t.return,l)}}function vg(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new bd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new bd),t;default:throw Error(o(435,e.tag))}}function Li(e,t){var l=vg(e);t.forEach(function(n){if(!l.has(n)){l.add(n);var a=Fg.bind(null,e,n);n.then(a,a)}})}function ht(e,t,l){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],s=e,x=t,y=x;e:for(;y!==null;){switch(y.tag){case 27:if(Il(y.type)){Ge=y.stateNode,yt=!1;break e}break;case 5:Ge=y.stateNode,yt=!1;break e;case 3:case 4:Ge=y.stateNode.containerInfo,yt=!0;break e}y=y.return}if(Ge===null)throw Error(o(160));Sd(s,x,u),Ge=null,yt=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cd(t,e,l),t=t.sibling}var Zt=null;function Cd(e,t,l){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(n=e.updateQueue,n=n!==null?n.events:null,n!==null))for(var u=0;u<n.length;u++){var s=n[u];s.ref.impl=s.nextImpl}ht(t,e,l),mt(e),a&4&&(Xl(3,e,e.return),xu(3,e),Xl(5,e,e.return));break;case 1:ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),a&64&&tt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?t:l.concat(t))));break;case 26:if(u=Zt,ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),a&4)if(a=n!==null?n.memoizedState:null,l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null)if(tt)e.stateNode=sx(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,l=e.memoizedProps,a=u.ownerDocument||u;t:switch(t){case"title":n=a.getElementsByTagName("title")[0],(!n||n[qa]||n[nt]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=a.createElement(t),a.head.insertBefore(n,a.querySelector("head > title"))),st(n,t,l),n[nt]=e,Pe(n),t=n;break e;case"link":if(u=Ox("link","href",a).get(t+(l.href||""))){for(s=0;s<u.length;s++)if(n=u[s],n.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&n.getAttribute("rel")===(l.rel==null?null:l.rel)&&n.getAttribute("title")===(l.title==null?null:l.title)&&n.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(s,1);break t}}n=a.createElement(t),st(n,t,l),a.head.appendChild(n);break;case"meta":if(u=Ox("meta","content",a).get(t+(l.content||""))){for(s=0;s<u.length;s++)if(n=u[s],n.getAttribute("content")===(l.content==null?null:""+l.content)&&n.getAttribute("name")===(l.name==null?null:l.name)&&n.getAttribute("property")===(l.property==null?null:l.property)&&n.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&n.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(s,1);break t}}n=a.createElement(t),st(n,t,l),a.head.appendChild(n);break;default:throw Error(o(468,t))}n[nt]=e,Pe(n),t=n}e.stateNode=t}else tt||Gr(u,e.type,e.stateNode);else e.stateNode=Bx(u,l,e.memoizedProps);else a!==l?(a===null?(t=n.stateNode,t===null||Oe||t.parentNode.removeChild(t)):a.count--,l===null?tt||Gr(u,e.type,e.stateNode):Bx(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Zs(e,e.memoizedProps,n.memoizedProps);break;case 27:ht(t,e,l),mt(e),a&512&&(Oe||n===null||ct(n,n.return)),n!==null&&a&4&&Zs(e,e.memoizedProps,n.memoizedProps);break;case 5:if(u=il,il=!1,ht(t,e,l),il=u,mt(e),a&512&&(Oe||n===null||ct(n,n.return)),e.flags&32){t=e.stateNode;try{Qn(t,""),De=!0}catch(H){we(e,e.return,H)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Zs(e,t,n!==null?n.memoizedProps:t)),a&1024&&(tr=!0);break;case 6:if(ht(t,e,l),mt(e),a&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,l=e.stateNode;try{l.nodeValue=t,De=!0}catch(H){we(e,e.return,H)}}break;case 3:if(De=!1,Pi=null,u=Zt,Zt=Au(t.containerInfo),ht(t,e,l),Zt=u,mt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Ta(t.containerInfo)}catch(H){we(e,e.return,H)}tr&&(tr=!1,Md(e)),De=!1;break;case 4:a=il,il=tt,n=Qo(),u=Zt,Zt=Au(e.stateNode.containerInfo),ht(t,e,l),mt(e),Zt=u,De&&mu&&(_i=!0),De=n,il=a;break;case 12:ht(t,e,l),mt(e);break;case 31:ht(t,e,l),mt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 13:ht(t,e,l),mt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(qi=At()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 22:u=e.memoizedState!==null,s=n!==null&&n.memoizedState!==null;var x=tt,y=Oe,O=il;tt=x||u,il=O||u,Oe=y||s,ht(t,e,l),Oe=y,il=O,tt=x,mt(e),a&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||n===null||s||tt||Oe||(t=s||Oe,l=tt,n=Oe,tt=u||tt,Oe=t,Ql(e,2),tt=l,Oe=n),!u&&il||nr(e,u)),a&4&&(t=e.updateQueue,t!==null&&(l=t.retryQueue,l!==null&&(t.retryQueue=null,Li(e,l))));break;case 19:ht(t,e,l),mt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Li(e,t)));break;case 30:a&512&&(Oe||n===null||ct(n,n.return)),a=Qo(),u=mu,s=(l&335544064)===l,x=e.memoizedProps,mu=s&&bl(x.default,x.update)!=="none",ht(t,e,l),mt(e),s&&n!==null&&De&&(e.flags|=4),mu=u,De=a;break;case 21:break;case 7:a&512&&(Oe||n===null||ct(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=e);default:ht(t,e,l),mt(e)}}function mt(e){var t=e.flags;if(t&2){try{for(var l,n=e.return;n!==null;){if(od(n)){l=n;break}n=n.return}n=null;for(var a=e.return;a!==null;){if(Qs(a)){var u=a.stateNode;n===null?n=[u]:n.push(u)}if(Xs(a))break;a=a.return}var s=n;if(l==null)throw Error(o(160));switch(l.tag){case 27:var x=l.stateNode,y=Ks(e);Oi(e,y,x,s);break;case 5:var O=l.stateNode;l.flags&32&&(Qn(O,""),l.flags&=-33);var H=Ks(e);Oi(e,H,O,s);break;case 3:case 4:var G=l.stateNode.containerInfo,T=Ks(e);Js(e,T,G,s);break;default:throw Error(o(161))}}catch(_){we(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Md(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Md(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ka=!0,t.reset(),ka=!1),e=e.sibling}}function oa(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)kd(t,e),t=t.sibling;else vd(t)}function kd(e,t){var l=e.alternate;if(l===null)Ws(e,!1);else switch(e.tag){case 3:if(lr=cl=!1,xd(),oa(t,e),!cl&&!_i){if(e=al,e!==null)for(var n=0;n<e.length;n+=3){l=e[n];var a=e[n+1];hx(l,e[n+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),lr=!0}al=null;break;case 5:oa(t,e);break;case 4:n=cl,cl=!1,oa(t,e),cl&&(_i=!0),cl=n;break;case 22:e.memoizedState===null&&(l.memoizedState!==null?Ws(e,!1):oa(t,e));break;case 30:n=cl,a=xd(),cl=!1,oa(t,e),cl&&(e.flags|=4);var u=e.memoizedProps,s=e.stateNode;t=vl(u,s),s=vl(l.memoizedProps,s);var x=bl(u.default,u.update);x==="none"?t=!1:(u=l.memoizedState,l.memoizedState=null,l=e.child,pt=0,t=er(e,l,t,s,x,u,!0),pt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(va(e,e.memoizedProps.onUpdate),al=a):a!==null&&(a.push.apply(a,al),al=a),cl=(e.flags&32)!==0?!0:n;break;default:oa(t,e)}}function sl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pd(e,t.alternate,t),t=t.sibling}function Ql(e,t){for(e=e.child;e!==null;){var l=e,n=t;switch(l.tag){case 0:case 11:case 14:case 15:Xl(4,l,l.return),Ql(l,n);break;case 1:ct(l,l.return);var a=l.stateNode;typeof a.componentWillUnmount=="function"&&sd(l,l.return,a),Ql(l,n);break;case 27:(n&2)!==0&&Mx(l.stateNode,l.type,l.memoizedProps);case 5:ct(l,l.return),l.tag!==5&&l.tag!==27||hu(l),Ql(l,n);break;case 6:hu(l);break;case 26:ct(l,l.return),a=l.stateNode,l.memoizedState!==null||a===null||Oe||a.parentNode.removeChild(a),Ql(l,n);break;case 22:l.memoizedState===null&&Ql(l,n);break;case 30:ct(l,l.return),Ql(l,n);break;case 7:ct(l,l.return);default:Ql(l,n)}e=e.sibling}}function Kt(e,t,l){for(l=(t.subtreeFlags&8772)!==0?l:l&-2,t=t.child;t!==null;){var n=t.alternate,a=e,u=t,s=u.flags,x=(l&1)!==0;switch(u.tag){case 0:case 11:case 15:Kt(a,u,l),xu(4,u);break;case 1:if(Kt(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(H){we(n,n.return,H)}if(n=u,a=n.updateQueue,a!==null){var y=n.stateNode;try{var O=a.shared.hiddenCallbacks;if(O!==null)for(a.shared.hiddenCallbacks=null,a=0;a<O.length;a++)Jf(O[a],y)}catch(H){we(n,n.return,H)}}x&&s&64&&cd(u),nl(u,u.return);break;case 27:(l&2)!==0&&fd(u);case 5:u.tag!==5&&u.tag!==27||rd(u),Kt(a,u,l),x&&n===null&&s&4&&Vs(u),nl(u,u.return);break;case 6:rd(u);break;case 26:y=u.stateNode,u.memoizedState!==null||y===null||tt||Gr(Au(y.ownerDocument),u.type,y),Kt(a,u,l),x&&n===null&&s&4&&Vs(u),nl(u,u.return);break;case 12:Kt(a,u,l);break;case 31:Kt(a,u,l),x&&s&4&&Ed(a,u);break;case 13:Kt(a,u,l),x&&s&4&&Ad(a,u);break;case 22:u.memoizedState===null&&Kt(a,u,l),nl(u,u.return);break;case 30:Kt(a,u,l),nl(u,u.return);break;case 7:nl(u,u.return);default:Kt(a,u,l)}t=t.sibling}}function ur(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&eu(l))}function ir(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&eu(e))}function qt(e,t,l,n){var a=(l&335544064)===l;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Td(e,t,l,n),t=t.sibling;else a&&gd(t)}function Td(e,t,l,n){var a=(l&335544064)===l;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&zi(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,l,n),u&2048&&xu(9,t);break;case 1:qt(e,t,l,n);break;case 3:qt(e,t,l,n),a&&lr&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&eu(u)));break;case 12:if(u&2048){qt(e,t,l,n),u=t.stateNode;try{var s=t.memoizedProps,x=s.id,y=s.onPostCommit;typeof y=="function"&&y(x,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(O){we(t,t.return,O)}}else qt(e,t,l,n);break;case 31:qt(e,t,l,n);break;case 13:qt(e,t,l,n);break;case 23:break;case 22:s=t.stateNode,x=t.alternate,t.memoizedState!==null?(a&&x!==null&&x.memoizedState===null&&zi(x),s._visibility&2?qt(e,t,l,n):gu(e,t)):(a&&x!==null&&x.memoizedState!==null&&zi(t),s._visibility&2?qt(e,t,l,n):(s._visibility|=2,fa(e,t,l,n,(t.subtreeFlags&10256)!==0||!1))),u&2048&&ur(x,t);break;case 24:qt(e,t,l,n),u&2048&&ir(t.alternate,t);break;case 30:a&&(u=t.alternate,u!==null&&(ul(u.child,!0),ul(t.child,!0))),qt(e,t,l,n);break;default:qt(e,t,l,n)}}function fa(e,t,l,n,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,x=l,y=n,O=s.flags;switch(s.tag){case 0:case 11:case 15:fa(u,s,x,y,a),xu(8,s);break;case 23:break;case 22:var H=s.stateNode;s.memoizedState!==null?H._visibility&2?fa(u,s,x,y,a):gu(u,s):(H._visibility|=2,fa(u,s,x,y,a)),a&&O&2048&&ur(s.alternate,s);break;case 24:fa(u,s,x,y,a),a&&O&2048&&ir(s.alternate,s);break;default:fa(u,s,x,y,a)}t=t.sibling}}function gu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,n=t,a=n.flags;switch(n.tag){case 22:gu(l,n),a&2048&&ur(n.alternate,n);break;case 24:gu(l,n),a&2048&&ir(n.alternate,n);break;default:gu(l,n)}t=t.sibling}}var Tn=8192;function Fn(e,t,l){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)Fd(e,t,l),e=e.sibling}function Fd(e,t,l){switch(e.tag){case 26:Fn(e,t,l),e.flags&Tn&&(e.memoizedState!==null?E2(l,Zt,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&_x(l,e)));break;case 5:Fn(e,t,l),e.flags&Tn&&(e=e.stateNode,(t&335544128)===t&&_x(l,e));break;case 3:case 4:var n=Zt;Zt=Au(e.stateNode.containerInfo),Fn(e,t,l),Zt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Tn,Tn=16777216,Fn(e,t,l),Tn=n):Fn(e,t,l));break;case 30:if((e.flags&Tn)!==0&&(n=e.memoizedProps.name,n!=null&&n!=="auto")){var a=e.stateNode;a.paired=null,Dt===null&&(Dt=new Map),Dt.set(n,a)}Fn(e,t,l);break;default:Fn(e,t,l)}}function Dd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];lt=n,Od(n,e)}Dd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bd(e),e=e.sibling}function Bd(e){switch(e.tag){case 0:case 11:case 15:vu(e),e.flags&2048&&Xl(9,e,e.return);break;case 3:vu(e);break;case 12:vu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hi(e)):vu(e);break;default:vu(e)}}function Hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var n=t[l];lt=n,Od(n,e)}Dd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xl(8,t,t.return),Hi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Hi(t));break;default:Hi(t)}e=e.sibling}}function Od(e,t){for(;lt!==null;){var l=lt;switch(l.tag){case 0:case 11:case 15:Xl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:eu(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,lt=n;else e:for(l=e;lt!==null;){n=lt;var a=n.sibling,u=n.return;if(Nd(n),n===l){lt=null;break e}if(a!==null){a.return=u,lt=a;break e}lt=u}}}var bg={getCacheForType:function(e){var t=at(Ze),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return at(Ze).controller.signal}},pg=typeof WeakMap=="function"?WeakMap:Map,Be=0,Le=null,Ae=null,Me=0,je=0,Bt=null,Vl=!1,da=!1,cr=!1,kl=0,Qe=0,Zl=0,Dn=0,Ui=0,Ot=0,xa=0,bu=null,Nt=null,sr=!1,qi=0,jd=0,Gi=1/0,Yi=null,Kl=null,Ye=0,Jt=null,Bn=null,rl=0,rr=0,or=null,wd=null,ha=null,ma=null,ga=null,pu=0,Xi=null;function jt(){return(Be&2)!==0&&Me!==0?Me&-Me:ue.T!==null?yr():_o()}function zd(){if(Ot===0)if((Me&536870912)===0||Se){var e=Lu;Lu<<=1,(Lu&3932160)===0&&(Lu=262144),Ot=e}else Ot=536870912;return e=ut.current,e!==null&&(e.flags|=32),Ot}function va(e,t){if(t!=null){var l=e.stateNode,n=l.ref;n===null&&(n=l.ref=mx(vl(e.memoizedProps,l))),ma===null&&(ma=[]),ma.push(t.bind(null,n))}}function St(e,t,l){(e===Le&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ba(e,0),Jl(e,Me,Ot,!1)),Ua(e,l),((Be&2)===0||e!==Le)&&(e===Le&&((Be&2)===0&&(Dn|=l),Qe===4&&Jl(e,Me,Ot,!1)),ol(e))}function _d(e,t,l){if((Be&6)!==0)throw Error(o(327));var n=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ha(e,t),a=n?Sg(e,t):dr(e,t,!0),u=n;do{if(a===0){da&&!n&&Jl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!yg(l)){a=dr(e,t,!1),u=!1;continue}if(a===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var x=e;a=bu;var y=x.current.memoizedState.isDehydrated;if(y&&(ba(x,s).flags|=256),s=dr(x,s,!1),s!==2&&s!==6){if(cr&&!y){x.errorRecoveryDisabledLanes|=u,Dn|=u,a=4;break e}u=Nt,Nt=a,u!==null&&(Nt===null?Nt=u:Nt.push.apply(Nt,u))}a=s}if(u=!1,a!==2)continue}}if(a===1){ba(e,0),Jl(e,t,0,!0);break}e:{switch(n=e,u=a,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Jl(n,t,Ot,!Vl);break e;case 2:Nt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(a=qi+300-At(),10<a)){if(Jl(n,t,Ot,!Vl),Uu(n,0,!0)!==0)break e;rl=t,n.timeoutHandle=Br(Rd.bind(null,n,l,Nt,Yi,sr,t,Ot,Dn,xa,Vl,u,"Throttled",-0,0),a);break e}Rd(n,l,Nt,Yi,sr,t,Ot,Dn,xa,Vl,u,null,-0,0)}}break}while(!0);ol(e)}function Rd(e,t,l,n,a,u,s,x,y,O,H,G,T,_){e.timeoutHandle=-1;var ae=t.subtreeFlags,fe=(u&335544064)===u;if(G=null,(fe||ae&8192||(ae&16785408)===16785408)&&(G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:el},Dt=null,Fd(t,u,G),fe&&(ae=G,fe=e.containerInfo,fe=(fe.nodeType===9?fe:fe.ownerDocument).__reactViewTransition,fe!=null&&(ae.count++,ae.waitingForViewTransition=!0,ae=ku.bind(ae),fe.finished.then(ae,ae))),ae=(u&62914560)===u?qi-At():(u&4194048)===u?jd-At():0,ae=A2(G,ae),ae!==null)){rl=u,e.cancelPendingCommit=ae(Qd.bind(null,e,t,u,l,n,a,s,x,y,O,H,G,null,T,_)),Jl(e,u,s,!O);return}Qd(e,t,u,l,n,a,s,x,y,O,H,G)}function yg(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!Tt(u(),a))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 Jl(e,t,l,n){t=Bo(e,t),t&=~Ui,t&=~Dn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var a=t;0<a;){var u=31-Mt(a),s=1<<u;n[u]=-1,a&=~s}l!==0&&jo(e,l,t)}function Qi(){return(Be&6)===0?(yu(0),!1):!0}function fr(){if(Ae!==null){if(je===0)var e=Ae.return;else e=Ae,Nl=bn=null,ps(e),aa=null,nu=0,e=Ae;for(;e!==null;)id(e.alternate,e),e=e.return;Ae=null}}function ba(e,t){var l=e.timeoutHandle;return l!==-1&&(e.timeoutHandle=-1,Xg(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,fr(),Le=e,Ae=l=pl(e.current,null),Me=t,je=0,Bt=null,Vl=!1,da=Ha(e,t),cr=!1,xa=Ot=Ui=Dn=Zl=Qe=0,Nt=bu=null,sr=!1,kl=Bo(e,t),Pu(),l}function Ld(e,t){ye=null,ue.H=Ai,t===na||t===oi?(t=Qf(),je=3):t===is?(t=Qf(),je=4):je=t===ws?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,Ae===null&&(Qe=1,Ci(e,Rt(t,e.current)))}function Hd(){var e=ut.current;return e===null?!0:(Me&4194048)===Me?ft===null:(Me&62914560)===Me||(Me&536870912)!==0?e===ft:!1}function Ud(){var e=ue.H;return ue.H=Ai,e===null?Ai:e}function qd(){var e=ue.A;return ue.A=bg,e}function Vi(){Qe=4,Vl||(Me&4194048)!==Me&&ut.current!==null||(da=!0),(Zl&134217727)===0&&(Dn&134217727)===0||Le===null||Jl(Le,Me,Ot,!1)}function dr(e,t,l){var n=Be;Be|=2;var a=Ud(),u=qd();(Le!==e||Me!==t)&&(Yi=null,ba(e,t)),t=!1;var s=Qe;e:do try{if(je!==0&&Ae!==null){var x=Ae,y=Bt;switch(je){case 8:fr(),s=6;break e;case 3:case 2:case 9:case 6:ut.current===null&&(t=!0);var O=je;if(je=0,Bt=null,pa(e,x,y,O),l&&da){s=0;break e}break;default:O=je,je=0,Bt=null,pa(e,x,y,O)}}Ng(),s=Qe;break}catch(H){Ld(e,H)}while(!0);return t&&e.shellSuspendCounter++,Nl=bn=null,Be=n,ue.H=a,ue.A=u,Ae===null&&(Le=null,Me=0,Pu()),s}function Ng(){for(;Ae!==null;)Gd(Ae)}function Sg(e,t){var l=Be;Be|=2;var n=Ud(),a=qd();Le!==e||Me!==t?(Yi=null,Gi=At()+500,ba(e,t)):da=Ha(e,t);e:do try{if(je!==0&&Ae!==null){t=Ae;var u=Bt;t:switch(je){case 1:je=0,Bt=null,pa(e,t,u,1);break;case 2:case 9:if(Yf(u)){je=0,Bt=null,Yd(t);break}t=function(){je!==2&&je!==9||Le!==e||(je=7),ol(e)},u.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:Yf(u)?(je=0,Bt=null,Yd(t)):(je=0,Bt=null,pa(e,t,u,7));break;case 5:var s=null;switch(Ae.tag){case 26:s=Ae.memoizedState;case 5:case 27:var x=Ae;if(s?wx(s):x.stateNode.complete){je=0,Bt=null;var y=x.sibling;if(y!==null)Ae=y;else{var O=x.return;O!==null?(Ae=O,Zi(O)):Ae=null}break t}}je=0,Bt=null,pa(e,t,u,5);break;case 6:je=0,Bt=null,pa(e,t,u,6);break;case 8:fr(),Qe=6;break e;default:throw Error(o(462))}}Eg();break}catch(H){Ld(e,H)}while(!0);return Nl=bn=null,ue.H=n,ue.A=a,Be=l,Ae!==null?0:(Le=null,Me=0,Pu(),Qe)}function Eg(){for(;Ae!==null&&!Uh();)Gd(Ae)}function Gd(e){var t=ad(e.alternate,e,kl);e.memoizedProps=e.pendingProps,t===null?Zi(e):Ae=t}function Yd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=I0(l,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=I0(l,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:ps(t);var n=t;n===et&&(Se?(ui(n),n.tag===5&&n.stateNode!=null&&(He=n.stateNode)):(ui(n),Se=!0));default:id(l,t),t=Ae=Of(t,kl),t=ad(l,t,kl)}e.memoizedProps=e.pendingProps,t===null?Zi(e):Ae=t}function pa(e,t,l,n){Nl=bn=null,ps(t),aa=null,nu=0;var a=t.return;try{if(og(e,a,t,l,Me)){Qe=1,Ci(e,Rt(l,e.current)),Ae=null;return}}catch(u){if(a!==null)throw Ae=a,u;Qe=1,Ci(e,Rt(l,e.current)),Ae=null;return}t.flags&32768?(Se||n===1?e=!0:da||(Me&536870912)!==0?e=!1:(Vl=e=!0,(n===2||n===9||n===3||n===6)&&(n=ut.current,n!==null&&n.tag===13&&(n.flags|=16384))),Xd(t,e)):Zi(t)}function Zi(e){var t=e;do{if((t.flags&32768)!==0){Xd(t,Vl);return}e=t.return;var l=hg(t.alternate,t,kl);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Qe===0&&(Qe=5)}function Xd(e,t){do{var l=mg(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);Qe=6,Ae=null}function Qd(e,t,l,n,a,u,s,x,y,O,H,G){e.cancelPendingCommit=null;do Ki();while(Ye!==0);if((Be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Le&&(Ae=Le=null,Me=0),Bn=t,Jt=e,rl=l,or=a,wd=n,Ag(e,t,l,s,x,y,G)}}function Ag(e,t,l,n,a,u,s){var x=t.lanes|t.childLanes;if(rr=x,x|=Zc,Wh(e,l,x,n,a,u),ma=null,(l&335544064)===l?(ga=$m(e),n=10262):(ga=null,n=10256),(t.subtreeFlags&n)!==0||(t.flags&n)!==0?(e.callbackNode=null,e.callbackPriority=0,Dg(_u,function(){return gr(),null})):(e.callbackNode=null,e.callbackPriority=0),ji=!1,n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=ue.T,ue.T=null,a=de.p,de.p=2,u=Be,Be|=4;try{gg(e,t,l)}finally{Be=u,de.p=a,ue.T=n}}Ye=1,ji?ha=Wg(s,e.containerInfo,ga,xr,hr,Mg,mr,gr,Cg):(xr(),hr(),mr())}function Cg(e){if(Ye!==0){var t=Jt.onRecoverableError;t(e,{componentStack:null})}}function Mg(){Ye===3&&(Ye=0,kd(Bn,Jt),Ye=4)}function xr(){if(Ye===1){Ye=0;var e=Jt,t=Bn,l=rl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ue.T,ue.T=null;var a=de.p;de.p=2;var u=Be;Be|=4;try{mu=_i=!1,Cd(t,e,l),l=Tr;var s=Sf(e.containerInfo),x=l.focusedElem,y=l.selectionRange;if(s!==x&&x&&x.ownerDocument&&Nf(x.ownerDocument.documentElement,x)){if(y!==null&&Gc(x)){var O=y.start,H=y.end;if(H===void 0&&(H=O),"selectionStart"in x)x.selectionStart=O,x.selectionEnd=Math.min(H,x.value.length);else{var G=x.ownerDocument||document,T=G&&G.defaultView||window;if(T.getSelection){var _=T.getSelection(),ae=x.textContent.length,fe=Math.min(y.start,ae),Ne=y.end===void 0?fe:Math.min(y.end,ae);!_.extend&&fe>Ne&&(s=Ne,Ne=fe,fe=s);var B=yf(x,fe),M=yf(x,Ne);if(B&&M&&(_.rangeCount!==1||_.anchorNode!==B.node||_.anchorOffset!==B.offset||_.focusNode!==M.node||_.focusOffset!==M.offset)){var j=G.createRange();j.setStart(B.node,B.offset),_.removeAllRanges(),fe>Ne?(_.addRange(j),_.extend(M.node,M.offset)):(j.setEnd(M.node,M.offset),_.addRange(j))}}}}for(G=[],_=x;_=_.parentNode;)_.nodeType===1&&G.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<G.length;x++){var q=G[x];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}ka=!!kr,Tr=kr=null}finally{Be=u,de.p=a,ue.T=n}}e.current=t,Ye=2}}function hr(){if(Ye===2){Ye=0;var e=Jt,t=Bn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=ue.T,ue.T=null;var n=de.p;de.p=2;var a=Be;Be|=4;try{pd(e,t.alternate,t)}finally{Be=a,de.p=n,ue.T=l}}Ye=3}}function mr(){if(Ye===4||Ye===3){Ye=0;var e=ha;ha=null,qh();var t=Jt,l=Bn,n=rl,a=wd,u=(n&335544064)===n?10262:10256;if((l.subtreeFlags&u)!==0||(l.flags&u)!==0?Ye=5:(Ye=0,Bn=Jt=null,Vd(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(Kl=null),Ac(n),l=l.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(La,l,void 0,(l.current.flags&128)===128)}catch{}if(a!==null){l=ue.T,u=de.p,de.p=2,ue.T=null;try{for(var s=t.onRecoverableError,x=0;x<a.length;x++){var y=a[x];s(y.value,{componentStack:y.stack})}}finally{ue.T=l,de.p=u}}if(a=ma,s=ga,ga=null,a!==null&&(ma=null,s===null&&(s=[]),e!==null))for(y=0;y<a.length;y++)l=(0,a[y])(s),l!==void 0&&e.finished.finally(l);(rl&3)!==0&&Ki(),ol(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Xi?pu++:(pu=0,Xi=t):(pu=0,Xi=null),yu(0)}}function Vd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,eu(t)))}function Ki(){return ha!==null&&(ha.skipTransition(),ha=null),xr(),hr(),mr(),gr()}function gr(){if(Ye!==5)return!1;var e=Jt,t=rr;rr=0;var l=Ac(rl),n=ue.T,a=de.p;try{de.p=32>l?32:l,ue.T=null,l=or,or=null;var u=Jt,s=rl;if(Ye=0,Bn=Jt=null,rl=0,(Be&6)!==0)throw Error(o(331));var x=Be;if(Be|=4,Bd(u.current),Td(u,u.current,s,l),Be=x,yu(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(La,u)}catch{}return!0}finally{de.p=a,ue.T=n,Vd(e,t)}}function Zd(e,t,l){t=Rt(l,t),t=js(e.stateNode,t,2),e=Ul(e,t,2),e!==null&&(Ua(e,2),ol(e))}function we(e,t,l){if(e.tag===3)Zd(e,e,l);else for(;t!==null;){if(t.tag===3){Zd(t,e,l);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Kl===null||!Kl.has(n))){e=Rt(l,e),l=Y0(2),n=Ul(t,l,2),n!==null&&(X0(l,n,t,e),Ua(n,2),ol(n));break}}t=t.return}}function vr(e,t,l){var n=e.pingCache;if(n===null){n=e.pingCache=new pg;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(l)||(cr=!0,a.add(l),e=kg.bind(null,e,t,l),t.then(e,e))}function kg(e,t,l){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Le===e&&(Me&l)===l&&((Qe===4||Qe===3&&(Me&62914560)===Me&&300>At()-qi)&&(Be&2)===0?ba(e,0):Ui|=l,xa===Me&&(xa=0)),ol(e)}function Kd(e,t){t===0&&(t=Oo()),e=mn(e,t),e!==null&&(Ua(e,t),ol(e))}function Tg(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Kd(e,l)}function Fg(e,t){var l=0;switch(e.tag){case 31:case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),Kd(e,l)}function Dg(e,t){return yc(e,t)}var ya=null,Na=null,br=!1,Ji=!1,pr=!1,Wl=0;function ol(e){e!==Na&&e.next===null&&(Na===null?ya=Na=e:Na=Na.next=e),Ji=!0,br||(br=!0,Og())}function yu(e,t){if(!pr&&Ji){pr=!0;do for(var l=!1,n=ya;n!==null;){if(e!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var s=n.suspendedLanes,x=n.pingedLanes;u=(1<<31-Mt(42|e)+1)-1,u&=a&~(s&~x),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,$d(n,u))}else u=Me,u=Uu(n,n===Le?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Ha(n,u)||(l=!0,$d(n,u));n=n.next}while(l);pr=!1}}function Bg(){Jd()}function Jd(){Ji=br=!1;var e=0;Wl!==0&&Yg()&&(e=Wl);for(var t=At(),l=null,n=ya;n!==null;){var a=n.next,u=Wd(n,t);u===0?(n.next=null,l===null?ya=a:l.next=a,a===null&&(Na=l)):(l=n,(e!==0||(u&3)!==0)&&(Ji=!0)),n=a}Ye!==0&&Ye!==5||yu(e),Wl!==0&&(Wl=0)}function Wd(e,t){for(var l=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-Mt(u),x=1<<s,y=a[s];y===-1?((x&l)===0||(x&n)!==0)&&(a[s]=Jh(x,t)):y<=t&&(e.expiredLanes|=x),u&=~x}if(t=Le,l=Me,l=Uu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Nc(n),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ha(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(n!==null&&Nc(n),Ac(l)){case 2:case 8:l=Fo;break;case 32:l=_u;break;case 268435456:l=Do;break;default:l=_u}return n=Id.bind(null,e),l=yc(l,n),e.callbackPriority=t,e.callbackNode=l,t}return n!==null&&n!==null&&Nc(n),e.callbackPriority=2,e.callbackNode=null,2}function Id(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Ki()&&e.callbackNode!==l)return null;var n=Me;return n=Uu(e,e===Le?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(_d(e,n,t),Wd(e,At()),e.callbackNode!=null&&e.callbackNode===l?Id.bind(null,e):null)}function $d(e,t){if(Ki())return null;_d(e,t,!0)}function Og(){Qg(function(){(Be&6)!==0?yc(To,Bg):Jd()})}function yr(){if(Wl===0){var e=Nn;e===0&&(e=Ru,Ru<<=1,(Ru&261888)===0&&(Ru=256)),Wl=e}return Wl}function Pd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Qu(e)}function jg(e,t,l,n,a){if(t==="submit"&&l&&l.stateNode===a){var u=Pd((a[vt]||null).action),s=n.submitter;s&&(t=(t=s[vt]||null)?Pd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var x=new Ju("action","action",null,n,a);e.push({event:x,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Wl!==0){var y=new FormData(a,s);Ts(l,{pending:!0,data:y,method:a.method,action:u},null,y)}}else typeof u=="function"&&(x.preventDefault(),y=new FormData(a,s),Ts(l,{pending:!0,data:y,method:a.method,action:u},u,y))},currentTarget:a}]})}}for(var Nr=0;Nr<Vc.length;Nr++){var Sr=Vc[Nr],wg=Sr.toLowerCase(),zg=Sr[0].toUpperCase()+Sr.slice(1);Qt(wg,"on"+zg)}Qt(Cf,"onAnimationEnd"),Qt(Mf,"onAnimationIteration"),Qt(kf,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Xm,"onTransitionRun"),Qt(Qm,"onTransitionStart"),Qt(Vm,"onTransitionCancel"),Qt(Tf,"onTransitionEnd"),Yn("onMouseEnter",["mouseout","mouseover"]),Yn("onMouseLeave",["mouseout","mouseover"]),Yn("onPointerEnter",["pointerout","pointerover"]),Yn("onPointerLeave",["pointerout","pointerover"]),dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dn("onBeforeInput",["compositionend","keypress","textInput","paste"]),dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="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(" "),_g=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function ex(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var n=e[l],a=n.event;n=n.listeners;e:{var u=void 0;if(t)for(var s=n.length-1;0<=s;s--){var x=n[s],y=x.instance,O=x.currentTarget;if(x=x.listener,y!==u&&a.isPropagationStopped())break e;u=x,a.currentTarget=O;try{u(a)}catch(H){$u(H)}a.currentTarget=null,u=y}else for(s=0;s<n.length;s++){if(x=n[s],y=x.instance,O=x.currentTarget,x=x.listener,y!==u&&a.isPropagationStopped())break e;u=x,a.currentTarget=O;try{u(a)}catch(H){$u(H)}a.currentTarget=null,u=y}}}}function Ce(e,t){var l=t[Lo];l===void 0&&(l=t[Lo]=new Set);var n=e+"__bubble";l.has(n)||(tx(t,e,2,!1),l.add(n))}function Er(e,t,l){var n=0;t&&(n|=4),tx(l,e,n,t)}var Wi="_reactListening"+Math.random().toString(36).slice(2);function Ar(e){if(!e[Wi]){e[Wi]=!0,qo.forEach(function(l){l!=="selectionchange"&&(_g.has(l)||Er(l,!1,e),Er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wi]||(t[Wi]=!0,Er("selectionchange",!1,t))}}function tx(e,t,l,n){switch(Xx(t)){case 2:var a=T2;break;case 8:a=F2;break;default:a=Xr}l=a.bind(null,t,l,e),a=void 0,!Oc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,l,{capture:!0,passive:a}):e.addEventListener(t,l,!0):a!==void 0?e.addEventListener(t,l,{passive:a}):e.addEventListener(t,l,!1)}function Cr(e,t,l,n,a){var u=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var x=n.stateNode.containerInfo;if(x===a)break;if(s===4)for(s=n.return;s!==null;){var y=s.tag;if((y===3||y===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;x!==null;){if(s=fn(x),s===null)return;if(y=s.tag,y===5||y===6||y===26||y===27){n=u=s;continue e}x=x.parentNode}}n=n.return}ef(function(){var O=u,H=Dc(l),G=[];e:{var T=Ff.get(e);if(T!==void 0){var _=Ju,ae=e;switch(e){case"keypress":if(Zu(l)===0)break e;case"keydown":case"keyup":_=ym;break;case"focusin":ae="focus",_=_c;break;case"focusout":ae="blur",_=_c;break;case"beforeblur":case"afterblur":_=_c;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=nf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=sm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Cm;break;case Cf:case Mf:case kf:_=fm;break;case Tf:_=km;break;case"scroll":case"scrollend":_=im;break;case"wheel":_=Fm;break;case"copy":case"cut":case"paste":_=xm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=uf;break;case"submit":_=Em;break;case"toggle":case"beforetoggle":_=Bm}var fe=(t&4)!==0,Ne=!fe&&(e==="scroll"||e==="scrollend"),B=fe?T!==null?T+"Capture":null:T;fe=[];for(var M=O,j;M!==null;){var q=M;if(j=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||j===null||B===null||(q=Ya(M,B),q!=null&&fe.push(Su(M,q,j))),Ne)break;M=M.return}0<fe.length&&(T=new _(T,ae,null,l,H),G.push({event:T,listeners:fe}))}}if((t&7)===0){e:{if(_=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",_&&l!==Fc&&(ae=l.relatedTarget||l.fromElement)&&(fn(ae)||ae[Un]))break e;(T||_)&&(ae=H.window===H?H:(_=H.ownerDocument)?_.defaultView||_.parentWindow:window,T?(_=l.relatedTarget||l.toElement,T=O,_=_?fn(_):null,_!==null&&(Ne=h(_),fe=_.tag,_!==Ne||fe!==5&&fe!==27&&fe!==6)&&(_=null)):(T=null,_=O),T!==_&&(fe=nf,q="onMouseLeave",B="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(fe=uf,q="onPointerLeave",B="onPointerEnter",M="pointer"),Ne=T==null?ae:Ga(T),j=_==null?ae:Ga(_),ae=new fe(q,M+"leave",T,l,H),ae.target=Ne,ae.relatedTarget=j,q=null,fn(H)===O&&(fe=new fe(B,M+"enter",_,l,H),fe.target=j,fe.relatedTarget=Ne,q=fe),Ne=q,fe=T&&_?E(T,_,Rg):null,T!==null&&lx(G,ae,T,fe,!1),_!==null&&Ne!==null&&lx(G,Ne,_,fe,!0)))}e:{if(T=O?Ga(O):window,_=T.nodeName&&T.nodeName.toLowerCase(),_==="select"||_==="input"&&T.type==="file")var ce=hf;else if(df(T))if(mf)ce=qm;else{ce=Hm;var ke=Lm}else _=T.nodeName,!_||_.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?O&&Tc(O.elementType)&&(ce=hf):ce=Um;if(ce&&(ce=ce(e,O))){xf(G,ce,l,H);break e}ke&&ke(e,T,O)}switch(ke=O?Ga(O):window,e){case"focusin":(df(ke)||ke.contentEditable==="true")&&(Jn=ke,Yc=O,Ia=null);break;case"focusout":Ia=Yc=Jn=null;break;case"mousedown":Xc=!0;break;case"contextmenu":case"mouseup":case"dragend":Xc=!1,Ef(G,l,H);break;case"selectionchange":if(Ym)break;case"keydown":case"keyup":Ef(G,l,H)}var xe;if(Lc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Kn?of(e,l)&&(ve="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ve="onCompositionStart");ve&&(cf&&l.locale!=="ko"&&(Kn||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Kn&&(xe=tf()):(Bl=H,jc="value"in Bl?Bl.value:Bl.textContent,Kn=!0)),ke=Ii(O,ve),0<ke.length&&(ve=new af(ve,e,null,l,H),G.push({event:ve,listeners:ke}),xe?ve.data=xe:(xe=ff(l),xe!==null&&(ve.data=xe)))),(xe=jm?wm(e,l):zm(e,l))&&(ve=Ii(O,"onBeforeInput"),0<ve.length&&(ke=new af("onBeforeInput","beforeinput",null,l,H),G.push({event:ke,listeners:ve}),ke.data=xe)),jg(G,e,O,l,H)}ex(G,t)})}function Su(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ii(e,t){for(var l=t+"Capture",n=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Ya(e,l),a!=null&&n.unshift(Su(e,a,u)),a=Ya(e,t),a!=null&&n.push(Su(e,a,u))),e.tag===3)return n;e=e.return}return[]}function Rg(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lx(e,t,l,n,a){for(var u=t._reactName,s=[];l!==null&&l!==n;){var x=l,y=x.alternate,O=x.stateNode;if(x=x.tag,y!==null&&y===n)break;x!==5&&x!==26&&x!==27||O===null||(y=O,a?(O=Ya(l,u),O!=null&&s.unshift(Su(l,O,y))):a||(O=Ya(l,u),O!=null&&s.push(Su(l,O,y)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Lg=/\r\n?/g,Hg=/\u0000|\uFFFD/g;function nx(e){return(typeof e=="string"?e:""+e).replace(Lg,`
|
|
49
|
-
`).replace(Hg,"")}function ax(e,t){return t=nx(t),nx(e)===t}function ze(e,t,l,n,a,u){switch(l){case"children":if(typeof n=="string")t==="body"||t==="textarea"&&n===""||Qn(e,n);else if(typeof n=="number"||typeof n=="bigint")t!=="body"&&Qn(e,""+n);else return;break;case"className":Xu(e,"class",n);break;case"tabIndex":Xu(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Xu(e,l,n);break;case"style":$o(e,n,u);return;case"data":if(t!=="object"){Xu(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Qu(n),e.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&ze(e,t,"name",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(l);break}n=Qu(n),e.setAttribute(l,n);break;case"onClick":n!=null&&(e.onclick=el);return;case"onScroll":n!=null&&Ce("scroll",e);return;case"onScrollEnd":n!=null&&Ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}l=Qu(n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":n===!0?e.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(l,n):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(l,n):e.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(l):e.setAttribute(l,n);break;case"popover":Ce("beforetoggle",e),Ce("toggle",e),Yu(e,"popover",n);break;case"xlinkActuate":ml(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":ml(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":ml(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":ml(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":ml(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":ml(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":ml(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":ml(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":ml(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Yu(e,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=am.get(l)||l,Yu(e,l,n);else return}De=!0}function Mr(e,t,l,n,a,u){switch(l){case"style":$o(e,n,u);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==l&&(e.innerHTML=l)}}break;case"children":if(typeof n=="string")Qn(e,n);else if(typeof n=="number"||typeof n=="bigint")Qn(e,""+n);else return;break;case"onScroll":n!=null&&Ce("scroll",e);return;case"onScrollEnd":n!=null&&Ce("scrollend",e);return;case"onClick":n!=null&&(e.onclick=el);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Go.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),u=l.slice(2,a?l.length-7:void 0),t=e[vt]||null,t=t!=null?t[l]:null,typeof t=="function"&&e.removeEventListener(u,t,a),typeof n=="function")){typeof t!="function"&&t!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(u,n,a);break e}De=!0,l in e?e[l]=n:n===!0?e.setAttribute(l,""):Yu(e,l,n)}return}De=!0}function st(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ce("error",e),Ce("load",e);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ze(e,t,u,s,l,null)}}a&&ze(e,t,"srcSet",l.srcSet,l,null),n&&ze(e,t,"src",l.src,l,null);return;case"input":Ce("invalid",e);var x=u=s=a=null,y=null,O=null;for(n in l)if(l.hasOwnProperty(n)){var H=l[n];if(H!=null)switch(n){case"name":a=H;break;case"type":s=H;break;case"checked":y=H;break;case"defaultChecked":O=H;break;case"value":u=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:ze(e,t,n,H,l,null)}}Ko(e,u,x,y,O,s,a,!1);return;case"select":Ce("invalid",e),n=s=u=null;for(a in l)if(l.hasOwnProperty(a)&&(x=l[a],x!=null))switch(a){case"value":u=x;break;case"defaultValue":s=x;break;case"multiple":n=x;default:ze(e,t,a,x,l,null)}t=u,l=s,e.multiple=!!n,t!=null?Xn(e,!!n,t,!1):l!=null&&Xn(e,!!n,l,!0);return;case"textarea":Ce("invalid",e),u=a=n=null;for(s in l)if(l.hasOwnProperty(s)&&(x=l[s],x!=null))switch(s){case"value":n=x;break;case"defaultValue":a=x;break;case"children":u=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:ze(e,t,s,x,l,null)}Wo(e,n,a,u);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(n=l[y],n!=null))switch(y){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:ze(e,t,y,n,l,null)}return;case"dialog":Ce("beforetoggle",e),Ce("toggle",e),Ce("cancel",e),Ce("close",e);break;case"iframe":case"object":Ce("load",e);break;case"video":case"audio":for(n=0;n<Nu.length;n++)Ce(Nu[n],e);break;case"image":Ce("error",e),Ce("load",e);break;case"details":Ce("toggle",e);break;case"embed":case"source":case"link":Ce("error",e),Ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in l)if(l.hasOwnProperty(O)&&(n=l[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ze(e,t,O,n,l,null)}return;default:if(Tc(t)){for(H in l)l.hasOwnProperty(H)&&(n=l[H],n!==void 0&&Mr(e,t,H,n,l,void 0));return}}for(x in l)l.hasOwnProperty(x)&&(n=l[x],n!=null&&ze(e,t,x,n,l,null))}var Ug={};function qg(e,t,l,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,s=null,x=null,y=null,O=null,H=null;for(_ in l){var G=l[_];if(l.hasOwnProperty(_)&&G!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":y=G;default:n.hasOwnProperty(_)||ze(e,t,_,null,n,G)}}for(var T in n){var _=n[T];if(G=l[T],n.hasOwnProperty(T)&&(_!=null||G!=null))switch(T){case"type":_!==G&&(De=!0),u=_;break;case"name":_!==G&&(De=!0),a=_;break;case"checked":_!==G&&(De=!0),O=_;break;case"defaultChecked":_!==G&&(De=!0),H=_;break;case"value":_!==G&&(De=!0),s=_;break;case"defaultValue":_!==G&&(De=!0),x=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:_!==G&&ze(e,t,T,_,n,G)}}Mc(e,s,x,y,O,H,u,a);return;case"select":_=s=x=T=null;for(u in l)if(y=l[u],l.hasOwnProperty(u)&&y!=null)switch(u){case"value":break;case"multiple":_=y;default:n.hasOwnProperty(u)||ze(e,t,u,null,n,y)}for(a in n)if(u=n[a],y=l[a],n.hasOwnProperty(a)&&(u!=null||y!=null))switch(a){case"value":u!==y&&(De=!0),T=u;break;case"defaultValue":u!==y&&(De=!0),x=u;break;case"multiple":u!==y&&(De=!0),s=u;default:u!==y&&ze(e,t,a,u,n,y)}t=x,l=s,n=_,T!=null?Xn(e,!!l,T,!1):!!n!=!!l&&(t!=null?Xn(e,!!l,t,!0):Xn(e,!!l,l?[]:"",!1));return;case"textarea":_=T=null;for(x in l)if(a=l[x],l.hasOwnProperty(x)&&a!=null&&!n.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:ze(e,t,x,null,n,a)}for(s in n)if(a=n[s],u=l[s],n.hasOwnProperty(s)&&(a!=null||u!=null))switch(s){case"value":a!==u&&(De=!0),T=a;break;case"defaultValue":a!==u&&(De=!0),_=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==u&&ze(e,t,s,a,n,u)}Jo(e,T,_);return;case"option":for(var ae in l)if(T=l[ae],l.hasOwnProperty(ae)&&T!=null&&!n.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:ze(e,t,ae,null,n,T)}for(y in n)if(T=n[y],_=l[y],n.hasOwnProperty(y)&&T!==_&&(T!=null||_!=null))switch(y){case"selected":T!==_&&(De=!0),e.selected=T&&typeof T!="function"&&typeof T!="symbol";break;default:ze(e,t,y,T,n,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var fe in l)T=l[fe],l.hasOwnProperty(fe)&&T!=null&&!n.hasOwnProperty(fe)&&ze(e,t,fe,null,n,T);for(O in n)if(T=n[O],_=l[O],n.hasOwnProperty(O)&&T!==_&&(T!=null||_!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:ze(e,t,O,T,n,_)}return;default:if(Tc(t)){for(var Ne in l)T=l[Ne],l.hasOwnProperty(Ne)&&T!==void 0&&!n.hasOwnProperty(Ne)&&Mr(e,t,Ne,void 0,n,T);for(H in n)T=n[H],_=l[H],!n.hasOwnProperty(H)||T===_||T===void 0&&_===void 0||Mr(e,t,H,T,n,_);return}}for(var B in l)T=l[B],l.hasOwnProperty(B)&&T!=null&&!n.hasOwnProperty(B)&&ze(e,t,B,null,n,T);for(G in n)T=n[G],_=l[G],!n.hasOwnProperty(G)||T===_||T==null&&_==null||ze(e,t,G,T,n,_)}function ux(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gg(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var a=l[n],u=a.transferSize,s=a.initiatorType,x=a.duration;if(u&&x&&ux(s)){for(s=0,x=a.responseEnd,n+=1;n<l.length;n++){var y=l[n],O=y.startTime;if(O>x)break;var H=y.transferSize,G=y.initiatorType;H&&ux(G)&&(y=y.responseEnd,s+=H*(y<x?1:(x-O)/(y-O)))}if(--n,t+=8*(u+s)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var kr=null,Tr=null;function Eu(e){return e.nodeType===9?e:e.ownerDocument}function ix(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cx(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function sx(e,t,l,n){return l=Eu(l).createElement(e),l[nt]=n,l[vt]=t,st(l,e,t),Pe(l),l}function Fr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dr=null;function Yg(){var e=window.event;return e&&e.type==="popstate"?e===Dr?!1:(Dr=e,!0):(Dr=null,!1)}var Br=typeof setTimeout=="function"?setTimeout:void 0,Xg=typeof clearTimeout=="function"?clearTimeout:void 0,rx=typeof Promise=="function"?Promise:void 0,ox=typeof requestAnimationFrame=="function"?requestAnimationFrame:Br,Qg=typeof queueMicrotask=="function"?queueMicrotask:typeof rx<"u"?function(e){return rx.resolve(null).then(e).catch(Vg)}:Br;function Vg(e){setTimeout(function(){throw e})}function Il(e){return e==="head"}function fx(e,t){var l=t,n=0;do{var a=l.nextSibling;if(e.removeChild(l),a&&a.nodeType===8)if(l=a.data,l==="/$"||l==="/&"){if(n===0){e.removeChild(a),Ta(t);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Hr(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Hr(l);for(var u=l.firstChild;u;){var s=u.nextSibling,x=u.nodeName;u[qa]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&Hr(e.ownerDocument.body);l=a}while(l);Ta(t)}function dx(e,t){var l=e;e=0;do{var n=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=n}while(l)}function xx(e,t,l){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,l!=null&&(e.style.viewTransitionClass=l),l=getComputedStyle(e),l.display==="inline"){if(t=e.getClientRects(),t.length===1)var n=1;else for(var a=n=0;a<t.length;a++){var u=t[a];0<u.width&&0<u.height&&n++}n===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+l.paddingTop,e.marginBottom="-"+l.paddingBottom)}}function hx(e,t){e=e.style,t=t.style;var l=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(l=t.display,e.display=l==null||typeof l=="boolean"?"":l,l=t.margin,l!=null?e.margin=l:(l=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=l==null||typeof l=="boolean"?"":l,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Zg(e,t,l){return l=l.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=l.innerHeight&&e.left<=l.innerWidth}}function Or(e){var t=e.getBoundingClientRect(),l=getComputedStyle(e);return Zg(t,l,e)}function Kg(e){return e.documentElement.clientHeight}function Jg(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Wg(e,t,l,n,a,u,s,x,y){var O=t.nodeType===9?t:t.ownerDocument;try{var H=O.startViewTransition({update:function(){var T=O.defaultView,_=T.navigation&&T.navigation.transition,ae=O.fonts.status;n();var fe=[];if(ae==="loaded"&&(Kg(O),O.fonts.status==="loading"&&fe.push(O.fonts.ready)),ae=fe.length,e!==null)for(var Ne=e.suspenseyImages,B=0,M=0;M<Ne.length;M++){var j=Ne[M];if(!j.complete){var q=j.getBoundingClientRect();if(0<q.bottom&&0<q.right&&q.top<T.innerHeight&&q.left<T.innerWidth){if(B+=zx(j),B>ec){fe.length=ae;break}j=new Promise(Jg.bind(j)),fe.push(j)}}}if(0<fe.length)return T=Promise.race([Promise.all(fe),new Promise(function(ce){return setTimeout(ce,500)})]).then(a,a),(_?Promise.allSettled([_.finished,T]):T).then(u,u);if(a(),_)return _.finished.then(u,u);u()},types:l});O.__reactViewTransition=H;var G=[];return H.ready.then(function(){for(var T=O.documentElement.getAnimations({subtree:!0}),_=0;_<T.length;_++){var ae=T[_],fe=ae.effect,Ne=fe.pseudoElement;if(Ne!=null&&Ne.startsWith("::view-transition")){G.push(ae),ae=fe.getKeyframes();for(var B=Ne=void 0,M=!0,j=0;j<ae.length;j++){var q=ae[j],ce=q.width;if(Ne===void 0)Ne=ce;else if(Ne!==ce){M=!1;break}if(ce=q.height,B===void 0)B=ce;else if(B!==ce){M=!1;break}delete q.width,delete q.height,q.transform==="none"&&delete q.transform}M&&Ne!==void 0&&B!==void 0&&(fe.setKeyframes(ae),M=getComputedStyle(fe.target,fe.pseudoElement),M.width!==Ne||M.height!==B)&&(M=ae[0],M.width=Ne,M.height=B,M=ae[ae.length-1],M.width=Ne,M.height=B,fe.setKeyframes(ae))}}s()},function(T){O.__reactViewTransition===H&&(O.__reactViewTransition=null);try{if(typeof T=="object"&&T!==null)switch(T.name){case"InvalidStateError":(T.message==="View transition was skipped because document visibility state is hidden."||T.message==="Skipping view transition because document visibility state has become hidden."||T.message==="Skipping view transition because viewport size changed."||T.message==="Transition was aborted because of invalid state")&&(T=null)}T!==null&&y(T)}finally{n(),a(),s()}}),H.finished.finally(function(){for(var T=0;T<G.length;T++)G[T].cancel();O.__reactViewTransition===H&&(O.__reactViewTransition=null),x()}),H}catch{return n(),a(),s(),null}}function On(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}On.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:z({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},On.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,l=e.getAnimations({subtree:!0}),n=[],a=0;a<l.length;a++){var u=l[a].effect;u!==null&&u.target===e&&u.pseudoElement===t&&n.push(l[a])}return n},On.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function mx(e){return{name:e,group:new On("group",e),imagePair:new On("image-pair",e),old:new On("old",e),new:new On("new",e)}}function wt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}wt.prototype.addEventListener=function(e,t,l){var n=null,a=null;if(!(l!=null&&typeof l!="boolean"&&(n=l.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(vx(u,e,t,l)===-1){var s=this,x=t;l!=null&&typeof l!="boolean"&&l.once===!0&&(x=function(y){s.removeEventListener(e,t,l),typeof t=="function"?t.call(this,y):t.handleEvent(y)}),n!==null&&(a=s.removeEventListener.bind(s,e,t,l),n.addEventListener("abort",a,{once:!0}),a=n.removeEventListener.bind(n,"abort",a)),n=Sa(l),u.push({type:e,listener:t,optionsOrUseCapture:l,attachedListener:x,cleanup:a}),m(this._fragmentFiber.child,!1,Ig,e,x,n)}this._eventListeners=u}};function Ig(e,t,l,n){return U(e).addEventListener(t,l,n),!1}wt.prototype.removeEventListener=function(e,t,l){var n=this._eventListeners;if(n!==null&&(t=vx(n,e,t,l),t!==-1)){var a=n[t];l=a.attachedListener;var u=a.cleanup;a=Sa(a.optionsOrUseCapture),m(this._fragmentFiber.child,!1,$g,e,l,a),n.splice(t,1),u!==null&&u()}};function $g(e,t,l,n){return U(e).removeEventListener(t,l,n),!1}function Sa(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function gx(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function vx(e,t,l,n){if(e.length===0)return-1;n=gx(n);for(var a=0;a<e.length;a++){var u=e[a];if(u.type===t&&u.listener===l&&gx(u.optionsOrUseCapture)===n)return a}return-1}wt.prototype.dispatchEvent=function(e){var t=S(this._fragmentFiber);if(t===null)return!0;t=U(t);var l=this._eventListeners;if(l!==null&&0<l.length||!e.bubbles){var n=t.nodeType===9?t.createComment(""):document.createTextNode("");if(l)for(var a=0;a<l.length;a++){var u=l[a];n.addEventListener(u.type,u.attachedListener,Sa(u.optionsOrUseCapture))}if(t.appendChild(n),e=n.dispatchEvent(e),l)for(a=0;a<l.length;a++)u=l[a],n.removeEventListener(u.type,u.attachedListener,Sa(u.optionsOrUseCapture));return t.removeChild(n),e}return t.dispatchEvent(e)},wt.prototype.focus=function(e){m(this._fragmentFiber.child,!0,bx,e,void 0,void 0)};function bx(e,t){return e.tag===6?!1:(e=U(e),o2(e,t))}wt.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,jr,t,void 0,void 0);for(var l=t.length-1;0<=l&&!bx(t[l],e);l--);};function jr(e,t){return t.push(e),!1}wt.prototype.blur=function(){var e=S(this._fragmentFiber);e!==null&&(e=U(e),e=Eu(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Pg,e,void 0,void 0))};function Pg(e,t){return e.tag===6?!1:(e=U(e),e===t||e.contains(t)?(t.blur(),!0):!1)}wt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,e2,e,void 0,void 0)};function e2(e,t){return e.tag===6||(e=U(e),t.observe(e)),!1}wt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,t2,e,void 0,void 0);for(var l=t=0;l<Wt.length;l++){var n=Wt[l];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):Wt[t++]=n}Wt.length=t}};function t2(e,t){return e.tag===6||(e=U(e),t.unobserve(e)),!1}var Wt=[],wr=!1;function l2(e,t,l){Wt.push({fragmentInstance:e,observer:t,instance:l}),wr||(wr=!0,f2(function(){wr=!1;var n=Wt;Wt=[];for(var a=0;a<n.length;a++){var u=n[a];u.observer.unobserve(u.instance)}}))}wt.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,n2,e,void 0,void 0),e};function n2(e,t){if(e.tag===6){e=e.stateNode;var l=e.ownerDocument.createRange();l.selectNodeContents(e),t.push.apply(t,l.getClientRects())}else e=U(e),t.push.apply(t,e.getClientRects());return!1}wt.prototype.getRootNode=function(e){var t=S(this._fragmentFiber);return t===null?this:U(t).getRootNode(e)},wt.prototype.compareDocumentPosition=function(e){var t=S(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];m(this._fragmentFiber.child,!1,jr,l,void 0,void 0);var n=U(t);if(l.length===0){if(l=n,D(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(l=t)}t=this._fragmentFiber;var a=n=l.compareDocumentPosition(e);return l===e?a=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=Y(t)[1],l===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=U(l).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=U(l[0]),a=U(l[l.length-1]);var u=D(this._fragmentFiber)?t.parentElement:n;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=t.compareDocumentPosition(e),x=a.compareDocumentPosition(e),y=s&Node.DOCUMENT_POSITION_CONTAINED_BY||x&Node.DOCUMENT_POSITION_CONTAINED_BY;return x=n&&u&&s&Node.DOCUMENT_POSITION_FOLLOWING&&x&Node.DOCUMENT_POSITION_PRECEDING,t=n&&t===e||u&&a===e||y||x?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&t===e||!u&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||a2(t,this._fragmentFiber,l[0],l[l.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function a2(e,t,l,n,a){var u=fn(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){l=!0;break e}u=u.return}l=!1}return l}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=a.ownerDocument,a===u||a===u.documentElement||a===u.body;e:{for(u=t,t=S(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===l)&&(t=E(l,u,V),t===null?t=!1:(m(t,!0,Q,u,l),u=ee,ee=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===n)&&(t=E(n,u,V),t===null?t=!1:(m(t,!0,ie,u,n),u=ee,K=ee=null,t=u!==null)),t):!1}function px(e,t){var l=e.ownerDocument.createRange();l.selectNodeContents(e),e=l.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}wt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];m(this._fragmentFiber.child,!1,jr,t,void 0,void 0);var l=e!==!1;if(t.length===0){var n=Y(this._fragmentFiber);if(n=l?n[1]||n[0]||S(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){e=U(n),px(e,l);return}if(n=U(n),n.nodeType!==9){if(n.nodeType===11){l="host"in n?n.host:null,l!==null&&l.scrollIntoView(e);return}n.scrollIntoView(e)}}for(n=l?t.length-1:0;n!==(l?-1:t.length);){var a=t[n];a.tag===6?(a=U(a),px(a,l)):U(a).scrollIntoView(e),n+=l?-1:1}};function u2(e,t){return e=U(e),yx(e,t),!1}function yx(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Nx(e,t){var l=t._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];e.addEventListener(a.type,a.attachedListener,Sa(a.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){for(var s=0,x=0;x<Wt.length;x++){var y=Wt[x];(y.fragmentInstance!==t||y.observer!==u||y.instance!==e)&&(Wt[s++]=y)}Wt.length=s,u.observe(e)}),yx(e,t))}function i2(e,t){var l=t._eventListeners;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n];e.removeEventListener(a.type,a.attachedListener,Sa(a.optionsOrUseCapture))}e.nodeType!==3&&(l=t._observers,l!==null&&l.forEach(function(u){typeof u.rootMargin=="string"?l2(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function zr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zr(l),Gu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function c2(e,t,l,n){for(;e.nodeType===1;){var a=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function s2(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Gt(e.nextSibling),e===null))return null;return e}function Sx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function _r(e){return e.data==="$?"||e.data==="$~"}function Rr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function r2(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var n=function(){t(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Gt(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Lr=null;function Ex(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Gt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Ax(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function o2(e,t){function l(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",l,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",l,!0)}return n}function f2(e){ox(function(){ox(function(t){return e(t)})})}function Cx(e,t,l){switch(t=Eu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Mx(e,t,l){for(var n in l){var a=l[n];l.hasOwnProperty(n)&&a!=null&&ze(e,t,n,null,Ug,a)}l.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===el&&(e.onclick=null),Gu(e)}function Hr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Gu(e)}var Yt=new Map,kx=new Set;function Au(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Tl=de.d;de.d={f:d2,r:x2,D:h2,C:m2,L:g2,m:v2,X:p2,S:b2,M:y2};function d2(){var e=Tl.f(),t=Qi();return e||t}function x2(e){var t=qn(e);t!==null&&t.tag===5&&t.type==="form"?F0(t):Tl.r(e)}var Ea=typeof document>"u"?null:document;function Tx(e,t,l){var n=Ea;if(n&&typeof t=="string"&&t){var a=zt(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),kx.has(a)||(kx.add(a),e={rel:e,crossOrigin:l,href:t},n.querySelector(a)===null&&(t=n.createElement("link"),st(t,"link",e),Pe(t),n.head.appendChild(t)))}}function h2(e){Tl.D(e),Tx("dns-prefetch",e,null)}function m2(e,t){Tl.C(e,t),Tx("preconnect",e,t)}function g2(e,t,l){Tl.L(e,t,l);var n=Ea;if(n&&e&&t){var a='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+zt(l.imageSizes)+'"]')):a+='[href="'+zt(e)+'"]';var u=a;switch(t){case"style":u=Aa(e);break;case"script":u=Ca(e)}if(!(Yt.has(u)||(e=z({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Yt.set(u,e),n.querySelector(a)!==null||t==="style"&&n.querySelector(Cu(u))||t==="script"&&n.querySelector(Mu(u))))){var s=n.createElement("link");st(s,"link",e),t==="style"&&(s[qu]=!0,s.onload=s.onerror=function(){Uo(s)}),Pe(s),n.head.appendChild(s)}}}function v2(e,t){Tl.m(e,t);var l=Ea;if(l&&e){var n=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+zt(n)+'"][href="'+zt(e)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ca(e)}if(!Yt.has(u)&&(e=z({rel:"modulepreload",href:e},t),Yt.set(u,e),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Mu(u)))return}n=l.createElement("link"),st(n,"link",e),Pe(n),l.head.appendChild(n)}}}function b2(e,t,l){Tl.S(e,t,l);var n=Ea;if(n&&e){var a=Gn(n).hoistableStyles,u=Aa(e);t=t||"default";var s=a.get(u);if(!s){var x={loading:0,preload:null};if(s=n.querySelector(Cu(u)))x.loading=5;else{e=z({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Yt.get(u))&&Ur(e,l);var y=s=n.createElement("link");Pe(y),st(y,"link",e),y._p=new Promise(function(O,H){y.onload=O,y.onerror=H}),y.addEventListener("load",function(){x.loading|=1}),y.addEventListener("error",function(){x.loading|=2}),x.loading|=4,$i(s,t,n)}s={type:"stylesheet",instance:s,count:1,state:x},a.set(u,s)}}}function p2(e,t){Tl.X(e,t);var l=Ea;if(l&&e){var n=Gn(l).hoistableScripts,a=Ca(e),u=n.get(a);u||(u=l.querySelector(Mu(a)),u||(e=z({src:e,async:!0},t),(t=Yt.get(a))&&qr(e,t),u=l.createElement("script"),Pe(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function y2(e,t){Tl.M(e,t);var l=Ea;if(l&&e){var n=Gn(l).hoistableScripts,a=Ca(e),u=n.get(a);u||(u=l.querySelector(Mu(a)),u||(e=z({src:e,async:!0,type:"module"},t),(t=Yt.get(a))&&qr(e,t),u=l.createElement("script"),Pe(u),st(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Fx(e,t,l,n){var a=(a=dl.current)?Au(a):null;if(!a)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Aa(l.href),t=Gn(a).hoistableStyles,n=t.get(l),n||(n={type:"style",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Aa(l.href);var u=Gn(a).hoistableStyles,s=u.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=a.querySelector(Cu(e)))?u._p||(s.instance=u,s.state.loading=5):(u=Yt.get(e),u||(u={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Yt.set(e,u)),N2(a,e,u,s.state))),t&&n===null)throw Error(o(528,""));return s}if(t&&n!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(l=Ca(l),t=Gn(a).hoistableScripts,n=t.get(l),n||(n={type:"script",instance:null,count:0,state:null},t.set(l,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Aa(e){return'href="'+zt(e)+'"'}function Cu(e){return'link[rel="stylesheet"]['+e+"]"}function Dx(e){return z({},e,{"data-precedence":e.precedence,precedence:null})}function N2(e,t,l,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[qu]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[qu]=!0,t.onload=t.onerror=Uo.bind(null,t),st(t,"link",l),Pe(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function Ca(e){return'[src="'+zt(e)+'"]'}function Mu(e){return"script[async]"+e}function Bx(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(n)return t.instance=n,Pe(n),n;var a=z({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Pe(n),st(n,"style",a),$i(n,l.precedence,e),t.instance=n;case"stylesheet":a=Aa(l.href);var u=e.querySelector(Cu(a));if(u)return t.state.loading|=4,t.instance=u,Pe(u),u;n=Dx(l),(a=Yt.get(a))&&Ur(n,a),u=(e.ownerDocument||e).createElement("link"),Pe(u);var s=u;return s._p=new Promise(function(x,y){s.onload=x,s.onerror=y}),st(u,"link",n),t.state.loading|=4,$i(u,l.precedence,e),t.instance=u;case"script":return u=Ca(l.src),(a=e.querySelector(Mu(u)))?(t.instance=a,Pe(a),a):(n=l,(a=Yt.get(u))&&(n=z({},l),qr(n,a)),e=e.ownerDocument||e,a=e.createElement("script"),Pe(a),st(a,"link",n),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,$i(n,l.precedence,e));return t.instance}function $i(e,t,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,s=0;s<n.length;s++){var x=n[s];if(x.dataset.precedence===t)u=x;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Ur(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pi=null;function Ox(e,t,l){if(Pi===null){var n=new Map,a=Pi=new Map;a.set(l,n)}else a=Pi,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(e))return n;for(n.set(e,null),l=l.getElementsByTagName(e),a=0;a<l.length;a++){var u=l[a];if(!(u[qa]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var x=n.get(s);x?x.push(u):n.set(s,[u])}}return n}function Gr(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function S2(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function jx(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function wx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function zx(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function _x(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=zx(t),e.suspenseyImages.push(t)),e=C2.bind(e),t.decode().then(e,e))}function E2(e,t,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var a=Aa(n.href),u=t.querySelector(Cu(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ku.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Pe(u);return}u=t.ownerDocument||t,n=Dx(n),(a=Yt.get(a))&&Ur(n,a),u=u.createElement("link"),Pe(u);var s=u;s._p=new Promise(function(x,y){s.onload=x,s.onerror=y}),st(u,"link",n),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ku.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ec=0;function A2(e,t){return e.stylesheets&&e.count===0&&lc(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var n=setTimeout(function(){if(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&ec===0&&(ec=62500*Gg());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lc(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>ec?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(a)}}:null}function Rx(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lc(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ku(){this.count--,Rx(this)}function C2(){this.imgCount--,Rx(this)}var tc=null;function lc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tc=new Map,t.forEach(M2,e),tc=null,ku.call(e))}function M2(e,t){if(!(t.state.loading&4)){var l=tc.get(e);if(l)var n=l.get(null);else{l=new Map,tc.set(e,l);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var s=a[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),n=s)}n&&l.set(null,n)}a=t.instance,s=a.getAttribute("data-precedence"),u=l.get(s)||n,u===n&&l.set(null,a),l.set(s,a),this.count++,n=ku.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Ma={$$typeof:k,Provider:null,Consumer:null,_currentValue:qe,_currentValue2:qe,_threadCount:0};function k2(e,t,l,n,a,u,s,x,y){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Sc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sc(0),this.hiddenUpdates=Sc(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.transitionTypes=null,this.incompleteTransitions=new Map}function Lx(e,t,l,n,a,u,s,x,y,O,H,G){return e=new k2(e,t,l,s,y,O,H,G,x),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=ns(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:t},cs(u),e}function Hx(e){return e?(e=$n,e):$n}function Ux(e,t,l,n,a,u){a=Hx(a),n.context===null?n.context=a:n.pendingContext=a,n=Hl(t),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=Ul(e,n,t),l!==null&&(St(l,e,t),au(l,e,t))}function qx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Yr(e,t){qx(e,t),(e=e.alternate)&&qx(e,t)}function Gx(e){if(e.tag===13||e.tag===31){var t=mn(e,67108864);t!==null&&St(t,e,67108864),Yr(e,67108864)}}function Yx(e){if(e.tag===13||e.tag===31){var t=jt();t=Ec(t);var l=mn(e,t);l!==null&&St(l,e,t),Yr(e,t)}}var ka=!0;function T2(e,t,l,n){var a=ue.T;ue.T=null;var u=de.p;try{de.p=2,Xr(e,t,l,n)}finally{de.p=u,ue.T=a}}function F2(e,t,l,n){var a=ue.T;ue.T=null;var u=de.p;try{de.p=8,Xr(e,t,l,n)}finally{de.p=u,ue.T=a}}function Xr(e,t,l,n){if(ka){var a=Qr(n);if(a===null)Cr(e,t,n,nc,l),Qx(e,n);else if(B2(a,e,t,l,n))n.stopPropagation();else if(Qx(e,n),t&4&&-1<D2.indexOf(e)){for(;a!==null;){var u=qn(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=on(u.pendingLanes);if(s!==0){var x=u;for(x.pendingLanes|=2,x.entangledLanes|=2;s;){var y=1<<31-Mt(s);x.entanglements[1]|=y,s&=~y}ol(u),(Be&6)===0&&(Gi=At()+500,yu(0))}}break;case 31:case 13:x=mn(u,2),x!==null&&St(x,u,2),Qi(),Yr(u,2)}if(u=Qr(n),u===null&&Cr(e,t,n,nc,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else Cr(e,t,n,null,l)}}function Qr(e){return e=Dc(e),Vr(e)}var nc=null;function Vr(e){if(nc=null,e=fn(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=N(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nc=e,null}function Xx(e){switch(e){case"beforetoggle":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"seeked":case"submit":case"toggle":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"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Gh()){case To:return 2;case Fo:return 8;case _u:case Yh:return 32;case Do:return 268435456;default:return 32}default:return 32}}var Zr=!1,$l=null,Pl=null,en=null,Tu=new Map,Fu=new Map,tn=[],D2="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".split(" ");function Qx(e,t){switch(e){case"focusin":case"focusout":$l=null;break;case"dragenter":case"dragleave":Pl=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":Tu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fu.delete(t.pointerId)}}function Du(e,t,l,n,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},t!==null&&(t=qn(t),t!==null&&Gx(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function B2(e,t,l,n,a){switch(t){case"focusin":return $l=Du($l,e,t,l,n,a),!0;case"dragenter":return Pl=Du(Pl,e,t,l,n,a),!0;case"mouseover":return en=Du(en,e,t,l,n,a),!0;case"pointerover":var u=a.pointerId;return Tu.set(u,Du(Tu.get(u)||null,e,t,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Fu.set(u,Du(Fu.get(u)||null,e,t,l,n,a)),!0}return!1}function Vx(e){var t=fn(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,Ro(e.priority,function(){Yx(l)});return}}else if(t===31){if(t=N(l),t!==null){e.blockedOn=t,Ro(e.priority,function(){Yx(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ac(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Qr(e.nativeEvent);if(l===null){l=e.nativeEvent;var n=new l.constructor(l.type,l);Fc=n,l.target.dispatchEvent(n),Fc=null}else return t=qn(l),t!==null&&Gx(t),e.blockedOn=l,!1;t.shift()}return!0}function Zx(e,t,l){ac(e)&&l.delete(t)}function O2(){Zr=!1,$l!==null&&ac($l)&&($l=null),Pl!==null&&ac(Pl)&&(Pl=null),en!==null&&ac(en)&&(en=null),Tu.forEach(Zx),Fu.forEach(Zx)}function uc(e,t){e.blockedOn===t&&(e.blockedOn=null,Zr||(Zr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,O2)))}var ic=null;function Kx(e){ic!==e&&(ic=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ic===e&&(ic=null);for(var t=0;t<e.length;t+=3){var l=e[t],n=e[t+1],a=e[t+2];if(typeof n!="function"){if(Vr(n||l)===null)continue;break}var u=qn(l);u!==null&&(e.splice(t,3),t-=3,Ts(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Ta(e){function t(y){return uc(y,e)}$l!==null&&uc($l,e),Pl!==null&&uc(Pl,e),en!==null&&uc(en,e),Tu.forEach(t),Fu.forEach(t);for(var l=0;l<tn.length;l++){var n=tn[l];n.blockedOn===e&&(n.blockedOn=null)}for(;0<tn.length&&(l=tn[0],l.blockedOn===null);)Vx(l),l.blockedOn===null&&tn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],s=a[vt]||null;if(typeof u=="function")s||Kx(l);else if(s){var x=null;if(u&&u.hasAttribute("formAction")){if(a=u,s=u[vt]||null)x=s.formAction;else if(Vr(a)!==null)continue}else x=s.action;typeof x=="function"?l[n+1]=x:(l.splice(n,3),n-=3),Kx(l)}}}function Jx(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Kr(e){this._internalRoot=e}cc.prototype.render=Kr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,n=jt();Ux(l,n,e,t,null,null)},cc.prototype.unmount=Kr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ux(e.current,2,null,e,null,null),Qi(),t[Un]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_o();e={blockedOn:null,target:e,priority:t};for(var l=0;l<tn.length&&t!==0&&t<tn[l].priority;l++);tn.splice(l,0,e),l===0&&Vx(e)}};var Wx=c.version;if(Wx!=="19.3.0")throw Error(o(527,Wx,"19.3.0"));de.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var j2={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:ue,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{La=sc.inject(j2),Ct=sc}catch{}}return ju.createRoot=function(e,t){if(!d(e))throw Error(o(299));var l=!1,n="",a=H0,u=U0,s=q0;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Lx(e,1,!1,null,null,l,n,null,a,u,s,Jx),e[Un]=t.current,Ar(e),new Kr(t)},ju.hydrateRoot=function(e,t,l){if(!d(e))throw Error(o(299));var n=!1,a="",u=H0,s=U0,x=q0,y=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(x=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=Lx(e,1,!0,t,l??null,n,a,y,u,s,x,Jx),t.context=Hx(null),l=t.current,n=jt(),n=Ec(n),a=Hl(n),a.callback=null,Ul(l,a,n),l=n,t.current.lanes=l,Ua(t,l),ol(t),e[Un]=t.current,Ar(e),new cc(t)},ju.version="19.3.0",ju}var f1;function V2(){if(f1)return Ir.exports;f1=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Ir.exports=Q2(),Ir.exports}var Z2=V2();const K2=_1(Z2);/**
|
|
50
|
-
* @license lucide-react v1.55.0 - ISC
|
|
51
|
-
*
|
|
52
|
-
* This source code is licensed under the ISC license.
|
|
53
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const J2=i=>i==null?void 0:i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
55
|
-
* @license lucide-react v1.55.0 - ISC
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the ISC license.
|
|
58
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/function W2(i,c,r=[]){if(c==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:J2(i),size:24,node:c,...r.length>0?{aliases:r}:{}}}/**
|
|
60
|
-
* @license lucide-react v1.55.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const I2=i=>{let c="",r=!1;for(const o of i){if(o==="-"||o==="_"||o<=" "){r=c.length>0;continue}c.length===0?c+=o.toLowerCase():c+=r?o.toUpperCase():o,r=!1}return c};/**
|
|
65
|
-
* @license lucide-react v1.55.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const $2=i=>{const c=I2(i);return c.charAt(0).toUpperCase()+c.slice(1)};/**
|
|
70
|
-
* @license lucide-react v1.55.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const fo=(...i)=>i.filter((c,r,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===r).join(" ").trim();/**
|
|
75
|
-
* @license lucide-react v1.55.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const jn={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
80
|
-
* @license lucide-react v1.55.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/function to(i){return i!=null}function P2(i,c={}){var S,D;const r=c.attributeNames??{},o=Y=>r[Y]??Y,d=i.size??i.width??jn.width,h=i.size??i.height??jn.height,p=((S=i.aliases)==null?void 0:S.filter(Y=>typeof Y=="string"&&Y.trim()!=="").map(Y=>`lucide-${Y}`))??[],N=[...i.name?[`lucide-${i.name}`]:[],...p],b=((D=c.className)==null?void 0:D.split(" ").filter(Boolean))??[],v=c.includeDefaultClasses===!1?fo(...b):fo("lucide",...N,...b),g=c.absoluteStrokeWidth?Number(c.strokeWidth??jn["stroke-width"])*Number(i.size??i.width??jn.width)/Number(c.size??c.width??jn.width):c.strokeWidth??jn["stroke-width"];return["svg",{...Object.entries(jn).reduce((Y,[P,U])=>(Y[o(P)]=U,Y),{}),..."color"in c&&c.color&&{[o("stroke")]:c.color},..."size"in c&&to(c.size)&&{[o("width")]:c.size,[o("height")]:c.size},..."width"in c&&to(c.width)&&{[o("width")]:c.width},..."height"in c&&to(c.height)&&{[o("height")]:c.height},[o("stroke-width")]:g,...v&&{[o("class")]:v},[o("viewBox")]:`0 0 ${d} ${h}`,...c.hasA11yProp===!1?{[o("aria-hidden")]:"true"}:{},..."attributes"in c&&c.attributes},i.node.map(Y=>{const[P,U,ee]=Y,K=c.nonScalingStroke?{[o("vector-effect")]:"non-scaling-stroke",...U}:U;return ee?[P,K,ee]:[P,K]})]}/**
|
|
85
|
-
* @license lucide-react v1.55.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/function ev(i,c={}){return P2(i,{...c,attributeNames:{...c.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}/**
|
|
90
|
-
* @license lucide-react v1.55.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const tv=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},lv=ge.createContext({}),nv=()=>ge.useContext(lv),av=ge.forwardRef(({color:i,size:c,width:r,height:o,strokeWidth:d,absoluteStrokeWidth:h,nonScalingStroke:p,className:N="",children:b,iconNode:v=[],icon:g={node:v,aliases:[],size:24},...m},S)=>{const{size:D=24,strokeWidth:Y=2,absoluteStrokeWidth:P=!1,nonScalingStroke:U=!1,color:ee="currentColor",className:K=""}=nv()??{},Q=!!b||tv(m),[ie,V,E=[]]=ev(g,{color:i??ee,width:r??c??D,height:o??c??D,strokeWidth:d??Y,absoluteStrokeWidth:h??P,nonScalingStroke:p??U,className:fo(K,N),hasA11yProp:Q,attributes:m});return ge.createElement(ie,{ref:S,...V},[...E.map(([z,R])=>ge.createElement(z,R)),...Array.isArray(b)?b:[b]])});/**
|
|
95
|
-
* @license lucide-react v1.55.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/function Ee(i,c=[],r=[]){const o=typeof i=="string"?W2(i,c,r):i,d=ge.forwardRef(({className:h,...p},N)=>ge.createElement(av,{ref:N,icon:o,className:h,...p}));return o.name&&(d.displayName=$2(o.name)),d}/**
|
|
100
|
-
* @license lucide-react v1.55.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const R1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};R1.node;const uv=Ee(R1);/**
|
|
105
|
-
* @license lucide-react v1.55.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const L1={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};L1.node;const iv=Ee(L1);/**
|
|
110
|
-
* @license lucide-react v1.55.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const H1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};H1.node;const cv=Ee(H1);/**
|
|
115
|
-
* @license lucide-react v1.55.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const U1={name:"bookmark",size:24,node:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]]};U1.node;const sv=Ee(U1);/**
|
|
120
|
-
* @license lucide-react v1.55.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const q1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};q1.node;const G1=Ee(q1);/**
|
|
125
|
-
* @license lucide-react v1.55.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const Y1={name:"download",size:24,node:[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]};Y1.node;const rv=Ee(Y1);/**
|
|
130
|
-
* @license lucide-react v1.55.0 - ISC
|
|
131
|
-
*
|
|
132
|
-
* This source code is licensed under the ISC license.
|
|
133
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/const X1={name:"file-text",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]};X1.node;const ov=Ee(X1);/**
|
|
135
|
-
* @license lucide-react v1.55.0 - ISC
|
|
136
|
-
*
|
|
137
|
-
* This source code is licensed under the ISC license.
|
|
138
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
-
*/const Q1={name:"folder-open",size:24,node:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]};Q1.node;const fv=Ee(Q1);/**
|
|
140
|
-
* @license lucide-react v1.55.0 - ISC
|
|
141
|
-
*
|
|
142
|
-
* This source code is licensed under the ISC license.
|
|
143
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
-
*/const V1={name:"folder-plus",size:24,node:[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};V1.node;const dv=Ee(V1);/**
|
|
145
|
-
* @license lucide-react v1.55.0 - ISC
|
|
146
|
-
*
|
|
147
|
-
* This source code is licensed under the ISC license.
|
|
148
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
-
*/const Z1={name:"heading-2",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]};Z1.node;const xv=Ee(Z1);/**
|
|
150
|
-
* @license lucide-react v1.55.0 - ISC
|
|
151
|
-
*
|
|
152
|
-
* This source code is licensed under the ISC license.
|
|
153
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
-
*/const K1={name:"heading-1",size:24,node:[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]};K1.node;const hv=Ee(K1);/**
|
|
155
|
-
* @license lucide-react v1.55.0 - ISC
|
|
156
|
-
*
|
|
157
|
-
* This source code is licensed under the ISC license.
|
|
158
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/const J1={name:"highlighter",size:24,node:[["path",{d:"m9 11-6 6v3h9l3-3",key:"1a3l36"}],["path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4",key:"14a9rk"}]]};J1.node;const mv=Ee(J1);/**
|
|
160
|
-
* @license lucide-react v1.55.0 - ISC
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the ISC license.
|
|
163
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const W1={name:"image",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]};W1.node;const gv=Ee(W1);/**
|
|
165
|
-
* @license lucide-react v1.55.0 - ISC
|
|
166
|
-
*
|
|
167
|
-
* This source code is licensed under the ISC license.
|
|
168
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
-
*/const I1={name:"key",size:24,node:[["path",{d:"m2 21 9.6-9.6",key:"9l79m3"}],["path",{d:"m7.5 15.5 2.3 2.3a1 1 0 0 1 0 1.4l-2.1 2.1a1 1 0 0 1-1.4 0L4 19",key:"fw8biw"}],["circle",{cx:"15.5",cy:"7.5",r:"5.5",key:"4wxmhb"}]]};I1.node;const $1=Ee(I1);/**
|
|
170
|
-
* @license lucide-react v1.55.0 - ISC
|
|
171
|
-
*
|
|
172
|
-
* This source code is licensed under the ISC license.
|
|
173
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
-
*/const P1={name:"layers",size:24,node:[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],aliases:["layers-3"]};P1.node;const vv=Ee(P1);/**
|
|
175
|
-
* @license lucide-react v1.55.0 - ISC
|
|
176
|
-
*
|
|
177
|
-
* This source code is licensed under the ISC license.
|
|
178
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
-
*/const eh={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};eh.node;const bv=Ee(eh);/**
|
|
180
|
-
* @license lucide-react v1.55.0 - ISC
|
|
181
|
-
*
|
|
182
|
-
* This source code is licensed under the ISC license.
|
|
183
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
-
*/const th={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};th.node;const pv=Ee(th);/**
|
|
185
|
-
* @license lucide-react v1.55.0 - ISC
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the ISC license.
|
|
188
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
-
*/const lh={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};lh.node;const yv=Ee(lh);/**
|
|
190
|
-
* @license lucide-react v1.55.0 - ISC
|
|
191
|
-
*
|
|
192
|
-
* This source code is licensed under the ISC license.
|
|
193
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
-
*/const nh={name:"palette",size:24,node:[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]};nh.node;const Nv=Ee(nh);/**
|
|
195
|
-
* @license lucide-react v1.55.0 - ISC
|
|
196
|
-
*
|
|
197
|
-
* This source code is licensed under the ISC license.
|
|
198
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
-
*/const ah={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};ah.node;const Sv=Ee(ah);/**
|
|
200
|
-
* @license lucide-react v1.55.0 - ISC
|
|
201
|
-
*
|
|
202
|
-
* This source code is licensed under the ISC license.
|
|
203
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
-
*/const uh={name:"refresh-cw",size:24,node:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]};uh.node;const ih=Ee(uh);/**
|
|
205
|
-
* @license lucide-react v1.55.0 - ISC
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the ISC license.
|
|
208
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
-
*/const ch={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};ch.node;const Ev=Ee(ch);/**
|
|
210
|
-
* @license lucide-react v1.55.0 - ISC
|
|
211
|
-
*
|
|
212
|
-
* This source code is licensed under the ISC license.
|
|
213
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
-
*/const sh={name:"rows-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]],aliases:["rows"]};sh.node;const Av=Ee(sh);/**
|
|
215
|
-
* @license lucide-react v1.55.0 - ISC
|
|
216
|
-
*
|
|
217
|
-
* This source code is licensed under the ISC license.
|
|
218
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
-
*/const rh={name:"shield-check",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]};rh.node;const Cv=Ee(rh);/**
|
|
220
|
-
* @license lucide-react v1.55.0 - ISC
|
|
221
|
-
*
|
|
222
|
-
* This source code is licensed under the ISC license.
|
|
223
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
-
*/const oh={name:"shield",size:24,node:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]};oh.node;const Mv=Ee(oh);/**
|
|
225
|
-
* @license lucide-react v1.55.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/const fh={name:"sliders-vertical",size:24,node:[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],aliases:["sliders"]};fh.node;const kv=Ee(fh);/**
|
|
230
|
-
* @license lucide-react v1.55.0 - ISC
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the ISC license.
|
|
233
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
-
*/const dh={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};dh.node;const xo=Ee(dh);/**
|
|
235
|
-
* @license lucide-react v1.55.0 - ISC
|
|
236
|
-
*
|
|
237
|
-
* This source code is licensed under the ISC license.
|
|
238
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
239
|
-
*/const xh={name:"star",size:24,node:[["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"}]]};xh.node;const lo=Ee(xh);/**
|
|
240
|
-
* @license lucide-react v1.55.0 - ISC
|
|
241
|
-
*
|
|
242
|
-
* This source code is licensed under the ISC license.
|
|
243
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
244
|
-
*/const hh={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};hh.node;const Tv=Ee(hh);/**
|
|
245
|
-
* @license lucide-react v1.55.0 - ISC
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the ISC license.
|
|
248
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
249
|
-
*/const mh={name:"text-align-end",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],aliases:["align-right"]};mh.node;const Fv=Ee(mh);/**
|
|
250
|
-
* @license lucide-react v1.55.0 - ISC
|
|
251
|
-
*
|
|
252
|
-
* This source code is licensed under the ISC license.
|
|
253
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
254
|
-
*/const gh={name:"text-align-center",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],aliases:["align-center"]};gh.node;const Dv=Ee(gh);/**
|
|
255
|
-
* @license lucide-react v1.55.0 - ISC
|
|
256
|
-
*
|
|
257
|
-
* This source code is licensed under the ISC license.
|
|
258
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
259
|
-
*/const vh={name:"text-align-start",size:24,node:[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],aliases:["text","align-left"]};vh.node;const Bv=Ee(vh);/**
|
|
260
|
-
* @license lucide-react v1.55.0 - ISC
|
|
261
|
-
*
|
|
262
|
-
* This source code is licensed under the ISC license.
|
|
263
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
264
|
-
*/const bh={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};bh.node;const ph=Ee(bh);/**
|
|
265
|
-
* @license lucide-react v1.55.0 - ISC
|
|
266
|
-
*
|
|
267
|
-
* This source code is licensed under the ISC license.
|
|
268
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
269
|
-
*/const yh={name:"type",size:24,node:[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]};yh.node;const Ov=Ee(yh);/**
|
|
270
|
-
* @license lucide-react v1.55.0 - ISC
|
|
271
|
-
*
|
|
272
|
-
* This source code is licensed under the ISC license.
|
|
273
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
274
|
-
*/const Nh={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};Nh.node;const jv=Ee(Nh);/**
|
|
275
|
-
* @license lucide-react v1.55.0 - ISC
|
|
276
|
-
*
|
|
277
|
-
* This source code is licensed under the ISC license.
|
|
278
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
279
|
-
*/const Sh={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Sh.node;const Eh=Ee(Sh);/**
|
|
280
|
-
* @license lucide-react v1.55.0 - ISC
|
|
281
|
-
*
|
|
282
|
-
* This source code is licensed under the ISC license.
|
|
283
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
284
|
-
*/const Ah={name:"zoom-in",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};Ah.node;const Ch=Ee(Ah);/**
|
|
285
|
-
* @license lucide-react v1.55.0 - ISC
|
|
286
|
-
*
|
|
287
|
-
* This source code is licensed under the ISC license.
|
|
288
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const Mh={name:"zoom-out",size:24,node:[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]};Mh.node;const wv=Ee(Mh),zv=({isOpen:i,onClose:c,currentKey:r,onSaveKey:o,isVerified:d})=>{const[h,p]=ge.useState(r),[N,b]=ge.useState(null);if(!i)return null;const v=()=>{o(h.trim()),b("密钥已更新并保存至本地存储"),setTimeout(()=>{c()},800)};return f.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 dark:bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:f.jsxs("div",{className:"bg-white dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#262626] rounded-xl w-full max-w-md flex flex-col shadow-2xl overflow-hidden animate-in fade-in zoom-in-95 duration-150 transition-colors",children:[f.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-[#eaeaea] dark:border-[#222222]",children:[f.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-[#171717] dark:text-white",children:[f.jsx($1,{className:"w-4 h-4 text-amber-500 dark:text-amber-400"}),f.jsx("span",{children:"超管密钥授权"})]}),f.jsx("button",{onClick:c,className:"text-[#888888] hover:text-black dark:hover:text-white p-1 rounded-md hover:bg-[#f5f5f5] dark:hover:bg-[#1a1a1a]",children:f.jsx(Eh,{className:"w-4 h-4"})})]}),f.jsxs("div",{className:"p-5 flex flex-col gap-4",children:[f.jsxs("div",{className:"text-xs text-[#666666] dark:text-[#888888] leading-relaxed",children:["服务端默认通过 ",f.jsx("code",{className:"text-black dark:text-[#ededed] font-mono font-semibold",children:"TYPESET_ADMIN_KEY"})," 保护模板持久化、图片上传和无头出图 API。请填入服务启动时控制台打印的管理员密钥。"]}),f.jsxs("div",{className:"flex flex-col gap-1.5",children:[f.jsx("label",{className:"text-[11px] font-mono text-[#888888] dark:text-[#666666]",children:"X-Admin-Key"}),f.jsx("input",{type:"password",value:h,onChange:g=>p(g.target.value),placeholder:"tsk_...",className:"bg-[#fafafa] dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded-lg px-3 py-2 text-xs font-mono text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]"})]}),N?f.jsxs("div",{className:"text-xs text-emerald-700 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border border-emerald-200 dark:border-emerald-500/20 px-3 py-2 rounded-lg flex items-center gap-2 font-medium",children:[f.jsx(G1,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:N})]}):d?f.jsxs("div",{className:"text-xs text-emerald-700 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-500/10 border border-emerald-200 dark:border-emerald-500/20 px-3 py-2 rounded-lg flex items-center gap-2 font-medium",children:[f.jsx(Cv,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"密钥已通过验证,拥有超管权限"})]}):f.jsx("div",{className:"text-xs text-amber-700 dark:text-amber-400 bg-amber-50 dark:bg-amber-500/10 border border-amber-200 dark:border-amber-500/20 px-3 py-2 rounded-lg",children:"当前密钥未验证或已失效,请检查后端 .env 配置"}),f.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[f.jsx("button",{onClick:c,className:"px-3 py-1.5 rounded-lg border border-[#eaeaea] dark:border-[#262626] text-xs text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white hover:bg-[#f5f5f5] dark:hover:bg-[#161616]",children:"取消"}),f.jsx("button",{onClick:v,className:"px-4 py-1.5 bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold rounded-lg transition-all btn-vercel",children:"保存并授权"})]})]})]})})},d1={"wechat-cover-2.35":{id:"wechat-cover-2.35",name:"微信文章封面",ratio:2.35,width:2350,height:1e3,description:"微信公众号官方推荐大图封面 (2.35:1),适合主标题视觉张力、副标题与装饰图层",defaultSafeArea:{top:120,right:140,bottom:120,left:140}},"longform-3-4":{id:"longform-3-4",name:"通用长图文",ratio:3/4,width:1080,height:1440,description:"3:4 手机端阅读长文/图文卡片,支持多页分页、矩形图片绕排、目标填充率优化",defaultSafeArea:{top:96,right:88,bottom:96,left:88}},"wide-16-9":{id:"wide-16-9",name:"通用宽屏",ratio:16/9,width:1920,height:1080,description:"16:9 横版宽屏,适合推特/X 动态配图、技术博客 Banner、视频封面与分栏排版",defaultSafeArea:{top:100,right:120,bottom:100,left:120}},"square-1-1":{id:"square-1-1",name:"通用正方形",ratio:1,width:1200,height:1200,description:"1:1 正方形卡片,适合金句名言卡、公众号次条、小红书方图与社交媒体方版海报",defaultSafeArea:{top:100,right:100,bottom:100,left:100}}};function wn(i){return d1[i]??d1["longform-3-4"]}function zn(i,c,r=20){const o=Math.max(100,i.width-c.left-c.right),d=Math.max(100,i.height-c.top-c.bottom-r);return{stageWidth:o,stageHeight:d,stageX:c.left,stageY:c.top}}function _v(i,c=!1){const o=((i||"").split(",")[0]||"").replace(/["'\\]/g,"").trim();return o.includes("Noto Sans")||o==="Noto Sans SC"?c?'"Hiragino Sans GB", sans-serif':'"Noto Sans SC", "PingFang SC", sans-serif':o.includes("PingFang")||o==="PingFang SC"?c?'"Hiragino Sans GB", sans-serif':'"PingFang SC", "Noto Sans SC", sans-serif':o.includes("Noto Serif")||o==="Noto Serif SC"?c?'"Songti SC", serif':'"Noto Serif SC", "Songti SC", serif':o.includes("Songti")||o==="Songti SC"||o==="STSong"?c?'"Songti SC", serif':'"Songti SC", "Noto Serif SC", serif':o.includes("Kai")||o.includes("WenKai")?c?'"STKaiti", "Kaiti SC", "Songti SC", serif':'"LXGW WenKai GB Screen", "LXGW WenKai Screen", "Kaiti SC", "STKaiti", serif':o.includes("Yuan")||o.includes("Yuanti")?c?'"STYuanti", "Yuanti SC", "Hiragino Sans GB", sans-serif':'"Yuanti SC", "STYuanti", "PingFang SC", sans-serif':o.includes("Inter")?c?'Inter, "Hiragino Sans GB", sans-serif':'Inter, "PingFang SC", sans-serif':o.includes("Georgia")?'Georgia, "Songti SC", serif':o.toLowerCase().includes("serif")||o.includes("Song")?c?`"${o}", "Songti SC", serif`:`"${o}", "Songti SC", serif`:c?`"${o}", "Hiragino Sans GB", "PingFang SC", sans-serif`:`"${o}", "PingFang SC", sans-serif`}function wu(i,c=!1){if(!i)return'16px "PingFang SC", sans-serif';const r=i.match(/^(.*?)([\d.]+(?:px|pt|em|rem))\s+(.+)$/);if(!r)return i;const o=r[1],d=r[2],h=r[3];return`${o}${d} ${_v(h,c)}`}async function Rv(i,c){var V,E,z,R,I,W;const{page:r,spec:o,config:d,totalPageCount:h=1,getImage:p,isServer:N=!1}=c,{algorithm:b,theme:v,chrome:g}=d;i.save(),i.fillStyle=v.bgColor,i.fillRect(0,0,o.width,o.height),i.restore();const{stageX:m,stageY:S}=zn(o,b.safeArea,b.contentBottomGap),D=d.aspectRatio==="wechat-cover-2.35",Y=(g==null?void 0:g.showHeader)??!D,P=((g==null?void 0:g.showWatermark)??!D)&&!!((V=d.watermarkText)!=null&&V.trim()),U=((g==null?void 0:g.showPageNumber)??(!D&&h>1))&&h>1;if(Y&&(P||U)){const A=Math.max(24,Math.floor(b.safeArea.top*.45));if(P&&((E=d.watermarkText)!=null&&E.trim())&&(i.save(),i.font=wu("600 14px PingFang SC",N),i.fillStyle=v.watermarkColor,i.globalAlpha=.45,i.textBaseline="middle",i.textAlign="left",i.fillText(d.watermarkText.toUpperCase(),b.safeArea.left,A),i.restore()),U){i.save();const le=`P.${String(r.pageNumber).padStart(2,"0")}`;i.font='500 12px "SF Mono", Monaco, Menlo, Consolas, monospace',i.textBaseline="middle",i.textAlign="left";const Z=i.measureText(le).width+16,k=24,F=o.width-b.safeArea.right-Z,w=A-k/2;i.strokeStyle=v.textColor,i.globalAlpha=.4,i.lineWidth=1,i.beginPath(),i.roundRect(F,w,Z,k,12),i.stroke(),i.fillStyle=v.textColor,i.fillText(le,F+8,A),i.restore()}}const ee=[...r.images||[]].sort((A,le)=>{const X=A.zIndex??(A.isAbsolute?20:5),Z=le.zIndex??(le.isAbsolute?20:5);return X-Z});for(const A of ee){const le=await p(A.src),X=m+A.x,Z=S+A.y,k=X+A.width/2,F=Z+A.height/2;i.save(),i.translate(k,F),A.rotate&&i.rotate(A.rotate*Math.PI/180),i.globalAlpha=A.opacity??1;const w=A.width,L=A.height,$=Math.min(A.borderRadius??12,w/2,L/2);if(i.beginPath(),i.roundRect(-w/2,-L/2,w,L,$),i.clip(),le?i.drawImage(le,-w/2,-L/2,w,L):(i.fillStyle=v.cardBg||"#222222",i.fillRect(-w/2,-L/2,w,L)),i.restore(),(z=A.caption)!=null&&z.trim()){i.save();const J=Math.max(14,Math.round(b.baseFontSize*.45));i.font=wu(`400 ${J}px PingFang SC`,N),i.fillStyle=v.captionColor,i.textBaseline="top",i.textAlign="center",i.fillText(A.caption,k,Z+L+12),i.restore()}}for(const A of r.lines){const le=m+A.x,X=S+A.y;if(A.className==="body-quote"){i.save(),i.fillStyle=v.accentColor,i.globalAlpha=.85,i.beginPath();const k=Math.max(1,A.lineHeight-8);typeof i.roundRect=="function"?i.roundRect(m,X+4,3.5,k,2):i.rect(m,X+4,3.5,k),i.fill(),i.restore()}if(A.bullet&&A.bulletX!==void 0){if(i.save(),i.fillStyle=v.accentColor,A.bullet==="•"){const k=Math.max(3,Math.round(b.baseFontSize*.08)),F=m+A.bulletX+8,w=X+Math.round(A.lineHeight*.42);i.beginPath(),i.arc(F,w,k,0,Math.PI*2),i.fill()}else i.font=wu(A.font,N),i.textBaseline="top",i.textAlign="left",i.fillText(A.bullet,m+A.bulletX,X);i.restore()}let Z=le;for(const k of A.fragments){const F=k.font||A.font,w=wu(F,N);i.font=w,i.textBaseline="top",i.textAlign="left",k.highlight?i.fillStyle=v.accentColor:A.className.includes("heading")?i.fillStyle=v.headingColor||v.textColor:A.className.includes("quote")?i.fillStyle=v.quoteColor||v.textColor:i.fillStyle=v.textColor,i.fillText(k.text,Z,X);const L=i.measureText(k.text).width;Z+=L+(k.gapBefore||0)}}const K=(g==null?void 0:g.showFooter)??!D,Q=(g==null?void 0:g.showFooterDivider)??(!D&&!!((R=d.footerText)!=null&&R.trim())),ie=((g==null?void 0:g.showFooterText)??!D)&&!!((I=d.footerText)!=null&&I.trim());if(K){const A=o.height-Math.max(24,Math.floor(b.safeArea.bottom*.45));Q&&(i.save(),i.strokeStyle=v.borderSubtle||"#e5e5e5",i.lineWidth=1,i.beginPath(),i.moveTo(b.safeArea.left,A-14),i.lineTo(o.width-b.safeArea.right,A-14),i.stroke(),i.restore()),ie&&((W=d.footerText)!=null&&W.trim())&&(i.save(),i.font=wu("500 13px PingFang SC",N),i.fillStyle=v.watermarkColor||v.captionColor,i.globalAlpha=.6,i.textBaseline="middle",i.textAlign="left",i.fillText(d.footerText,b.safeArea.left,A),i.restore())}}const Lv=({page:i,spec:c,config:r,totalPageCount:o,zoom:d})=>{const h=ge.useRef(null);return ge.useEffect(()=>{const p=h.current;if(!p)return;const N=p.getContext("2d");if(!N)return;let b=!1;const v=m=>m?new Promise(S=>{const D=new Image;D.crossOrigin="anonymous",D.onload=()=>{b||S(D)},D.onerror=()=>{const Y=new Image;Y.onload=()=>{b||S(Y)},Y.onerror=()=>{b||S(null)},Y.src=m},D.src=m}):Promise.resolve(null),g=()=>{b||!p||Rv(N,{page:i,spec:c,config:r,totalPageCount:o,getImage:v,isServer:!1})};return g(),typeof document<"u"&&document.fonts&&document.fonts.ready.then(()=>{g()}),()=>{b=!0}},[i,c,r,o]),f.jsx("canvas",{id:`typeset-page-${i.pageNumber}`,ref:h,width:c.width,height:c.height,className:"typeset-page absolute top-0 left-0 border border-[#e0e0e0] dark:border-[#222222] shadow-sm select-none",style:{width:c.width*d,height:c.height*d,backgroundColor:r.theme.bgColor}})},Hv=({result:i,zoom:c,viewportRef:r,onAutoFit:o,isAutoFit:d,viewMode:h="grid",onToggleViewMode:p,onFocusPage:N})=>{const{pages:b,canvasSpec:v,config:g}=i;return f.jsxs("main",{ref:r,className:"flex-1 min-w-0 overflow-auto bg-[#f5f5f5] dark:bg-[#050505] bg-grid flex flex-col p-6 select-none relative transition-colors",children:[f.jsxs("div",{className:"sticky top-0 z-20 self-center mb-6 px-3.5 py-1.5 rounded-full bg-white/90 dark:bg-[#111111]/90 backdrop-blur border border-[#eaeaea] dark:border-[#222222] text-[11px] font-mono text-[#666666] dark:text-[#888888] flex items-center gap-2.5 shadow-sm",children:[f.jsx("span",{className:"text-[#171717] dark:text-white font-semibold",children:v.name}),f.jsx("span",{children:"•"}),f.jsxs("span",{children:[v.width," × ",v.height,"px"]}),f.jsx("span",{children:"•"}),f.jsxs("span",{className:"text-black dark:text-white font-medium",children:[b.length," 张图片"]}),b.length>1&&p&&f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"•"}),f.jsxs("div",{className:"flex items-center bg-[#eaeaea] dark:bg-[#1a1a1a] rounded-md p-0.5 border border-[#dfdfdf] dark:border-[#262626]",children:[f.jsxs("button",{onClick:()=>p("grid"),className:`flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all ${h==="grid"?"bg-white dark:bg-[#2b2b2b] text-black dark:text-white shadow-xs font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,title:"多图瀑布流平铺全览",children:[f.jsx(bv,{className:"w-3 h-3"}),f.jsx("span",{children:"多图平铺"})]}),f.jsxs("button",{onClick:()=>p("stack"),className:`flex items-center gap-1 px-2 py-0.5 rounded text-[10px] font-medium transition-all ${h==="stack"?"bg-white dark:bg-[#2b2b2b] text-black dark:text-white shadow-xs font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,title:"单列纵向逐页滚动",children:[f.jsx(Av,{className:"w-3 h-3"}),f.jsx("span",{children:"纵向单列"})]})]})]}),o&&f.jsxs(f.Fragment,{children:[f.jsx("span",{children:"•"}),f.jsx("button",{onClick:o,className:`hover:text-black dark:hover:text-white transition-colors underline underline-offset-2 ${d?"text-emerald-600 dark:text-emerald-400 font-semibold":""}`,title:b.length>1?"缩放至视口内完整排列多张图片":"自适应画布比例",children:d?b.length>1?"已平铺适配":"已自适应":b.length>1?"平铺适配":"自适应"})]})]}),f.jsx("div",{className:"min-w-fit w-full flex-1 flex flex-col items-center justify-start pb-32",children:f.jsx("div",{className:`flex items-start justify-center gap-7 transition-all duration-300 ${h==="grid"?"flex-wrap max-w-full":"flex-col items-center"}`,children:b.map(m=>f.jsxs("div",{className:"flex flex-col items-center",children:[b.length>1&&f.jsxs("div",{className:"mb-2 px-2.5 py-1 rounded-md bg-white/90 dark:bg-[#181818]/90 border border-[#eaeaea] dark:border-[#262626] text-[11px] font-mono text-[#666666] dark:text-[#888888] shadow-xs flex items-center justify-between transition-colors",style:{width:v.width*c},children:[f.jsxs("div",{className:"flex items-center gap-1.5 truncate",children:[f.jsxs("span",{className:"font-semibold text-[#171717] dark:text-white",children:["第 ",m.pageNumber," / ",b.length," 页"]}),f.jsx("span",{children:"•"}),f.jsx("span",{className:"truncate",children:v.name})]}),N&&f.jsxs("button",{onClick:S=>{S.stopPropagation(),N(m.pageNumber)},className:"shrink-0 text-[10px] px-1.5 py-0.5 rounded bg-[#f5f5f5] dark:bg-[#242424] hover:bg-[#eaeaea] dark:hover:bg-[#333333] text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 font-medium transition-colors flex items-center gap-1 cursor-pointer",title:"放大聚焦此页",children:[f.jsx(Ch,{className:"w-2.5 h-2.5"}),f.jsx("span",{children:"聚焦单图"})]})]}),f.jsx("div",{onDoubleClick:()=>N==null?void 0:N(m.pageNumber),className:"relative shrink-0 shadow-xl dark:shadow-2xl rounded-sm transition-shadow hover:shadow-2xl cursor-pointer",title:b.length>1?"双击放大聚焦此页":void 0,style:{width:v.width*c,height:v.height*c},children:f.jsx(Lv,{page:m,spec:v,config:g,totalPageCount:b.length,zoom:c})})]},m.pageNumber))})})]})},Uv=({markdown:i,onMarkdownChange:c,images:r,onAddImage:o,onUpdateImage:d,onRemoveImage:h,onMoveImage:p,pageCount:N=1,highlightWords:b,onHighlightWordsChange:v,adminKey:g})=>{const[m,S]=ge.useState("text"),[D,Y]=ge.useState(""),P=ge.useRef(null),[U,ee]=ge.useState(!1),K=E=>{c(i?`${i}
|
|
290
|
-
|
|
291
|
-
${E}`:E)},Q=async E=>{var R;const z=(R=E.target.files)==null?void 0:R[0];if(z){ee(!0);try{const I=new FormData;I.append("file",z);const A=await(await fetch("/api/upload",{method:"POST",headers:g?{"x-admin-key":g}:{},body:I})).json();if(A.ok&&A.url)o({src:A.url,alt:z.name,caption:"",x:40,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"});else{const le=new FileReader;le.onload=X=>{var Z;(Z=X.target)!=null&&Z.result&&o({src:X.target.result,alt:z.name,caption:"",x:40,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"})},le.readAsDataURL(z)}}catch{const I=new FileReader;I.onload=W=>{var A;(A=W.target)!=null&&A.result&&o({src:W.target.result,alt:z.name,caption:"",x:40,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"})},I.readAsDataURL(z)}finally{ee(!1),P.current&&(P.current.value="")}}},ie=()=>{D.trim()&&(b.includes(D.trim())||v([...b,D.trim()]),Y(""))},V=E=>{v(b.filter(z=>z!==E))};return f.jsxs("aside",{className:"w-80 border-r border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] flex flex-col shrink-0 select-none transition-colors",children:[f.jsxs("div",{className:"flex border-b border-[#eaeaea] dark:border-[#222222] bg-[#f9f9f9] dark:bg-[#050505] p-1 gap-1",children:[f.jsxs("button",{onClick:()=>S("text"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="text"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[f.jsx(ov,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"正文"})]}),f.jsxs("button",{onClick:()=>S("images"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="images"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[f.jsx(gv,{className:"w-3.5 h-3.5"}),f.jsxs("span",{children:["配图 (",r.length,")"]})]}),f.jsxs("button",{onClick:()=>S("highlights"),className:`flex-1 flex items-center justify-center gap-1.5 py-1.5 text-xs rounded font-medium transition-all ${m==="highlights"?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-[#cccccc]"}`,children:[f.jsx(mv,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:"重点词"})]})]}),m==="text"&&f.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-2 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center gap-1 pb-1 flex-wrap border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("button",{onClick:()=>K("# 标题"),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"插入主标题",children:[f.jsx(hv,{className:"w-3 h-3"}),f.jsx("span",{children:"H1"})]}),f.jsxs("button",{onClick:()=>K("## 二级标题"),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"插入副标题",children:[f.jsx(xv,{className:"w-3 h-3"}),f.jsx("span",{children:"H2"})]}),f.jsx("button",{onClick:()=>K("> 引用格言名句..."),className:"px-2 py-1 bg-[#f5f5f5] dark:bg-[#141414] hover:bg-[#eaeaea] dark:hover:bg-[#202020] text-[#555555] dark:text-[#aaaaaa] hover:text-black dark:hover:text-white rounded text-[11px] font-mono transition-colors",title:"插入引用块",children:"Quote"}),f.jsxs("button",{onClick:()=>K("【第二页】"),className:"px-2 py-1 bg-blue-500/10 hover:bg-blue-500/20 text-blue-600 dark:text-blue-400 rounded text-[11px] font-mono flex items-center gap-1 transition-colors",title:"显式分页标记",children:[f.jsx(vv,{className:"w-3 h-3"}),f.jsx("span",{children:"分页面"})]})]}),f.jsx("textarea",{value:i,onChange:E=>c(E.target.value),placeholder:"在此输入 Markdown 内容,纯算法即时排版...",className:"flex-1 w-full bg-[#fafafa] dark:bg-[#0d0d0d] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-3 text-xs font-mono text-[#171717] dark:text-[#ededed] placeholder-[#999999] dark:placeholder-[#444444] resize-none focus:outline-none focus:border-black dark:focus:border-[#444444] transition-all leading-relaxed"}),f.jsxs("div",{className:"flex items-center justify-between text-[11px] text-[#888888] dark:text-[#555555] font-mono px-1",children:[f.jsxs("span",{children:["字符数: ",i.length]}),f.jsxs("span",{children:["行数: ",i.split(`
|
|
292
|
-
`).length]})]})]}),m==="images"&&f.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-3 overflow-y-auto",children:[f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"file",ref:P,onChange:Q,accept:"image/*",className:"hidden"}),f.jsxs("button",{onClick:()=>{var E;return(E=P.current)==null?void 0:E.click()},disabled:U,className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-lg border border-dashed border-[#d4d4d4] dark:border-[#333333] hover:border-black dark:hover:border-[#555555] bg-[#fafafa] dark:bg-[#0f0f0f] hover:bg-[#f5f5f5] dark:hover:bg-[#141414] text-xs text-[#555555] dark:text-[#cccccc] hover:text-black dark:hover:text-white transition-all",children:[f.jsx(jv,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:U?"正在上传...":"上传配图素材"})]}),f.jsx("button",{onClick:()=>o({src:"https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=800&auto=format&fit=crop&q=80",alt:"艺术插画",caption:"示例艺术配图",x:36,y:400,width:440,height:300,captionHeight:36,layoutPreset:"auto"}),className:"px-3 py-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-[#fafafa] dark:bg-[#0f0f0f] hover:bg-[#f5f5f5] dark:hover:bg-[#141414] text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white transition-all",title:"插入在线示例图",children:f.jsx(Sv,{className:"w-3.5 h-3.5"})})]}),f.jsx("div",{className:"flex flex-col gap-2.5",children:r.length===0?f.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"暂无配图素材,点击上方按钮上传或插入"}):r.map((E,z)=>f.jsxs("div",{className:"bg-[#fafafa] dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-2.5 flex flex-col gap-2",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("img",{src:E.src,alt:E.alt,className:"w-12 h-12 object-cover rounded bg-[#eeeeee] dark:bg-[#1a1a1a] border border-[#e5e5e5] dark:border-[#262626] shrink-0"}),f.jsxs("div",{className:"flex-1 min-w-0",children:[f.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[f.jsxs("span",{className:"text-[10px] px-1 rounded bg-[#eaeaea] dark:bg-[#262626] font-mono text-[#555555] dark:text-[#aaaaaa] font-semibold shrink-0",children:["#",z+1]}),f.jsx("span",{className:"text-xs font-medium text-[#171717] dark:text-white truncate max-w-[120px]",children:E.caption||E.alt||`配图 #${z+1}`}),f.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20 font-medium shrink-0",children:["第 ",E.pageIndex||1," 页"]})]}),f.jsxs("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] font-mono mt-0.5",children:[E.width," × ",E.height,"px · X: ",E.x??0,", Y: ",E.y??0]})]}),f.jsxs("div",{className:"flex items-center gap-0.5",children:[f.jsx("button",{onClick:()=>p==null?void 0:p(E.id,"up"),disabled:z===0,className:"p-1 text-[#888888] hover:text-black dark:hover:text-white disabled:opacity-20 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"上移顺序 (调整在同一页中的先后次序)",children:f.jsx(cv,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:()=>p==null?void 0:p(E.id,"down"),disabled:z===r.length-1,className:"p-1 text-[#888888] hover:text-black dark:hover:text-white disabled:opacity-20 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"下移顺序 (调整在同一页中的先后次序)",children:f.jsx(uv,{className:"w-3.5 h-3.5"})}),f.jsx("button",{onClick:()=>h(E.id),className:"p-1 text-[#888888] hover:text-red-500 rounded hover:bg-[#eeeeee] dark:hover:bg-[#1f1f1f]",title:"删除该图",children:f.jsx(ph,{className:"w-3.5 h-3.5"})})]})]}),f.jsxs("div",{className:"flex bg-[#eeeeee] dark:bg-[#1a1a1a] p-0.5 rounded text-[11px] font-medium pt-1 border-t border-[#eeeeee] dark:border-[#1a1a1a]",children:[f.jsx("button",{onClick:()=>d(E.id,{isAbsolute:!1}),className:`flex-1 py-1 rounded transition-all text-center ${E.isAbsolute?"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white":"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold"}`,children:"绕排避让 (Flow)"}),f.jsx("button",{onClick:()=>d(E.id,{isAbsolute:!0,layoutPreset:"custom",zIndex:E.zIndex??15,rotate:E.rotate??0,opacity:E.opacity??1}),className:`flex-1 py-1 rounded transition-all text-center ${E.isAbsolute?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:"自由图层 (Absolute)"})]}),E.isAbsolute?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"text-[10px] text-blue-600 dark:text-blue-400 bg-blue-500/10 p-1.5 rounded flex items-center gap-1 font-medium",children:[f.jsx(xo,{className:"w-3 h-3 shrink-0"}),f.jsx("span",{children:"自由定位图层:脱离文本流,不触发障碍物绕排"})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"所属页面"}),f.jsx("select",{value:E.pageIndex||1,onChange:R=>d(E.id,{pageIndex:parseInt(R.target.value,10)||1}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:Array.from({length:Math.max(N,2)},(R,I)=>I+1).map(R=>f.jsxs("option",{value:R,children:["第 ",R," 页 ",R===1?"(首页/封面)":""]},R))})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[f.jsx("span",{children:"层级 (Z-Index)"}),f.jsx("span",{className:"font-mono text-black dark:text-white font-semibold",children:E.zIndex??15})]}),f.jsx("div",{className:"flex gap-1",children:[{label:"底",val:0,title:"底层背景"},{label:"文字",val:10,title:"正文同层"},{label:"顶",val:20,title:"置顶贴纸"}].map(R=>f.jsx("button",{onClick:()=>d(E.id,{zIndex:R.val}),title:R.title,className:`flex-1 py-0.5 text-[10px] rounded border ${(E.zIndex??15)===R.val?"bg-black dark:bg-white text-white dark:text-black border-transparent font-bold":"border-[#d4d4d4] dark:border-[#262626] text-[#666666] dark:text-[#888888]"}`,children:R.label},R.val))})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[f.jsxs("span",{className:"flex items-center gap-0.5",children:[f.jsx(Ev,{className:"w-2.5 h-2.5"})," 旋转角度"]}),f.jsxs("span",{className:"font-mono text-black dark:text-white font-semibold",children:[E.rotate??0,"°"]})]}),f.jsx("input",{type:"range",min:"-45",max:"45",step:"1",value:E.rotate??0,onChange:R=>d(E.id,{rotate:parseInt(R.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded cursor-pointer mt-1"})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] mb-1",children:[f.jsx("span",{children:"不透明度"}),f.jsxs("span",{className:"font-mono text-black dark:text-white font-semibold",children:[Math.round((E.opacity??1)*100),"%"]})]}),f.jsx("input",{type:"range",min:"0.1",max:"1",step:"0.05",value:E.opacity??1,onChange:R=>d(E.id,{opacity:parseFloat(R.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded cursor-pointer mt-1"})]})]}),f.jsxs("div",{className:"text-[11px]",children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"圆角半径 (px)"}),f.jsx("input",{type:"number",min:"0",step:"4",value:E.borderRadius??12,onChange:R=>d(E.id,{borderRadius:parseInt(R.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"横向 X"}),f.jsx("input",{type:"number",step:"10",value:E.x??0,onChange:R=>d(E.id,{x:parseInt(R.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"纵向 Y"}),f.jsx("input",{type:"number",step:"10",value:E.y??0,onChange:R=>d(E.id,{y:parseInt(R.target.value,10)||0}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"宽度 (W)"}),f.jsx("input",{type:"number",step:"10",value:E.width??420,onChange:R=>d(E.id,{width:Math.max(20,parseInt(R.target.value,10)||20)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"高度 (H)"}),f.jsx("input",{type:"number",step:"10",value:E.height??280,onChange:R=>d(E.id,{height:Math.max(20,parseInt(R.target.value,10)||20)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]})]}):f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"排版预设"}),f.jsxs("select",{value:E.layoutPreset||"auto",onChange:R=>d(E.id,{layoutPreset:R.target.value}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:[f.jsx("option",{value:"auto",children:"自适应 (Auto)"}),f.jsx("option",{value:"mid-left",children:"居左浮动 (Left)"}),f.jsx("option",{value:"mid-right",children:"居右浮动 (Right)"}),f.jsx("option",{value:"center",children:"居中横幅 (Center)"}),f.jsx("option",{value:"staggered",children:"交错排版 (Staggered)"}),f.jsx("option",{value:"corner-soft",children:"角落软着陆 (Corner)"}),f.jsx("option",{value:"fill",children:"底部填满 (Fill)"}),f.jsx("option",{value:"custom",children:"自定义坐标 (Custom)"})]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"所属页面"}),f.jsx("select",{value:E.pageIndex||1,onChange:R=>d(E.id,{pageIndex:parseInt(R.target.value,10)||1}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] focus:outline-none",children:Array.from({length:Math.max(N,2)},(R,I)=>I+1).map(R=>f.jsxs("option",{value:R,children:["第 ",R," 页 ",R===1?"(首页/封面)":""]},R))})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"宽度 (W)"}),f.jsx("input",{type:"number",min:"50",step:"10",value:E.width??420,onChange:R=>d(E.id,{width:Math.max(50,parseInt(R.target.value,10)||50)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"高度 (H)"}),f.jsx("input",{type:"number",min:"50",step:"10",value:E.height??280,onChange:R=>d(E.id,{height:Math.max(50,parseInt(R.target.value,10)||50)}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px]",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"纵向位置 Y"}),f.jsx("input",{type:"number",step:"20",value:E.y??300,onChange:R=>d(E.id,{y:parseInt(R.target.value,10)||0,layoutPreset:"custom"}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] block mb-1",children:"横向坐标 X"}),f.jsx("input",{type:"number",step:"10",value:E.x??16,onChange:R=>d(E.id,{x:parseInt(R.target.value,10)||0,layoutPreset:"custom"}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-1.5 py-1 text-black dark:text-white text-[11px] font-mono focus:outline-none"})]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] text-[11px] block mb-1",children:"图片说明 (Caption)"}),f.jsx("input",{type:"text",placeholder:"下方说明文字...",value:E.caption||"",onChange:R=>d(E.id,{caption:R.target.value}),className:"w-full bg-white dark:bg-[#181818] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px] focus:outline-none"})]})]})]},E.id))})]}),m==="highlights"&&f.jsxs("div",{className:"flex-1 flex flex-col p-3 gap-3 overflow-y-auto",children:[f.jsx("div",{className:"text-xs text-[#666666] dark:text-[#888888] leading-relaxed",children:"在正文中出现的高亮词,将被算法自动匹配并渲染为品牌强调色。"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{type:"text",placeholder:"新增高亮关键词...",value:D,onChange:E=>Y(E.target.value),onKeyDown:E=>E.key==="Enter"&&ie(),className:"flex-1 bg-white dark:bg-[#0d0d0d] border border-[#d4d4d4] dark:border-[#222222] rounded-lg px-2.5 py-1.5 text-xs text-black dark:text-white placeholder-[#888888] dark:placeholder-[#555555] focus:outline-none focus:border-black dark:focus:border-[#444444]"}),f.jsx("button",{onClick:ie,className:"px-3 py-1.5 bg-black dark:bg-[#1f1f1f] hover:bg-[#262626] text-white rounded-lg text-xs font-medium",children:"添加"})]}),f.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:b.map(E=>f.jsxs("span",{className:"flex items-center gap-1 px-2.5 py-1 rounded-md bg-[#f0fdf4] dark:bg-[#161616] border border-[#bbf7d0] dark:border-[#262626] text-xs text-emerald-700 dark:text-emerald-400 font-medium",children:[f.jsx(xo,{className:"w-3 h-3"}),f.jsx("span",{children:E}),f.jsx("button",{onClick:()=>V(E),className:"hover:text-red-500 ml-1",children:"×"})]},E))})]})]})},qv=[{id:"wechat-cover-2.35",label:"微信封面",ratioTag:"2.35:1"},{id:"longform-3-4",label:"通用长图文",ratioTag:"3:4"},{id:"wide-16-9",label:"通用宽屏",ratioTag:"16:9"},{id:"square-1-1",label:"通用正方形",ratioTag:"1:1"}],Gv=({currentRatio:i,onSelectRatio:c,zoom:r,onZoomChange:o,onAutoFit:d,isAutoFit:h,onOpenTemplates:p,onOpenAuth:N,onExport:b,isExporting:v,isAuthed:g,pageCount:m,themeMode:S,onToggleThemeMode:D})=>f.jsxs("header",{className:"h-14 border-b border-[#eaeaea] dark:border-[#222222] bg-white/80 dark:bg-[#000000]/80 backdrop-blur-md px-4 flex items-center justify-between select-none z-30 shrink-0 transition-colors",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("div",{className:"flex items-center gap-2 font-semibold text-[#171717] dark:text-white tracking-tight text-sm",children:[f.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded bg-black dark:bg-white text-white dark:text-black font-black text-xs shadow-sm",children:"▲"}),f.jsx("span",{children:"Typeset Studio"})]}),f.jsx("span",{className:"text-xs text-[#888888] dark:text-[#555555] font-mono hidden md:inline",children:"v0.1.0"}),f.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-[#f5f5f5] dark:bg-[#111111] border border-[#e5e5e5] dark:border-[#222222] text-[11px] text-emerald-600 dark:text-[#00e676]",children:[f.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 dark:bg-[#00e676] animate-pulse"}),f.jsx("span",{className:"font-mono",children:"Ready"})]})]}),f.jsx("div",{className:"flex items-center bg-[#f5f5f5] dark:bg-[#0a0a0a] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-0.5 shadow-inner",children:qv.map(Y=>{const P=i===Y.id;return f.jsxs("button",{onClick:()=>c(Y.id),className:`flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs font-medium transition-all ${P?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-[#171717] dark:hover:text-[#cccccc] hover:bg-[#eaeaea] dark:hover:bg-[#141414]"}`,children:[f.jsx("span",{children:Y.label}),f.jsx("span",{className:`text-[10px] font-mono px-1 py-0.2 rounded ${P?"bg-[#eaeaea] dark:bg-[#333333] text-black dark:text-white font-semibold":"bg-[#e5e5e5] dark:bg-[#181818] text-[#777777] dark:text-[#666666]"}`,children:Y.ratioTag})]},Y.id)})}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs("div",{className:"flex items-center bg-[#f5f5f5] dark:bg-[#0a0a0a] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-0.5 text-xs text-[#666666] dark:text-[#888888]",children:[f.jsx("button",{onClick:()=>o(Math.max(.2,Number((r-.05).toFixed(2)))),className:"p-1 hover:text-black dark:hover:text-white rounded hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]",title:"缩小",children:f.jsx(wv,{className:"w-3.5 h-3.5"})}),f.jsxs("span",{onDoubleClick:d,className:"w-11 text-center font-mono text-[11px] text-[#333333] dark:text-[#cccccc] cursor-pointer hover:underline select-none",title:"双击恢复自适应",children:[Math.round(r*100),"%"]}),f.jsx("button",{onClick:()=>o(Math.min(1.5,Number((r+.05).toFixed(2)))),className:"p-1 hover:text-black dark:hover:text-white rounded hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]",title:"放大",children:f.jsx(Ch,{className:"w-3.5 h-3.5"})}),d&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"w-[1px] h-3 bg-[#e0e0e0] dark:bg-[#262626] mx-0.5"}),f.jsxs("button",{onClick:d,className:`flex items-center gap-1 px-1.5 py-0.5 rounded text-[11px] transition-all ${h?"bg-white dark:bg-[#1f1f1f] text-black dark:text-white shadow-xs font-semibold":"hover:text-black dark:hover:text-white hover:bg-[#e8e8e8] dark:hover:bg-[#1f1f1f]"}`,title:m>1?"缩放至视口内完整排列多张图片(瀑布流平铺)":"自适应画布大小",children:[f.jsx(pv,{className:"w-3 h-3"}),f.jsx("span",{children:m>1?"多图平铺":"自适应"})]})]})]}),f.jsx("button",{onClick:D,className:"p-2 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] hover:bg-[#f5f5f5] dark:hover:bg-[#161616] text-[#444444] dark:text-[#cccccc] transition-all btn-vercel",title:S==="light"?"切换至深色模式":"切换至浅色模式",children:S==="light"?f.jsx(yv,{className:"w-3.5 h-3.5 text-[#555555]"}):f.jsx(Tv,{className:"w-3.5 h-3.5 text-amber-400"})}),f.jsxs("button",{onClick:p,className:"flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] hover:bg-[#f5f5f5] dark:hover:bg-[#161616] text-xs text-[#333333] dark:text-[#cccccc] hover:text-black dark:hover:text-white transition-all btn-vercel",children:[f.jsx(fv,{className:"w-3.5 h-3.5 text-[#777777] dark:text-[#888888]"}),f.jsx("span",{children:"模板库"})]}),f.jsxs("button",{onClick:b,disabled:v,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold transition-all btn-vercel shadow-sm disabled:opacity-50",children:[v?f.jsx(ih,{className:"w-3.5 h-3.5 animate-spin"}):f.jsx(rv,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:v?"导出中...":"导出图片"}),m>1&&f.jsxs("span",{className:"text-[10px] bg-white/20 dark:bg-black text-white px-1.5 py-0.2 rounded font-mono",children:[m,"P"]})]}),f.jsx("button",{onClick:N,className:`p-1.5 rounded-lg border transition-all btn-vercel ${g?"border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] text-[#777777] dark:text-[#888888] hover:text-black dark:hover:text-white hover:bg-[#f5f5f5] dark:hover:bg-[#161616]":"border-amber-500/50 bg-amber-500/10 text-amber-600 dark:text-amber-400"}`,title:g?"超管密钥已就绪":"配置超管密钥",children:f.jsx($1,{className:"w-3.5 h-3.5"})})]})]});function Yv(){const[i,c]=ge.useState([]),[r,o]=ge.useState(!1),d=ge.useCallback(async(h=!1)=>{try{o(!0);const p=await fetch(`/api/fonts${h?"?refresh=1":""}`);if(!p.ok)return;const N=await p.json();if(!N.ok||!Array.isArray(N.fonts))return;if(c(N.fonts),typeof window<"u"&&"FontFace"in window&&document.fonts)for(const b of N.fonts)try{let v=!1;if(document.fonts.forEach(g=>{(g.family===b.family||g.family===`"${b.family}"`)&&(v=!0)}),!v){const m=await new FontFace(b.family,`url(${b.url})`).load();document.fonts.add(m)}}catch(v){console.warn(`[useLocalFonts] Failed to load web font ${b.family}:`,v)}}catch(p){console.warn("[useLocalFonts] Failed to fetch local fonts:",p)}finally{o(!1)}},[]);return ge.useEffect(()=>{d()},[d]),{fonts:i,loading:r,refreshFonts:()=>d(!0)}}const x1=[{label:"苹方 / 极简黑体 (默认清爽)",value:"PingFang SC"},{label:"思源黑体 (现代极简·粗黑)",value:"Noto Sans SC"},{label:"典雅宋体 (经典报刊·书卷)",value:"Songti SC"},{label:"思源宋体 (高阶报刊·典雅)",value:"Noto Serif SC"},{label:"人文楷体 (温润随笔·手写)",value:"Kaiti SC"},{label:"柔和圆体 (亲和灵动·现代)",value:"Yuanti SC"},{label:"Inter / 国际西文无衬线",value:"Inter"},{label:"Georgia / 文艺西文衬线",value:"Georgia"}],Xv=({config:i,onUpdateAlgorithm:c,onUpdateTheme:r,onUpdateTypography:o,onUpdateSafeArea:d,onUpdateBranding:h,onUpdateChrome:p})=>{var D,Y,P,U,ee,K,Q,ie,V,E,z,R,I,W;const{algorithm:N,theme:b,typography:v}=i,{fonts:g,loading:m,refreshFonts:S}=Yv();return f.jsxs("aside",{className:"w-80 border-l border-[#eaeaea] dark:border-[#222222] bg-white dark:bg-[#0a0a0a] flex flex-col shrink-0 select-none overflow-y-auto transition-colors",children:[f.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsx(iv,{className:"w-3.5 h-3.5 text-blue-500 dark:text-blue-400"}),f.jsx("span",{children:"文字对齐与空间居中"})]}),f.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1.5 font-medium",children:"垂直排版对齐 (封面必备)"}),f.jsx("div",{className:"grid grid-cols-3 gap-1 bg-[#f5f5f5] dark:bg-[#141414] p-1 rounded-lg border border-[#e5e5e5] dark:border-[#262626]",children:[{id:"top",label:"顶端对齐"},{id:"center",label:"垂直居中"},{id:"bottom",label:"底端对齐"}].map(A=>f.jsx("button",{onClick:()=>c({verticalAlign:A.id}),className:`py-1 text-[11px] rounded transition-all font-medium ${(N.verticalAlign||"top")===A.id?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:A.label},A.id))})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1.5 font-medium",children:"水平排版对齐"}),f.jsxs("div",{className:"grid grid-cols-3 gap-1 bg-[#f5f5f5] dark:bg-[#141414] p-1 rounded-lg border border-[#e5e5e5] dark:border-[#262626]",children:[f.jsxs("button",{onClick:()=>c({textAlign:"left"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${(N.textAlign||"left")==="left"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[f.jsx(Bv,{className:"w-3 h-3"}),f.jsx("span",{children:"居左"})]}),f.jsxs("button",{onClick:()=>c({textAlign:"center"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${N.textAlign==="center"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[f.jsx(Dv,{className:"w-3 h-3"}),f.jsx("span",{children:"居中"})]}),f.jsxs("button",{onClick:()=>c({textAlign:"right"}),className:`py-1 flex items-center justify-center gap-1 text-[11px] rounded transition-all font-medium ${N.textAlign==="right"?"bg-white dark:bg-[#262626] text-black dark:text-white shadow-sm font-semibold":"text-[#666666] dark:text-[#888888] hover:text-black dark:hover:text-white"}`,children:[f.jsx(Fv,{className:"w-3 h-3"}),f.jsx("span",{children:"居右"})]})]})]})]})]}),f.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("div",{className:"flex items-center justify-between text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Ov,{className:"w-3.5 h-3.5 text-indigo-500 dark:text-indigo-400"}),f.jsx("span",{children:"字体与排版字阶"})]}),f.jsx("button",{onClick:()=>S(),disabled:m,title:"重新扫描 public/fonts 目录",className:"p-1 text-[#888888] hover:text-black dark:hover:text-white rounded hover:bg-[#eaeaea] dark:hover:bg-[#222222] transition-colors",children:f.jsx(ih,{className:`w-3 h-3 ${m?"animate-spin text-blue-500":""}`})})]}),f.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1",children:"标题字体 (Heading Font)"}),f.jsxs("select",{value:v.headingFont,onChange:A=>o({headingFont:A.target.value}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded-md px-2 py-1.5 text-black dark:text-white text-xs focus:outline-none",children:[g.length>0&&f.jsx("optgroup",{label:"✨ 项目本地字体 (public/fonts)",children:g.map(A=>f.jsx("option",{value:A.family,children:A.label},`head-local-${A.family}`))}),f.jsx("optgroup",{label:"🌐 系统 / 云端预设",children:x1.map(A=>f.jsx("option",{value:A.value,children:A.label},`head-preset-${A.value}`))})]})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888] text-[11px] block mb-1",children:"正文字体 (Body Font)"}),f.jsxs("select",{value:v.bodyFont,onChange:A=>o({bodyFont:A.target.value}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded-md px-2 py-1.5 text-black dark:text-white text-xs focus:outline-none",children:[g.length>0&&f.jsx("optgroup",{label:"✨ 项目本地字体 (public/fonts)",children:g.map(A=>f.jsx("option",{value:A.family,children:A.label},`body-local-${A.family}`))}),f.jsx("optgroup",{label:"🌐 系统 / 云端预设",children:x1.map(A=>f.jsx("option",{value:A.value,children:A.label},`body-preset-${A.value}`))})]})]}),g.length===0?f.jsx("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] flex items-center justify-between pt-1 border-t border-[#f5f5f5] dark:border-[#1a1a1a]",children:f.jsxs("span",{children:["💡 将 .ttf / .otf 放入 ",f.jsx("code",{children:"public/fonts/"})," 即可识别"]})}):f.jsx("div",{className:"text-[10px] text-emerald-600 dark:text-emerald-400 flex items-center justify-between pt-1 border-t border-[#f5f5f5] dark:border-[#1a1a1a]",children:f.jsxs("span",{children:["✨ 已加载 ",g.length," 个项目本地字体"]})})]})]}),f.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsx(kv,{className:"w-3.5 h-3.5 text-blue-500 dark:text-blue-400"}),f.jsx("span",{children:"字号与比例参数"})]}),f.jsxs("div",{className:"flex flex-col gap-3.5 text-xs",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[f.jsx("span",{children:"基准字号 (Base Size)"}),f.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.baseFontSize,"px"]})]}),f.jsx("input",{type:"range",min:"24",max:"96",step:"1",value:N.baseFontSize,onChange:A=>c({baseFontSize:parseInt(A.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[f.jsx("span",{children:"比例字阶系数 (大标题倍率)"}),f.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.scaleRatio.toFixed(2),"x"]})]}),f.jsx("input",{type:"range",min:"1.15",max:"1.6",step:"0.01",value:N.scaleRatio,onChange:A=>c({scaleRatio:parseFloat(A.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[f.jsx("span",{children:"行高舒展倍率"}),f.jsx("span",{className:"text-[#171717] dark:text-white font-semibold",children:N.lineHeightMultiplier.toFixed(2)})]}),f.jsx("input",{type:"range",min:"1.2",max:"1.8",step:"0.02",value:N.lineHeightMultiplier,onChange:A=>c({lineHeightMultiplier:parseFloat(A.target.value)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex justify-between text-[#666666] dark:text-[#888888] mb-1 font-mono text-[11px]",children:[f.jsx("span",{children:"配图避让间隙 (Gap)"}),f.jsxs("span",{className:"text-[#171717] dark:text-white font-semibold",children:[N.obstacleGap,"px"]})]}),f.jsx("input",{type:"range",min:"12",max:"48",step:"2",value:N.obstacleGap,onChange:A=>c({obstacleGap:parseInt(A.target.value,10)}),className:"w-full h-1.5 bg-[#e5e5e5] dark:bg-[#222222] rounded-lg cursor-pointer"})]})]})]}),f.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsx(Mv,{className:"w-3.5 h-3.5 text-emerald-600 dark:text-emerald-400"}),f.jsx("span",{children:"版心安全边距"})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-2 text-[11px] font-mono",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"上边距 (Top)"}),f.jsx("input",{type:"number",value:N.safeArea.top,onChange:A=>d({top:parseInt(A.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"下边距 (Bottom)"}),f.jsx("input",{type:"number",value:N.safeArea.bottom,onChange:A=>d({bottom:parseInt(A.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"左边距 (Left)"}),f.jsx("input",{type:"number",value:N.safeArea.left,onChange:A=>d({left:parseInt(A.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-[#777777] dark:text-[#666666] block mb-1",children:"右边距 (Right)"}),f.jsx("input",{type:"number",value:N.safeArea.right,onChange:A=>d({right:parseInt(A.target.value,10)||0}),className:"w-full bg-[#fafafa] dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white"})]})]})]}),f.jsxs("div",{className:"p-3.5 border-b border-[#f0f0f0] dark:border-[#1c1c1c]",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsx(Nv,{className:"w-3.5 h-3.5 text-purple-600 dark:text-purple-400"}),f.jsx("span",{children:"视觉色彩主题"})]}),f.jsxs("div",{className:"flex flex-col gap-2.5 text-xs",children:[f.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[f.jsx("button",{onClick:()=>r({bgColor:"#ffffff",textColor:"#171717",headingColor:"#171717",accentColor:"#059669",quoteColor:"#525252",cardBg:"#f5f5f5"}),className:"w-6 h-6 rounded-full bg-[#ffffff] border-2 border-emerald-500 shadow-sm hover:scale-105 transition-all",title:"素白雅致 (推荐)"}),f.jsx("button",{onClick:()=>r({bgColor:"#f9fcfa",textColor:"#22201d",headingColor:"#0f2e22",accentColor:"#1d4f39",quoteColor:"#474038",cardBg:"#ffffff"}),className:"w-6 h-6 rounded-full bg-[#f9fcfa] border border-[#ccc] shadow-sm hover:scale-105 transition-all",title:"纸白浅草"}),f.jsx("button",{onClick:()=>r({bgColor:"#0a0a0a",textColor:"#ededed",headingColor:"#ffffff",accentColor:"#00e676",quoteColor:"#a0a0a0",cardBg:"#121212"}),className:"w-6 h-6 rounded-full bg-[#0a0a0a] border border-[#444] shadow-sm hover:scale-105 transition-all",title:"深邃暗夜"}),f.jsx("button",{onClick:()=>r({bgColor:"#09090b",textColor:"#fafafa",headingColor:"#ffffff",accentColor:"#3b82f6",quoteColor:"#a1a1aa",cardBg:"#18181b"}),className:"w-6 h-6 rounded-full bg-[#09090b] border border-blue-500 shadow-sm hover:scale-105 transition-all",title:"数码蓝暗黑"})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888] font-medium",children:"标题颜色 (Heading)"}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("input",{type:"color",value:b.headingColor||b.textColor,onChange:A=>r({headingColor:A.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),f.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:b.headingColor||b.textColor})]})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"正文字色 (Text)"}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("input",{type:"color",value:b.textColor,onChange:A=>r({textColor:A.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),f.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:b.textColor})]})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"重点强调色 (Accent)"}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("input",{type:"color",value:b.accentColor,onChange:A=>r({accentColor:A.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),f.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:b.accentColor})]})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#666666] dark:text-[#888888]",children:"背景底色 (Canvas)"}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[f.jsx("input",{type:"color",value:b.bgColor,onChange:A=>r({bgColor:A.target.value}),className:"w-6 h-6 rounded cursor-pointer bg-transparent border-0"}),f.jsx("span",{className:"font-mono text-[11px] text-[#444444] dark:text-[#cccccc]",children:b.bgColor})]})]})]})]}),f.jsxs("div",{className:"p-3.5",children:[f.jsxs("div",{className:"flex items-center gap-2 text-xs font-semibold text-[#171717] dark:text-white mb-3",children:[f.jsx(sv,{className:"w-3.5 h-3.5 text-amber-500 dark:text-amber-400"}),f.jsx("span",{children:"页眉页脚与版式装饰 (Chrome)"})]}),f.jsxs("div",{className:"flex flex-col gap-3 text-xs",children:[f.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] p-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] flex flex-col gap-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-semibold text-[#333333] dark:text-[#cccccc] text-[11px]",children:"顶部栏 (Header)"}),f.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((D=i.chrome)==null?void 0:D.showHeader)??!!((Y=i.watermarkText)!=null&&Y.trim()),onChange:A=>p({showHeader:A.target.checked}),className:"rounded text-emerald-500 accent-emerald-500 cursor-pointer"}),f.jsx("span",{className:"text-[10px] text-[#666666] dark:text-[#888888]",children:"启用"})]})]}),(((P=i.chrome)==null?void 0:P.showHeader)??!!((U=i.watermarkText)!=null&&U.trim()))&&f.jsxs("div",{className:"flex flex-col gap-2 pl-2 border-l-2 border-[#e0e0e0] dark:border-[#2a2a2a] mt-1",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between mb-1",children:[f.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"水印 / 品牌标识"}),f.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((ee=i.chrome)==null?void 0:ee.showWatermark)??!0,onChange:A=>p({showWatermark:A.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),f.jsx("span",{children:"显示"})]})]}),f.jsx("input",{type:"text",value:i.watermarkText,onChange:A=>h(i.footerText,A.target.value),placeholder:"作者水印/标识文本...",className:"w-full bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px]"})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"页码角标 (P.01)"}),f.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((K=i.chrome)==null?void 0:K.showPageNumber)??i.aspectRatio==="longform-3-4",onChange:A=>p({showPageNumber:A.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),f.jsx("span",{children:"显示"})]})]})]})]}),f.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] p-2.5 rounded-lg border border-[#eaeaea] dark:border-[#222222] flex flex-col gap-2",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"font-semibold text-[#333333] dark:text-[#cccccc] text-[11px]",children:"底部栏 (Footer)"}),f.jsxs("label",{className:"flex items-center gap-1.5 cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((Q=i.chrome)==null?void 0:Q.showFooter)??!!((ie=i.footerText)!=null&&ie.trim()),onChange:A=>p({showFooter:A.target.checked}),className:"rounded text-emerald-500 accent-emerald-500 cursor-pointer"}),f.jsx("span",{className:"text-[10px] text-[#666666] dark:text-[#888888]",children:"启用"})]})]}),(((V=i.chrome)==null?void 0:V.showFooter)??!!((E=i.footerText)!=null&&E.trim()))&&f.jsxs("div",{className:"flex flex-col gap-2 pl-2 border-l-2 border-[#e0e0e0] dark:border-[#2a2a2a] mt-1",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center justify-between mb-1",children:[f.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"页脚署名 / 版权"}),f.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((z=i.chrome)==null?void 0:z.showFooterText)??!0,onChange:A=>p({showFooterText:A.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),f.jsx("span",{children:"显示"})]})]}),f.jsx("input",{type:"text",value:i.footerText,onChange:A=>h(A.target.value,i.watermarkText),placeholder:"页脚版权/署名...",className:"w-full bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#262626] rounded px-2 py-1 text-black dark:text-white text-[11px]"})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"顶部分割细线"}),f.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((R=i.chrome)==null?void 0:R.showFooterDivider)??!!((I=i.footerText)!=null&&I.trim()),onChange:A=>p({showFooterDivider:A.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),f.jsx("span",{children:"显示"})]})]}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-[#777777] dark:text-[#888888] text-[10px]",children:"算法填充率提示"}),f.jsxs("label",{className:"flex items-center gap-1 text-[10px] text-[#666666] dark:text-[#888888] cursor-pointer",children:[f.jsx("input",{type:"checkbox",checked:((W=i.chrome)==null?void 0:W.showFillRatio)??!1,onChange:A=>p({showFillRatio:A.target.checked}),className:"rounded accent-emerald-500 cursor-pointer"}),f.jsx("span",{children:"显示"})]})]})]})]})]})]})]})},Qv=({isOpen:i,onClose:c,currentConfig:r,onApplyTemplate:o,adminKey:d})=>{const[h,p]=ge.useState([]),[N,b]=ge.useState({}),[v,g]=ge.useState("default"),[m,S]=ge.useState("all"),[D,Y]=ge.useState(!1),[P,U]=ge.useState(""),[ee,K]=ge.useState(()=>r.aspectRatio==="wechat-cover-2.35"?"article_cover":"newspic_content"),[Q,ie]=ge.useState(!1),[V,E]=ge.useState(null),z=async(X=v)=>{try{const k=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(X)}`)).json();k.ok&&k.slots&&b(k.slots)}catch{}},R=async(X,Z)=>{try{(await(await fetch("/api/templates/slots",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-admin-key":d}:{}},body:JSON.stringify({slot:X,templateId:Z,account:v})})).json()).ok&&await z(v)}catch{}},I=async()=>{Y(!0),E(null);try{const Z=await(await fetch("/api/templates",{headers:d?{"x-admin-key":d}:{}})).json();Z.ok&&Array.isArray(Z.templates)?p(Z.templates):E(Z.message||"获取模板失败,请检查密钥")}catch{E("连接后端服务失败")}finally{Y(!1)}};ge.useEffect(()=>{i&&(I(),z(v),U(r.name?`${r.name} 副本`:"我的自定义模板"),K(r.aspectRatio==="wechat-cover-2.35"?"article_cover":"newspic_content"))},[i,v]);const W=async()=>{if(P.trim()){ie(!0);try{const X={...r,id:void 0,name:P.trim(),slot:ee!=="none"?ee:void 0,images:r.images?[...r.images]:void 0},k=await(await fetch("/api/templates",{method:"POST",headers:{"Content-Type":"application/json",...d?{"x-admin-key":d}:{}},body:JSON.stringify(X)})).json();k.ok?(await I(),await z(v)):E(k.message||"保存模板失败")}catch{E("保存模板请求异常")}finally{ie(!1)}}},A=async X=>{try{await fetch(`/api/templates/${X}`,{method:"DELETE",headers:d?{"x-admin-key":d}:{}}),p(Z=>Z.filter(k=>k.id!==X)),await z(v)}catch{}};if(!i)return null;const le=h.filter(X=>m==="all"?!0:X.slot===m);return f.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 dark:bg-black/70 backdrop-blur-sm flex items-center justify-center p-4",children:f.jsxs("div",{className:"bg-white dark:bg-[#0f0f0f] border border-[#eaeaea] dark:border-[#262626] rounded-xl w-full max-w-xl flex flex-col shadow-2xl overflow-hidden animate-in fade-in zoom-in-95 duration-150 transition-colors",children:[f.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-[#eaeaea] dark:border-[#222222]",children:[f.jsxs("div",{className:"flex items-center gap-2 font-semibold text-sm text-[#171717] dark:text-white",children:[f.jsx(xo,{className:"w-4 h-4 text-emerald-500 dark:text-emerald-400"}),f.jsx("span",{children:"排版模板中心"})]}),f.jsx("button",{onClick:c,className:"text-[#888888] hover:text-black dark:hover:text-white p-1 rounded-md hover:bg-[#f5f5f5] dark:hover:bg-[#1a1a1a]",children:f.jsx(Eh,{className:"w-4 h-4"})})]}),f.jsxs("div",{className:"p-5 flex flex-col gap-4 max-h-[75vh] overflow-y-auto",children:[f.jsxs("div",{className:"bg-[#f9f9f9] dark:bg-[#141414] border border-[#eaeaea] dark:border-[#222222] rounded-lg p-3 flex flex-col gap-2.5",children:[f.jsx("span",{className:"text-xs text-[#666666] dark:text-[#888888] font-medium",children:"将当前参数另存为模板"}),f.jsxs("div",{className:"flex flex-col sm:flex-row gap-2",children:[f.jsx("input",{type:"text",value:P,onChange:X=>U(X.target.value),placeholder:"模板名称...",className:"flex-1 bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-3 py-1.5 text-xs text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]"}),f.jsxs("select",{value:ee,onChange:X=>K(X.target.value),className:"bg-white dark:bg-[#0a0a0a] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-2 py-1.5 text-xs text-black dark:text-white focus:outline-none focus:border-black dark:focus:border-[#444444]",children:[f.jsx("option",{value:"article_cover",children:"槽位: 文章封面 (2.35:1)"}),f.jsx("option",{value:"newspic_cover",children:"槽位: 贴图封面 (3:4)"}),f.jsx("option",{value:"newspic_content",children:"槽位: 贴图内容 (3:4)"}),f.jsx("option",{value:"none",children:"槽位: 通用模板"})]}),f.jsxs("button",{onClick:W,disabled:Q,className:"flex items-center justify-center gap-1.5 px-3 py-1.5 bg-black text-white hover:bg-[#262626] dark:bg-white dark:text-black dark:hover:bg-[#eaeaea] text-xs font-semibold rounded transition-all btn-vercel disabled:opacity-50 shrink-0",children:[f.jsx(dv,{className:"w-3.5 h-3.5"}),f.jsx("span",{children:Q?"保存中...":"保存模板"})]})]})]}),V&&f.jsx("div",{className:"text-xs text-amber-600 dark:text-amber-400 bg-amber-500/10 border border-amber-500/20 px-3 py-2 rounded-lg",children:V}),f.jsxs("div",{className:"flex flex-col gap-2 pt-1 border-t border-[#eaeaea] dark:border-[#222222]",children:[f.jsx("div",{className:"flex items-center justify-between text-xs",children:f.jsxs("div",{className:"flex items-center gap-1.5 font-medium text-[#666666] dark:text-[#888888]",children:[f.jsx("span",{children:"默认槽位配置账号:"}),f.jsxs("select",{value:v,onChange:X=>{const Z=X.target.value;g(Z),z(Z)},className:"bg-white dark:bg-[#141414] border border-[#d4d4d4] dark:border-[#2a2a2a] rounded px-2 py-0.5 text-xs text-black dark:text-white focus:outline-none font-mono",children:[f.jsx("option",{value:"default",children:"default (主账号)"}),f.jsx("option",{value:"ancientone",children:"ancientone"})]})]})}),f.jsxs("div",{className:"flex items-center gap-1.5 text-xs overflow-x-auto pb-1",children:[f.jsx("button",{onClick:()=>S("all"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="all"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"全部"}),f.jsx("button",{onClick:()=>S("article_cover"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="article_cover"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"文章封面"}),f.jsx("button",{onClick:()=>S("newspic_cover"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="newspic_cover"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"贴图封面"}),f.jsx("button",{onClick:()=>S("newspic_content"),className:`px-2.5 py-1 rounded text-xs transition-colors font-medium ${m==="newspic_content"?"bg-black text-white dark:bg-white dark:text-black":"text-[#666666] dark:text-[#888888] hover:bg-[#f5f5f5] dark:hover:bg-[#1c1c1c]"}`,children:"贴图内容"})]})]}),f.jsx("div",{className:"flex flex-col gap-2",children:D?f.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"正在加载模板..."}):le.length===0?f.jsx("div",{className:"text-center py-8 text-xs text-[#888888] dark:text-[#555555]",children:"暂无匹配模板"}):le.map(X=>{var w,L,$;const Z=((w=N.article_cover)==null?void 0:w.id)===X.id,k=((L=N.newspic_cover)==null?void 0:L.id)===X.id,F=(($=N.newspic_content)==null?void 0:$.id)===X.id;return f.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between p-3 rounded-lg bg-[#fafafa] dark:bg-[#141414] border border-[#eaeaea] dark:border-[#222222] hover:border-[#cccccc] dark:hover:border-[#333333] transition-all gap-2 group",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"w-5 h-5 rounded border border-[#d4d4d4] dark:border-[#333333] shrink-0",style:{backgroundColor:X.theme.bgColor}}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[f.jsx("span",{className:"text-xs font-semibold text-[#171717] dark:text-white",children:X.name}),X.slot&&f.jsx("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-blue-500/10 text-blue-600 dark:text-blue-400 border border-blue-500/20 font-medium",children:X.slot==="article_cover"?"文章封面":X.slot==="newspic_cover"?"贴图封面":"贴图内容"}),Z&&f.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400 border border-amber-500/20 font-medium flex items-center gap-0.5",children:[f.jsx(lo,{className:"w-2.5 h-2.5 fill-amber-500"})," 文章封面默认"]}),k&&f.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-amber-500/10 text-amber-600 dark:text-amber-400 border border-amber-500/20 font-medium flex items-center gap-0.5",children:[f.jsx(lo,{className:"w-2.5 h-2.5 fill-amber-500"})," 贴图封面默认"]}),F&&f.jsxs("span",{className:"text-[10px] px-1.5 py-0.2 rounded bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 border border-emerald-500/20 font-medium flex items-center gap-0.5",children:[f.jsx(lo,{className:"w-2.5 h-2.5 fill-emerald-500"})," 贴图内容默认"]})]}),f.jsxs("div",{className:"text-[10px] text-[#888888] dark:text-[#666666] font-mono mt-0.5",children:[X.aspectRatio," • 字号: ",X.algorithm.baseFontSize,"px",X.images&&X.images.length>0&&` • 配图: ${X.images.length}个`]})]})]}),f.jsxs("div",{className:"flex items-center gap-2 self-end sm:self-auto",children:[X.id&&f.jsxs("select",{value:"",onChange:J=>{J.target.value&&R(J.target.value,X.id)},className:"text-[11px] bg-white dark:bg-[#1a1a1a] border border-[#d4d4d4] dark:border-[#333333] text-[#666666] dark:text-[#aaaaaa] rounded px-2 py-1 focus:outline-none",title:"为此账号设为某个槽位的默认模板",children:[f.jsx("option",{value:"",children:"设为槽位默认..."}),f.jsx("option",{value:"article_cover",children:"设为「文章封面默认」"}),f.jsx("option",{value:"newspic_cover",children:"设为「贴图封面默认」"}),f.jsx("option",{value:"newspic_content",children:"设为「贴图内容默认」"})]}),f.jsxs("button",{onClick:()=>{o(X),c()},className:"flex items-center gap-1 px-2.5 py-1 bg-white dark:bg-[#1f1f1f] hover:bg-emerald-50 dark:hover:bg-emerald-500/20 text-[#333333] dark:text-[#cccccc] hover:text-emerald-700 dark:hover:text-emerald-400 border border-[#d4d4d4] dark:border-[#2a2a2a] hover:border-emerald-500/40 rounded text-xs transition-all font-medium",children:[f.jsx(G1,{className:"w-3 h-3"}),f.jsx("span",{children:"套用"})]}),X.id&&!X.id.startsWith("tpl_wechat_")&&!X.id.startsWith("tpl_longform_")&&!X.id.startsWith("tpl_square_")&&!X.id.startsWith("tpl_wide_")&&f.jsx("button",{onClick:()=>A(X.id),className:"p-1 text-[#888888] dark:text-[#555555] hover:text-red-500 rounded hover:bg-[#f0f0f0] dark:hover:bg-[#1f1f1f]",title:"删除自定义模板",children:f.jsx(ph,{className:"w-3.5 h-3.5"})})]})]},X.id)})})]})]})})},no="typeset_studio_admin_key";function Vv(){const[i,c]=ge.useState(()=>localStorage.getItem(no)||""),[r,o]=ge.useState(null),[d,h]=ge.useState(!1),p=async b=>{if(!b)return o(!1),!1;h(!0);try{const m=!!(await(await fetch("/api/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:b})})).json()).ok;return o(m),m}catch{return o(!1),!1}finally{h(!1)}},N=b=>{localStorage.setItem(no,b),c(b),p(b)};return ge.useEffect(()=>{(async()=>{let v=i;if(!v)try{const m=await(await fetch("/api/auth/current-key")).json();m.ok&&m.key&&(v=m.key,c(m.key),localStorage.setItem(no,m.key))}catch{}v?p(v):o(!1)})()},[]),{adminKey:i,setAdminKey:N,isVerified:r,isVerifying:d,verifyKey:p}}function rc(i){return i.replace(/[ \t]+/g," ")}function h1(i,c=[]){const r=[],o=/(\*\*[^*]+\*\*|\*[^*]+\*|==[^=]+==)/g;let d=0,h;function p(N,b={}){if(!N)return;if(c.length===0){r.push({text:N,...b});return}const v=c.map(D=>D.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),g=new RegExp(`(${v.join("|")})`,"g");let m=0,S;for(;(S=g.exec(N))!==null;)S.index>m&&r.push({text:N.slice(m,S.index),...b}),r.push({text:S[0],...b,highlight:!0}),m=S.index+S[0].length;m<N.length&&r.push({text:N.slice(m),...b})}for(;(h=o.exec(i))!==null;){h.index>d&&p(i.slice(d,h.index));const N=h[0];N.startsWith("**")&&N.endsWith("**")?p(N.slice(2,-2),{bold:!0}):N.startsWith("*")&&N.endsWith("*")?p(N.slice(1,-1),{italic:!0}):N.startsWith("==")&&N.endsWith("==")&&r.push({text:N.slice(2,-2),highlight:!0,bold:!0}),d=h.index+N.length}return d<i.length&&p(i.slice(d)),r.length>0?r:[{text:i}]}function m1(i){const c=i.replaceAll(`\r
|
|
293
|
-
`,`
|
|
294
|
-
`).split(`
|
|
295
|
-
`),r=[];let o=[];function d(){const h=rc(o.join(" ").trim());h.length>0&&r.push({kind:"paragraph",text:h}),o=[]}for(const h of c){const p=h.trim();if(p.length===0){d();continue}if(kh(p)){d();continue}const N=p.match(/^(#{1,6})\s+(.+)$/);if(N){d();const v=N[1].length;r.push({kind:v===1?"heading":v===2?"subheading":"minor-heading",text:rc(N[2])});continue}if(p.startsWith(">")){d(),r.push({kind:"quote",text:rc(p.replace(/^>\s?/,"").trim())});continue}const b=p.match(/^(\d+[.)]|[-*+])\s+(.+)$/);if(b){d(),r.push({kind:"list-item",text:rc(b[2]),bullet:/^\d/.test(b[1])?b[1]:"•"});continue}o.push(p)}return d(),r}function kh(i){const c=i.trim();return/^【第([一二三四五六七八九十百两\d]+)页】$/.test(c)||/^【Page\s*(\d+)】$/i.test(c)||/^(?:-{3,}|\*{3,}|_{3,})$/.test(c)||/^<!--\s*(?:pagebreak|page-break|next-page|page(?::\s*\d+)?)\s*-->$/i.test(c)}function Zv(i){const c=i.replaceAll(`\r
|
|
296
|
-
`,`
|
|
297
|
-
`).split(`
|
|
298
|
-
`),r=[[]];let o=!1;for(const d of c){if(kh(d)){if(o=!0,r.length===1&&r[0].length===0)continue;r.push([]);continue}r[r.length-1].push(d)}return o?r.map(d=>d.join(`
|
|
299
|
-
`).trim()):[i]}const Kv=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],g1=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function Jv(i){if(i<=255)return Kv[i];let c=0,r=g1.length-1;for(;c<=r;){const o=c+r>>1,d=g1[o];if(i<d[0]){r=o-1;continue}if(i>d[1]){c=o+1;continue}return d[2]}return"L"}function Wv(i){const c=i.length;if(c===0)return null;const r=new Array(c);let o=!1;for(let v=0;v<c;){const g=i.charCodeAt(v);let m=g,S=1;if(g>=55296&&g<=56319&&v+1<c){const Y=i.charCodeAt(v+1);Y>=56320&&Y<=57343&&(m=(g-55296<<10)+(Y-56320)+65536,S=2)}const D=Jv(m);(D==="R"||D==="AL"||D==="AN")&&(o=!0);for(let Y=0;Y<S;Y++)r[v+Y]=D;v+=S}if(!o)return null;let d=0;for(let v=0;v<c;v++){const g=r[v];if(g==="L"){d=0;break}if(g==="R"||g==="AL"){d=1;break}}const h=new Int8Array(c);for(let v=0;v<c;v++)h[v]=d;const p=d&1?"R":"L",N=p;let b=N;for(let v=0;v<c;v++)r[v]==="NSM"?r[v]=b:b=r[v];b=N;for(let v=0;v<c;v++){const g=r[v];g==="EN"?r[v]=b==="AL"?"AN":"EN":(g==="R"||g==="L"||g==="AL")&&(b=g)}for(let v=0;v<c;v++)r[v]==="AL"&&(r[v]="R");for(let v=1;v<c-1;v++)r[v]==="ES"&&r[v-1]==="EN"&&r[v+1]==="EN"&&(r[v]="EN"),r[v]==="CS"&&(r[v-1]==="EN"||r[v-1]==="AN")&&r[v+1]===r[v-1]&&(r[v]=r[v-1]);for(let v=0;v<c;v++){if(r[v]!=="EN")continue;let g;for(g=v-1;g>=0&&r[g]==="ET";g--)r[g]="EN";for(g=v+1;g<c&&r[g]==="ET";g++)r[g]="EN"}for(let v=0;v<c;v++){const g=r[v];(g==="WS"||g==="ES"||g==="ET"||g==="CS")&&(r[v]="ON")}b=N;for(let v=0;v<c;v++){const g=r[v];g==="EN"?r[v]=b==="L"?"L":"EN":(g==="R"||g==="L")&&(b=g)}for(let v=0;v<c;v++){if(r[v]!=="ON")continue;let g=v+1;for(;g<c&&r[g]==="ON";)g++;const m=v>0?r[v-1]:N,S=g<c?r[g]:N,D=m!=="L"?"R":"L";if(D===(S!=="L"?"R":"L"))for(let P=v;P<g;P++)r[P]=D;v=g-1}for(let v=0;v<c;v++)r[v]==="ON"&&(r[v]=p);for(let v=0;v<c;v++){const g=r[v];(h[v]&1)===0?g==="R"?h[v]++:(g==="AN"||g==="EN")&&(h[v]+=2):(g==="L"||g==="AN"||g==="EN")&&h[v]++}return h}function Iv(i,c){const r=Wv(i);if(r===null)return null;const o=new Int8Array(c.length);for(let d=0;d<c.length;d++)o[d]=r[c[d]];return o}const $v=/[ \t\n\r\f]+/g,Pv=/[\t\n\r\f]| {2,}|^ | $/;function eb(i){const c=i??"normal";return c==="pre-wrap"?{mode:c,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:c,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}}function tb(i){if(!Pv.test(i))return i;let c=i.replace($v," ");return c.charCodeAt(0)===32&&(c=c.slice(1)),c.length>0&&c.charCodeAt(c.length-1)===32&&(c=c.slice(0,-1)),c}function lb(i){return/[\r\f]/.test(i)?i.replace(/\r\n/g,`
|
|
300
|
-
`).replace(/[\r\f]/g,`
|
|
301
|
-
`):i}let ao=null,nb;function ab(){return ao===null&&(ao=new Intl.Segmenter(nb,{granularity:"word"})),ao}const ub=new RegExp("\\p{Script=Arabic}","u"),un=new RegExp("\\p{M}","u"),po=new RegExp("\\p{Nd}","u");function v1(i){return ub.test(i)}function b1(i){return i>=19968&&i<=40959||i>=13312&&i<=19903||i>=131072&&i<=173791||i>=173824&&i<=177983||i>=177984&&i<=178207||i>=178208&&i<=183983||i>=183984&&i<=191471||i>=191472&&i<=192093||i>=194560&&i<=195103||i>=196608&&i<=201551||i>=201552&&i<=205743||i>=205744&&i<=210041||i>=63744&&i<=64255||i>=12288&&i<=12351||i>=12352&&i<=12447||i>=12448&&i<=12543||i>=12592&&i<=12687||i>=44032&&i<=55215||i>=65280&&i<=65519}function fl(i){for(let c=0;c<i.length;c++){const r=i.charCodeAt(c);if(!(r<12288)){if(r>=55296&&r<=56319&&c+1<i.length){const o=i.charCodeAt(c+1);if(o>=56320&&o<=57343){const d=(r-55296<<10)+(o-56320)+65536;if(b1(d))return!0;c++;continue}}if(b1(r))return!0}}return!1}function ib(i){const c=zu(i);return c!==null&&(yo.has(c)||Rn.has(c))}const cb=new Set([" "," ","","\uFEFF"]),sb=new Set(["-","‐","–","—"]);function rb(i){const c=zu(i);return c!==null&&cb.has(c)}function ob(i){const c=zu(i);return c!==null&&sb.has(c)}function Th(i,c){return rb(i)?!1:c?!(ib(i)||ob(i)):!0}const yo=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),mc=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),No=new Set(["'","’"]),Rn=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),fb=new Set([":",".","،","؛"]),db=new Set(["၏"]),xb=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function hb(i){if(So(i))return!0;let c=!1;for(const r of i){if(Rn.has(r)||vc(r)){c=!0;continue}if(!(c&&un.test(r)))return!1}return c}function mb(i){for(const c of i)if(!yo.has(c)&&!Rn.has(c))return!1;return i.length>0}function gb(i){if(So(i))return!0;for(const c of i)if(!mc.has(c)&&!No.has(c)&&!un.test(c)&&!vc(c))return!1;return i.length>0}function So(i){let c=!1;for(const r of i)if(!(r==="\\"||un.test(r))){if(mc.has(r)||Rn.has(r)||No.has(r)){c=!0;continue}return!1}return c}function gc(i,c){const r=c-1;if(r<=0)return Math.max(r,0);const o=i.charCodeAt(r);if(o<56320||o>57343)return r;const d=r-1;if(d<0)return r;const h=i.charCodeAt(d);return h>=55296&&h<=56319?d:r}function zu(i){if(i.length===0)return null;const c=gc(i,i.length);return i.slice(c)}function vb(i){for(const c of i)if(!un.test(c))return c;return null}function bb(i){for(let c=i.length;c>0;){const r=gc(i,c),o=i.slice(r,c);if(!un.test(o))return o;c=r}return null}const pb=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function yb(i,c){for(let r=0;r<c.length;r+=2)if(i>=c[r]&&i<=c[r+1])return!0;return!1}function vc(i){const c=i.codePointAt(0);return c!==void 0&&yb(c,pb)}function Nb(i){const c=bb(i);return c!==null&&vc(c)}function Sb(i){const c=vb(i);return c!==null&&po.test(c)}function Eb(i){const c=Array.from(i);let r=c.length;for(;r>0;){const o=c[r-1];if(un.test(o)){r--;continue}if(mc.has(o)||No.has(o)){r--;continue}break}return r<=0||r===c.length?null:{head:c.slice(0,r).join(""),tail:c.slice(r).join("")}}function Ab(i,c,r){return r==="text"&&!c&&i.length===1&&i!=="-"&&i!=="—"?i:null}function p1(i,c,r,o){const d=c[o],h=i[o];if(d==null)return h;const p=r[o];if(h.length===p)return h;const N=d.repeat(p);return i[o]=N,N}function y1(i,c){return i&&c!==null&&fb.has(c)}function Cb(i){const c=zu(i);return c!==null&&db.has(c)}function Mb(i){if(i.length<2||i[0]!==" ")return null;const c=i.slice(1);return new RegExp("^\\p{M}+$","u").test(c)?{space:" ",marks:c}:null}function ho(i){let c=i.length;for(;c>0;){const r=gc(i,c),o=i.slice(r,c);if(xb.has(o))return!0;if(!Rn.has(o))return!1;c=r}return!1}function kb(i,c){if(c.preserveOrdinarySpaces||c.preserveHardBreaks){if(i===" ")return"preserved-space";if(i===" ")return"tab";if(c.preserveHardBreaks&&i===`
|
|
302
|
-
`)return"hard-break"}return i===" "?"space":i===" "||i===" "||i===""||i==="\uFEFF"?"glue":i===""?"zero-width-break":i===""?"soft-hyphen":"text"}const Tb=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function It(i){return i.length===1?i[0]:i.join("")}function Fb(i,c){const r=[];for(let o=i.length-1;o>=0;o--)r.push(i[o]);return r.push(c),It(r)}function Db(i,c,r,o){if(!Tb.test(i))return[{text:i,isWordLike:c,kind:"text",start:r}];const d=[];let h=null,p=[],N=r,b=!1,v=0;for(const g of i){const m=kb(g,o),S=m==="text"&&c;if(h!==null&&m===h&&S===b){p.push(g),v+=g.length;continue}h!==null&&d.push({text:It(p),isWordLike:b,kind:h,start:N}),h=m,p=[g],N=r+v,b=S,v+=g.length}return h!==null&&d.push({text:It(p),isWordLike:b,kind:h,start:N}),d}function mo(i){return i==="space"||i==="preserved-space"||i==="zero-width-break"||i==="hard-break"}const Bb=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function Ob(i,c){const r=i.texts[c];return r.startsWith("www.")?!0:Bb.test(r)&&c+1<i.len&&i.kinds[c+1]==="text"&&i.texts[c+1]==="//"}function jb(i){return i.includes("?")&&(i.includes("://")||i.startsWith("www."))}function wb(i){const c=i.texts.slice(),r=i.isWordLike.slice(),o=i.kinds.slice(),d=i.starts.slice();for(let p=0;p<i.len;p++){if(o[p]!=="text"||!Ob(i,p))continue;const N=[c[p]];let b=p+1;for(;b<i.len&&!mo(o[b]);){N.push(c[b]),r[p]=!0;const v=c[b].includes("?");if(o[b]="text",c[b]="",b++,v)break}c[p]=It(N)}let h=0;for(let p=0;p<c.length;p++){const N=c[p];N.length!==0&&(h!==p&&(c[h]=N,r[h]=r[p],o[h]=o[p],d[h]=d[p]),h++)}return c.length=h,r.length=h,o.length=h,d.length=h,{len:h,texts:c,isWordLike:r,kinds:o,starts:d}}function zb(i){const c=[],r=[],o=[],d=[];for(let h=0;h<i.len;h++){const p=i.texts[h];if(c.push(p),r.push(i.isWordLike[h]),o.push(i.kinds[h]),d.push(i.starts[h]),!jb(p))continue;const N=h+1;if(N>=i.len||mo(i.kinds[N]))continue;const b=[],v=i.starts[N];let g=N;for(;g<i.len&&!mo(i.kinds[g]);)b.push(i.texts[g]),g++;b.length>0&&(c.push(It(b)),r.push(!0),o.push("text"),d.push(v),h=g-1)}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}const _b=new Set([":","-","/","×",",",".","+","–","—"]),Rb=/[\p{P}\p{S}\p{Co}]/u,Lb=new RegExp("\\p{Emoji_Presentation}","u"),Hb=new Set(["?","֊","-","‐","‒","–","—","…","‼","‽","⁉"]);function Ub(i){return i>=33&&i<=47&&i!==45||i>=58&&i<=64&&i!==63||i>=91&&i<=96||i>=123&&i<=126}function Fh(i){const c=i.charCodeAt(0);return c<128?Ub(c):!Hb.has(i)&&!Lb.test(i)&&Rb.test(i)}function N1(i){let c=!1;for(const r of i)if(!un.test(r)){if(!Fh(r))return!1;c=!0}return c}function qb(i){for(let c=i.length;c>0;){const r=gc(i,c),o=i.slice(r,c);if(un.test(o)){c=r;continue}return Fh(o)||vc(o)}return!1}function Gb(i,c,r,o){const d=!c&&N1(i),h=!o&&N1(r),p=Nb(i),N=(c||p)&&qb(i);return!d&&!h&&!N||fl(i)||fl(r)?!1:(c||d||p)&&(o||h)}function Dh(i){for(const c of i)if(po.test(c))return!0;return!1}function dc(i){if(i.length===0)return!1;for(const c of i)if(!(po.test(c)||_b.has(c)))return!1;return!0}function Yb(i){const c=[],r=[],o=[],d=[];for(let h=0;h<i.len;h++){const p=i.texts[h],N=i.kinds[h];if(N==="text"&&dc(p)&&Dh(p)){const b=[p];let v=h+1;for(;v<i.len&&i.kinds[v]==="text"&&dc(i.texts[v]);)b.push(i.texts[v]),v++;c.push(It(b)),r.push(!0),o.push("text"),d.push(i.starts[h]),h=v-1;continue}c.push(p),r.push(i.isWordLike[h]),o.push(N),d.push(i.starts[h])}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}function Xb(i){const c=[],r=[],o=[],d=[];let h=0;for(;h<i.len;){const p=i.texts[h],N=i.kinds[h],b=i.isWordLike[h];if(N==="text"){const v=[p];let g=h+1,m=b;for(;g<i.len&&i.kinds[g]==="text"&&Gb(i.texts[g-1],i.isWordLike[g-1],i.texts[g],i.isWordLike[g]);){const S=i.texts[g];v.push(S),m=m||i.isWordLike[g],g++}if(g>h+1){c.push(It(v)),r.push(m),o.push("text"),d.push(i.starts[h]),h=g;continue}}c.push(p),r.push(b),o.push(N),d.push(i.starts[h]),h++}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}function Qb(i){const c=[],r=[],o=[],d=[];for(let h=0;h<i.len;h++){const p=i.texts[h];if(i.kinds[h]==="text"&&p.includes("-")){const N=p.split("-");let b=N.length>1;for(let v=0;v<N.length;v++){const g=N[v];if(!b)break;(g.length===0||!Dh(g)||!dc(g))&&(b=!1)}if(b){let v=0;for(let g=0;g<N.length;g++){const m=N[g],S=g<N.length-1?`${m}-`:m;c.push(S),r.push(!0),o.push("text"),d.push(i.starts[h]+v),v+=S.length}continue}}c.push(p),r.push(i.isWordLike[h]),o.push(i.kinds[h]),d.push(i.starts[h])}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}function Vb(i){const c=[],r=[],o=[],d=[];let h=0;for(;h<i.len;){const p=[i.texts[h]];let N=i.isWordLike[h],b=i.kinds[h],v=i.starts[h];if(b==="glue"){const g=[p[0]],m=v;for(h++;h<i.len&&i.kinds[h]==="glue";)g.push(i.texts[h]),h++;const S=It(g);if(h<i.len&&i.kinds[h]==="text")p[0]=S,p.push(i.texts[h]),N=i.isWordLike[h],b="text",v=m,h++;else{c.push(S),r.push(!1),o.push("glue"),d.push(m);continue}}else h++;if(b==="text")for(;h<i.len&&i.kinds[h]==="glue";){const g=[];for(;h<i.len&&i.kinds[h]==="glue";)g.push(i.texts[h]),h++;const m=It(g);if(h<i.len&&i.kinds[h]==="text"){p.push(m,i.texts[h]),N=N||i.isWordLike[h],h++;continue}p.push(m)}c.push(It(p)),r.push(N),o.push(b),d.push(v)}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}function Zb(i){const c=i.texts.slice(),r=i.isWordLike.slice(),o=i.kinds.slice(),d=i.starts.slice();for(let h=0;h<c.length-1;h++){if(o[h]!=="text"||o[h+1]!=="text"||!fl(c[h])||!fl(c[h+1]))continue;const p=Eb(c[h]);p!==null&&(c[h]=p.head,c[h+1]=p.tail+c[h+1],d[h+1]=d[h]+p.head.length)}return{len:c.length,texts:c,isWordLike:r,kinds:o,starts:d}}function Kb(i,c,r){const o=ab();let d=0;const h=[],p=[],N=[],b=[],v=[],g=[],m=[],S=[],D=[],Y=[],P=[],U=[];for(const E of o.segment(i))for(const z of Db(E.segment,E.isWordLike??!1,E.index,r)){let F=function(){g[k]!==null&&(p[k]=[p1(h,g,m,k)],g[k]=null),p[k].push(z.text),N[k]=N[k]||z.isWordLike,S[k]=S[k]||W,D[k]=D[k]||A,Y[k]=X,P[k]=Z,U[k]=y1(D[k],le)};const R=z.kind==="text",I=Ab(z.text,z.isWordLike,z.kind),W=fl(z.text),A=v1(z.text),le=zu(z.text),X=ho(z.text),Z=Cb(z.text),k=d-1;c.carryCJKAfterClosingQuote&&R&&d>0&&b[k]==="text"&&W&&S[k]&&Y[k]||R&&d>0&&b[k]==="text"&&mb(z.text)&&S[k]||R&&d>0&&b[k]==="text"&&P[k]?F():R&&d>0&&b[k]==="text"&&z.isWordLike&&A&&U[k]?(F(),N[k]=!0):I!==null&&d>0&&b[k]==="text"&&g[k]===I?m[k]=(m[k]??1)+1:R&&!z.isWordLike&&d>0&&b[k]==="text"&&!S[k]&&(hb(z.text)||z.text==="-"&&N[k])?F():(h[d]=z.text,p[d]=[z.text],N[d]=z.isWordLike,b[d]=z.kind,v[d]=z.start,g[d]=I,m[d]=I===null?0:1,S[d]=W,D[d]=A,Y[d]=X,P[d]=Z,U[d]=y1(A,le),d++)}for(let E=0;E<d;E++){if(g[E]!==null){h[E]=p1(h,g,m,E);continue}h[E]=It(p[E])}for(let E=1;E<d;E++)b[E]==="text"&&!N[E]&&So(h[E])&&b[E-1]==="text"&&!S[E-1]&&(h[E-1]+=h[E],N[E-1]=N[E-1]||N[E],h[E]="");const ee=Array.from({length:d},()=>null);let K=-1;for(let E=d-1;E>=0;E--){const z=h[E];if(z.length!==0){if(b[E]==="text"&&!N[E]&&K>=0&&b[K]==="text"&&(gb(z)||z==="-"&&Sb(h[K]))){const R=ee[K]??[];R.push(z),ee[K]=R,v[K]=v[E],h[E]="";continue}K=E}}for(let E=0;E<d;E++){const z=ee[E];z!=null&&(h[E]=Fb(z,h[E]))}let Q=0;for(let E=0;E<d;E++){const z=h[E];z.length!==0&&(Q!==E&&(h[Q]=z,N[Q]=N[E],b[Q]=b[E],v[Q]=v[E]),Q++)}h.length=Q,N.length=Q,b.length=Q,v.length=Q;const ie=Vb({len:Q,texts:h,isWordLike:N,kinds:b,starts:v}),V=Zb(Xb(Qb(Yb(zb(wb(ie))))));for(let E=0;E<V.len-1;E++){const z=Mb(V.texts[E]);z!==null&&(V.kinds[E]!=="space"&&V.kinds[E]!=="preserved-space"||V.kinds[E+1]!=="text"||!v1(V.texts[E+1])||(V.texts[E]=z.space,V.isWordLike[E]=!1,V.kinds[E]=V.kinds[E]==="preserved-space"?"preserved-space":"space",V.texts[E+1]=z.marks+V.texts[E+1],V.starts[E+1]=V.starts[E]+z.space.length))}return V}function Jb(i,c){if(i.len===0)return[];if(!c.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:i.len,consumedEndSegmentIndex:i.len}];const r=[];let o=0;for(let d=0;d<i.len;d++)i.kinds[d]==="hard-break"&&(r.push({startSegmentIndex:o,endSegmentIndex:d,consumedEndSegmentIndex:d+1}),o=d+1);return o<i.len&&r.push({startSegmentIndex:o,endSegmentIndex:i.len,consumedEndSegmentIndex:i.len}),r}function Wb(i,c,r){if(c.len<=1)return c;const o=[],d=[],h=[],p=[];let N=-1,b=!1;function v(S){o.push(c.texts[S]),d.push(c.isWordLike[S]),h.push("text"),p.push(c.starts[S])}function g(S,D){let Y=!1;for(let ee=S;ee<D;ee++)Y=Y||c.isWordLike[ee];const P=c.starts[S],U=D<c.len?c.starts[D]:i.length;o.push(i.slice(P,U)),d.push(Y),h.push("text"),p.push(P)}function m(S){if(!(N<0)){if(b)N+1===S?v(N):g(N,S);else for(let D=N;D<S;D++)v(D);N=-1,b=!1}}for(let S=0;S<c.len;S++){const D=c.texts[S],Y=c.kinds[S];if(Y==="text"){N>=0&&!Th(c.texts[S-1],r)&&m(S),N<0&&(N=S),b=b||fl(D);continue}m(S),o.push(D),d.push(c.isWordLike[S]),h.push(Y),p.push(c.starts[S])}return m(c.len),{len:o.length,texts:o,isWordLike:d,kinds:h,starts:p}}function Ib(i,c,r="normal",o="normal"){const d=eb(r),h=d.mode==="pre-wrap"?lb(i):tb(i);if(h.length===0)return{normalized:h,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const p=Kb(h,c,d),N=o==="keep-all"?Wb(h,p,c.breakKeepAllAfterPunctuation):p;return{normalized:h,chunks:Jb(N,d),...N}}let Fa=null;const S1=new Map;let Da=null;const $b=96,Pb=new RegExp("\\p{Emoji_Presentation}","u"),ep=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let uo=null;const E1=new Map;function Eo(){if(Fa!==null)return Fa;if(typeof OffscreenCanvas<"u")return Fa=new OffscreenCanvas(1,1).getContext("2d"),Fa;if(typeof document<"u")return Fa=document.createElement("canvas").getContext("2d"),Fa;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function tp(i){let c=S1.get(i);return c||(c=new Map,S1.set(i,c)),c}function an(i,c){let r=c.get(i);return r===void 0&&(r={width:Eo().measureText(i).width,containsCJK:fl(i)},c.set(i,r)),r}function za(){if(Da!==null)return Da;if(typeof navigator>"u")return Da={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Da;const i=navigator.userAgent,r=navigator.vendor==="Apple Computer, Inc."&&i.includes("Safari/")&&!i.includes("Chrome/")&&!i.includes("Chromium/")&&!i.includes("CriOS/")&&!i.includes("FxiOS/")&&!i.includes("EdgiOS/"),o=i.includes("Chrome/")||i.includes("Chromium/")||i.includes("CriOS/")||i.includes("Edg/");return Da={lineFitEpsilon:r?1/64:.005,carryCJKAfterClosingQuote:o,breakKeepAllAfterPunctuation:!r,preferPrefixWidthsForBreakableRuns:r,preferEarlySoftHyphenBreak:r},Da}function lp(i){const c=i.match(/(\d+(?:\.\d+)?)\s*px/);return c?parseFloat(c[1]):16}function Bh(){return uo===null&&(uo=new Intl.Segmenter(void 0,{granularity:"grapheme"})),uo}function np(i){return Pb.test(i)||i.includes("️")}function ap(i){return ep.test(i)}function up(i,c){let r=E1.get(i);if(r!==void 0)return r;const o=Eo();o.font=i;const d=o.measureText("😀").width;if(r=0,d>c+.5&&typeof document<"u"&&document.body!==null){const h=document.createElement("span");h.style.font=i,h.style.display="inline-block",h.style.visibility="hidden",h.style.position="absolute",h.textContent="😀",document.body.appendChild(h);const p=h.getBoundingClientRect().width;document.body.removeChild(h),d-p>.5&&(r=d-p)}return E1.set(i,r),r}function ip(i){let c=0;const r=Bh();for(const o of r.segment(i))np(o.segment)&&c++;return c}function cp(i,c){return c.emojiCount===void 0&&(c.emojiCount=ip(i)),c.emojiCount}function _n(i,c,r){return r===0?c.width:c.width-cp(i,c)*r}function sp(i,c,r,o,d){if(c.breakableFitAdvances!==void 0&&c.breakableFitMode===d)return c.breakableFitAdvances;c.breakableFitMode=d;const h=Bh(),p=[];for(const g of h.segment(i))p.push(g.segment);if(p.length<=1)return c.breakableFitAdvances=null,c.breakableFitAdvances;if(d==="sum-graphemes"){const g=[];for(const m of p){const S=an(m,r);g.push(_n(m,S,o))}return c.breakableFitAdvances=g,c.breakableFitAdvances}if(d==="pair-context"||p.length>$b){const g=[];let m=null,S=0;for(const D of p){const Y=an(D,r),P=_n(D,Y,o);if(m===null)g.push(P);else{const U=m+D,ee=an(U,r);g.push(_n(U,ee,o)-S)}m=D,S=P}return c.breakableFitAdvances=g,c.breakableFitAdvances}const N=[];let b="",v=0;for(const g of p){b+=g;const m=an(b,r),S=_n(b,m,o);N.push(S-v),v=S}return c.breakableFitAdvances=N,c.breakableFitAdvances}function rp(i,c){const r=Eo();r.font=i;const o=tp(i),d=lp(i),h=c?up(i,d):0;return{cache:o,fontSize:d,emojiCorrection:h}}function op(i){return i==="space"||i==="zero-width-break"||i==="soft-hyphen"}function bc(i){return i==="space"||i==="preserved-space"||i==="tab"||i==="zero-width-break"||i==="soft-hyphen"}function Ao(i,c,r=i.widths.length){for(;c<r;){const o=i.kinds[c];if(!op(o))break;c++}return c}function Oh(i,c){if(c<=0)return 0;const r=i%c;return Math.abs(r)<=1e-6?c:c-r}function jh(i,c,r){return i.letterSpacing!==0&&c&&i.spacingGraphemeCounts[r]>0?i.letterSpacing:0}function Co(i,c){return c===0?0:i+c}function fp(i,c){return i.letterSpacing!==0&&i.spacingGraphemeCounts[c]>0?i.letterSpacing:0}function wh(i,c,r,o,d){const h=c==="tab"?d+fp(i,r):i.lineEndFitAdvances[r];return Co(o,h)}function xc(i,c,r,o){const d=c==="tab"?0:i.lineEndFitAdvances[r];return Co(o,d)}function hc(i,c,r,o,d){const h=c==="tab"?d:i.lineEndPaintAdvances[r];return Co(o,h)}function zh(i,c,r){return i.letterSpacing!==0&&c?r+i.letterSpacing:r}function _h(i,c){return i.letterSpacing===0?c:c+i.letterSpacing}function wa(i,c,r){let o=c;for(;o<i.length&&i[o]<r;)o++;return o}function dp(i,c,r,o,d){if(i.letterSpacing===0)return 0;if(d>0)return i.spacingGraphemeCounts[o]>0?i.letterSpacing:0;for(let h=o-1;h>=c;h--){const p=i.kinds[h];if(!(p==="space"||p==="zero-width-break"||p==="hard-break")){if(p==="soft-hyphen"){if(h===o-1)return 0;continue}return h===c&&r>0||i.spacingGraphemeCounts[h]>0?i.letterSpacing:0}}return 0}function Rh(i,c,r,o,d,h){return c+dp(i,r,o,d,h)}function xp(i,c){let r=0,o=i.chunks.length;for(;r<o;){const d=Math.floor((r+o)/2);c<i.chunks[d].consumedEndSegmentIndex?o=d:r=d+1}return r<i.chunks.length?r:-1}function hp(i,c,r){let o=r.segmentIndex;if(r.graphemeIndex>0)return c;const d=i.chunks[c];return d.startSegmentIndex===d.endSegmentIndex&&o===d.startSegmentIndex||(o<d.startSegmentIndex&&(o=d.startSegmentIndex),o=Ao(i,o,d.endSegmentIndex),o<d.endSegmentIndex)?(r.segmentIndex=o,r.graphemeIndex=0,c):d.consumedEndSegmentIndex>=i.widths.length?-1:(r.segmentIndex=d.consumedEndSegmentIndex,r.graphemeIndex=0,c+1)}function mp(i,c){if(c.segmentIndex>=i.widths.length)return-1;const r=xp(i,c.segmentIndex);return r<0?-1:hp(i,r,c)}function gp(i,c,r){const{widths:o,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:p}=i;if(o.length===0)return 0;const b=za().lineFitEpsilon,v=c+b;let g=0,m=0,S=!1,D=0,Y=0,P=0,U=0,ee=-1,K=0;function Q(){ee=-1,K=0}function ie(W=P,A=U,le=m){g++,r==null||r(le,D,Y,W,A),m=0,S=!1,Q()}function V(W,A){S=!0,D=W,Y=0,P=W+1,U=0,m=A}function E(W,A,le){S=!0,D=W,Y=A,P=W,U=A+1,m=le}function z(W,A){if(!S){V(W,A);return}m+=A,P=W+1,U=0}function R(W,A){const le=h[W],X=p[W]??null;let Z=X===null?-1:wa(X,0,A+1),k=-1,F=0,w=A;for(;w<le.length;){const L=le[w];if(!S)E(W,w,L);else if(m+L>v){if(X!==null&&k>A){ie(W,k,F),w=k,Z=wa(X,Z,w+1),k=-1,F=0;continue}ie(),E(W,w,L)}else m+=L,P=W,U=w+1;const $=w+1;X!==null&&X[Z]===$&&(k=$,F=m,Z++),w++}S&&P===W&&U===le.length&&(P=W+1,U=0)}let I=0;for(;I<o.length&&!(!S&&(I=Ao(i,I),I>=o.length));){const W=o[I],A=d[I],le=bc(A);if(!S){W>v&&h[I]!==null?R(I,0):V(I,W),le&&(ee=I+1,K=m-W),I++;continue}if(m+W>v){if(le){z(I,W),ie(I+1,0,m-W),I++;continue}if(ee>=0){if(P>ee||P===ee&&U>0){ie();continue}ie(ee,0,K);continue}if(W>v&&h[I]!==null){ie(),R(I,0),I++;continue}ie();continue}z(I,W),le&&(ee=I+1,K=m-W),I++}return S&&ie(),g}function vp(i,c,r){if(i.simpleLineWalkFastPath)return gp(i,c,r);const{widths:o,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:p,discretionaryHyphenWidth:N,chunks:b}=i;if(o.length===0||b.length===0)return 0;const v=za(),g=v.lineFitEpsilon,m=c+g;let S=0,D=0,Y=!1,P=0,U=0,ee=0,K=0,Q=-1,ie=0,V=0,E=null;function z(){Q=-1,ie=0,V=0,E=null}function R(){return E==="soft-hyphen"&&Q===ee&&K===0?V:D}function I(F=ee,w=K,L){S++,r!==void 0&&r(Rh(i,L??R(),P,U,F,w),P,U,F,w),D=0,Y=!1,z()}function W(F,w){Y=!0,P=F,U=0,ee=F+1,K=0,D=w}function A(F,w,L){Y=!0,P=F,U=w,ee=F,K=w+1,D=L}function le(F,w){if(!Y){W(F,w);return}D+=w,ee=F+1,K=0}function X(F,w,L,$,J,ne){if(!w)return;const he=xc(i,F,L,J),Te=hc(i,F,L,J,$);Q=L+1,ie=D-ne+he,V=D-ne+Te,E=F}function Z(F,w){const L=h[F],$=p[F]??null;let J=$===null?-1:wa($,0,w+1),ne=-1,he=0,Te=w;for(;Te<L.length;){const C=L[Te];if(!Y)A(F,Te,C);else{const se=zh(i,!0,C),re=D+se;if(_h(i,re)>m){if($!==null&&ne>w){I(F,ne,he),Te=ne,J=wa($,J,Te+1),ne=-1,he=0;continue}I(),A(F,Te,C)}else D=re,ee=F,K=Te+1}const te=Te+1;$!==null&&$[J]===te&&(ne=te,he=D,J++),Te++}Y&&ee===F&&K===L.length&&(ee=F+1,K=0)}function k(F){S++,r==null||r(0,F.startSegmentIndex,0,F.consumedEndSegmentIndex,0),z()}for(let F=0;F<b.length;F++){const w=b[F];if(w.startSegmentIndex===w.endSegmentIndex){k(w);continue}Y=!1,D=0,P=w.startSegmentIndex,U=0,ee=w.startSegmentIndex,K=0,z();let L=w.startSegmentIndex;for(;L<w.endSegmentIndex&&!(!Y&&(L=Ao(i,L,w.endSegmentIndex),L>=w.endSegmentIndex));){const $=d[L],J=bc($),ne=jh(i,Y,L),he=$==="tab"?Oh(D+ne,i.tabStopAdvance):o[L],Te=ne+he,C=wh(i,$,L,ne,he);if($==="soft-hyphen"){Y&&(ee=L+1,K=0,Q=L+1,ie=D+N,V=D+N,E=$),L++;continue}if(!Y){C>m&&h[L]!==null?Z(L,0):W(L,he),X($,J,L,he,ne,Te),L++;continue}if(D+C>m){const se=D+xc(i,$,L,ne),re=D+hc(i,$,L,ne,he);if(E==="soft-hyphen"&&v.preferEarlySoftHyphenBreak&&ie<=m){I(Q,0,V);continue}if(J&&se<=m){le(L,Te),I(L+1,0,re),L++;continue}if(Q>=0&&ie<=m){if(ee>Q||ee===Q&&K>0){I();continue}const oe=Q;I(oe,0,V),L=oe;continue}if(C>m&&h[L]!==null){I(),Z(L,0),L++;continue}I();continue}le(L,Te),X($,J,L,he,ne,Te),L++}if(Y){const $=Q===w.consumedEndSegmentIndex?V:D;I(w.consumedEndSegmentIndex,0,$)}}return S}function bp(i,c,r,o){const d=i.chunks[r];if(d.startSegmentIndex===d.endSegmentIndex)return c.segmentIndex=d.consumedEndSegmentIndex,c.graphemeIndex=0,0;const{widths:h,kinds:p,breakableFitAdvances:N,breakablePreferredBreaks:b,discretionaryHyphenWidth:v}=i,g=za(),m=g.lineFitEpsilon,S=o+m,D=c.segmentIndex,Y=c.graphemeIndex;let P=0,U=!1,ee=c.segmentIndex,K=c.graphemeIndex,Q=-1,ie=0,V=0,E=null;function z(){return E==="soft-hyphen"&&Q===ee&&K===0?V:P}function R(k=ee,F=K,w=z()){return U?(c.segmentIndex=k,c.graphemeIndex=F,Rh(i,w,D,Y,k,F)):null}function I(k,F){U=!0,ee=k+1,K=0,P=F}function W(k,F,w){U=!0,ee=k,K=F+1,P=w}function A(k,F){if(!U){I(k,F);return}P+=F,ee=k+1,K=0}function le(k,F,w,L,$,J){if(!F)return;const ne=xc(i,k,w,$),he=hc(i,k,w,$,L);Q=w+1,ie=P-J+ne,V=P-J+he,E=k}function X(k,F){const w=N[k],L=b[k]??null;let $=L===null?-1:wa(L,0,F+1),J=-1,ne=0;for(let he=F;he<w.length;he++){const Te=w[he];if(!U)W(k,he,Te);else{const te=zh(i,!0,Te),se=P+te;if(_h(i,se)>S)return L!==null&&J>F?R(k,J,ne):R();P=se,ee=k,K=he+1}const C=he+1;L!==null&&L[$]===C&&(J=C,ne=P,$++)}return U&&ee===k&&K===w.length&&(ee=k+1,K=0),null}function Z(){return E!=="soft-hyphen"||Q<0?null:ie<=S?R(Q,0,V):null}for(let k=c.segmentIndex;k<d.endSegmentIndex;k++){const F=p[k],w=bc(F),L=k===c.segmentIndex?c.graphemeIndex:0,$=jh(i,U,k),J=F==="tab"?Oh(P+$,i.tabStopAdvance):h[k],ne=$+J,he=wh(i,F,k,$,J);if(F==="soft-hyphen"&&L===0){U&&(ee=k+1,K=0,Q=k+1,ie=P+v,V=P+v,E=F);continue}if(!U){if(L>0){const C=X(k,L);if(C!==null)return C}else if(he>S&&N[k]!==null){const C=X(k,0);if(C!==null)return C}else I(k,J);le(F,w,k,J,$,ne);continue}if(P+he>S){const C=P+xc(i,F,k,$),te=P+hc(i,F,k,$,J);if(E==="soft-hyphen"&&g.preferEarlySoftHyphenBreak&&ie<=S)return R(Q,0,V);const se=Z();if(se!==null)return se;if(w&&C<=S)return A(k,ne),R(k+1,0,te);if(Q>=0&&ie<=S)return ee>Q||ee===Q&&K>0?R():R(Q,0,V);if(he>S&&N[k]!==null){const re=R();if(re!==null)return re;const oe=X(k,0);if(oe!==null)return oe}return R()}A(k,ne),le(F,w,k,J,$,ne)}return Q===d.consumedEndSegmentIndex&&K===0?R(d.consumedEndSegmentIndex,0,V):R(d.consumedEndSegmentIndex,0,P)}function pp(i,c,r){const{widths:o,kinds:d,breakableFitAdvances:h,breakablePreferredBreaks:p}=i,b=za().lineFitEpsilon,v=r+b;let g=0,m=!1,S=c.segmentIndex,D=c.graphemeIndex,Y=-1,P=0;for(let U=c.segmentIndex;U<o.length;U++){const ee=d[U],K=bc(ee),Q=U===c.segmentIndex?c.graphemeIndex:0,ie=h[U],V=o[U];if(!m){if(Q>0||V>v&&ie!==null){const E=ie,z=p[U]??null;let R=z===null?-1:wa(z,0,Q+1),I=-1,W=0;const A=E[Q];m=!0,g=A,S=U,D=Q+1,z!==null&&z[R]===D&&(I=D,W=g,R++);for(let le=Q+1;le<E.length;le++){const X=E[le];if(g+X>v)return z!==null&&I>Q?(c.segmentIndex=U,c.graphemeIndex=I,W):(c.segmentIndex=S,c.graphemeIndex=D,g);g+=X,S=U,D=le+1,z!==null&&z[R]===D&&(I=D,W=g,R++)}S===U&&D===E.length&&(S=U+1,D=0)}else m=!0,g=V,S=U+1,D=0;K&&(Y=U+1,P=g-V);continue}if(g+V>v)return K?(c.segmentIndex=U+1,c.graphemeIndex=0,g):Y>=0?S>Y||S===Y&&D>0?(c.segmentIndex=S,c.graphemeIndex=D,g):(c.segmentIndex=Y,c.graphemeIndex=0,P):(c.segmentIndex=S,c.graphemeIndex=D,g);g+=V,S=U+1,D=0,K&&(Y=U+1,P=g-V)}return m?(c.segmentIndex=S,c.graphemeIndex=D,g):null}function yp(i,c,r,o){return i.simpleLineWalkFastPath?pp(i,c,o):bp(i,c,r,o)}function go(i,c,r){const o=mp(i,c);return o<0?null:yp(i,c,o,r)}let io=null,A1=new WeakMap;function Np(){return io===null&&(io=new Intl.Segmenter(void 0,{granularity:"grapheme"})),io}function C1(i,c,r){let o=r.get(i);if(o!==void 0)return o;o=[];const d=Np();for(const h of d.segment(c[i]))o.push(h.segment);return r.set(i,o),o}function Sp(i,c,r){return r>c&&i[r-1]==="soft-hyphen"}function M1(i,c,r,o){for(let d=r;d<o;d++)i+=c[d];return i}function Ep(i){let c=A1.get(i);return c!==void 0||(c=new Map,A1.set(i,c)),c}function Ap(i,c,r,o,d,h){let p="";const N=Sp(i.kinds,r,d);for(let b=r;b<d;b++)if(!(i.kinds[b]==="soft-hyphen"||i.kinds[b]==="hard-break"))if(b===r&&o>0){const v=C1(b,i.segments,c);p=M1(p,v,o,v.length)}else p+=i.segments[b];if(h>0){N&&(p+="-");const b=C1(d,i.segments,c);p=M1(p,b,r===d?o:0,h)}else N&&(p+="-");return p}let co=null;function Mo(){return co===null&&(co=new Intl.Segmenter(void 0,{granularity:"grapheme"})),co}function Cp(i){return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[],segments:[]}}function Mp(i,c){const r=[];let o=[],d=0,h=!1,p=!1,N=!1;function b(){o.length!==0&&(r.push({text:o.length===1?o[0]:o.join(""),start:d}),o=[],h=!1,p=!1,N=!1)}function v(m,S,D){o=[m],d=S,h=D,p=ho(m),N=mc.has(m)}function g(m,S){o.push(m),h=h||S;const D=ho(m);m.length===1&&Rn.has(m)?p=p||D:p=D,N=!1}for(const m of Mo().segment(i)){const S=m.segment,D=fl(S);if(o.length===0){v(S,m.index,D);continue}if(N||yo.has(S)||Rn.has(S)||c.carryCJKAfterClosingQuote&&D&&p){g(S,D);continue}if(!h&&!D){g(S,D);continue}b(),v(S,m.index,D)}return b(),r}function kp(i,c,r){if(c.length<=1)return c;const o=[];let d=-1,h=!1;function p(b,v){const g=c[b].start,m=v<c.length?c[v].start:i.length;o.push({text:i.slice(g,m),start:g})}function N(b){if(!(d<0)){if(h)d+1===b?o.push(c[d]):p(d,b);else for(let v=d;v<b;v++)o.push(c[v]);d=-1,h=!1}}for(let b=0;b<c.length;b++){const v=c[b];d>=0&&!Th(c[b-1].text,r)&&N(b),d<0&&(d=b),h=h||fl(v.text)}return N(c.length),o}function k1(i,c){if(c==="zero-width-break"||c==="soft-hyphen"||c==="hard-break")return 0;if(c==="tab")return 1;let r=0;const o=Mo();for(const d of o.segment(i))r++;return r}function Tp(i){return i==="-"||i==="֊"||i==="‐"||i==="‒"||i==="–"||i==="—"}function Fp(i){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(i))return null;const c=[];let r=0;for(const o of Mo().segment(i))r++,Tp(o.segment)&&c.push(r);return c.length===0?null:c}function Dp(i,c,r){return c>1?i+(c-1)*r:i}function Bp(i,c,r,o,d){const h=za(),{cache:p,emojiCorrection:N}=rp(c,ap(i.normalized)),b=_n("-",an("-",p),N)+(d===0?0:d*2),g=_n(" ",an(" ",p),N)*8,m=d!==0;if(i.len===0)return Cp();const S=[],D=[],Y=[],P=[];let U=i.chunks.length<=1&&!m;const ee=r?[]:null,K=[],Q=[],ie=[],V=r?[]:null,E=Array.from({length:i.len});function z(A,le,X,Z,k,F,w,L,$){k!=="text"&&k!=="space"&&k!=="zero-width-break"&&(U=!1),S.push(le),D.push(X),Y.push(Z),P.push(k),ee==null||ee.push(F),K.push(w),Q.push(L),m&&ie.push($),V!==null&&V.push(A)}function R(A,le,X,Z,k){const F=an(A,p),w=m?k1(A,le):0,L=Dp(_n(A,F,N),w,d),$=le==="space"||le==="preserved-space"||le==="zero-width-break"?0:L,J=$===0?0:$+(w>0?d:0),ne=le==="space"||le==="zero-width-break"?0:L;if(k&&Z&&A.length>1){let he="sum-graphemes";d!==0?he="segment-prefixes":dc(A)?he="pair-context":h.preferPrefixWidthsForBreakableRuns&&(he="segment-prefixes");const Te=sp(A,F,p,N,he),C=Te===null||o==="keep-all"?null:Fp(A);z(A,L,J,ne,le,X,Te,C,w);return}z(A,L,J,ne,le,X,null,null,w)}for(let A=0;A<i.len;A++){E[A]=S.length;const le=i.texts[A],X=i.isWordLike[A],Z=i.kinds[A],k=i.starts[A];if(Z==="soft-hyphen"){z(le,0,b,b,Z,k,null,null,0);continue}if(Z==="hard-break"){z(le,0,0,0,Z,k,null,null,0);continue}if(Z==="tab"){z(le,0,0,0,Z,k,null,null,m?k1(le,Z):0);continue}const F=an(le,p);if(Z==="text"&&F.containsCJK){const w=Mp(le,h),L=o==="keep-all"?kp(le,w,h.breakKeepAllAfterPunctuation):w;for(let $=0;$<L.length;$++){const J=L[$];R(J.text,"text",k+J.start,X,o==="keep-all"||!fl(J.text))}continue}R(le,Z,k,X,!0)}const I=Op(i.chunks,E,S.length),W=ee===null?null:Iv(i.normalized,ee);return V!==null?{widths:S,lineEndFitAdvances:D,lineEndPaintAdvances:Y,kinds:P,simpleLineWalkFastPath:U,segLevels:W,breakableFitAdvances:K,breakablePreferredBreaks:Q,letterSpacing:d,spacingGraphemeCounts:ie,discretionaryHyphenWidth:b,tabStopAdvance:g,chunks:I,segments:V}:{widths:S,lineEndFitAdvances:D,lineEndPaintAdvances:Y,kinds:P,simpleLineWalkFastPath:U,segLevels:W,breakableFitAdvances:K,breakablePreferredBreaks:Q,letterSpacing:d,spacingGraphemeCounts:ie,discretionaryHyphenWidth:b,tabStopAdvance:g,chunks:I}}function Op(i,c,r){const o=[];for(let d=0;d<i.length;d++){const h=i[d],p=h.startSegmentIndex<c.length?c[h.startSegmentIndex]:r,N=h.endSegmentIndex<c.length?c[h.endSegmentIndex]:r,b=h.consumedEndSegmentIndex<c.length?c[h.consumedEndSegmentIndex]:r;o.push({startSegmentIndex:p,endSegmentIndex:N,consumedEndSegmentIndex:b})}return o}function jp(i,c,r,o){const d=(o==null?void 0:o.wordBreak)??"normal",h=(o==null?void 0:o.letterSpacing)??0,p=Ib(i,za(),o==null?void 0:o.whiteSpace,d);return Bp(p,c,r,d,h)}function vo(i,c,r){return jp(i,c,!0,r)}function T1(i){let c=0;return vp(i,Number.POSITIVE_INFINITY,r=>{r>c&&(c=r)}),c}const wp=/[ \t\n\f\r]+/,F1=/^[ \t\n\f\r]+/,D1=/[ \t\n\f\r]+$/,B1={segmentIndex:0,graphemeIndex:0},zp={itemIndex:0,segmentIndex:0,graphemeIndex:0};function so(i){return{segmentIndex:i.segmentIndex,graphemeIndex:i.graphemeIndex}}function O1(i){return i.segmentIndex===0&&i.graphemeIndex===0}function oc(i,c,r){const o=`${i}\0${c}`,d=r.get(o);if(d!==void 0)return d;const h=c===0?void 0:{letterSpacing:c},p=T1(vo("A A",i,h)),N=T1(vo("AA",i,h)),b=Math.max(0,p-N);return r.set(o,b),b}function _p(i){const c={segmentIndex:0,graphemeIndex:0},r=go(i,c,Number.POSITIVE_INFINITY);return r===null?null:{endGraphemeIndex:c.graphemeIndex,endSegmentIndex:c.segmentIndex,width:r}}function Rp(i,c){return i===0&&c>0}function Lp(i){const c=[],r=Array.from({length:i.length}),o=new Map;let d=0;for(let h=0;h<i.length;h++){const p=i[h],N=p.letterSpacing??0,b=F1.test(p.text),v=D1.test(p.text),g=p.text.replace(F1,"").replace(D1,"");if(g.length===0){wp.test(p.text)&&d===0&&(d=oc(p.font,N,o));continue}const m=d>0?d:b?oc(p.font,N,o):0,S=vo(g,p.font,N===0?void 0:{letterSpacing:N}),D=_p(S);if(D===null){d=v?oc(p.font,N,o):0;continue}const Y={break:p.break??"normal",endGraphemeIndex:D.endGraphemeIndex,endSegmentIndex:D.endSegmentIndex,extraWidth:p.extraWidth??0,gapBefore:m,naturalWidth:D.width,prepared:S,sourceItemIndex:h};c.push(Y),r[h]=Y,d=v?oc(p.font,N,o):0}return{items:c,itemsBySourceItemIndex:r}}function Hp(i,c,r,o){if(i.items.length===0||r.itemIndex>=i.items.length)return null;const d=Math.max(1,c);let h=0,p=d,N=r.itemIndex;e:for(;N<i.items.length;){const b=i.items[N];if(!O1(r)&&r.segmentIndex===b.endSegmentIndex&&r.graphemeIndex===b.endGraphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const v=h===0?0:b.gapBefore,g=O1(r);if(b.break==="never"){if(!g){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const ee=b.naturalWidth+b.extraWidth,K=v+ee;if(h>0&&K>p)break e;o==null||o(b,v,ee,so(B1),{segmentIndex:b.endSegmentIndex,graphemeIndex:b.endGraphemeIndex}),h+=K,p=Math.max(0,d-h),N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const m=v+b.extraWidth;if(h>0&&m>=p)break e;if(g){const ee=m+b.naturalWidth;if(ee<=p){o==null||o(b,v,b.naturalWidth+b.extraWidth,so(B1),{segmentIndex:b.endSegmentIndex,graphemeIndex:b.endGraphemeIndex}),h+=ee,p=Math.max(0,d-h),N++,r.segmentIndex=0,r.graphemeIndex=0;continue}}const S=Math.max(1,p-m),D={segmentIndex:r.segmentIndex,graphemeIndex:r.graphemeIndex},Y=go(b.prepared,D,S);if(Y===null){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}if(r.segmentIndex===D.segmentIndex&&r.graphemeIndex===D.graphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}const P=Y+b.extraWidth,U=v+P;if(h>0&&g&&U>p)break e;if(h>0&&g&&v>0&&Rp(D.segmentIndex,D.graphemeIndex)){const ee={segmentIndex:0,graphemeIndex:0};if(go(b.prepared,ee,Math.max(1,d-b.extraWidth))!==null&&(ee.segmentIndex>D.segmentIndex||ee.segmentIndex===D.segmentIndex&&ee.graphemeIndex>D.graphemeIndex))break e}if(o==null||o(b,v,P,so(r),{segmentIndex:D.segmentIndex,graphemeIndex:D.graphemeIndex}),h+=U,p=Math.max(0,d-h),D.segmentIndex===b.endSegmentIndex&&D.graphemeIndex===b.endGraphemeIndex){N++,r.segmentIndex=0,r.graphemeIndex=0;continue}r.segmentIndex=D.segmentIndex,r.graphemeIndex=D.graphemeIndex;break}return h===0?null:(r.itemIndex=N,h)}function ro(i,c,r=zp){const o=i,d={itemIndex:r.itemIndex,segmentIndex:r.segmentIndex,graphemeIndex:r.graphemeIndex},h=[],p=Hp(o,c,d,(N,b,v,g,m)=>{h.push({itemIndex:N.sourceItemIndex,gapBefore:b,occupiedWidth:v,start:g,end:m})});return p===null?null:{fragments:h,width:p,end:d}}function Up(i,c){return Ap(i.prepared,Ep(i.prepared),c.start.segmentIndex,c.start.graphemeIndex,c.end.segmentIndex,c.end.graphemeIndex)}function qp(i,c){const r=i,o=[];for(let d=0;d<c.fragments.length;d++){const h=c.fragments[d],p=r.itemsBySourceItemIndex[h.itemIndex];if(p===void 0)throw new Error("Missing rich-text inline item for fragment");o.push({itemIndex:h.itemIndex,text:Up(p,h),gapBefore:h.gapBefore,occupiedWidth:h.occupiedWidth,start:h.start,end:h.end})}return{fragments:o,width:c.width,end:c.end}}let fc=!1;function Gp(){var i;if(!fc){if(typeof globalThis.OffscreenCanvas<"u"){fc=!0;return}if(typeof document<"u"){const c=document.createElement("canvas");class r{constructor(){Bu(this,"width",1e3);Bu(this,"height",1e3)}getContext(d){return c.getContext(d)}}globalThis.OffscreenCanvas=r,fc=!0;return}try{const c=import.meta.require||globalThis.require;if(c){const{createCanvas:r}=c("@napi-rs/canvas");class o{constructor(h,p){Bu(this,"width");Bu(this,"height");e1(this,i);this.width=h,this.height=p,t1(this,i,r(h,p))}getContext(h){return h!=="2d"?null:Px(this,i).getContext("2d")}}i=new WeakMap,globalThis.OffscreenCanvas=o,fc=!0}}catch{console.warn("Pretext requires OffscreenCanvas or @napi-rs/canvas for text measurement.")}}}function Yp(i,c,r,o){const h=Math.min(260,Math.round(o*.22))+i*(c+32),p=Math.max(60,o-c-r-16);return Math.min(h,p)}function nn(i,c,r,o){const d=i.layoutPreset||"auto",h=16,p=i.captionHeight??36;if(i.isAbsolute)return{...i,x:i.x??h,y:i.y??100,width:i.width??420,height:i.height??280};if(d==="custom")return{...i,x:i.x??h,y:i.y??260,width:i.width??420,height:i.height??280};if(d==="fill"){const U=r,ee=i.height||Math.round(o*.28),K=Math.max(160,o-ee-p-h);return{...i,x:0,y:K,width:U,height:ee}}if(d==="corner-soft"){const U=Math.min(i.width||380,Math.round(r*.48)),ee=i.height||260,K=Math.max(0,r-U-h),Q=Math.max(160,o-ee-p-24);return{...i,x:K,y:Q,width:U,height:ee}}const N=420,b=280,v=Math.round(r*.52),g=Math.min(i.width||N,v),m=i.height||b,S=Yp(c,m,p,o);if(d==="center"){const U=Math.min(i.width||560,r-h*2),ee=Math.max(0,Math.round((r-U)/2));return{...i,x:ee,y:S,width:U,height:m}}if(d==="staggered"){const ee=c%2===1?Math.max(0,r-g-h):h;return{...i,x:ee,y:S,width:g,height:m}}if(d==="mid-right"){const U=Math.max(0,r-g-h);return{...i,x:U,y:S,width:g,height:m}}if(d==="mid-left")return{...i,x:h,y:S,width:g,height:m};if((i.width||N)>=r*.75){const U=Math.min(i.width||N,r-h*2);return{...i,x:Math.max(0,Math.round((r-U)/2)),y:S,width:U,height:m}}const P=c%2===1?Math.max(0,r-g-h):h;return{...i,x:P,y:S,width:g,height:m}}const Ba={itemIndex:0,segmentIndex:0,graphemeIndex:0};function Xp(i,c){const r=c.bold?i.replace(/^\d+\s+/,"700 "):i;return c.italic?"italic "+r:r}function Oa(i,c){return i.itemIndex-c.itemIndex||i.segmentIndex-c.segmentIndex||i.graphemeIndex-c.graphemeIndex}function j1(i,c,r,o,d={}){Gp();const h=d.obstacleGap??24,p=d.pageImageLimit??2,N=i.map(K=>{const Q=K.runs.map(ie=>({...ie,font:Xp(K.font,ie)}));return{...K,runs:Q,prepared:Lp(Q)}});function b(K,Q,ie,V,E=1/0){var I;const z=[];let R=ie;for(;R+K.lineHeight<=r&&z.length<E;){if(!ro(K.prepared,c,Q))return{lines:z,cursor:Q,y:R,done:!0};const W=K.textIndent??0;let A=[{left:0,right:c}];const le=V.filter(J=>!J.isAbsolute&&R+K.lineHeight>J.y-h&&R<J.y+J.height+(J.captionHeight??0)+h);for(const J of le)A=A.flatMap(ne=>J.x-h>=ne.right||J.x+J.width+h<=ne.left?[ne]:[{left:ne.left,right:Math.min(ne.right,J.x-h)},{left:Math.max(ne.left,J.x+J.width+h),right:ne.right}]).filter(ne=>ne.right>ne.left);const X=Number(((I=K.font.match(/(\d+(?:\.\d+)?)px/))==null?void 0:I[1])??36);let Z=null;for(const J of A){const ne=J.right-J.left-W;if(ne<X*(le.length?2.5:1))continue;const he=ro(K.prepared,ne,Q);!he||he.width>ne+.5||(!Z||Oa(he.end,Z.line.end)>0)&&(Z={line:he,left:J.left+W,width:ne})}if(!Z){if(!le.length)break;R=Math.min(...le.map(J=>J.y+J.height+(J.captionHeight??0)+h));continue}if(Oa(Z.line.end,Q)<=0)break;const F=qp(K.prepared,Z.line).fragments.map(J=>{const ne=K.runs[J.itemIndex];return{text:J.text,font:ne.font??K.font,bold:ne.bold,italic:ne.italic,highlight:ne.highlight,gapBefore:J.gapBefore,occupiedWidth:J.occupiedWidth}});let w=Z.left,L=Oa(Q,Ba)===0&&K.bullet?Z.left-W:void 0;const $=Z.line.width;if(d.textAlign==="center"){const J=Math.max(0,Z.width-$),ne=Math.round(J/2);w+=ne,L!==void 0&&(L+=ne)}else if(d.textAlign==="right"){const J=Math.max(0,Z.width-$);w+=J,L!==void 0&&(L+=J)}z.push({text:F.map(J=>J.text).join(""),fragments:F,x:w,y:R,className:K.className,font:K.font,lineHeight:K.lineHeight,maxWidth:Z.width,start:Q,end:Z.line.end,bullet:Oa(Q,Ba)===0?K.bullet:void 0,bulletX:L}),Q=Z.line.end,R+=K.lineHeight}return{lines:z,cursor:Q,y:R,done:ro(K.prepared,c,Q)===null}}const v=[];let g=0,m=Ba;const S=d.initialPageNumber??1,D=d.initialPageNumber!==void 0;let Y=0;const P=o.filter(K=>!K.pageIndex);let U=!1;const ee=d.maxPages??50;for(;v.length<ee&&(g<N.length||!D&&Y<P.length||D&&!U&&o.length>0);){const K=S+v.length;let Q=[];if(D)U||(Q=o,U=!0);else{const Z=o.filter(k=>k.pageIndex===K);Z.length>0?Q=Z:(Q=P.slice(Y,Y+p),Y+=Math.max(Q.length,1))}const ie=Q.map((Z,k)=>nn(Z,k,c,r)),V=[];let E=0;const z=g,R=m;for(;g<N.length;){const Z=N[g],k=Oa(m,Ba)===0,F=E+(k&&V.length?Z.gapBefore??0:0);if(k&&Z.keepWithNext&&V.length){let L=F,$=!0;for(let J=g;J<N.length;J++){const ne=N[J];J>g&&(L+=ne.gapBefore??0);const he=b(ne,Ba,L,ie,ne.keepWithNext?1/0:2);if((ne.keepWithNext||he.lines.length<2)&&!he.done){$=!1;break}if(!ne.keepWithNext)break;L=he.y+(ne.gapAfter??0)}if(!$)break}const w=b(Z,m,F,ie);if(!w.done&&w.lines.length){const L=b(Z,w.cursor,0,[],2);if(L.done&&L.lines.length===1&&w.lines.length>=2){const $=w.lines.pop();w.cursor=$.start,w.y=$.y}if(k&&w.lines.length<2&&V.length)break}if(V.push(...w.lines),m=w.cursor,E=w.y,!w.done)break;g++,m=Ba,E+=Z.gapAfter??0}if(g===z&&Oa(m,R)===0&&!ie.length||!V.length&&!ie.length)break;const I=V.reduce((Z,k)=>Math.max(Z,k.y+k.lineHeight),0),W=ie.filter(Z=>!Z.isAbsolute),A=W.reduce((Z,k)=>Math.max(Z,k.y+k.height+(k.captionHeight??0)),0),le=Math.max(I,A),X=r>0?Math.min(1,le/r):0;if(V.length>0&&d.verticalAlign&&d.verticalAlign!=="top"){const Z=V.reduce((L,$)=>Math.min(L,$.y),1/0),k=W.reduce((L,$)=>Math.min(L,$.y),1/0),F=Math.min(Z,k===1/0?Z:k),w=le-F;if(r>w){let L=0;if(d.verticalAlign==="center"?L=Math.round((r-w)/2)-F:d.verticalAlign==="bottom"&&(L=r-w-F),L!==0){for(const $ of V)$.y+=L;for(const $ of W)$.layoutPreset!=="custom"&&($.y+=L)}}}v.push({pageNumber:K,lines:V,images:ie,textBottom:I,fillRatio:X})}return v}function oo(i,c,r){return Math.round(i*Math.pow(c,r))}function ja(i,c=1.45){if(i<=0)return 24;const o=1.65-Math.log(Math.max(8,i)/8)/Math.log(160/8)*(1.65-1.15),d=Math.max(1.1,Math.min(1.8,o*(c/1.45)));return Math.round(i*d)}function w1(i,c=!1){const r=(i||"").trim();switch(r){case"PingFang SC":return'"PingFang SC", -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif';case"Noto Sans SC":return'"Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif';case"Songti SC":return'"Songti SC", "Noto Serif SC", "STSong", "SimSun", serif';case"Noto Serif SC":return'"Noto Serif SC", "Songti SC", "SimSun", serif';case"Kaiti SC":return'"Kaiti SC", "LXGW WenKai Screen", "STKaiti", "KaiTi", serif';case"Yuanti SC":return'"Yuanti SC", "STYuanti", "PingFang SC", sans-serif';case"Inter":return'Inter, "PingFang SC", system-ui, sans-serif';case"Georgia":return'Georgia, "Songti SC", serif';default:return r?r.includes(",")?r:`"${r}", ${c?"serif":"sans-serif"}`:c?'"Songti SC", serif':'"PingFang SC", sans-serif'}}function Qp(i){const{baseFontSize:c,scaleRatio:r,lineHeightMultiplier:o,headingFont:d,bodyFont:h}=i,p=w1(d,!1),N=w1(h,!0),b=c,v=oo(c,r,1),g=oo(c,r,2),m=oo(c,r,3),S=c,D=c;return{heading:{font:`700 ${m}px ${p}`,fontSize:m,lineHeight:ja(m,o*.95),gapBefore:Math.round(m*.8),gapAfter:Math.round(m*.4),className:"body-heading"},subheading:{font:`700 ${g}px ${p}`,fontSize:g,lineHeight:ja(g,o*.98),gapBefore:Math.round(g*.7),gapAfter:Math.round(g*.35),className:"body-subheading"},"minor-heading":{font:`700 ${v}px ${p}`,fontSize:v,lineHeight:ja(v,o),gapBefore:Math.round(v*.6),gapAfter:Math.round(v*.3),className:"body-minor-heading"},paragraph:{font:`400 ${b}px ${N}`,fontSize:b,lineHeight:ja(b,o),gapBefore:0,gapAfter:Math.round(b*.6),className:"body-line"},quote:{font:`400 ${S}px ${N}`,fontSize:S,lineHeight:ja(S,o*1.05),gapBefore:Math.round(S*.5),gapAfter:Math.round(S*.5),className:"body-quote"},"list-item":{font:`400 ${D}px ${N}`,fontSize:D,lineHeight:ja(D,o),gapBefore:0,gapAfter:Math.round(D*.3),className:"body-line"}}}function z1(i="longform-3-4"){const c=wn(i),r=i==="wechat-cover-2.35",o=i==="square-1-1";return{name:"默认样式",aspectRatio:i,algorithm:{baseFontSize:i==="wechat-cover-2.35"?56:i==="wide-16-9"?44:i==="square-1-1"?48:40,scaleRatio:r?1.35:1.25,lineHeightMultiplier:1.45,obstacleGap:24,targetFillRatio:.8,contentBottomGap:r?0:20,textAlign:r||o?"center":"left",verticalAlign:r||o?"center":"top",safeArea:r?{top:40,right:60,bottom:40,left:60}:c.defaultSafeArea},theme:{bgColor:"#ffffff",textColor:"#171717",headingColor:"#171717",accentColor:"#059669",quoteColor:"#525252",captionColor:"#737373",watermarkColor:"#a3a3a3",cardBg:"#f5f5f5",borderSubtle:"#e5e5e5"},typography:{headingFont:"PingFang SC",bodyFont:"Songti SC"},footerText:r?"":"Typeset Studio · 纯算法排版",watermarkText:r?"":"@Antigravity",chrome:{showHeader:!r,showWatermark:!r,showPageNumber:!r&&!o,showFooter:!r,showFooterDivider:!r,showFooterText:!r,showFillRatio:!1}}}function Vp(i){const{markdown:c,images:r=[],config:o,highlightWords:d=[]}=i,h=wn(o.aspectRatio),{stageWidth:p,stageHeight:N}=zn(h,o.algorithm.safeArea,o.algorithm.contentBottomGap),b=Qp({baseFontSize:o.algorithm.baseFontSize,scaleRatio:o.algorithm.scaleRatio,lineHeightMultiplier:o.algorithm.lineHeightMultiplier,headingFont:o.typography.headingFont,bodyFont:o.typography.bodyFont}),v=Zv(c);let g=[];if(v.length>1)g=v.map((m,S)=>{const D=S+1,P=m1(m).map(Q=>({...b[Q.kind],kind:Q.kind,text:Q.text,runs:h1(Q.text,d),bullet:Q.kind==="list-item"?Q.bullet??"•":void 0,textIndent:Q.kind==="list-item"?28:Q.kind==="quote"?20:0,keepWithNext:["heading","subheading","minor-heading"].includes(Q.kind)})),U=r.filter(Q=>Q.pageIndex!==void 0&&Q.pageIndex!==null&&Q.pageIndex>0?Q.pageIndex===D:S===0);return{...j1(P,p,N,U,{obstacleGap:o.algorithm.obstacleGap,pageImageLimit:2,textAlign:o.algorithm.textAlign,verticalAlign:o.algorithm.verticalAlign,initialPageNumber:D})[0]??{pageNumber:D,lines:[],images:U.map((Q,ie)=>nn(Q,ie,p,N)),textBottom:0,fillRatio:0},pageNumber:D}});else{const S=m1(c).map(D=>({...b[D.kind],kind:D.kind,text:D.text,runs:h1(D.text,d),bullet:D.kind==="list-item"?D.bullet??"•":void 0,textIndent:D.kind==="list-item"?28:D.kind==="quote"?20:0,keepWithNext:["heading","subheading","minor-heading"].includes(D.kind)}));g=j1(S,p,N,r,{obstacleGap:o.algorithm.obstacleGap,pageImageLimit:o.aspectRatio==="longform-3-4"?2:1,textAlign:o.algorithm.textAlign,verticalAlign:o.algorithm.verticalAlign})}return g.length===0&&(g=[{pageNumber:1,lines:[],images:r.map((m,S)=>nn(m,S,p,N)),textBottom:0,fillRatio:0}]),{pages:g,pageCount:g.length,canvasSpec:h,config:o}}function Zp(i,c){return!c||c.length===0?i:i.length===0?c.map(r=>({...r,id:`img_${Date.now()}_${Math.random().toString(36).substring(2,6)}`})):i.map((r,o)=>{if(o<c.length){const d=c[o];return{...r,layoutPreset:d.layoutPreset??r.layoutPreset,isAbsolute:d.isAbsolute??r.isAbsolute,x:d.x??r.x,y:d.y??r.y,width:d.width??r.width,height:d.height??r.height,rotate:d.rotate??r.rotate,opacity:d.opacity??r.opacity,zIndex:d.zIndex??r.zIndex,borderRadius:d.borderRadius??r.borderRadius,captionHeight:d.captionHeight??r.captionHeight,pageIndex:d.pageIndex??r.pageIndex}}return r})}const Kp=`# 大模型纯算法排版深度剖析
|
|
303
|
-
|
|
304
|
-
这是一篇利用纯几何计算与字符分词度量排版的示例文章。无论是字号、行距、还是图片避让,均由算法自动寻优。
|
|
305
|
-
|
|
306
|
-
> 排版的美感在于克制与韵律,让机器承担繁琐的对齐与换行,让人专注思想的表达。
|
|
307
|
-
|
|
308
|
-
### 为什么选择纯算法绕排?
|
|
309
|
-
|
|
310
|
-
传统排版依赖 DOM 回流与重绘,无法在无头环境中进行确定性的页面切割。而结合 Canvas 字符测距与空间网格,我们可以在微秒级求解最优文字流向。
|
|
311
|
-
|
|
312
|
-
- 零 DOM 依赖,多端极速运行
|
|
313
|
-
- 亚像素级字宽计算与平滑孤行控制
|
|
314
|
-
- 任意画板比例智能自适应
|
|
315
|
-
`;function Jp(){const[i,c]=ge.useState("longform-3-4"),[r,o]=ge.useState(()=>z1("longform-3-4")),[d,h]=ge.useState(Kp),[p,N]=ge.useState([{id:"img_demo_1",src:"https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=800&auto=format&fit=crop&q=80",alt:"抽象建筑线条",caption:"图 1:建筑结构中的空间秩序感",x:16,y:420,width:420,height:280,captionHeight:40,layoutPreset:"mid-left"}]),[b,v]=ge.useState(["算法排版","确定性","空间秩序"]),g=ge.useMemo(()=>Vp({markdown:d,images:p,config:r,highlightWords:b}),[d,p,r,b]);ge.useEffect(()=>{(async()=>{var E,z,R,I;try{const W=new URLSearchParams(window.location.search),A=W.get("template")||W.get("templateId")||W.get("templateKey"),le=W.get("slot"),X=W.get("account")||"default",Z=W.get("title"),k=W.get("markdown")||W.get("text");if(k?h(k):Z&&h(`# ${Z}
|
|
316
|
-
|
|
317
|
-
在此输入正文内容...`),A){const ne=await(await fetch(`/api/templates/resolve/${encodeURIComponent(A)}`)).json();if(ne.ok&&ne.template){Q(ne.template);return}}if(le){const ne=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(X)}`)).json();if(ne.ok&&((z=(E=ne.slots)==null?void 0:E[le])!=null&&z.template)){Q(ne.slots[le].template);return}}const w=await(await fetch(`/api/templates/slots?account=${encodeURIComponent(X)}`)).json();if(w.ok&&((I=(R=w.slots)==null?void 0:R.newspic_content)!=null&&I.template)){Q(w.slots.newspic_content.template);return}const $=await(await fetch("/api/templates/default")).json();$.ok&&$.template&&Q($.template)}catch{}})()},[]);const m=V=>{c(V);const E=wn(V),z=z1(V),{stageWidth:R,stageHeight:I}=zn(E,z.algorithm.safeArea,z.algorithm.contentBottomGap);N(W=>W.map(A=>{if(!A.isAbsolute&&A.layoutPreset&&A.layoutPreset!=="custom"){const le=A.pageIndex||1,X=W.filter(F=>(F.pageIndex||1)===le),Z=Math.max(0,X.findIndex(F=>F.id===A.id)),k=nn(A,Z,R,I);return{...A,x:k.x,y:k.y,width:k.width,height:k.height}}return A})),o(W=>({...W,aspectRatio:V,algorithm:{...W.algorithm,baseFontSize:z.algorithm.baseFontSize,scaleRatio:z.algorithm.scaleRatio,safeArea:z.algorithm.safeArea,textAlign:z.algorithm.textAlign,verticalAlign:z.algorithm.verticalAlign,contentBottomGap:z.algorithm.contentBottomGap},chrome:{...z.chrome},watermarkText:z.watermarkText,footerText:z.footerText}))},S=V=>{o(E=>({...E,algorithm:{...E.algorithm,...V}}))},D=V=>{o(E=>({...E,theme:{...E.theme,...V}}))},Y=V=>{o(E=>({...E,algorithm:{...E.algorithm,safeArea:{...E.algorithm.safeArea,...V}}}))},P=V=>{const E=wn(i),{stageWidth:z,stageHeight:R}=zn(E,r.algorithm.safeArea,r.algorithm.contentBottomGap),I=V.pageIndex||1,A=p.filter(k=>(k.pageIndex||1)===I).length,le={...V,id:`img_${Date.now()}_${Math.random().toString(36).substring(2,6)}`},X=nn(le,A,z,R),Z={...le,x:X.x,y:X.y,width:X.width,height:X.height};N(k=>[...k,Z])},U=(V,E)=>{N(z=>{const R=z.map(W=>{if(W.id!==V)return W;const A={...W,...E};return E.layoutPreset&&E.layoutPreset!=="custom"&&(delete A.x,delete A.y,delete A.width,delete A.height),A}),I=R.find(W=>W.id===V);if(!I)return z;if(!I.isAbsolute&&I.layoutPreset&&I.layoutPreset!=="custom"){const W=I.pageIndex||1,A=R.filter(w=>(w.pageIndex||1)===W),le=Math.max(0,A.findIndex(w=>w.id===V)),X=wn(i),{stageWidth:Z,stageHeight:k}=zn(X,r.algorithm.safeArea,r.algorithm.contentBottomGap),F=nn(I,le,Z,k);return R.map(w=>w.id===V?{...w,x:F.x,y:F.y,width:F.width,height:F.height}:w)}return R})},ee=V=>{N(E=>{const z=E.filter(A=>A.id!==V),R=wn(i),{stageWidth:I,stageHeight:W}=zn(R,r.algorithm.safeArea,r.algorithm.contentBottomGap);return z.map(A=>{if(!A.isAbsolute&&A.layoutPreset&&A.layoutPreset!=="custom"){const le=A.pageIndex||1,X=z.filter(F=>(F.pageIndex||1)===le),Z=Math.max(0,X.findIndex(F=>F.id===A.id)),k=nn(A,Z,I,W);return{...A,x:k.x,y:k.y,width:k.width,height:k.height}}return A})})},K=(V,E)=>{N(z=>{const R=z.findIndex(k=>k.id===V);if(R===-1)return z;const I=E==="up"?R-1:R+1;if(I<0||I>=z.length)return z;const W=[...z],A=W[R];W[R]=W[I],W[I]=A;const le=wn(i),{stageWidth:X,stageHeight:Z}=zn(le,r.algorithm.safeArea,r.algorithm.contentBottomGap);return W.map(k=>{if(!k.isAbsolute&&k.layoutPreset&&k.layoutPreset!=="custom"){const F=k.pageIndex||1,w=W.filter(J=>(J.pageIndex||1)===F),L=Math.max(0,w.findIndex(J=>J.id===k.id)),$=nn(k,L,X,Z);return{...k,x:$.x,y:$.y,width:$.width,height:$.height}}return k})})},Q=V=>{o(V),c(V.aspectRatio),V.images&&N(E=>Zp(E,V.images))};return{aspectRatio:i,switchAspectRatio:m,config:r,setConfig:o,markdown:d,setMarkdown:h,images:p,addImage:P,updateImage:U,removeImage:ee,moveImage:K,highlightWords:b,setHighlightWords:v,result:g,updateAlgorithm:S,updateTheme:D,updateTypography:V=>{o(E=>({...E,typography:{...E.typography,...V}}))},updateSafeArea:Y,loadTemplate:Q}}const Wp=()=>{const{aspectRatio:i,switchAspectRatio:c,config:r,markdown:o,setMarkdown:d,images:h,addImage:p,updateImage:N,removeImage:b,moveImage:v,highlightWords:g,setHighlightWords:m,result:S,updateAlgorithm:D,updateTheme:Y,updateTypography:P,updateSafeArea:U,loadTemplate:ee,setConfig:K}=Jp(),{adminKey:Q,setAdminKey:ie,isVerified:V}=Vv(),[E,z]=ge.useState(()=>localStorage.getItem("typeset_studio_theme_mode")||"light");ge.useEffect(()=>{E==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("typeset_studio_theme_mode",E)},[E]);const R=()=>{z(oe=>oe==="light"?"dark":"light")},[I,W]=ge.useState("grid"),[A,le]=ge.useState(.45),[X,Z]=ge.useState(!0),[k,F]=ge.useState(!1),[w,L]=ge.useState(!1),[$,J]=ge.useState(!1),ne=ge.useRef(null),he=(oe=I)=>{if(!ne.current)return .45;const{clientWidth:me,clientHeight:pe}=ne.current;if(me<=0||pe<=0)return .45;const ue=S.canvasSpec,de=S.pages.length;if(de<=1||oe==="stack"){const $t=Math.max(200,me-64),rn=Math.max(200,pe-120),Fl=Math.min($t/ue.width,rn/ue.height);return Math.max(.2,Math.min(1.2,Math.round(Fl*100)/100))}const qe=48,cn=96,Et=28,ot=36,Ie=Math.max(200,me-qe),_e=Math.max(200,pe-cn);let gt=.2;const sn=Math.min(de,4);for(let Xt=1;Xt<=sn;Xt++){const xl=Math.ceil(de/Xt),$t=(Xt-1)*Et,rn=(xl-1)*Et,Fl=xl*ot,Ln=Ie-$t,_a=_e-rn-Fl;if(Ln>60&&_a>60){const Pt=Ln/(Xt*ue.width),Ra=_a/(xl*ue.height),Hn=Math.min(Pt,Ra);Hn>gt&&(gt=Hn)}}return Math.max(.22,Math.min(.9,Math.round(gt*100)/100))},Te=()=>{Z(!0);const oe=he(I);le(oe)},C=oe=>{Z(!1),le(oe)},te=oe=>{W(oe),Z(!0);const me=he(oe);le(me)},se=oe=>{if(Z(!1),!ne.current)return;const{clientWidth:me,clientHeight:pe}=ne.current,ue=S.canvasSpec,de=Math.max(.2,Math.min(1.2,Math.round(Math.min((me-64)/ue.width,(pe-120)/ue.height)*100)/100));le(de),setTimeout(()=>{const qe=document.getElementById(`typeset-page-${oe}`);qe==null||qe.scrollIntoView({behavior:"smooth",block:"center"})},60)};ge.useEffect(()=>{const oe=setTimeout(()=>{if(X){const me=he(I);le(me)}},60);return()=>clearTimeout(oe)},[i,S.canvasSpec.width,S.canvasSpec.height,S.pages.length,I]),ge.useEffect(()=>{if(!ne.current)return;const oe=new ResizeObserver(()=>{if(X){const me=he(I);le(me)}});return oe.observe(ne.current),()=>oe.disconnect()},[X,S.canvasSpec.width,S.canvasSpec.height,S.pages.length,I]);const re=async()=>{var oe;J(!0);try{const me=document.querySelectorAll("canvas.typeset-page");if(me.length>0){let de=!0;for(let qe=0;qe<me.length;qe++){const cn=me[qe];try{const Et=cn.toDataURL("image/png"),ot=document.createElement("a");ot.download=`typeset-${i}-p${qe+1}-${Date.now()}.png`,ot.href=Et,ot.click()}catch(Et){console.warn("Canvas is tainted by external non-CORS image, falling back to server export:",Et),de=!1;break}}if(de){J(!1);return}}const pe=await fetch("/api/render/export",{method:"POST",headers:{"Content-Type":"application/json",...Q?{"X-Admin-Key":Q}:{}},body:JSON.stringify({result:S})});if(!pe.ok)throw new Error(`Server returned status ${pe.status}`);const ue=await pe.json();if(!ue.ok||!((oe=ue.pages)!=null&&oe.length))throw new Error(ue.error||"No pages returned from server-side render");for(const de of ue.pages){const qe=document.createElement("a");qe.download=`typeset-${i}-p${de.pageNumber}-${Date.now()}.png`,qe.href=de.dataUrl,qe.click()}}catch(me){console.error("Export failed:",me),alert("导出失败,请检查网络或后端服务连接")}finally{J(!1)}};return f.jsxs("div",{className:"flex flex-col h-screen w-screen overflow-hidden bg-[#fafafa] dark:bg-[#000000] text-[#171717] dark:text-[#ededed] transition-colors",children:[f.jsx(Gv,{currentRatio:i,onSelectRatio:c,zoom:A,onZoomChange:C,onAutoFit:Te,isAutoFit:X,onOpenTemplates:()=>F(!0),onOpenAuth:()=>L(!0),onExport:re,isExporting:$,isAuthed:!!V,pageCount:S.pageCount,themeMode:E,onToggleThemeMode:R}),f.jsxs("div",{className:"flex flex-1 min-h-0 overflow-hidden relative",children:[f.jsx(Uv,{markdown:o,onMarkdownChange:d,images:h,onAddImage:p,onUpdateImage:N,onRemoveImage:b,onMoveImage:v,pageCount:S.pageCount,highlightWords:g,onHighlightWordsChange:m,adminKey:Q}),f.jsx(Hv,{result:S,zoom:A,viewportRef:ne,onAutoFit:Te,isAutoFit:X,viewMode:I,onToggleViewMode:te,onFocusPage:se}),f.jsx(Xv,{config:r,onUpdateAlgorithm:D,onUpdateTheme:Y,onUpdateTypography:P,onUpdateSafeArea:U,onUpdateBranding:(oe,me)=>{K(pe=>({...pe,footerText:oe,watermarkText:me}))},onUpdateChrome:oe=>{K(me=>({...me,chrome:{...me.chrome,...oe}}))}})]}),f.jsx(Qv,{isOpen:k,onClose:()=>F(!1),currentConfig:{...r,images:h},onApplyTemplate:ee,adminKey:Q}),f.jsx(zv,{isOpen:w,onClose:()=>L(!1),currentKey:Q,onSaveKey:ie,isVerified:V})]})},Lh=document.getElementById("root");if(!Lh)throw new Error("Failed to find root element");K2.createRoot(Lh).render(f.jsx(U2.StrictMode,{children:f.jsx(Wp,{})}));
|