starry-slides 0.1.0
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/LICENSE +10 -0
- package/README.md +131 -0
- package/dist/assets/index---ub3Dty.css +1 -0
- package/dist/assets/index-7Xs_Dyp0.js +354 -0
- package/dist/assets/index-8ul7coaw.js +451 -0
- package/dist/assets/index-B4_bJa9t.js +412 -0
- package/dist/assets/index-B9p6L9Wx.js +324 -0
- package/dist/assets/index-BF-Vi1Nh.js +413 -0
- package/dist/assets/index-BKvVbgXz.css +1 -0
- package/dist/assets/index-BNZJ_Wz-.js +417 -0
- package/dist/assets/index-BO2gtiKn.js +413 -0
- package/dist/assets/index-BYpD8kgo.js +456 -0
- package/dist/assets/index-BaZRfz_9.css +1 -0
- package/dist/assets/index-BlsWm4PI.js +412 -0
- package/dist/assets/index-BnUIBFtw.js +393 -0
- package/dist/assets/index-BvhCbfCi.js +412 -0
- package/dist/assets/index-BxEkxfy1.js +412 -0
- package/dist/assets/index-BzrA7O0L.js +422 -0
- package/dist/assets/index-C0xGkdRg.js +413 -0
- package/dist/assets/index-C1Rjncf1.js +456 -0
- package/dist/assets/index-CCgb2gqc.js +413 -0
- package/dist/assets/index-CDFJQRFx.js +413 -0
- package/dist/assets/index-CEOai0RW.js +456 -0
- package/dist/assets/index-CG2uWTey.css +1 -0
- package/dist/assets/index-CLe3_iTu.js +412 -0
- package/dist/assets/index-CS_optob.js +324 -0
- package/dist/assets/index-CXgwXOZH.css +1 -0
- package/dist/assets/index-CcBvAcE2.js +408 -0
- package/dist/assets/index-CllmR_MT.js +408 -0
- package/dist/assets/index-CnMy6wxq.js +412 -0
- package/dist/assets/index-CoWNjYgb.js +422 -0
- package/dist/assets/index-CtfA3BPy.css +1 -0
- package/dist/assets/index-D-JiuJIv.js +324 -0
- package/dist/assets/index-D2uEYXyQ.css +1 -0
- package/dist/assets/index-D70beOHW.js +456 -0
- package/dist/assets/index-D8xuxnF1.js +456 -0
- package/dist/assets/index-DKAtkRd8.css +1 -0
- package/dist/assets/index-DU3l9_k0.css +1 -0
- package/dist/assets/index-DaLY98jk.js +456 -0
- package/dist/assets/index-DkNHJHQl.js +412 -0
- package/dist/assets/index-DmFnifK8.js +456 -0
- package/dist/assets/index-DndZR7Ds.css +1 -0
- package/dist/assets/index-DuRa7Y6g.js +324 -0
- package/dist/assets/index-EnDjTeHF.js +451 -0
- package/dist/assets/index-J3nQgjqJ.js +451 -0
- package/dist/assets/index-wD_iWTBn.js +413 -0
- package/dist/chunk-AK5J4CXH.js +1671 -0
- package/dist/chunk-ARFDESSF.js +1583 -0
- package/dist/chunk-DHWTBXGS.js +985 -0
- package/dist/chunk-FCRRFL7N.js +1571 -0
- package/dist/chunk-J7W4Y7WJ.js +1620 -0
- package/dist/chunk-OCJULB7Z.js +1140 -0
- package/dist/chunk-WCJWV5SO.js +36 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +1119 -0
- package/dist/cli/index.test.d.ts +1 -0
- package/dist/core/deck-slide-operations.d.ts +5 -0
- package/dist/core/generated-deck.d.ts +8 -0
- package/dist/core/generated-deck.test.d.ts +1 -0
- package/dist/core/group-operations.d.ts +24 -0
- package/dist/core/history.d.ts +20 -0
- package/dist/core/history.test.d.ts +1 -0
- package/dist/core/html-export.d.ts +20 -0
- package/dist/core/index.d.ts +11 -0
- package/dist/core/layout.d.ts +36 -0
- package/dist/core/layout.test.d.ts +1 -0
- package/dist/core/pdf-export.d.ts +20 -0
- package/dist/core/presentation.d.ts +7 -0
- package/dist/core/slide-contract.d.ts +41 -0
- package/dist/core/slide-document.d.ts +5 -0
- package/dist/core/slide-document.test.d.ts +1 -0
- package/dist/core/slide-html-document.d.ts +3 -0
- package/dist/core/slide-operation-reducer.d.ts +4 -0
- package/dist/core/slide-operation-reducer.test.d.ts +1 -0
- package/dist/core/slide-operation-types.d.ts +123 -0
- package/dist/core/slide-operations-helpers.d.ts +14 -0
- package/dist/core/slide-operations.d.ts +5 -0
- package/dist/core/slide-operations.test.d.ts +1 -0
- package/dist/core/verify-deck.d.ts +48 -0
- package/dist/core/verify-deck.test.d.ts +1 -0
- package/dist/editor/app/App.d.ts +2 -0
- package/dist/editor/app/main.d.ts +1 -0
- package/dist/editor/app/use-slides-data.d.ts +14 -0
- package/dist/editor/components/block-manipulation-overlay.d.ts +32 -0
- package/dist/editor/components/color-picker.d.ts +10 -0
- package/dist/editor/components/context-menu.d.ts +26 -0
- package/dist/editor/components/editor-header.d.ts +18 -0
- package/dist/editor/components/floating-toolbar-feature.d.ts +8 -0
- package/dist/editor/components/floating-toolbar-parts.d.ts +46 -0
- package/dist/editor/components/floating-toolbar.d.ts +27 -0
- package/dist/editor/components/presenter-view.d.ts +13 -0
- package/dist/editor/components/slide-sidebar.d.ts +18 -0
- package/dist/editor/components/stage-canvas.d.ts +77 -0
- package/dist/editor/components/ui/accordion.d.ts +7 -0
- package/dist/editor/components/ui/button.d.ts +10 -0
- package/dist/editor/components/ui/context-menu.d.ts +25 -0
- package/dist/editor/components/ui/dialog.d.ts +10 -0
- package/dist/editor/components/ui/input.d.ts +3 -0
- package/dist/editor/components/ui/popover.d.ts +10 -0
- package/dist/editor/components/ui/scroll-area.d.ts +5 -0
- package/dist/editor/components/ui/select.d.ts +15 -0
- package/dist/editor/components/ui/separator.d.ts +4 -0
- package/dist/editor/components/ui/tabs.d.ts +11 -0
- package/dist/editor/components/ui/textarea.d.ts +3 -0
- package/dist/editor/components/ui/toggle-group.d.ts +9 -0
- package/dist/editor/components/ui/toggle.d.ts +9 -0
- package/dist/editor/components/ui/tooltip.d.ts +7 -0
- package/dist/editor/editor-operations.d.ts +15 -0
- package/dist/editor/hooks/block-manipulation-geometry.d.ts +16 -0
- package/dist/editor/hooks/block-manipulation-operations.d.ts +10 -0
- package/dist/editor/hooks/block-manipulation-overlay.d.ts +11 -0
- package/dist/editor/hooks/block-manipulation-types.d.ts +73 -0
- package/dist/editor/hooks/editor-keyboard-geometry.d.ts +22 -0
- package/dist/editor/hooks/editor-keyboard-operations.d.ts +10 -0
- package/dist/editor/hooks/editor-keyboard-types.d.ts +35 -0
- package/dist/editor/hooks/iframe-editing-session.d.ts +10 -0
- package/dist/editor/hooks/iframe-text-editing-dom.d.ts +6 -0
- package/dist/editor/hooks/iframe-text-editing-types.d.ts +38 -0
- package/dist/editor/hooks/object-clipboard-commands.d.ts +28 -0
- package/dist/editor/hooks/use-block-manipulation.d.ts +3 -0
- package/dist/editor/hooks/use-editor-keyboard-shortcuts.d.ts +3 -0
- package/dist/editor/hooks/use-iframe-text-editing.d.ts +3 -0
- package/dist/editor/hooks/use-slide-history.d.ts +17 -0
- package/dist/editor/hooks/use-slide-inspector.d.ts +24 -0
- package/dist/editor/hooks/use-slide-thumbnails.d.ts +2 -0
- package/dist/editor/hooks/use-stage-viewport.d.ts +13 -0
- package/dist/editor/index.d.ts +13 -0
- package/dist/editor/index.js +8260 -0
- package/dist/editor/lib/block-snap-constants.d.ts +8 -0
- package/dist/editor/lib/block-snap-guides.d.ts +6 -0
- package/dist/editor/lib/block-snap-targets.d.ts +13 -0
- package/dist/editor/lib/block-snap-types.d.ts +30 -0
- package/dist/editor/lib/block-snapping.d.ts +17 -0
- package/dist/editor/lib/collect-css-properties.d.ts +5 -0
- package/dist/editor/lib/element-tool-commit.d.ts +18 -0
- package/dist/editor/lib/element-tool-model.d.ts +16 -0
- package/dist/editor/lib/element-tool-types.d.ts +35 -0
- package/dist/editor/lib/element-tool-values.d.ts +23 -0
- package/dist/editor/lib/motion.d.ts +8 -0
- package/dist/editor/lib/selection-overlay.d.ts +4 -0
- package/dist/editor/lib/style-controls.d.ts +17 -0
- package/dist/editor/lib/thumbnail-renderer.d.ts +2 -0
- package/dist/editor/lib/utils.d.ts +3 -0
- package/dist/index.html +13 -0
- package/dist/node/deck-runtime-middleware.d.ts +8 -0
- package/dist/node/deck-source.d.ts +1 -0
- package/dist/node/html-export.d.ts +16 -0
- package/dist/node/open-browser.d.ts +1 -0
- package/dist/node/pdf-export.d.ts +20 -0
- package/dist/node/ports.d.ts +1 -0
- package/dist/node/view-renderer.d.ts +31 -0
- package/dist/runtime/deck-source.d.ts +1 -0
- package/dist/runtime/html-export.d.ts +16 -0
- package/dist/runtime/open-browser.d.ts +1 -0
- package/dist/runtime/pdf-export.d.ts +20 -0
- package/dist/runtime/ports.d.ts +1 -0
- package/dist/runtime/view-renderer.d.ts +31 -0
- package/dist/runtime/view-renderer.test.d.ts +1 -0
- package/dist/test/deck-fixtures.d.ts +14 -0
- package/package.json +94 -0
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
function ww(n,o){for(var l=0;l<o.length;l++){const i=o[l];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();function Dd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Cf={exports:{}},Dl={};/**
|
|
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 fy;function Ew(){if(fy)return Dl;fy=1;var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function l(i,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:f,ref:s!==void 0?s:null,props:u}}return Dl.Fragment=o,Dl.jsx=l,Dl.jsxs=l,Dl}var dy;function Tw(){return dy||(dy=1,Cf.exports=Ew()),Cf.exports}var x=Tw(),Af={exports:{}},Re={};/**
|
|
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 my;function Cw(){if(my)return Re;my=1;var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=S&&R[S]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,A={};function _(R,G,F){this.props=R,this.context=G,this.refs=A,this.updater=F||C}_.prototype.isReactComponent={},_.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,G,"setState")},_.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function z(){}z.prototype=_.prototype;function H(R,G,F){this.props=R,this.context=G,this.refs=A,this.updater=F||C}var I=H.prototype=new z;I.constructor=H,T(I,_.prototype),I.isPureReactComponent=!0;var Q=Array.isArray;function D(){}var N={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function L(R,G,F){var ne=F.ref;return{$$typeof:n,type:R,key:G,ref:ne!==void 0?ne:null,props:F}}function P(R,G){return L(R.type,G,R.props)}function J(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function le(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(F){return G[F]})}var re=/\/+/g;function ee(R,G){return typeof R=="object"&&R!==null&&R.key!=null?le(""+R.key):G.toString(36)}function se(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(D,D):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function M(R,G,F,ne,oe){var ce=typeof R;(ce==="undefined"||ce==="boolean")&&(R=null);var ie=!1;if(R===null)ie=!0;else switch(ce){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(R.$$typeof){case n:case o:ie=!0;break;case v:return ie=R._init,M(ie(R._payload),G,F,ne,oe)}}if(ie)return oe=oe(R),ie=ne===""?"."+ee(R,0):ne,Q(oe)?(F="",ie!=null&&(F=ie.replace(re,"$&/")+"/"),M(oe,G,F,"",function(_e){return _e})):oe!=null&&(J(oe)&&(oe=P(oe,F+(oe.key==null||R&&R.key===oe.key?"":(""+oe.key).replace(re,"$&/")+"/")+ie)),G.push(oe)),1;ie=0;var me=ne===""?".":ne+":";if(Q(R))for(var de=0;de<R.length;de++)ne=R[de],ce=me+ee(ne,de),ie+=M(ne,G,F,ce,oe);else if(de=w(R),typeof de=="function")for(R=de.call(R),de=0;!(ne=R.next()).done;)ne=ne.value,ce=me+ee(ne,de++),ie+=M(ne,G,F,ce,oe);else if(ce==="object"){if(typeof R.then=="function")return M(se(R),G,F,ne,oe);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ie}function Y(R,G,F){if(R==null)return R;var ne=[],oe=0;return M(R,ne,"","",function(ce){return G.call(F,ce,oe++)}),ne}function B(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(F){(R._status===0||R._status===-1)&&(R._status=1,R._result=F)},function(F){(R._status===0||R._status===-1)&&(R._status=2,R._result=F)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var $=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},X={map:Y,forEach:function(R,G,F){Y(R,function(){G.apply(this,arguments)},F)},count:function(R){var G=0;return Y(R,function(){G++}),G},toArray:function(R){return Y(R,function(G){return G})||[]},only:function(R){if(!J(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Re.Activity=g,Re.Children=X,Re.Component=_,Re.Fragment=l,Re.Profiler=s,Re.PureComponent=H,Re.StrictMode=i,Re.Suspense=h,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Re.__COMPILER_RUNTIME={__proto__:null,c:function(R){return N.H.useMemoCache(R)}},Re.cache=function(R){return function(){return R.apply(null,arguments)}},Re.cacheSignal=function(){return null},Re.cloneElement=function(R,G,F){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var ne=T({},R.props),oe=R.key;if(G!=null)for(ce in G.key!==void 0&&(oe=""+G.key),G)!j.call(G,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&G.ref===void 0||(ne[ce]=G[ce]);var ce=arguments.length-2;if(ce===1)ne.children=F;else if(1<ce){for(var ie=Array(ce),me=0;me<ce;me++)ie[me]=arguments[me+2];ne.children=ie}return L(R.type,oe,ne)},Re.createContext=function(R){return R={$$typeof:f,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:u,_context:R},R},Re.createElement=function(R,G,F){var ne,oe={},ce=null;if(G!=null)for(ne in G.key!==void 0&&(ce=""+G.key),G)j.call(G,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(oe[ne]=G[ne]);var ie=arguments.length-2;if(ie===1)oe.children=F;else if(1<ie){for(var me=Array(ie),de=0;de<ie;de++)me[de]=arguments[de+2];oe.children=me}if(R&&R.defaultProps)for(ne in ie=R.defaultProps,ie)oe[ne]===void 0&&(oe[ne]=ie[ne]);return L(R,ce,oe)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(R){return{$$typeof:m,render:R}},Re.isValidElement=J,Re.lazy=function(R){return{$$typeof:v,_payload:{_status:-1,_result:R},_init:B}},Re.memo=function(R,G){return{$$typeof:p,type:R,compare:G===void 0?null:G}},Re.startTransition=function(R){var G=N.T,F={};N.T=F;try{var ne=R(),oe=N.S;oe!==null&&oe(F,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(D,$)}catch(ce){$(ce)}finally{G!==null&&F.types!==null&&(G.types=F.types),N.T=G}},Re.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Re.use=function(R){return N.H.use(R)},Re.useActionState=function(R,G,F){return N.H.useActionState(R,G,F)},Re.useCallback=function(R,G){return N.H.useCallback(R,G)},Re.useContext=function(R){return N.H.useContext(R)},Re.useDebugValue=function(){},Re.useDeferredValue=function(R,G){return N.H.useDeferredValue(R,G)},Re.useEffect=function(R,G){return N.H.useEffect(R,G)},Re.useEffectEvent=function(R){return N.H.useEffectEvent(R)},Re.useId=function(){return N.H.useId()},Re.useImperativeHandle=function(R,G,F){return N.H.useImperativeHandle(R,G,F)},Re.useInsertionEffect=function(R,G){return N.H.useInsertionEffect(R,G)},Re.useLayoutEffect=function(R,G){return N.H.useLayoutEffect(R,G)},Re.useMemo=function(R,G){return N.H.useMemo(R,G)},Re.useOptimistic=function(R,G){return N.H.useOptimistic(R,G)},Re.useReducer=function(R,G,F){return N.H.useReducer(R,G,F)},Re.useRef=function(R){return N.H.useRef(R)},Re.useState=function(R){return N.H.useState(R)},Re.useSyncExternalStore=function(R,G,F){return N.H.useSyncExternalStore(R,G,F)},Re.useTransition=function(){return N.H.useTransition()},Re.version="19.2.5",Re}var hy;function jd(){return hy||(hy=1,Af.exports=Cw()),Af.exports}var b=jd();const fe=Dd(b),Iv=ww({__proto__:null,default:fe},[b]);var _f={exports:{}},jl={},Mf={exports:{}},Rf={};/**
|
|
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 py;function Aw(){return py||(py=1,(function(n){function o(M,Y){var B=M.length;M.push(Y);e:for(;0<B;){var $=B-1>>>1,X=M[$];if(0<s(X,Y))M[$]=Y,M[B]=X,B=$;else break e}}function l(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var Y=M[0],B=M.pop();if(B!==Y){M[0]=B;e:for(var $=0,X=M.length,R=X>>>1;$<R;){var G=2*($+1)-1,F=M[G],ne=G+1,oe=M[ne];if(0>s(F,B))ne<X&&0>s(oe,F)?(M[$]=oe,M[ne]=B,$=ne):(M[$]=F,M[G]=B,$=G);else if(ne<X&&0>s(oe,B))M[$]=oe,M[ne]=B,$=ne;else break e}}return Y}function s(M,Y){var B=M.sortIndex-Y.sortIndex;return B!==0?B:M.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();n.unstable_now=function(){return f.now()-m}}var h=[],p=[],v=1,g=null,S=3,w=!1,C=!1,T=!1,A=!1,_=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Y=l(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=M)i(p),Y.sortIndex=Y.expirationTime,o(h,Y);else break;Y=l(p)}}function Q(M){if(T=!1,I(M),!C)if(l(h)!==null)C=!0,D||(D=!0,le());else{var Y=l(p);Y!==null&&se(Q,Y.startTime-M)}}var D=!1,N=-1,j=5,L=-1;function P(){return A?!0:!(n.unstable_now()-L<j)}function J(){if(A=!1,D){var M=n.unstable_now();L=M;var Y=!0;try{e:{C=!1,T&&(T=!1,z(N),N=-1),w=!0;var B=S;try{t:{for(I(M),g=l(h);g!==null&&!(g.expirationTime>M&&P());){var $=g.callback;if(typeof $=="function"){g.callback=null,S=g.priorityLevel;var X=$(g.expirationTime<=M);if(M=n.unstable_now(),typeof X=="function"){g.callback=X,I(M),Y=!0;break t}g===l(h)&&i(h),I(M)}else i(h);g=l(h)}if(g!==null)Y=!0;else{var R=l(p);R!==null&&se(Q,R.startTime-M),Y=!1}}break e}finally{g=null,S=B,w=!1}Y=void 0}}finally{Y?le():D=!1}}}var le;if(typeof H=="function")le=function(){H(J)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,ee=re.port2;re.port1.onmessage=J,le=function(){ee.postMessage(null)}}else le=function(){_(J,0)};function se(M,Y){N=_(function(){M(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(M){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var B=S;S=Y;try{return M()}finally{S=B}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=S;S=M;try{return Y()}finally{S=B}},n.unstable_scheduleCallback=function(M,Y,B){var $=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?$+B:$):B=$,M){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=B+X,M={id:v++,callback:Y,priorityLevel:M,startTime:B,expirationTime:X,sortIndex:-1},B>$?(M.sortIndex=B,o(p,M),l(h)===null&&M===l(p)&&(T?(z(N),N=-1):T=!0,se(Q,B-$))):(M.sortIndex=X,o(h,M),C||w||(C=!0,D||(D=!0,le()))),M},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(M){var Y=S;return function(){var B=S;S=Y;try{return M.apply(this,arguments)}finally{S=B}}}})(Rf)),Rf}var gy;function _w(){return gy||(gy=1,Mf.exports=Aw()),Mf.exports}var Nf={exports:{}},It={};/**
|
|
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 yy;function Mw(){if(yy)return It;yy=1;var n=jd();function o(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var i={d:{f:l,r:function(){throw Error(o(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,p,v){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:h,containerInfo:p,implementation:v}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return It.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,It.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(o(299));return u(h,p,null,v)},It.flushSync=function(h){var p=f.T,v=i.p;try{if(f.T=null,i.p=2,h)return h()}finally{f.T=p,i.p=v,i.d.f()}},It.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(h,p))},It.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},It.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,g=m(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?i.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:w}):v==="script"&&i.d.X(h,{crossOrigin:g,integrity:S,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},It.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);i.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(h)},It.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,g=m(v,p.crossOrigin);i.d.L(h,v,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},It.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=m(p.as,p.crossOrigin);i.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(h)},It.requestFormReset=function(h){i.d.r(h)},It.unstable_batchedUpdates=function(h,p){return h(p)},It.useFormState=function(h,p,v){return f.H.useFormState(h,p,v)},It.useFormStatus=function(){return f.H.useHostTransitionStatus()},It.version="19.2.5",It}var vy;function Vv(){if(vy)return Nf.exports;vy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),Nf.exports=Mw(),Nf.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 by;function Rw(){if(by)return jl;by=1;var n=_w(),o=jd(),l=Vv();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function f(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 m(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 h(e){if(u(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var c=a.return;if(c===null)break;var d=c.alternate;if(d===null){if(r=c.return,r!==null){a=r;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===a)return h(c),e;if(d===r)return h(c),t;d=d.sibling}throw Error(i(188))}if(a.return!==r.return)a=c,r=d;else{for(var y=!1,E=c.child;E;){if(E===a){y=!0,a=c,r=d;break}if(E===r){y=!0,r=c,a=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===a){y=!0,a=d,r=c;break}if(E===r){y=!0,r=d,a=c;break}E=E.sibling}if(!y)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),H=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=J&&e[J]||e["@@iterator"],typeof e=="function"?e:null)}var re=Symbol.for("react.client.reference");function ee(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case _:return"Profiler";case A:return"StrictMode";case Q:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case H:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case N:return t=e.displayName||null,t!==null?t:ee(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var se=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},$=[],X=-1;function R(e){return{current:e}}function G(e){0>X||(e.current=$[X],$[X]=null,X--)}function F(e,t){X++,$[X]=e.current,e.current=t}var ne=R(null),oe=R(null),ce=R(null),ie=R(null);function me(e,t){switch(F(ce,t),F(oe,e),F(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=kg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(ne),F(ne,e)}function de(){G(ne),G(oe),G(ce)}function _e(e){e.memoizedState!==null&&F(ie,e);var t=ne.current,a=kg(t,e.type);t!==a&&(F(oe,e),F(ne,a))}function Ee(e){oe.current===e&&(G(ne),G(oe)),ie.current===e&&(G(ie),Rl._currentValue=B)}var we,lt;function qe(e){if(we===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||"",lt=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+we+e+lt}var Yt=!1;function Dt(e,t){if(!e||Yt)return"";Yt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Z){var K=Z}Reflect.construct(e,[],ae)}else{try{ae.call()}catch(Z){K=Z}e.call(ae.prototype)}}else{try{throw Error()}catch(Z){K=Z}(ae=e())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&K&&typeof Z.stack=="string")return[Z.stack,K.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),y=d[0],E=d[1];if(y&&E){var O=y.split(`
|
|
44
|
+
`),q=E.split(`
|
|
45
|
+
`);for(c=r=0;r<O.length&&!O[r].includes("DetermineComponentFrameRoot");)r++;for(;c<q.length&&!q[c].includes("DetermineComponentFrameRoot");)c++;if(r===O.length||c===q.length)for(r=O.length-1,c=q.length-1;1<=r&&0<=c&&O[r]!==q[c];)c--;for(;1<=r&&0<=c;r--,c--)if(O[r]!==q[c]){if(r!==1||c!==1)do if(r--,c--,0>c||O[r]!==q[c]){var W=`
|
|
46
|
+
`+O[r].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),W}while(1<=r&&0<=c);break}}}finally{Yt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?qe(a):""}function vt(e,t){switch(e.tag){case 26:case 27:case 5:return qe(e.type);case 16:return qe("Lazy");case 13:return e.child!==t&&t!==null?qe("Suspense Fallback"):qe("Suspense");case 19:return qe("SuspenseList");case 0:case 15:return Dt(e.type,!1);case 11:return Dt(e.type.render,!1);case 1:return Dt(e.type,!0);case 31:return qe("Activity");default:return""}}function Ne(e){try{var t="",a=null;do t+=vt(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
47
|
+
Error generating stack: `+r.message+`
|
|
48
|
+
`+r.stack}}var ge=Object.prototype.hasOwnProperty,ln=n.unstable_scheduleCallback,sn=n.unstable_cancelCallback,ct=n.unstable_shouldYield,bn=n.unstable_requestPaint,_t=n.unstable_now,jn=n.unstable_getCurrentPriorityLevel,ue=n.unstable_ImmediatePriority,Te=n.unstable_UserBlockingPriority,ye=n.unstable_NormalPriority,Oe=n.unstable_LowPriority,Ue=n.unstable_IdlePriority,Le=n.log,Qe=n.unstable_setDisableYieldValue,it=null,Ze=null;function mt(e){if(typeof Le=="function"&&Qe(e),Ze&&typeof Ze.setStrictMode=="function")try{Ze.setStrictMode(it,e)}catch{}}var tt=Math.clz32?Math.clz32:$t,xn=Math.log,Sn=Math.LN2;function $t(e){return e>>>=0,e===0?32:31-(xn(e)/Sn|0)|0}var kn=256,St=262144,Xt=4194304;function jt(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&261888;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 Ae(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var E=r&134217727;return E!==0?(r=E&~d,r!==0?c=jt(r):(y&=E,y!==0?c=jt(y):a||(a=E&~e,a!==0&&(c=jt(a))))):(E=r&~d,E!==0?c=jt(E):y!==0?c=jt(y):a||(a=r&~e,a!==0&&(c=jt(a)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,a=t&-t,d>=a||d===32&&(a&4194048)!==0)?t:c}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ht(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 wt(){var e=Xt;return Xt<<=1,(Xt&62914560)===0&&(Xt=4194304),e}function qn(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function pt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Kt(e,t,a,r,c,d){var y=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,q=e.hiddenUpdates;for(a=y&~a;0<a;){var W=31-tt(a),ae=1<<W;E[W]=0,O[W]=-1;var K=q[W];if(K!==null)for(q[W]=null,W=0;W<K.length;W++){var Z=K[W];Z!==null&&(Z.lane&=-536870913)}a&=~ae}r!==0&&fo(e,r,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function fo(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-tt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Qt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-tt(a),c=1<<r;c&t|e[r]&t&&(e[r]|=t),a&=~c}}function Ft(e,t){var a=t&-t;return a=(a&42)!==0?1:Io(a),(a&(e.suspendedLanes|t))!==0?0:a}function Io(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 Ln(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:oy(e.type))}function xm(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Ca=Math.random().toString(36).slice(2),kt="__reactFiber$"+Ca,Zt="__reactProps$"+Ca,Vo="__reactContainer$"+Ca,pc="__reactEvents$"+Ca,f1="__reactListeners$"+Ca,d1="__reactHandles$"+Ca,Sm="__reactResources$"+Ca,qr="__reactMarker$"+Ca;function gc(e){delete e[kt],delete e[Zt],delete e[pc],delete e[f1],delete e[d1]}function qo(e){var t=e[kt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Vo]||a[kt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ig(e);e!==null;){if(a=e[kt])return a;e=Ig(e)}return t}e=a,a=e.parentNode}return null}function Xo(e){if(e=e[kt]||e[Vo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Po(e){var t=e[Sm];return t||(t=e[Sm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ot(e){e[qr]=!0}var wm=new Set,Em={};function mo(e,t){$o(e,t),$o(e+"Capture",t)}function $o(e,t){for(Em[e]=t,e=0;e<t.length;e++)wm.add(t[e])}var m1=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]*$"),Tm={},Cm={};function h1(e){return ge.call(Cm,e)?!0:ge.call(Tm,e)?!1:m1.test(e)?Cm[e]=!0:(Tm[e]=!0,!1)}function Wl(e,t,a){if(h1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ei(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function wn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Am(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p1(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var c=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){a=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yc(e){if(!e._valueTracker){var t=Am(e)?"checked":"value";e._valueTracker=p1(e,t,""+e[t])}}function _m(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Am(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function ti(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}}var g1=/[\n"\\]/g;function En(e){return e.replace(g1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vc(e,t,a,r,c,d,y,E){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+wn(t)):e.value!==""+wn(t)&&(e.value=""+wn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?bc(e,y,wn(t)):a!=null?bc(e,y,wn(a)):r!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+wn(E):e.removeAttribute("name")}function Mm(e,t,a,r,c,d,y,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||a!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){yc(e);return}a=a!=null?""+wn(a):"",t=t!=null?""+wn(t):a,E||t===e.value||(e.value=t),e.defaultValue=t}r=r??c,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=E?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),yc(e)}function bc(e,t,a){t==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ko(e,t,a,r){if(e=e.options,t){t={};for(var c=0;c<a.length;c++)t["$"+a[c]]=!0;for(a=0;a<e.length;a++)c=t.hasOwnProperty("$"+e[a].value),e[a].selected!==c&&(e[a].selected=c),c&&r&&(e[a].defaultSelected=!0)}else{for(a=""+wn(a),t=null,c=0;c<e.length;c++){if(e[c].value===a){e[c].selected=!0,r&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Rm(e,t,a){if(t!=null&&(t=""+wn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+wn(a):""}function Nm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=wn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),yc(e)}function Qo(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var y1=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 Om(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||y1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function zm(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var c in t)r=t[c],t.hasOwnProperty(c)&&a[c]!==r&&Om(e,c,r)}else for(var d in t)t.hasOwnProperty(d)&&Om(e,d,t[d])}function xc(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 v1=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"],["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"]]),b1=/^[\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 ni(e){return b1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function aa(){}var Sc=null;function wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fo=null,Zo=null;function Dm(e){var t=Xo(e);if(t&&(e=t.stateNode)){var a=e[Zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+En(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var c=r[Zt]||null;if(!c)throw Error(i(90));vc(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&_m(r)}break e;case"textarea":Rm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ko(e,!!a.multiple,t,!1)}}}var Ec=!1;function jm(e,t,a){if(Ec)return e(t,a);Ec=!0;try{var r=e(t);return r}finally{if(Ec=!1,(Fo!==null||Zo!==null)&&(Vi(),Fo&&(t=Fo,e=Zo,Zo=Fo=null,Dm(t),e)))for(t=0;t<e.length;t++)Dm(e[t])}}function Pr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Zt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=!1;if(oa)try{var $r={};Object.defineProperty($r,"passive",{get:function(){Tc=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{Tc=!1}var Aa=null,Cc=null,ai=null;function km(){if(ai)return ai;var e,t=Cc,a=t.length,r,c="value"in Aa?Aa.value:Aa.textContent,d=c.length;for(e=0;e<a&&t[e]===c[e];e++);var y=a-e;for(r=1;r<=y&&t[a-r]===c[d-r];r++);return ai=c.slice(e,1<r?1-r:void 0)}function oi(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 ri(){return!0}function Lm(){return!1}function Jt(e){function t(a,r,c,d,y){this._reactName=a,this._targetInst=c,this.type=r,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(a=e[E],this[E]=a?a(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?ri:Lm,this.isPropagationStopped=Lm,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ri)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ri)},persist:function(){},isPersistent:ri}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=Jt(ho),Kr=g({},ho,{view:0,detail:0}),x1=Jt(Kr),Ac,_c,Qr,ii=g({},Kr,{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!==Qr&&(Qr&&e.type==="mousemove"?(Ac=e.screenX-Qr.screenX,_c=e.screenY-Qr.screenY):_c=Ac=0,Qr=e),Ac)},movementY:function(e){return"movementY"in e?e.movementY:_c}}),Hm=Jt(ii),S1=g({},ii,{dataTransfer:0}),w1=Jt(S1),E1=g({},Kr,{relatedTarget:0}),Mc=Jt(E1),T1=g({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),C1=Jt(T1),A1=g({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_1=Jt(A1),M1=g({},ho,{data:0}),Bm=Jt(M1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},N1={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"},O1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function z1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=O1[e])?!!t[e]:!1}function Rc(){return z1}var D1=g({},Kr,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?N1[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"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),j1=Jt(D1),k1=g({},ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Um=Jt(k1),L1=g({},Kr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),H1=Jt(L1),B1=g({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),U1=Jt(B1),G1=g({},ii,{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}),Y1=Jt(G1),I1=g({},ho,{newState:0,oldState:0}),V1=Jt(I1),q1=[9,13,27,32],Nc=oa&&"CompositionEvent"in window,Fr=null;oa&&"documentMode"in document&&(Fr=document.documentMode);var X1=oa&&"TextEvent"in window&&!Fr,Gm=oa&&(!Nc||Fr&&8<Fr&&11>=Fr),Ym=" ",Im=!1;function Vm(e,t){switch(e){case"keyup":return q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jo=!1;function P1(e,t){switch(e){case"compositionend":return qm(t);case"keypress":return t.which!==32?null:(Im=!0,Ym);case"textInput":return e=t.data,e===Ym&&Im?null:e;default:return null}}function $1(e,t){if(Jo)return e==="compositionend"||!Nc&&Vm(e,t)?(e=km(),ai=Cc=Aa=null,Jo=!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 Gm&&t.locale!=="ko"?null:t.data;default:return null}}var K1={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 Xm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K1[e.type]:t==="textarea"}function Pm(e,t,a,r){Fo?Zo?Zo.push(r):Zo=[r]:Fo=r,t=Fi(t,"onChange"),0<t.length&&(a=new li("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Zr=null,Jr=null;function Q1(e){Mg(e,0)}function si(e){var t=Xr(e);if(_m(t))return e}function $m(e,t){if(e==="change")return t}var Km=!1;if(oa){var Oc;if(oa){var zc="oninput"in document;if(!zc){var Qm=document.createElement("div");Qm.setAttribute("oninput","return;"),zc=typeof Qm.oninput=="function"}Oc=zc}else Oc=!1;Km=Oc&&(!document.documentMode||9<document.documentMode)}function Fm(){Zr&&(Zr.detachEvent("onpropertychange",Zm),Jr=Zr=null)}function Zm(e){if(e.propertyName==="value"&&si(Jr)){var t=[];Pm(t,Jr,e,wc(e)),jm(Q1,t)}}function F1(e,t,a){e==="focusin"?(Fm(),Zr=t,Jr=a,Zr.attachEvent("onpropertychange",Zm)):e==="focusout"&&Fm()}function Z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si(Jr)}function J1(e,t){if(e==="click")return si(t)}function W1(e,t){if(e==="input"||e==="change")return si(t)}function eS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var cn=typeof Object.is=="function"?Object.is:eS;function Wr(e,t){if(cn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var c=a[r];if(!ge.call(t,c)||!cn(e[c],t[c]))return!1}return!0}function Jm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wm(e,t){var a=Jm(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Jm(a)}}function eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function th(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ti(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ti(e.document)}return t}function Dc(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 tS=oa&&"documentMode"in document&&11>=document.documentMode,Wo=null,jc=null,el=null,kc=!1;function nh(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;kc||Wo==null||Wo!==ti(r)||(r=Wo,"selectionStart"in r&&Dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),el&&Wr(el,r)||(el=r,r=Fi(jc,"onSelect"),0<r.length&&(t=new li("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Wo)))}function po(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var er={animationend:po("Animation","AnimationEnd"),animationiteration:po("Animation","AnimationIteration"),animationstart:po("Animation","AnimationStart"),transitionrun:po("Transition","TransitionRun"),transitionstart:po("Transition","TransitionStart"),transitioncancel:po("Transition","TransitionCancel"),transitionend:po("Transition","TransitionEnd")},Lc={},ah={};oa&&(ah=document.createElement("div").style,"AnimationEvent"in window||(delete er.animationend.animation,delete er.animationiteration.animation,delete er.animationstart.animation),"TransitionEvent"in window||delete er.transitionend.transition);function go(e){if(Lc[e])return Lc[e];if(!er[e])return e;var t=er[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ah)return Lc[e]=t[a];return e}var oh=go("animationend"),rh=go("animationiteration"),lh=go("animationstart"),nS=go("transitionrun"),aS=go("transitionstart"),oS=go("transitioncancel"),ih=go("transitionend"),sh=new Map,Hc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Hc.push("scrollEnd");function Hn(e,t){sh.set(e,t),mo(t,[e])}var ci=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)},Tn=[],tr=0,Bc=0;function ui(){for(var e=tr,t=Bc=tr=0;t<e;){var a=Tn[t];Tn[t++]=null;var r=Tn[t];Tn[t++]=null;var c=Tn[t];Tn[t++]=null;var d=Tn[t];if(Tn[t++]=null,r!==null&&c!==null){var y=r.pending;y===null?c.next=c:(c.next=y.next,y.next=c),r.pending=c}d!==0&&ch(a,c,d)}}function fi(e,t,a,r){Tn[tr++]=e,Tn[tr++]=t,Tn[tr++]=a,Tn[tr++]=r,Bc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Uc(e,t,a,r){return fi(e,t,a,r),di(e)}function yo(e,t){return fi(e,null,null,t),di(e)}function ch(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var c=!1,d=e.return;d!==null;)d.childLanes|=a,r=d.alternate,r!==null&&(r.childLanes|=a),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-tt(a),e=d.hiddenUpdates,r=e[c],r===null?e[c]=[t]:r.push(t),t.lane=a|536870912),d):null}function di(e){if(50<wl)throw wl=0,Ku=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nr={};function rS(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,t,a,r){return new rS(e,t,a,r)}function Gc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var a=e.alternate;return a===null?(a=un(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function uh(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mi(e,t,a,r,c,d){var y=0;if(r=e,typeof e=="function")Gc(e)&&(y=1);else if(typeof e=="string")y=uw(e,a,ne.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=un(31,a,t,c),e.elementType=L,e.lanes=d,e;case T:return vo(a.children,c,d,t);case A:y=8,c|=24;break;case _:return e=un(12,a,t,c|2),e.elementType=_,e.lanes=d,e;case Q:return e=un(13,a,t,c),e.elementType=Q,e.lanes=d,e;case D:return e=un(19,a,t,c),e.elementType=D,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:y=10;break e;case z:y=9;break e;case I:y=11;break e;case N:y=14;break e;case j:y=16,r=null;break e}y=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=un(y,a,t,c),t.elementType=e,t.type=r,t.lanes=d,t}function vo(e,t,a,r){return e=un(7,e,r,t),e.lanes=a,e}function Yc(e,t,a){return e=un(6,e,null,t),e.lanes=a,e}function fh(e){var t=un(18,null,null,0);return t.stateNode=e,t}function Ic(e,t,a){return t=un(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var dh=new WeakMap;function Cn(e,t){if(typeof e=="object"&&e!==null){var a=dh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ne(t)},dh.set(e,t),t)}return{value:e,source:t,stack:Ne(t)}}var ar=[],or=0,hi=null,tl=0,An=[],_n=0,_a=null,Xn=1,Pn="";function la(e,t){ar[or++]=tl,ar[or++]=hi,hi=e,tl=t}function mh(e,t,a){An[_n++]=Xn,An[_n++]=Pn,An[_n++]=_a,_a=e;var r=Xn;e=Pn;var c=32-tt(r)-1;r&=~(1<<c),a+=1;var d=32-tt(t)+c;if(30<d){var y=c-c%5;d=(r&(1<<y)-1).toString(32),r>>=y,c-=y,Xn=1<<32-tt(t)+c|a<<c|r,Pn=d+e}else Xn=1<<d|a<<c|r,Pn=e}function Vc(e){e.return!==null&&(la(e,1),mh(e,1,0))}function qc(e){for(;e===hi;)hi=ar[--or],ar[or]=null,tl=ar[--or],ar[or]=null;for(;e===_a;)_a=An[--_n],An[_n]=null,Pn=An[--_n],An[_n]=null,Xn=An[--_n],An[_n]=null}function hh(e,t){An[_n++]=Xn,An[_n++]=Pn,An[_n++]=_a,Xn=t.id,Pn=t.overflow,_a=e}var Lt=null,ut=null,Ve=!1,Ma=null,Mn=!1,Xc=Error(i(519));function Ra(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nl(Cn(t,e)),Xc}function ph(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[kt]=e,t[Zt]=r,a){case"dialog":Be("cancel",t),Be("close",t);break;case"iframe":case"object":case"embed":Be("load",t);break;case"video":case"audio":for(a=0;a<Tl.length;a++)Be(Tl[a],t);break;case"source":Be("error",t);break;case"img":case"image":case"link":Be("error",t),Be("load",t);break;case"details":Be("toggle",t);break;case"input":Be("invalid",t),Mm(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Be("invalid",t);break;case"textarea":Be("invalid",t),Nm(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||zg(t.textContent,a)?(r.popover!=null&&(Be("beforetoggle",t),Be("toggle",t)),r.onScroll!=null&&Be("scroll",t),r.onScrollEnd!=null&&Be("scrollend",t),r.onClick!=null&&(t.onclick=aa),t=!0):t=!1,t||Ra(e,!0)}function gh(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Mn=!1;return;case 27:case 3:Mn=!0;return;default:Lt=Lt.return}}function rr(e){if(e!==Lt)return!1;if(!Ve)return gh(e),Ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||uf(e.type,e.memoizedProps)),a=!a),a&&ut&&Ra(e),gh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ut=Yg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));ut=Yg(e)}else t===27?(t=ut,Va(e.type)?(e=pf,pf=null,ut=e):ut=t):ut=Lt?Nn(e.stateNode.nextSibling):null;return!0}function bo(){ut=Lt=null,Ve=!1}function Pc(){var e=Ma;return e!==null&&(nn===null?nn=e:nn.push.apply(nn,e),Ma=null),e}function nl(e){Ma===null?Ma=[e]:Ma.push(e)}var $c=R(null),xo=null,ia=null;function Na(e,t,a){F($c,t._currentValue),t._currentValue=a}function sa(e){e._currentValue=$c.current,G($c)}function Kc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Qc(e,t,a,r){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=c;for(var O=0;O<t.length;O++)if(E.context===t[O]){d.lanes|=a,E=d.alternate,E!==null&&(E.lanes|=a),Kc(d.return,a,e),r||(y=null);break e}d=E.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(i(341));y.lanes|=a,d=y.alternate,d!==null&&(d.lanes|=a),Kc(y,a,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function lr(e,t,a,r){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(i(387));if(y=y.memoizedProps,y!==null){var E=c.type;cn(c.pendingProps.value,y.value)||(e!==null?e.push(E):e=[E])}}else if(c===ie.current){if(y=c.alternate,y===null)throw Error(i(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(Rl):e=[Rl])}c=c.return}e!==null&&Qc(t,e,a,r),t.flags|=262144}function pi(e){for(e=e.firstContext;e!==null;){if(!cn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function So(e){xo=e,ia=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ht(e){return yh(xo,e)}function gi(e,t){return xo===null&&So(e),yh(e,t)}function yh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ia===null){if(e===null)throw Error(i(308));ia=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ia=ia.next=t;return a}var lS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},iS=n.unstable_scheduleCallback,sS=n.unstable_NormalPriority,Et={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Fc(){return{controller:new lS,data:new Map,refCount:0}}function al(e){e.refCount--,e.refCount===0&&iS(sS,function(){e.controller.abort()})}var ol=null,Zc=0,ir=0,sr=null;function cS(e,t){if(ol===null){var a=ol=[];Zc=0,ir=ef(),sr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Zc++,t.then(vh,vh),t}function vh(){if(--Zc===0&&ol!==null){sr!==null&&(sr.status="fulfilled");var e=ol;ol=null,ir=0,sr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function uS(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(c){a.push(c)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var c=0;c<a.length;c++)(0,a[c])(t)},function(c){for(r.status="rejected",r.reason=c,c=0;c<a.length;c++)(0,a[c])(void 0)}),r}var bh=M.S;M.S=function(e,t){ng=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cS(e,t),bh!==null&&bh(e,t)};var wo=R(null);function Jc(){var e=wo.current;return e!==null?e:st.pooledCache}function yi(e,t){t===null?F(wo,wo.current):F(wo,t.pool)}function xh(){var e=Jc();return e===null?null:{parent:Et._currentValue,pool:e}}var cr=Error(i(460)),Wc=Error(i(474)),vi=Error(i(542)),bi={then:function(){}};function Sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(aa,aa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Th(e),e;default:if(typeof t.status=="string")t.then(aa,aa);else{if(e=st,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=r}},function(r){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Th(e),e}throw To=t,cr}}function Eo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(To=a,cr):a}}var To=null;function Eh(){if(To===null)throw Error(i(459));var e=To;return To=null,e}function Th(e){if(e===cr||e===vi)throw Error(i(483))}var ur=null,rl=0;function xi(e){var t=rl;return rl+=1,ur===null&&(ur=[]),wh(ur,e,t)}function ll(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Si(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ch(e){function t(U,k){if(e){var V=U.deletions;V===null?(U.deletions=[k],U.flags|=16):V.push(k)}}function a(U,k){if(!e)return null;for(;k!==null;)t(U,k),k=k.sibling;return null}function r(U){for(var k=new Map;U!==null;)U.key!==null?k.set(U.key,U):k.set(U.index,U),U=U.sibling;return k}function c(U,k){return U=ra(U,k),U.index=0,U.sibling=null,U}function d(U,k,V){return U.index=V,e?(V=U.alternate,V!==null?(V=V.index,V<k?(U.flags|=67108866,k):V):(U.flags|=67108866,k)):(U.flags|=1048576,k)}function y(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,k,V,te){return k===null||k.tag!==6?(k=Yc(V,U.mode,te),k.return=U,k):(k=c(k,V),k.return=U,k)}function O(U,k,V,te){var Se=V.type;return Se===T?W(U,k,V.props.children,te,V.key):k!==null&&(k.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===j&&Eo(Se)===k.type)?(k=c(k,V.props),ll(k,V),k.return=U,k):(k=mi(V.type,V.key,V.props,null,U.mode,te),ll(k,V),k.return=U,k)}function q(U,k,V,te){return k===null||k.tag!==4||k.stateNode.containerInfo!==V.containerInfo||k.stateNode.implementation!==V.implementation?(k=Ic(V,U.mode,te),k.return=U,k):(k=c(k,V.children||[]),k.return=U,k)}function W(U,k,V,te,Se){return k===null||k.tag!==7?(k=vo(V,U.mode,te,Se),k.return=U,k):(k=c(k,V),k.return=U,k)}function ae(U,k,V){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Yc(""+k,U.mode,V),k.return=U,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case w:return V=mi(k.type,k.key,k.props,null,U.mode,V),ll(V,k),V.return=U,V;case C:return k=Ic(k,U.mode,V),k.return=U,k;case j:return k=Eo(k),ae(U,k,V)}if(se(k)||le(k))return k=vo(k,U.mode,V,null),k.return=U,k;if(typeof k.then=="function")return ae(U,xi(k),V);if(k.$$typeof===H)return ae(U,gi(U,k),V);Si(U,k)}return null}function K(U,k,V,te){var Se=k!==null?k.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return Se!==null?null:E(U,k,""+V,te);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return V.key===Se?O(U,k,V,te):null;case C:return V.key===Se?q(U,k,V,te):null;case j:return V=Eo(V),K(U,k,V,te)}if(se(V)||le(V))return Se!==null?null:W(U,k,V,te,null);if(typeof V.then=="function")return K(U,k,xi(V),te);if(V.$$typeof===H)return K(U,k,gi(U,V),te);Si(U,V)}return null}function Z(U,k,V,te,Se){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return U=U.get(V)||null,E(k,U,""+te,Se);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case w:return U=U.get(te.key===null?V:te.key)||null,O(k,U,te,Se);case C:return U=U.get(te.key===null?V:te.key)||null,q(k,U,te,Se);case j:return te=Eo(te),Z(U,k,V,te,Se)}if(se(te)||le(te))return U=U.get(V)||null,W(k,U,te,Se,null);if(typeof te.then=="function")return Z(U,k,V,xi(te),Se);if(te.$$typeof===H)return Z(U,k,V,gi(k,te),Se);Si(k,te)}return null}function he(U,k,V,te){for(var Se=null,Xe=null,xe=k,De=k=0,Ye=null;xe!==null&&De<V.length;De++){xe.index>De?(Ye=xe,xe=null):Ye=xe.sibling;var Pe=K(U,xe,V[De],te);if(Pe===null){xe===null&&(xe=Ye);break}e&&xe&&Pe.alternate===null&&t(U,xe),k=d(Pe,k,De),Xe===null?Se=Pe:Xe.sibling=Pe,Xe=Pe,xe=Ye}if(De===V.length)return a(U,xe),Ve&&la(U,De),Se;if(xe===null){for(;De<V.length;De++)xe=ae(U,V[De],te),xe!==null&&(k=d(xe,k,De),Xe===null?Se=xe:Xe.sibling=xe,Xe=xe);return Ve&&la(U,De),Se}for(xe=r(xe);De<V.length;De++)Ye=Z(xe,U,De,V[De],te),Ye!==null&&(e&&Ye.alternate!==null&&xe.delete(Ye.key===null?De:Ye.key),k=d(Ye,k,De),Xe===null?Se=Ye:Xe.sibling=Ye,Xe=Ye);return e&&xe.forEach(function(Ka){return t(U,Ka)}),Ve&&la(U,De),Se}function Ce(U,k,V,te){if(V==null)throw Error(i(151));for(var Se=null,Xe=null,xe=k,De=k=0,Ye=null,Pe=V.next();xe!==null&&!Pe.done;De++,Pe=V.next()){xe.index>De?(Ye=xe,xe=null):Ye=xe.sibling;var Ka=K(U,xe,Pe.value,te);if(Ka===null){xe===null&&(xe=Ye);break}e&&xe&&Ka.alternate===null&&t(U,xe),k=d(Ka,k,De),Xe===null?Se=Ka:Xe.sibling=Ka,Xe=Ka,xe=Ye}if(Pe.done)return a(U,xe),Ve&&la(U,De),Se;if(xe===null){for(;!Pe.done;De++,Pe=V.next())Pe=ae(U,Pe.value,te),Pe!==null&&(k=d(Pe,k,De),Xe===null?Se=Pe:Xe.sibling=Pe,Xe=Pe);return Ve&&la(U,De),Se}for(xe=r(xe);!Pe.done;De++,Pe=V.next())Pe=Z(xe,U,De,Pe.value,te),Pe!==null&&(e&&Pe.alternate!==null&&xe.delete(Pe.key===null?De:Pe.key),k=d(Pe,k,De),Xe===null?Se=Pe:Xe.sibling=Pe,Xe=Pe);return e&&xe.forEach(function(Sw){return t(U,Sw)}),Ve&&la(U,De),Se}function rt(U,k,V,te){if(typeof V=="object"&&V!==null&&V.type===T&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:e:{for(var Se=V.key;k!==null;){if(k.key===Se){if(Se=V.type,Se===T){if(k.tag===7){a(U,k.sibling),te=c(k,V.props.children),te.return=U,U=te;break e}}else if(k.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===j&&Eo(Se)===k.type){a(U,k.sibling),te=c(k,V.props),ll(te,V),te.return=U,U=te;break e}a(U,k);break}else t(U,k);k=k.sibling}V.type===T?(te=vo(V.props.children,U.mode,te,V.key),te.return=U,U=te):(te=mi(V.type,V.key,V.props,null,U.mode,te),ll(te,V),te.return=U,U=te)}return y(U);case C:e:{for(Se=V.key;k!==null;){if(k.key===Se)if(k.tag===4&&k.stateNode.containerInfo===V.containerInfo&&k.stateNode.implementation===V.implementation){a(U,k.sibling),te=c(k,V.children||[]),te.return=U,U=te;break e}else{a(U,k);break}else t(U,k);k=k.sibling}te=Ic(V,U.mode,te),te.return=U,U=te}return y(U);case j:return V=Eo(V),rt(U,k,V,te)}if(se(V))return he(U,k,V,te);if(le(V)){if(Se=le(V),typeof Se!="function")throw Error(i(150));return V=Se.call(V),Ce(U,k,V,te)}if(typeof V.then=="function")return rt(U,k,xi(V),te);if(V.$$typeof===H)return rt(U,k,gi(U,V),te);Si(U,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,k!==null&&k.tag===6?(a(U,k.sibling),te=c(k,V),te.return=U,U=te):(a(U,k),te=Yc(V,U.mode,te),te.return=U,U=te),y(U)):a(U,k)}return function(U,k,V,te){try{rl=0;var Se=rt(U,k,V,te);return ur=null,Se}catch(xe){if(xe===cr||xe===vi)throw xe;var Xe=un(29,xe,null,U.mode);return Xe.lanes=te,Xe.return=U,Xe}finally{}}}var Co=Ch(!0),Ah=Ch(!1),Oa=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Fe&2)!==0){var c=r.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),r.pending=t,t=di(e),ch(e,null,a),t}return fi(e,r,t,a),di(e)}function il(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qt(e,a)}}function nu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var c=null,d=null;if(a=a.firstBaseUpdate,a!==null){do{var y={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,a=a.next}while(a!==null);d===null?c=d=t:d=d.next=t}else c=d=t;a={baseState:r.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var au=!1;function sl(){if(au){var e=sr;if(e!==null)throw e}}function cl(e,t,a,r){au=!1;var c=e.updateQueue;Oa=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var O=E,q=O.next;O.next=null,y===null?d=q:y.next=q,y=O;var W=e.alternate;W!==null&&(W=W.updateQueue,E=W.lastBaseUpdate,E!==y&&(E===null?W.firstBaseUpdate=q:E.next=q,W.lastBaseUpdate=O))}if(d!==null){var ae=c.baseState;y=0,W=q=O=null,E=d;do{var K=E.lane&-536870913,Z=K!==E.lane;if(Z?(Ge&K)===K:(r&K)===K){K!==0&&K===ir&&(au=!0),W!==null&&(W=W.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=e,Ce=E;K=t;var rt=a;switch(Ce.tag){case 1:if(he=Ce.payload,typeof he=="function"){ae=he.call(rt,ae,K);break e}ae=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Ce.payload,K=typeof he=="function"?he.call(rt,ae,K):he,K==null)break e;ae=g({},ae,K);break e;case 2:Oa=!0}}K=E.callback,K!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=c.callbacks,Z===null?c.callbacks=[K]:Z.push(K))}else Z={lane:K,tag:E.tag,payload:E.payload,callback:E.callback,next:null},W===null?(q=W=Z,O=ae):W=W.next=Z,y|=K;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,c.lastBaseUpdate=Z,c.shared.pending=null}}while(!0);W===null&&(O=ae),c.baseState=O,c.firstBaseUpdate=q,c.lastBaseUpdate=W,d===null&&(c.shared.lanes=0),Ba|=y,e.lanes=y,e.memoizedState=ae}}function _h(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Mh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)_h(a[e],t)}var fr=R(null),wi=R(0);function Rh(e,t){e=ya,F(wi,e),F(fr,t),ya=e|t.baseLanes}function ou(){F(wi,ya),F(fr,fr.current)}function ru(){ya=wi.current,G(fr),G(wi)}var fn=R(null),Rn=null;function ja(e){var t=e.alternate;F(bt,bt.current&1),F(fn,e),Rn===null&&(t===null||fr.current!==null||t.memoizedState!==null)&&(Rn=e)}function lu(e){F(bt,bt.current),F(fn,e),Rn===null&&(Rn=e)}function Nh(e){e.tag===22?(F(bt,bt.current),F(fn,e),Rn===null&&(Rn=e)):ka()}function ka(){F(bt,bt.current),F(fn,fn.current)}function dn(e){G(fn),Rn===e&&(Rn=null),G(bt)}var bt=R(0);function Ei(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||mf(a)||hf(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 ca=0,ze=null,at=null,Tt=null,Ti=!1,dr=!1,Ao=!1,Ci=0,ul=0,mr=null,fS=0;function gt(){throw Error(i(321))}function iu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!cn(e[a],t[a]))return!1;return!0}function su(e,t,a,r,c,d){return ca=d,ze=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?mp:Eu,Ao=!1,d=a(r,c),Ao=!1,dr&&(d=zh(t,a,r,c)),Oh(e),d}function Oh(e){M.H=ml;var t=at!==null&&at.next!==null;if(ca=0,Tt=at=ze=null,Ti=!1,ul=0,mr=null,t)throw Error(i(300));e===null||Ct||(e=e.dependencies,e!==null&&pi(e)&&(Ct=!0))}function zh(e,t,a,r){ze=e;var c=0;do{if(dr&&(mr=null),ul=0,dr=!1,25<=c)throw Error(i(301));if(c+=1,Tt=at=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}M.H=hp,d=t(a,r)}while(dr);return d}function dS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?fl(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(ze.flags|=1024),t}function cu(){var e=Ci!==0;return Ci=0,e}function uu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function fu(e){if(Ti){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ti=!1}ca=0,Tt=at=ze=null,dr=!1,ul=Ci=0,mr=null}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?ze.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function xt(){if(at===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=Tt===null?ze.memoizedState:Tt.next;if(t!==null)Tt=t,at=e;else{if(e===null)throw ze.alternate===null?Error(i(467)):Error(i(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Tt===null?ze.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function Ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fl(e){var t=ul;return ul+=1,mr===null&&(mr=[]),e=wh(mr,e,t),t=ze,(Tt===null?t.memoizedState:Tt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?mp:Eu),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fl(e);if(e.$$typeof===H)return Ht(e)}throw Error(i(438,String(e)))}function du(e){var t=null,a=ze.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=ze.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ai(),ze.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=P;return t.index++,a}function ua(e,t){return typeof t=="function"?t(e):t}function Mi(e){var t=xt();return mu(t,at,e)}function mu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var c=e.baseQueue,d=r.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,r.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var E=y=null,O=null,q=t,W=!1;do{var ae=q.lane&-536870913;if(ae!==q.lane?(Ge&ae)===ae:(ca&ae)===ae){var K=q.revertLane;if(K===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),ae===ir&&(W=!0);else if((ca&K)===K){q=q.next,K===ir&&(W=!0);continue}else ae={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},O===null?(E=O=ae,y=d):O=O.next=ae,ze.lanes|=K,Ba|=K;ae=q.action,Ao&&a(d,ae),d=q.hasEagerState?q.eagerState:a(d,ae)}else K={lane:ae,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},O===null?(E=O=K,y=d):O=O.next=K,ze.lanes|=ae,Ba|=ae;q=q.next}while(q!==null&&q!==t);if(O===null?y=d:O.next=E,!cn(d,e.memoizedState)&&(Ct=!0,W&&(a=sr,a!==null)))throw a;e.memoizedState=d,e.baseState=y,e.baseQueue=O,r.lastRenderedState=d}return c===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function hu(e){var t=xt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,c=a.pending,d=t.memoizedState;if(c!==null){a.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);cn(d,t.memoizedState)||(Ct=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),a.lastRenderedState=d}return[d,r]}function Dh(e,t,a){var r=ze,c=xt(),d=Ve;if(d){if(a===void 0)throw Error(i(407));a=a()}else a=t();var y=!cn((at||c).memoizedState,a);if(y&&(c.memoizedState=a,Ct=!0),c=c.queue,yu(Lh.bind(null,r,c,e),[e]),c.getSnapshot!==t||y||Tt!==null&&Tt.memoizedState.tag&1){if(r.flags|=2048,hr(9,{destroy:void 0},kh.bind(null,r,c,a,t),null),st===null)throw Error(i(349));d||(ca&127)!==0||jh(r,t,a)}return a}function jh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ze.updateQueue,t===null?(t=Ai(),ze.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kh(e,t,a,r){t.value=a,t.getSnapshot=r,Hh(t)&&Bh(e)}function Lh(e,t,a){return a(function(){Hh(t)&&Bh(e)})}function Hh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!cn(e,a)}catch{return!0}}function Bh(e){var t=yo(e,2);t!==null&&an(t,e,2)}function pu(e){var t=Pt();if(typeof e=="function"){var a=e;if(e=a(),Ao){mt(!0);try{a()}finally{mt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function Uh(e,t,a,r){return e.baseState=a,mu(e,at,typeof r=="function"?r:ua)}function mS(e,t,a,r,c){if(Oi(e))throw Error(i(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};M.T!==null?a(!0):d.isTransition=!1,r(d),a=t.pending,a===null?(d.next=t.pending=d,Gh(t,d)):(d.next=a.next,t.pending=a.next=d)}}function Gh(e,t){var a=t.action,r=t.payload,c=e.state;if(t.isTransition){var d=M.T,y={};M.T=y;try{var E=a(c,r),O=M.S;O!==null&&O(y,E),Yh(e,t,E)}catch(q){gu(e,t,q)}finally{d!==null&&y.types!==null&&(d.types=y.types),M.T=d}}else try{d=a(c,r),Yh(e,t,d)}catch(q){gu(e,t,q)}}function Yh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Ih(e,t,r)},function(r){return gu(e,t,r)}):Ih(e,t,a)}function Ih(e,t,a){t.status="fulfilled",t.value=a,Vh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Gh(e,a)))}function gu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,Vh(t),t=t.next;while(t!==r)}e.action=null}function Vh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qh(e,t){return t}function Xh(e,t){if(Ve){var a=st.formState;if(a!==null){e:{var r=ze;if(Ve){if(ut){t:{for(var c=ut,d=Mn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Nn(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){ut=Nn(c.nextSibling),r=c.data==="F!";break e}}Ra(r)}r=!1}r&&(t=a[0])}}return a=Pt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qh,lastRenderedState:t},a.queue=r,a=up.bind(null,ze,r),r.dispatch=a,r=pu(!1),d=wu.bind(null,ze,!1,r.queue),r=Pt(),c={state:t,dispatch:null,action:e,pending:null},r.queue=c,a=mS.bind(null,ze,c,d,a),c.dispatch=a,r.memoizedState=e,[t,a,!1]}function Ph(e){var t=xt();return $h(t,at,e)}function $h(e,t,a){if(t=mu(e,t,qh)[0],e=Mi(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=fl(t)}catch(y){throw y===cr?vi:y}else r=t;t=xt();var c=t.queue,d=c.dispatch;return a!==t.memoizedState&&(ze.flags|=2048,hr(9,{destroy:void 0},hS.bind(null,c,a),null)),[r,d,e]}function hS(e,t){e.action=t}function Kh(e){var t=xt(),a=at;if(a!==null)return $h(t,a,e);xt(),t=t.memoizedState,a=xt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function hr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=ze.updateQueue,t===null&&(t=Ai(),ze.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function Qh(){return xt().memoizedState}function Ri(e,t,a,r){var c=Pt();ze.flags|=e,c.memoizedState=hr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Ni(e,t,a,r){var c=xt();r=r===void 0?null:r;var d=c.memoizedState.inst;at!==null&&r!==null&&iu(r,at.memoizedState.deps)?c.memoizedState=hr(t,d,a,r):(ze.flags|=e,c.memoizedState=hr(1|t,d,a,r))}function Fh(e,t){Ri(8390656,8,e,t)}function yu(e,t){Ni(2048,8,e,t)}function pS(e){ze.flags|=4;var t=ze.updateQueue;if(t===null)t=Ai(),ze.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Zh(e){var t=xt().memoizedState;return pS({ref:t,nextImpl:e}),function(){if((Fe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Jh(e,t){return Ni(4,2,e,t)}function Wh(e,t){return Ni(4,4,e,t)}function ep(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tp(e,t,a){a=a!=null?a.concat([e]):null,Ni(4,4,ep.bind(null,t,e),a)}function vu(){}function np(e,t){var a=xt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&iu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function ap(e,t){var a=xt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&iu(t,r[1]))return r[0];if(r=e(),Ao){mt(!0);try{e()}finally{mt(!1)}}return a.memoizedState=[r,t],r}function bu(e,t,a){return a===void 0||(ca&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=og(),ze.lanes|=e,Ba|=e,a)}function op(e,t,a,r){return cn(a,t)?a:fr.current!==null?(e=bu(e,a,r),cn(e,t)||(Ct=!0),e):(ca&42)===0||(ca&1073741824)!==0&&(Ge&261930)===0?(Ct=!0,e.memoizedState=a):(e=og(),ze.lanes|=e,Ba|=e,t)}function rp(e,t,a,r,c){var d=Y.p;Y.p=d!==0&&8>d?d:8;var y=M.T,E={};M.T=E,wu(e,!1,t,a);try{var O=c(),q=M.S;if(q!==null&&q(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var W=uS(O,r);dl(e,t,W,pn(e))}else dl(e,t,r,pn(e))}catch(ae){dl(e,t,{then:function(){},status:"rejected",reason:ae},pn())}finally{Y.p=d,y!==null&&E.types!==null&&(y.types=E.types),M.T=y}}function gS(){}function xu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var c=lp(e).queue;rp(e,c,t,B,a===null?gS:function(){return ip(e),a(r)})}function lp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:B},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ip(e){var t=lp(e);t.next===null&&(t=e.alternate.memoizedState),dl(e,t.next.queue,{},pn())}function Su(){return Ht(Rl)}function sp(){return xt().memoizedState}function cp(){return xt().memoizedState}function yS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=pn();e=za(a);var r=Da(t,e,a);r!==null&&(an(r,t,a),il(r,t,a)),t={cache:Fc()},e.payload=t;return}t=t.return}}function vS(e,t,a){var r=pn();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Oi(e)?fp(t,a):(a=Uc(e,t,a,r),a!==null&&(an(a,e,r),dp(a,t,r)))}function up(e,t,a){var r=pn();dl(e,t,a,r)}function dl(e,t,a,r){var c={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Oi(e))fp(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,a);if(c.hasEagerState=!0,c.eagerState=E,cn(E,y))return fi(e,t,c,0),st===null&&ui(),!1}catch{}finally{}if(a=Uc(e,t,c,r),a!==null)return an(a,e,r),dp(a,t,r),!0}return!1}function wu(e,t,a,r){if(r={lane:2,revertLane:ef(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Oi(e)){if(t)throw Error(i(479))}else t=Uc(e,a,r,2),t!==null&&an(t,e,2)}function Oi(e){var t=e.alternate;return e===ze||t!==null&&t===ze}function fp(e,t){dr=Ti=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function dp(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Qt(e,a)}}var ml={readContext:Ht,use:_i,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useInsertionEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useSyncExternalStore:gt,useId:gt,useHostTransitionStatus:gt,useFormState:gt,useActionState:gt,useOptimistic:gt,useMemoCache:gt,useCacheRefresh:gt};ml.useEffectEvent=gt;var mp={readContext:Ht,use:_i,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Fh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ri(4194308,4,ep.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){Ri(4,2,e,t)},useMemo:function(e,t){var a=Pt();t=t===void 0?null:t;var r=e();if(Ao){mt(!0);try{e()}finally{mt(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Pt();if(a!==void 0){var c=a(t);if(Ao){mt(!0);try{a(t)}finally{mt(!1)}}}else c=t;return r.memoizedState=r.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},r.queue=e,e=e.dispatch=vS.bind(null,ze,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:function(e){e=pu(e);var t=e.queue,a=up.bind(null,ze,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:vu,useDeferredValue:function(e,t){var a=Pt();return bu(a,e,t)},useTransition:function(){var e=pu(!1);return e=rp.bind(null,ze,e.queue,!0,!1),Pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=ze,c=Pt();if(Ve){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),st===null)throw Error(i(349));(Ge&127)!==0||jh(r,t,a)}c.memoizedState=a;var d={value:a,getSnapshot:t};return c.queue=d,Fh(Lh.bind(null,r,d,e),[e]),r.flags|=2048,hr(9,{destroy:void 0},kh.bind(null,r,d,a,t),null),a},useId:function(){var e=Pt(),t=st.identifierPrefix;if(Ve){var a=Pn,r=Xn;a=(r&~(1<<32-tt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ci++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=fS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:Xh,useActionState:Xh,useOptimistic:function(e){var t=Pt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wu.bind(null,ze,!0,a),a.dispatch=t,[e,t]},useMemoCache:du,useCacheRefresh:function(){return Pt().memoizedState=yS.bind(null,ze)},useEffectEvent:function(e){var t=Pt(),a={impl:e};return t.memoizedState=a,function(){if((Fe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Eu={readContext:Ht,use:_i,useCallback:np,useContext:Ht,useEffect:yu,useImperativeHandle:tp,useInsertionEffect:Jh,useLayoutEffect:Wh,useMemo:ap,useReducer:Mi,useRef:Qh,useState:function(){return Mi(ua)},useDebugValue:vu,useDeferredValue:function(e,t){var a=xt();return op(a,at.memoizedState,e,t)},useTransition:function(){var e=Mi(ua)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:fl(e),t]},useSyncExternalStore:Dh,useId:sp,useHostTransitionStatus:Su,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var a=xt();return Uh(a,at,e,t)},useMemoCache:du,useCacheRefresh:cp};Eu.useEffectEvent=Zh;var hp={readContext:Ht,use:_i,useCallback:np,useContext:Ht,useEffect:yu,useImperativeHandle:tp,useInsertionEffect:Jh,useLayoutEffect:Wh,useMemo:ap,useReducer:hu,useRef:Qh,useState:function(){return hu(ua)},useDebugValue:vu,useDeferredValue:function(e,t){var a=xt();return at===null?bu(a,e,t):op(a,at.memoizedState,e,t)},useTransition:function(){var e=hu(ua)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:fl(e),t]},useSyncExternalStore:Dh,useId:sp,useHostTransitionStatus:Su,useFormState:Kh,useActionState:Kh,useOptimistic:function(e,t){var a=xt();return at!==null?Uh(a,at,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:du,useCacheRefresh:cp};hp.useEffectEvent=Zh;function Tu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Cu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=pn(),c=za(r);c.payload=t,a!=null&&(c.callback=a),t=Da(e,c,r),t!==null&&(an(t,e,r),il(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=pn(),c=za(r);c.tag=1,c.payload=t,a!=null&&(c.callback=a),t=Da(e,c,r),t!==null&&(an(t,e,r),il(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pn(),r=za(a);r.tag=2,t!=null&&(r.callback=t),t=Da(e,r,a),t!==null&&(an(t,e,a),il(t,e,a))}};function pp(e,t,a,r,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,y):t.prototype&&t.prototype.isPureReactComponent?!Wr(a,r)||!Wr(c,d):!0}function gp(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function _o(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var c in e)a[c]===void 0&&(a[c]=e[c])}return a}function yp(e){ci(e)}function vp(e){console.error(e)}function bp(e){ci(e)}function zi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function xp(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Au(e,t,a){return a=za(a),a.tag=3,a.payload={element:null},a.callback=function(){zi(e,t)},a}function Sp(e){return e=za(e),e.tag=3,e}function wp(e,t,a,r){var c=a.type.getDerivedStateFromError;if(typeof c=="function"){var d=r.value;e.payload=function(){return c(d)},e.callback=function(){xp(t,a,r)}}var y=a.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){xp(t,a,r),typeof c!="function"&&(Ua===null?Ua=new Set([this]):Ua.add(this));var E=r.stack;this.componentDidCatch(r.value,{componentStack:E!==null?E:""})})}function bS(e,t,a,r,c){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&lr(t,a,c,!0),a=fn.current,a!==null){switch(a.tag){case 31:case 13:return Rn===null?qi():a.alternate===null&&yt===0&&(yt=3),a.flags&=-257,a.flags|=65536,a.lanes=c,r===bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Zu(e,r,c)),!1;case 22:return a.flags|=65536,r===bi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Zu(e,r,c)),!1}throw Error(i(435,a.tag))}return Zu(e,r,c),qi(),!1}if(Ve)return t=fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,r!==Xc&&(e=Error(i(422),{cause:r}),nl(Cn(e,a)))):(r!==Xc&&(t=Error(i(423),{cause:r}),nl(Cn(t,a))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,r=Cn(r,a),c=Au(e.stateNode,r,c),nu(e,c),yt!==4&&(yt=2)),!1;var d=Error(i(520),{cause:r});if(d=Cn(d,a),Sl===null?Sl=[d]:Sl.push(d),yt!==4&&(yt=2),t===null)return!0;r=Cn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=c&-c,a.lanes|=e,e=Au(a.stateNode,r,e),nu(a,e),!1;case 1:if(t=a.type,d=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ua===null||!Ua.has(d))))return a.flags|=65536,c&=-c,a.lanes|=c,c=Sp(c),wp(c,e,a,r),nu(a,c),!1}a=a.return}while(a!==null);return!1}var _u=Error(i(461)),Ct=!1;function Bt(e,t,a,r){t.child=e===null?Ah(t,null,a,r):Co(t,e.child,a,r)}function Ep(e,t,a,r,c){a=a.render;var d=t.ref;if("ref"in r){var y={};for(var E in r)E!=="ref"&&(y[E]=r[E])}else y=r;return So(t),r=su(e,t,a,y,d,c),E=cu(),e!==null&&!Ct?(uu(e,t,c),fa(e,t,c)):(Ve&&E&&Vc(t),t.flags|=1,Bt(e,t,r,c),t.child)}function Tp(e,t,a,r,c){if(e===null){var d=a.type;return typeof d=="function"&&!Gc(d)&&d.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=d,Cp(e,t,d,r,c)):(e=mi(a.type,null,r,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!ku(e,c)){var y=d.memoizedProps;if(a=a.compare,a=a!==null?a:Wr,a(y,r)&&e.ref===t.ref)return fa(e,t,c)}return t.flags|=1,e=ra(d,r),e.ref=t.ref,e.return=t,t.child=e}function Cp(e,t,a,r,c){if(e!==null){var d=e.memoizedProps;if(Wr(d,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=d,ku(e,c))(e.flags&131072)!==0&&(Ct=!0);else return t.lanes=e.lanes,fa(e,t,c)}return Mu(e,t,a,r,c)}function Ap(e,t,a,r){var c=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|a:a,e!==null){for(r=t.child=e.child,c=0;r!==null;)c=c|r.lanes|r.childLanes,r=r.sibling;r=c&~d}else r=0,t.child=null;return _p(e,t,d,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yi(t,d!==null?d.cachePool:null),d!==null?Rh(t,d):ou(),Nh(t);else return r=t.lanes=536870912,_p(e,t,d!==null?d.baseLanes|a:a,a,r)}else d!==null?(yi(t,d.cachePool),Rh(t,d),ka(),t.memoizedState=null):(e!==null&&yi(t,null),ou(),ka());return Bt(e,t,c,a),t.child}function hl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _p(e,t,a,r,c){var d=Jc();return d=d===null?null:{parent:Et._currentValue,pool:d},t.memoizedState={baseLanes:a,cachePool:d},e!==null&&yi(t,null),ou(),Nh(t),e!==null&&lr(e,t,r,!0),t.childLanes=c,null}function Di(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 Mp(e,t,a){return Co(t,e.child,null,a),e=Di(t,t.pendingProps),e.flags|=2,dn(t),t.memoizedState=null,e}function xS(e,t,a){var r=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(r.mode==="hidden")return e=Di(t,r),t.lanes=536870912,hl(null,e);if(lu(t),(e=ut)?(e=Gg(e,Mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:Xn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},a=fh(e),a.return=t,t.child=a,Lt=t,ut=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return Di(t,r)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(lu(t),c)if(t.flags&256)t.flags&=-257,t=Mp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(Ct||lr(e,t,a,!1),c=(a&e.childLanes)!==0,Ct||c){if(r=st,r!==null&&(y=Ft(r,a),y!==0&&y!==d.retryLane))throw d.retryLane=y,yo(e,y),an(r,e,y),_u;qi(),t=Mp(e,t,a)}else e=d.treeContext,ut=Nn(y.nextSibling),Lt=t,Ve=!0,Ma=null,Mn=!1,e!==null&&hh(t,e),t=Di(t,r),t.flags|=4096;return t}return e=ra(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ji(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Mu(e,t,a,r,c){return So(t),a=su(e,t,a,r,void 0,c),r=cu(),e!==null&&!Ct?(uu(e,t,c),fa(e,t,c)):(Ve&&r&&Vc(t),t.flags|=1,Bt(e,t,a,c),t.child)}function Rp(e,t,a,r,c,d){return So(t),t.updateQueue=null,a=zh(t,r,a,c),Oh(e),r=cu(),e!==null&&!Ct?(uu(e,t,d),fa(e,t,d)):(Ve&&r&&Vc(t),t.flags|=1,Bt(e,t,a,d),t.child)}function Np(e,t,a,r,c){if(So(t),t.stateNode===null){var d=nr,y=a.contextType;typeof y=="object"&&y!==null&&(d=Ht(y)),d=new a(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Cu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},eu(t),y=a.contextType,d.context=typeof y=="object"&&y!==null?Ht(y):nr,d.state=t.memoizedState,y=a.getDerivedStateFromProps,typeof y=="function"&&(Tu(t,a,y,r),d.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Cu.enqueueReplaceState(d,d.state,null),cl(t,r,d,c),sl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,O=_o(a,E);d.props=O;var q=d.context,W=a.contextType;y=nr,typeof W=="object"&&W!==null&&(y=Ht(W));var ae=a.getDerivedStateFromProps;W=typeof ae=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,W||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||q!==y)&&gp(t,d,r,y),Oa=!1;var K=t.memoizedState;d.state=K,cl(t,r,d,c),sl(),q=t.memoizedState,E||K!==q||Oa?(typeof ae=="function"&&(Tu(t,a,ae,r),q=t.memoizedState),(O=Oa||pp(t,a,O,r,K,q,y))?(W||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=q),d.props=r,d.state=q,d.context=y,r=O):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,tu(e,t),y=t.memoizedProps,W=_o(a,y),d.props=W,ae=t.pendingProps,K=d.context,q=a.contextType,O=nr,typeof q=="object"&&q!==null&&(O=Ht(q)),E=a.getDerivedStateFromProps,(q=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==ae||K!==O)&&gp(t,d,r,O),Oa=!1,K=t.memoizedState,d.state=K,cl(t,r,d,c),sl();var Z=t.memoizedState;y!==ae||K!==Z||Oa||e!==null&&e.dependencies!==null&&pi(e.dependencies)?(typeof E=="function"&&(Tu(t,a,E,r),Z=t.memoizedState),(W=Oa||pp(t,a,W,r,K,Z,O)||e!==null&&e.dependencies!==null&&pi(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,Z,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,Z,O)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Z),d.props=r,d.state=Z,d.context=O,r=W):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,ji(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=Co(t,e.child,null,c),t.child=Co(t,null,a,c)):Bt(e,t,a,c),t.memoizedState=d.state,e=t.child):e=fa(e,t,c),e}function Op(e,t,a,r){return bo(),t.flags|=256,Bt(e,t,a,r),t.child}var Ru={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(e){return{baseLanes:e,cachePool:xh()}}function Ou(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=hn),e}function zp(e,t,a){var r=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(c?ja(t):ka(),(e=ut)?(e=Gg(e,Mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:_a!==null?{id:Xn,overflow:Pn}:null,retryLane:536870912,hydrationErrors:null},a=fh(e),a.return=t,t.child=a,Lt=t,ut=null)):e=null,e===null)throw Ra(t);return hf(e)?t.lanes=32:t.lanes=536870912,null}var E=r.children;return r=r.fallback,c?(ka(),c=t.mode,E=ki({mode:"hidden",children:E},c),r=vo(r,c,a,null),E.return=t,r.return=t,E.sibling=r,t.child=E,r=t.child,r.memoizedState=Nu(a),r.childLanes=Ou(e,y,a),t.memoizedState=Ru,hl(null,r)):(ja(t),zu(t,E))}var O=e.memoizedState;if(O!==null&&(E=O.dehydrated,E!==null)){if(d)t.flags&256?(ja(t),t.flags&=-257,t=Du(e,t,a)):t.memoizedState!==null?(ka(),t.child=e.child,t.flags|=128,t=null):(ka(),E=r.fallback,c=t.mode,r=ki({mode:"visible",children:r.children},c),E=vo(E,c,a,null),E.flags|=2,r.return=t,E.return=t,r.sibling=E,t.child=r,Co(t,e.child,null,a),r=t.child,r.memoizedState=Nu(a),r.childLanes=Ou(e,y,a),t.memoizedState=Ru,t=hl(null,r));else if(ja(t),hf(E)){if(y=E.nextSibling&&E.nextSibling.dataset,y)var q=y.dgst;y=q,r=Error(i(419)),r.stack="",r.digest=y,nl({value:r,source:null,stack:null}),t=Du(e,t,a)}else if(Ct||lr(e,t,a,!1),y=(a&e.childLanes)!==0,Ct||y){if(y=st,y!==null&&(r=Ft(y,a),r!==0&&r!==O.retryLane))throw O.retryLane=r,yo(e,r),an(y,e,r),_u;mf(E)||qi(),t=Du(e,t,a)}else mf(E)?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,ut=Nn(E.nextSibling),Lt=t,Ve=!0,Ma=null,Mn=!1,e!==null&&hh(t,e),t=zu(t,r.children),t.flags|=4096);return t}return c?(ka(),E=r.fallback,c=t.mode,O=e.child,q=O.sibling,r=ra(O,{mode:"hidden",children:r.children}),r.subtreeFlags=O.subtreeFlags&65011712,q!==null?E=ra(q,E):(E=vo(E,c,a,null),E.flags|=2),E.return=t,r.return=t,r.sibling=E,t.child=r,hl(null,r),r=t.child,E=e.child.memoizedState,E===null?E=Nu(a):(c=E.cachePool,c!==null?(O=Et._currentValue,c=c.parent!==O?{parent:O,pool:O}:c):c=xh(),E={baseLanes:E.baseLanes|a,cachePool:c}),r.memoizedState=E,r.childLanes=Ou(e,y,a),t.memoizedState=Ru,hl(e.child,r)):(ja(t),a=e.child,e=a.sibling,a=ra(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=a,t.memoizedState=null,a)}function zu(e,t){return t=ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ki(e,t){return e=un(22,e,null,t),e.lanes=0,e}function Du(e,t,a){return Co(t,e.child,null,a),e=zu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Kc(e.return,t,a)}function ju(e,t,a,r,c,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:c,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=a,y.tailMode=c,y.treeForkCount=d)}function jp(e,t,a){var r=t.pendingProps,c=r.revealOrder,d=r.tail;r=r.children;var y=bt.current,E=(y&2)!==0;if(E?(y=y&1|2,t.flags|=128):y&=1,F(bt,y),Bt(e,t,r,a),r=Ve?tl:0,!E&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dp(e,a,t);else if(e.tag===19)Dp(e,a,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(c){case"forwards":for(a=t.child,c=null;a!==null;)e=a.alternate,e!==null&&Ei(e)===null&&(c=a),a=a.sibling;a=c,a===null?(c=t.child,t.child=null):(c=a.sibling,a.sibling=null),ju(t,!1,c,a,d,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ei(e)===null){t.child=c;break}e=c.sibling,c.sibling=a,a=c,c=e}ju(t,!0,a,null,d,r);break;case"together":ju(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function fa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(lr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=ra(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ra(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ku(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&pi(e)))}function SS(e,t,a){switch(t.tag){case 3:me(t,t.stateNode.containerInfo),Na(t,Et,e.memoizedState.cache),bo();break;case 27:case 5:_e(t);break;case 4:me(t,t.stateNode.containerInfo);break;case 10:Na(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,lu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ja(t),t.flags|=128,null):(a&t.child.childLanes)!==0?zp(e,t,a):(ja(t),e=fa(e,t,a),e!==null?e.sibling:null);ja(t);break;case 19:var c=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(lr(e,t,a,!1),r=(a&t.childLanes)!==0),c){if(r)return jp(e,t,a);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),F(bt,bt.current),r)break;return null;case 22:return t.lanes=0,Ap(e,t,a,t.pendingProps);case 24:Na(t,Et,e.memoizedState.cache)}return fa(e,t,a)}function kp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ct=!0;else{if(!ku(e,a)&&(t.flags&128)===0)return Ct=!1,SS(e,t,a);Ct=(e.flags&131072)!==0}else Ct=!1,Ve&&(t.flags&1048576)!==0&&mh(t,tl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Eo(t.elementType),t.type=e,typeof e=="function")Gc(e)?(r=_o(e,r),t.tag=1,t=Np(null,t,e,r,a)):(t.tag=0,t=Mu(null,t,e,r,a));else{if(e!=null){var c=e.$$typeof;if(c===I){t.tag=11,t=Ep(null,t,e,r,a);break e}else if(c===N){t.tag=14,t=Tp(null,t,e,r,a);break e}}throw t=ee(e)||e,Error(i(306,t,""))}}return t;case 0:return Mu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,c=_o(r,t.pendingProps),Np(e,t,r,c,a);case 3:e:{if(me(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var d=t.memoizedState;c=d.element,tu(e,t),cl(t,r,null,a);var y=t.memoizedState;if(r=y.cache,Na(t,Et,r),r!==d.cache&&Qc(t,[Et],a,!0),sl(),r=y.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Op(e,t,r,a);break e}else if(r!==c){c=Cn(Error(i(424)),t),nl(c),t=Op(e,t,r,a);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(ut=Nn(e.firstChild),Lt=t,Ve=!0,Ma=null,Mn=!0,a=Ah(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(bo(),r===c){t=fa(e,t,a);break e}Bt(e,t,r,a)}t=t.child}return t;case 26:return ji(e,t),e===null?(a=Pg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ve||(a=t.type,e=t.pendingProps,r=Zi(ce.current).createElement(a),r[kt]=t,r[Zt]=e,Ut(r,a,e),Ot(r),t.stateNode=r):t.memoizedState=Pg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&Ve&&(r=t.stateNode=Vg(t.type,t.pendingProps,ce.current),Lt=t,Mn=!0,c=ut,Va(t.type)?(pf=c,ut=Nn(r.firstChild)):ut=c),Bt(e,t,t.pendingProps.children,a),ji(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((c=r=ut)&&(r=ZS(r,t.type,t.pendingProps,Mn),r!==null?(t.stateNode=r,Lt=t,ut=Nn(r.firstChild),Mn=!1,c=!0):c=!1),c||Ra(t)),_e(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,r=d.children,uf(c,d)?r=null:y!==null&&uf(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=su(e,t,dS,null,null,a),Rl._currentValue=c),ji(e,t),Bt(e,t,r,a),t.child;case 6:return e===null&&Ve&&((e=a=ut)&&(a=JS(a,t.pendingProps,Mn),a!==null?(t.stateNode=a,Lt=t,ut=null,e=!0):e=!1),e||Ra(t)),null;case 13:return zp(e,t,a);case 4:return me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,a):Bt(e,t,r,a),t.child;case 11:return Ep(e,t,t.type,t.pendingProps,a);case 7:return Bt(e,t,t.pendingProps,a),t.child;case 8:return Bt(e,t,t.pendingProps.children,a),t.child;case 12:return Bt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Na(t,t.type,r.value),Bt(e,t,r.children,a),t.child;case 9:return c=t.type._context,r=t.pendingProps.children,So(t),c=Ht(c),r=r(c),t.flags|=1,Bt(e,t,r,a),t.child;case 14:return Tp(e,t,t.type,t.pendingProps,a);case 15:return Cp(e,t,t.type,t.pendingProps,a);case 19:return jp(e,t,a);case 31:return xS(e,t,a);case 22:return Ap(e,t,a,t.pendingProps);case 24:return So(t),r=Ht(Et),e===null?(c=Jc(),c===null&&(c=st,d=Fc(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=a),c=d),t.memoizedState={parent:r,cache:c},eu(t),Na(t,Et,c)):((e.lanes&a)!==0&&(tu(e,t),cl(t,null,null,a),sl()),c=e.memoizedState,d=t.memoizedState,c.parent!==r?(c={parent:r,cache:r},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Na(t,Et,r)):(r=d.cache,Na(t,Et,r),r!==c.cache&&Qc(t,[Et],a,!0))),Bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function da(e){e.flags|=4}function Lu(e,t,a,r,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(sg())e.flags|=8192;else throw To=bi,Wc}else e.flags&=-16777217}function Lp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zg(t))if(sg())e.flags|=8192;else throw To=bi,Wc}function Li(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?wt():536870912,e.lanes|=t,vr|=t)}function pl(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var c=e.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags&65011712,r|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)a|=c.lanes|c.childLanes,r|=c.subtreeFlags,r|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function wS(e,t,a){var r=t.pendingProps;switch(qc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),sa(Et),de(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(rr(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pc())),ft(t),null;case 26:var c=t.type,d=t.memoizedState;return e===null?(da(t),d!==null?(ft(t),Lp(t,d)):(ft(t),Lu(t,c,null,r,a))):d?d!==e.memoizedState?(da(t),ft(t),Lp(t,d)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&da(t),ft(t),Lu(t,c,e,r,a)),null;case 27:if(Ee(t),a=ce.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&da(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ft(t),null}e=ne.current,rr(t)?ph(t):(e=Vg(c,r,a),t.stateNode=e,da(t))}return ft(t),null;case 5:if(Ee(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&da(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return ft(t),null}if(d=ne.current,rr(t))ph(t);else{var y=Zi(ce.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?y.createElement(c,{is:r.is}):y.createElement(c)}}d[kt]=t,d[Zt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(Ut(d,c,r),c){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&da(t)}}return ft(t),Lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&da(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=ce.current,rr(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,c=Lt,c!==null)switch(c.tag){case 27:case 5:r=c.memoizedProps}e[kt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||zg(e.nodeValue,a)),e||Ra(t,!0)}else e=Zi(e).createTextNode(r),e[kt]=t,t.stateNode=e}return ft(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=rr(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[kt]=t}else bo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else a=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(dn(t),t):(dn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=rr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[kt]=t}else bo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),c=!1}else c=Pc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(dn(t),t):(dn(t),null)}return dn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,c=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(c=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==c&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Li(t,t.updateQueue),ft(t),null);case 4:return de(),e===null&&of(t.stateNode.containerInfo),ft(t),null;case 10:return sa(t.type),ft(t),null;case 19:if(G(bt),r=t.memoizedState,r===null)return ft(t),null;if(c=(t.flags&128)!==0,d=r.rendering,d===null)if(c)pl(r,!1);else{if(yt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ei(e),d!==null){for(t.flags|=128,pl(r,!1),e=d.updateQueue,t.updateQueue=e,Li(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)uh(a,e),a=a.sibling;return F(bt,bt.current&1|2),Ve&&la(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>Yi&&(t.flags|=128,c=!0,pl(r,!1),t.lanes=4194304)}else{if(!c)if(e=Ei(d),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Li(t,e),pl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Ve)return ft(t),null}else 2*_t()-r.renderingStartTime>Yi&&a!==536870912&&(t.flags|=128,c=!0,pl(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,a=bt.current,F(bt,c?a&1|2:a&1),Ve&&la(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return dn(t),ru(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),a=t.updateQueue,a!==null&&Li(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&G(wo),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sa(Et),ft(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function ES(e,t){switch(qc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(Et),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(dn(t),t.alternate===null)throw Error(i(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));bo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(bt),null;case 4:return de(),null;case 10:return sa(t.type),null;case 22:case 23:return dn(t),ru(),e!==null&&G(wo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(Et),null;case 25:return null;default:return null}}function Hp(e,t){switch(qc(t),t.tag){case 3:sa(Et),de();break;case 26:case 27:case 5:Ee(t);break;case 4:de();break;case 31:t.memoizedState!==null&&dn(t);break;case 13:dn(t);break;case 19:G(bt);break;case 10:sa(t.type);break;case 22:case 23:dn(t),ru(),e!==null&&G(wo);break;case 24:sa(Et)}}function gl(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){r=void 0;var d=a.create,y=a.inst;r=d(),y.destroy=r}a=a.next}while(a!==c)}}catch(E){We(t,t.return,E)}}function La(e,t,a){try{var r=t.updateQueue,c=r!==null?r.lastEffect:null;if(c!==null){var d=c.next;r=d;do{if((r.tag&e)===e){var y=r.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,c=t;var O=a,q=E;try{q()}catch(W){We(c,O,W)}}}r=r.next}while(r!==d)}}catch(W){We(t,t.return,W)}}function Bp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mh(t,a)}catch(r){We(e,e.return,r)}}}function Up(e,t,a){a.props=_o(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){We(e,t,r)}}function yl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(c){We(e,t,c)}}function $n(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(c){We(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(c){We(e,t,c)}else a.current=null}function Gp(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(c){We(e,e.return,c)}}function Hu(e,t,a){try{var r=e.stateNode;XS(r,e.type,a,t),r[Zt]=t}catch(c){We(e,e.return,c)}}function Yp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Va(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yp(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&&Va(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 Uu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=aa));else if(r!==4&&(r===27&&Va(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uu(e,t,a),e=e.sibling;e!==null;)Uu(e,t,a),e=e.sibling}function Hi(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Va(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hi(e,t,a),e=e.sibling;e!==null;)Hi(e,t,a),e=e.sibling}function Ip(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Ut(t,r,a),t[kt]=e,t[Zt]=a}catch(d){We(e,e.return,d)}}var ma=!1,At=!1,Gu=!1,Vp=typeof WeakSet=="function"?WeakSet:Set,zt=null;function TS(e,t){if(e=e.containerInfo,sf=os,e=th(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var c=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{a.nodeType,d.nodeType}catch{a=null;break e}var y=0,E=-1,O=-1,q=0,W=0,ae=e,K=null;t:for(;;){for(var Z;ae!==a||c!==0&&ae.nodeType!==3||(E=y+c),ae!==d||r!==0&&ae.nodeType!==3||(O=y+r),ae.nodeType===3&&(y+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)K=ae,ae=Z;for(;;){if(ae===e)break t;if(K===a&&++q===c&&(E=y),K===d&&++W===r&&(O=y),(Z=ae.nextSibling)!==null)break;ae=K,K=ae.parentNode}ae=Z}a=E===-1||O===-1?null:{start:E,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(cf={focusedElem:e,selectionRange:a},os=!1,zt=t;zt!==null;)if(t=zt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,zt=e;else for(;zt!==null;){switch(t=zt,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)c=e[a],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,a=t,c=d.memoizedProps,d=d.memoizedState,r=a.stateNode;try{var he=_o(a.type,c);e=r.getSnapshotBeforeUpdate(he,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){We(a,a.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)df(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":df(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,zt=e;break}zt=t.return}}function qp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),r&4&&gl(5,a);break;case 1:if(pa(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(y){We(a,a.return,y)}else{var c=_o(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){We(a,a.return,y)}}r&64&&Bp(a),r&512&&yl(a,a.return);break;case 3:if(pa(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Mh(e,t)}catch(y){We(a,a.return,y)}}break;case 27:t===null&&r&4&&Ip(a);case 26:case 5:pa(e,a),t===null&&r&4&&Gp(a),r&512&&yl(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),r&4&&$p(e,a);break;case 13:pa(e,a),r&4&&Kp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=DS.bind(null,a),WS(e,a))));break;case 22:if(r=a.memoizedState!==null||ma,!r){t=t!==null&&t.memoizedState!==null||At,c=ma;var d=At;ma=r,(At=t)&&!d?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=c,At=d}break;case 30:break;default:pa(e,a)}}function Xp(e){var t=e.alternate;t!==null&&(e.alternate=null,Xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gc(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 dt=null,Wt=!1;function ha(e,t,a){for(a=a.child;a!==null;)Pp(e,t,a),a=a.sibling}function Pp(e,t,a){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(it,a)}catch{}switch(a.tag){case 26:At||$n(a,t),ha(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:At||$n(a,t);var r=dt,c=Wt;Va(a.type)&&(dt=a.stateNode,Wt=!1),ha(e,t,a),Al(a.stateNode),dt=r,Wt=c;break;case 5:At||$n(a,t);case 6:if(r=dt,c=Wt,dt=null,ha(e,t,a),dt=r,Wt=c,dt!==null)if(Wt)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(a.stateNode)}catch(d){We(a,t,d)}else try{dt.removeChild(a.stateNode)}catch(d){We(a,t,d)}break;case 18:dt!==null&&(Wt?(e=dt,Bg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ar(e)):Bg(dt,a.stateNode));break;case 4:r=dt,c=Wt,dt=a.stateNode.containerInfo,Wt=!0,ha(e,t,a),dt=r,Wt=c;break;case 0:case 11:case 14:case 15:La(2,a,t),At||La(4,a,t),ha(e,t,a);break;case 1:At||($n(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Up(a,t,r)),ha(e,t,a);break;case 21:ha(e,t,a);break;case 22:At=(r=At)||a.memoizedState!==null,ha(e,t,a),At=r;break;default:ha(e,t,a)}}function $p(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ar(e)}catch(a){We(t,t.return,a)}}}function Kp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ar(e)}catch(a){We(t,t.return,a)}}function CS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vp),t;default:throw Error(i(435,e.tag))}}function Bi(e,t){var a=CS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var c=jS.bind(null,e,r);r.then(c,c)}})}function en(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var c=a[r],d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 27:if(Va(E.type)){dt=E.stateNode,Wt=!1;break e}break;case 5:dt=E.stateNode,Wt=!1;break e;case 3:case 4:dt=E.stateNode.containerInfo,Wt=!0;break e}E=E.return}if(dt===null)throw Error(i(160));Pp(d,y,c),dt=null,Wt=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Qp(t,e),t=t.sibling}var Bn=null;function Qp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:en(t,e),tn(e),r&4&&(La(3,e,e.return),gl(3,e),La(5,e,e.return));break;case 1:en(t,e),tn(e),r&512&&(At||a===null||$n(a,a.return)),r&64&&ma&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var c=Bn;if(en(t,e),tn(e),r&512&&(At||a===null||$n(a,a.return)),r&4){var d=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,c=c.ownerDocument||c;t:switch(r){case"title":d=c.getElementsByTagName("title")[0],(!d||d[qr]||d[kt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(r),c.head.insertBefore(d,c.querySelector("head > title"))),Ut(d,r,a),d[kt]=e,Ot(d),r=d;break e;case"link":var y=Qg("link","href",c).get(r+(a.href||""));if(y){for(var E=0;E<y.length;E++)if(d=y[E],d.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&d.getAttribute("rel")===(a.rel==null?null:a.rel)&&d.getAttribute("title")===(a.title==null?null:a.title)&&d.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){y.splice(E,1);break t}}d=c.createElement(r),Ut(d,r,a),c.head.appendChild(d);break;case"meta":if(y=Qg("meta","content",c).get(r+(a.content||""))){for(E=0;E<y.length;E++)if(d=y[E],d.getAttribute("content")===(a.content==null?null:""+a.content)&&d.getAttribute("name")===(a.name==null?null:a.name)&&d.getAttribute("property")===(a.property==null?null:a.property)&&d.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&d.getAttribute("charset")===(a.charSet==null?null:a.charSet)){y.splice(E,1);break t}}d=c.createElement(r),Ut(d,r,a),c.head.appendChild(d);break;default:throw Error(i(468,r))}d[kt]=e,Ot(d),r=d}e.stateNode=r}else Fg(c,e.type,e.stateNode);else e.stateNode=Kg(c,r,e.memoizedProps);else d!==r?(d===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):d.count--,r===null?Fg(c,e.type,e.stateNode):Kg(c,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Hu(e,e.memoizedProps,a.memoizedProps)}break;case 27:en(t,e),tn(e),r&512&&(At||a===null||$n(a,a.return)),a!==null&&r&4&&Hu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(en(t,e),tn(e),r&512&&(At||a===null||$n(a,a.return)),e.flags&32){c=e.stateNode;try{Qo(c,"")}catch(he){We(e,e.return,he)}}r&4&&e.stateNode!=null&&(c=e.memoizedProps,Hu(e,c,a!==null?a.memoizedProps:c)),r&1024&&(Gu=!0);break;case 6:if(en(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(he){We(e,e.return,he)}}break;case 3:if(es=null,c=Bn,Bn=Ji(t.containerInfo),en(t,e),Bn=c,tn(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Ar(t.containerInfo)}catch(he){We(e,e.return,he)}Gu&&(Gu=!1,Fp(e));break;case 4:r=Bn,Bn=Ji(e.stateNode.containerInfo),en(t,e),tn(e),Bn=r;break;case 12:en(t,e),tn(e);break;case 31:en(t,e),tn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bi(e,r)));break;case 13:en(t,e),tn(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Gi=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bi(e,r)));break;case 22:c=e.memoizedState!==null;var O=a!==null&&a.memoizedState!==null,q=ma,W=At;if(ma=q||c,At=W||O,en(t,e),At=W,ma=q,tn(e),r&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(a===null||O||ma||At||Mo(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){O=a=t;try{if(d=O.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{E=O.stateNode;var ae=O.memoizedProps.style,K=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(he){We(O,O.return,he)}}}else if(t.tag===6){if(a===null){O=t;try{O.stateNode.nodeValue=c?"":O.memoizedProps}catch(he){We(O,O.return,he)}}}else if(t.tag===18){if(a===null){O=t;try{var Z=O.stateNode;c?Ug(Z,!0):Ug(O.stateNode,!1)}catch(he){We(O,O.return,he)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Bi(e,a))));break;case 19:en(t,e),tn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Bi(e,r)));break;case 30:break;case 21:break;default:en(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Yp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var c=a.stateNode,d=Bu(e);Hi(e,d,c);break;case 5:var y=a.stateNode;a.flags&32&&(Qo(y,""),a.flags&=-33);var E=Bu(e);Hi(e,E,y);break;case 3:case 4:var O=a.stateNode.containerInfo,q=Bu(e);Uu(e,q,O);break;default:throw Error(i(161))}}catch(W){We(e,e.return,W)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qp(e,t.alternate,t),t=t.sibling}function Mo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:La(4,t,t.return),Mo(t);break;case 1:$n(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Up(t,t.return,a),Mo(t);break;case 27:Al(t.stateNode);case 26:case 5:$n(t,t.return),Mo(t);break;case 22:t.memoizedState===null&&Mo(t);break;case 30:Mo(t);break;default:Mo(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:ga(c,d,a),gl(4,d);break;case 1:if(ga(c,d,a),r=d,c=r.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(q){We(r,r.return,q)}if(r=d,c=r.updateQueue,c!==null){var E=r.stateNode;try{var O=c.shared.hiddenCallbacks;if(O!==null)for(c.shared.hiddenCallbacks=null,c=0;c<O.length;c++)_h(O[c],E)}catch(q){We(r,r.return,q)}}a&&y&64&&Bp(d),yl(d,d.return);break;case 27:Ip(d);case 26:case 5:ga(c,d,a),a&&r===null&&y&4&&Gp(d),yl(d,d.return);break;case 12:ga(c,d,a);break;case 31:ga(c,d,a),a&&y&4&&$p(c,d);break;case 13:ga(c,d,a),a&&y&4&&Kp(c,d);break;case 22:d.memoizedState===null&&ga(c,d,a),yl(d,d.return);break;case 30:break;default:ga(c,d,a)}t=t.sibling}}function Yu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&al(a))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&al(e))}function Un(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Zp(e,t,a,r),t=t.sibling}function Zp(e,t,a,r){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Un(e,t,a,r),c&2048&&gl(9,t);break;case 1:Un(e,t,a,r);break;case 3:Un(e,t,a,r),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&al(e)));break;case 12:if(c&2048){Un(e,t,a,r),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,E=d.onPostCommit;typeof E=="function"&&E(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){We(t,t.return,O)}}else Un(e,t,a,r);break;case 31:Un(e,t,a,r);break;case 13:Un(e,t,a,r);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?Un(e,t,a,r):vl(e,t):d._visibility&2?Un(e,t,a,r):(d._visibility|=2,pr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),c&2048&&Yu(y,t);break;case 24:Un(e,t,a,r),c&2048&&Iu(t.alternate,t);break;default:Un(e,t,a,r)}}function pr(e,t,a,r,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,E=a,O=r,q=y.flags;switch(y.tag){case 0:case 11:case 15:pr(d,y,E,O,c),gl(8,y);break;case 23:break;case 22:var W=y.stateNode;y.memoizedState!==null?W._visibility&2?pr(d,y,E,O,c):vl(d,y):(W._visibility|=2,pr(d,y,E,O,c)),c&&q&2048&&Yu(y.alternate,y);break;case 24:pr(d,y,E,O,c),c&&q&2048&&Iu(y.alternate,y);break;default:pr(d,y,E,O,c)}t=t.sibling}}function vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,c=r.flags;switch(r.tag){case 22:vl(a,r),c&2048&&Yu(r.alternate,r);break;case 24:vl(a,r),c&2048&&Iu(r.alternate,r);break;default:vl(a,r)}t=t.sibling}}var bl=8192;function gr(e,t,a){if(e.subtreeFlags&bl)for(e=e.child;e!==null;)Jp(e,t,a),e=e.sibling}function Jp(e,t,a){switch(e.tag){case 26:gr(e,t,a),e.flags&bl&&e.memoizedState!==null&&fw(a,Bn,e.memoizedState,e.memoizedProps);break;case 5:gr(e,t,a);break;case 3:case 4:var r=Bn;Bn=Ji(e.stateNode.containerInfo),gr(e,t,a),Bn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=bl,bl=16777216,gr(e,t,a),bl=r):gr(e,t,a));break;default:gr(e,t,a)}}function Wp(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 xl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];zt=r,tg(r,e)}Wp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)eg(e),e=e.sibling}function eg(e){switch(e.tag){case 0:case 11:case 15:xl(e),e.flags&2048&&La(9,e,e.return);break;case 3:xl(e);break;case 12:xl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ui(e)):xl(e);break;default:xl(e)}}function Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];zt=r,tg(r,e)}Wp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:La(8,t,t.return),Ui(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ui(t));break;default:Ui(t)}e=e.sibling}}function tg(e,t){for(;zt!==null;){var a=zt;switch(a.tag){case 0:case 11:case 15:La(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:al(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,zt=r;else e:for(a=e;zt!==null;){r=zt;var c=r.sibling,d=r.return;if(Xp(r),r===a){zt=null;break e}if(c!==null){c.return=d,zt=c;break e}zt=d}}}var AS={getCacheForType:function(e){var t=Ht(Et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ht(Et).controller.signal}},_S=typeof WeakMap=="function"?WeakMap:Map,Fe=0,st=null,He=null,Ge=0,Je=0,mn=null,Ha=!1,yr=!1,Vu=!1,ya=0,yt=0,Ba=0,Ro=0,qu=0,hn=0,vr=0,Sl=null,nn=null,Xu=!1,Gi=0,ng=0,Yi=1/0,Ii=null,Ua=null,Mt=0,Ga=null,br=null,va=0,Pu=0,$u=null,ag=null,wl=0,Ku=null;function pn(){return(Fe&2)!==0&&Ge!==0?Ge&-Ge:M.T!==null?ef():hc()}function og(){if(hn===0)if((Ge&536870912)===0||Ve){var e=St;St<<=1,(St&3932160)===0&&(St=262144),hn=e}else hn=536870912;return e=fn.current,e!==null&&(e.flags|=32),hn}function an(e,t,a){(e===st&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(xr(e,0),Ya(e,Ge,hn,!1)),pt(e,a),((Fe&2)===0||e!==st)&&(e===st&&((Fe&2)===0&&(Ro|=a),yt===4&&Ya(e,Ge,hn,!1)),Kn(e))}function rg(e,t,a){if((Fe&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nt(e,t),c=r?NS(e,t):Fu(e,t,!0),d=r;do{if(c===0){yr&&!r&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,d&&!MS(a)){c=Fu(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var E=e;c=Sl;var O=E.current.memoizedState.isDehydrated;if(O&&(xr(E,y).flags|=256),y=Fu(E,y,!1),y!==2){if(Vu&&!O){E.errorRecoveryDisabledLanes|=d,Ro|=d,c=4;break e}d=nn,nn=c,d!==null&&(nn===null?nn=d:nn.push.apply(nn,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){xr(e,0),Ya(e,t,0,!0);break}e:{switch(r=e,d=c,d){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Ya(r,t,hn,!Ha);break e;case 2:nn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=Gi+300-_t(),10<c)){if(Ya(r,t,hn,!Ha),Ae(r,0,!0)!==0)break e;va=t,r.timeoutHandle=Lg(lg.bind(null,r,a,nn,Ii,Xu,t,hn,Ro,vr,Ha,d,"Throttled",-0,0),c);break e}lg(r,a,nn,Ii,Xu,t,hn,Ro,vr,Ha,d,null,-0,0)}}break}while(!0);Kn(e)}function lg(e,t,a,r,c,d,y,E,O,q,W,ae,K,Z){if(e.timeoutHandle=-1,ae=t.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:aa},Jp(t,d,ae);var he=(d&62914560)===d?Gi-_t():(d&4194048)===d?ng-_t():0;if(he=dw(ae,he),he!==null){va=d,e.cancelPendingCommit=he(hg.bind(null,e,t,d,a,r,c,y,E,O,W,ae,null,K,Z)),Ya(e,d,y,!q);return}}hg(e,t,d,a,r,c,y,E,O)}function MS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var c=a[r],d=c.getSnapshot;c=c.value;try{if(!cn(d(),c))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ya(e,t,a,r){t&=~qu,t&=~Ro,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var c=t;0<c;){var d=31-tt(c),y=1<<d;r[d]=-1,c&=~y}a!==0&&fo(e,a,t)}function Vi(){return(Fe&6)===0?(El(0),!1):!0}function Qu(){if(He!==null){if(Je===0)var e=He.return;else e=He,ia=xo=null,fu(e),ur=null,rl=0,e=He;for(;e!==null;)Hp(e.alternate,e),e=e.return;He=null}}function xr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,KS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),va=0,Qu(),st=e,He=a=ra(e.current,null),Ge=t,Je=0,mn=null,Ha=!1,yr=nt(e,t),Vu=!1,vr=hn=qu=Ro=Ba=yt=0,nn=Sl=null,Xu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var c=31-tt(r),d=1<<c;t|=e[c],r&=~d}return ya=t,ui(),a}function ig(e,t){ze=null,M.H=ml,t===cr||t===vi?(t=Eh(),Je=3):t===Wc?(t=Eh(),Je=4):Je=t===_u?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mn=t,He===null&&(yt=1,zi(e,Cn(t,e.current)))}function sg(){var e=fn.current;return e===null?!0:(Ge&4194048)===Ge?Rn===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===Rn:!1}function cg(){var e=M.H;return M.H=ml,e===null?ml:e}function ug(){var e=M.A;return M.A=AS,e}function qi(){yt=4,Ha||(Ge&4194048)!==Ge&&fn.current!==null||(yr=!0),(Ba&134217727)===0&&(Ro&134217727)===0||st===null||Ya(st,Ge,hn,!1)}function Fu(e,t,a){var r=Fe;Fe|=2;var c=cg(),d=ug();(st!==e||Ge!==t)&&(Ii=null,xr(e,t)),t=!1;var y=yt;e:do try{if(Je!==0&&He!==null){var E=He,O=mn;switch(Je){case 8:Qu(),y=6;break e;case 3:case 2:case 9:case 6:fn.current===null&&(t=!0);var q=Je;if(Je=0,mn=null,Sr(e,E,O,q),a&&yr){y=0;break e}break;default:q=Je,Je=0,mn=null,Sr(e,E,O,q)}}RS(),y=yt;break}catch(W){ig(e,W)}while(!0);return t&&e.shellSuspendCounter++,ia=xo=null,Fe=r,M.H=c,M.A=d,He===null&&(st=null,Ge=0,ui()),y}function RS(){for(;He!==null;)fg(He)}function NS(e,t){var a=Fe;Fe|=2;var r=cg(),c=ug();st!==e||Ge!==t?(Ii=null,Yi=_t()+500,xr(e,t)):yr=nt(e,t);e:do try{if(Je!==0&&He!==null){t=He;var d=mn;t:switch(Je){case 1:Je=0,mn=null,Sr(e,t,d,1);break;case 2:case 9:if(Sh(d)){Je=0,mn=null,dg(t);break}t=function(){Je!==2&&Je!==9||st!==e||(Je=7),Kn(e)},d.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:Sh(d)?(Je=0,mn=null,dg(t)):(Je=0,mn=null,Sr(e,t,d,7));break;case 5:var y=null;switch(He.tag){case 26:y=He.memoizedState;case 5:case 27:var E=He;if(y?Zg(y):E.stateNode.complete){Je=0,mn=null;var O=E.sibling;if(O!==null)He=O;else{var q=E.return;q!==null?(He=q,Xi(q)):He=null}break t}}Je=0,mn=null,Sr(e,t,d,5);break;case 6:Je=0,mn=null,Sr(e,t,d,6);break;case 8:Qu(),yt=6;break e;default:throw Error(i(462))}}OS();break}catch(W){ig(e,W)}while(!0);return ia=xo=null,M.H=r,M.A=c,Fe=a,He!==null?0:(st=null,Ge=0,ui(),yt)}function OS(){for(;He!==null&&!ct();)fg(He)}function fg(e){var t=kp(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Xi(e):He=t}function dg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Rp(a,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Rp(a,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:fu(t);default:Hp(a,t),t=He=uh(t,ya),t=kp(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?Xi(e):He=t}function Sr(e,t,a,r){ia=xo=null,fu(t),ur=null,rl=0;var c=t.return;try{if(bS(e,c,t,a,Ge)){yt=1,zi(e,Cn(a,e.current)),He=null;return}}catch(d){if(c!==null)throw He=c,d;yt=1,zi(e,Cn(a,e.current)),He=null;return}t.flags&32768?(Ve||r===1?e=!0:yr||(Ge&536870912)!==0?e=!1:(Ha=e=!0,(r===2||r===9||r===3||r===6)&&(r=fn.current,r!==null&&r.tag===13&&(r.flags|=16384))),mg(t,e)):Xi(t)}function Xi(e){var t=e;do{if((t.flags&32768)!==0){mg(t,Ha);return}e=t.return;var a=wS(t.alternate,t,ya);if(a!==null){He=a;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);yt===0&&(yt=5)}function mg(e,t){do{var a=ES(e.alternate,e);if(a!==null){a.flags&=32767,He=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){He=e;return}He=e=a}while(e!==null);yt=6,He=null}function hg(e,t,a,r,c,d,y,E,O){e.cancelPendingCommit=null;do Pi();while(Mt!==0);if((Fe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(d=t.lanes|t.childLanes,d|=Bc,Kt(e,a,d,y,E,O),e===st&&(He=st=null,Ge=0),br=t,Ga=e,va=a,Pu=d,$u=c,ag=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kS(ye,function(){return bg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=M.T,M.T=null,c=Y.p,Y.p=2,y=Fe,Fe|=4;try{TS(e,t,a)}finally{Fe=y,Y.p=c,M.T=r}}Mt=1,pg(),gg(),yg()}}function pg(){if(Mt===1){Mt=0;var e=Ga,t=br,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var r=Y.p;Y.p=2;var c=Fe;Fe|=4;try{Qp(t,e);var d=cf,y=th(e.containerInfo),E=d.focusedElem,O=d.selectionRange;if(y!==E&&E&&E.ownerDocument&&eh(E.ownerDocument.documentElement,E)){if(O!==null&&Dc(E)){var q=O.start,W=O.end;if(W===void 0&&(W=q),"selectionStart"in E)E.selectionStart=q,E.selectionEnd=Math.min(W,E.value.length);else{var ae=E.ownerDocument||document,K=ae&&ae.defaultView||window;if(K.getSelection){var Z=K.getSelection(),he=E.textContent.length,Ce=Math.min(O.start,he),rt=O.end===void 0?Ce:Math.min(O.end,he);!Z.extend&&Ce>rt&&(y=rt,rt=Ce,Ce=y);var U=Wm(E,Ce),k=Wm(E,rt);if(U&&k&&(Z.rangeCount!==1||Z.anchorNode!==U.node||Z.anchorOffset!==U.offset||Z.focusNode!==k.node||Z.focusOffset!==k.offset)){var V=ae.createRange();V.setStart(U.node,U.offset),Z.removeAllRanges(),Ce>rt?(Z.addRange(V),Z.extend(k.node,k.offset)):(V.setEnd(k.node,k.offset),Z.addRange(V))}}}}for(ae=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var te=ae[E];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}os=!!sf,cf=sf=null}finally{Fe=c,Y.p=r,M.T=a}}e.current=t,Mt=2}}function gg(){if(Mt===2){Mt=0;var e=Ga,t=br,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var r=Y.p;Y.p=2;var c=Fe;Fe|=4;try{qp(e,t.alternate,t)}finally{Fe=c,Y.p=r,M.T=a}}Mt=3}}function yg(){if(Mt===4||Mt===3){Mt=0,bn();var e=Ga,t=br,a=va,r=ag;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Mt=5:(Mt=0,br=Ga=null,vg(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ua=null),Ln(a),t=t.stateNode,Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(it,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=M.T,c=Y.p,Y.p=2,M.T=null;try{for(var d=e.onRecoverableError,y=0;y<r.length;y++){var E=r[y];d(E.value,{componentStack:E.stack})}}finally{M.T=t,Y.p=c}}(va&3)!==0&&Pi(),Kn(e),c=e.pendingLanes,(a&261930)!==0&&(c&42)!==0?e===Ku?wl++:(wl=0,Ku=e):wl=0,El(0)}}function vg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,al(t)))}function Pi(){return pg(),gg(),yg(),bg()}function bg(){if(Mt!==5)return!1;var e=Ga,t=Pu;Pu=0;var a=Ln(va),r=M.T,c=Y.p;try{Y.p=32>a?32:a,M.T=null,a=$u,$u=null;var d=Ga,y=va;if(Mt=0,br=Ga=null,va=0,(Fe&6)!==0)throw Error(i(331));var E=Fe;if(Fe|=4,eg(d.current),Zp(d,d.current,y,a),Fe=E,El(0,!1),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(it,d)}catch{}return!0}finally{Y.p=c,M.T=r,vg(e,t)}}function xg(e,t,a){t=Cn(a,t),t=Au(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(pt(e,2),Kn(e))}function We(e,t,a){if(e.tag===3)xg(e,e,a);else for(;t!==null;){if(t.tag===3){xg(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ua===null||!Ua.has(r))){e=Cn(a,e),a=Sp(2),r=Da(t,a,2),r!==null&&(wp(a,r,t,e),pt(r,2),Kn(r));break}}t=t.return}}function Zu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new _S;var c=new Set;r.set(t,c)}else c=r.get(t),c===void 0&&(c=new Set,r.set(t,c));c.has(a)||(Vu=!0,c.add(a),e=zS.bind(null,e,t,a),t.then(e,e))}function zS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,st===e&&(Ge&a)===a&&(yt===4||yt===3&&(Ge&62914560)===Ge&&300>_t()-Gi?(Fe&2)===0&&xr(e,0):qu|=a,vr===Ge&&(vr=0)),Kn(e)}function Sg(e,t){t===0&&(t=wt()),e=yo(e,t),e!==null&&(pt(e,t),Kn(e))}function DS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Sg(e,a)}function jS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,c=e.memoizedState;c!==null&&(a=c.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Sg(e,a)}function kS(e,t){return ln(e,t)}var $i=null,wr=null,Ju=!1,Ki=!1,Wu=!1,Ia=0;function Kn(e){e!==wr&&e.next===null&&(wr===null?$i=wr=e:wr=wr.next=e),Ki=!0,Ju||(Ju=!0,HS())}function El(e,t){if(!Wu&&Ki){Wu=!0;do for(var a=!1,r=$i;r!==null;){if(e!==0){var c=r.pendingLanes;if(c===0)var d=0;else{var y=r.suspendedLanes,E=r.pingedLanes;d=(1<<31-tt(42|e)+1)-1,d&=c&~(y&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(a=!0,Cg(r,d))}else d=Ge,d=Ae(r,r===st?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||nt(r,d)||(a=!0,Cg(r,d));r=r.next}while(a);Wu=!1}}function LS(){wg()}function wg(){Ki=Ju=!1;var e=0;Ia!==0&&$S()&&(e=Ia);for(var t=_t(),a=null,r=$i;r!==null;){var c=r.next,d=Eg(r,t);d===0?(r.next=null,a===null?$i=c:a.next=c,c===null&&(wr=a)):(a=r,(e!==0||(d&3)!==0)&&(Ki=!0)),r=c}Mt!==0&&Mt!==5||El(e),Ia!==0&&(Ia=0)}function Eg(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-tt(d),E=1<<y,O=c[y];O===-1?((E&a)===0||(E&r)!==0)&&(c[y]=ht(E,t)):O<=t&&(e.expiredLanes|=E),d&=~E}if(t=st,a=Ge,a=Ae(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&sn(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&sn(r),Ln(a)){case 2:case 8:a=Te;break;case 32:a=ye;break;case 268435456:a=Ue;break;default:a=ye}return r=Tg.bind(null,e),a=ln(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&sn(r),e.callbackPriority=2,e.callbackNode=null,2}function Tg(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Pi()&&e.callbackNode!==a)return null;var r=Ge;return r=Ae(e,e===st?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(rg(e,r,t),Eg(e,_t()),e.callbackNode!=null&&e.callbackNode===a?Tg.bind(null,e):null)}function Cg(e,t){if(Pi())return null;rg(e,t,!0)}function HS(){QS(function(){(Fe&6)!==0?ln(ue,LS):wg()})}function ef(){if(Ia===0){var e=ir;e===0&&(e=kn,kn<<=1,(kn&261888)===0&&(kn=256)),Ia=e}return Ia}function Ag(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ni(""+e)}function _g(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function BS(e,t,a,r,c){if(t==="submit"&&a&&a.stateNode===c){var d=Ag((c[Zt]||null).action),y=r.submitter;y&&(t=(t=y[Zt]||null)?Ag(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var E=new li("action","action",null,r,c);e.push({event:E,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ia!==0){var O=y?_g(c,y):new FormData(c);xu(a,{pending:!0,data:O,method:c.method,action:d},null,O)}}else typeof d=="function"&&(E.preventDefault(),O=y?_g(c,y):new FormData(c),xu(a,{pending:!0,data:O,method:c.method,action:d},d,O))},currentTarget:c}]})}}for(var tf=0;tf<Hc.length;tf++){var nf=Hc[tf],US=nf.toLowerCase(),GS=nf[0].toUpperCase()+nf.slice(1);Hn(US,"on"+GS)}Hn(oh,"onAnimationEnd"),Hn(rh,"onAnimationIteration"),Hn(lh,"onAnimationStart"),Hn("dblclick","onDoubleClick"),Hn("focusin","onFocus"),Hn("focusout","onBlur"),Hn(nS,"onTransitionRun"),Hn(aS,"onTransitionStart"),Hn(oS,"onTransitionCancel"),Hn(ih,"onTransitionEnd"),$o("onMouseEnter",["mouseout","mouseover"]),$o("onMouseLeave",["mouseout","mouseover"]),$o("onPointerEnter",["pointerout","pointerover"]),$o("onPointerLeave",["pointerout","pointerover"]),mo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mo("onBeforeInput",["compositionend","keypress","textInput","paste"]),mo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tl="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(" "),YS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tl));function Mg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],c=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var y=r.length-1;0<=y;y--){var E=r[y],O=E.instance,q=E.currentTarget;if(E=E.listener,O!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=q;try{d(c)}catch(W){ci(W)}c.currentTarget=null,d=O}else for(y=0;y<r.length;y++){if(E=r[y],O=E.instance,q=E.currentTarget,E=E.listener,O!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=q;try{d(c)}catch(W){ci(W)}c.currentTarget=null,d=O}}}}function Be(e,t){var a=t[pc];a===void 0&&(a=t[pc]=new Set);var r=e+"__bubble";a.has(r)||(Rg(t,e,2,!1),a.add(r))}function af(e,t,a){var r=0;t&&(r|=4),Rg(a,e,r,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function of(e){if(!e[Qi]){e[Qi]=!0,wm.forEach(function(a){a!=="selectionchange"&&(YS.has(a)||af(a,!1,e),af(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,af("selectionchange",!1,t))}}function Rg(e,t,a,r){switch(oy(t)){case 2:var c=pw;break;case 8:c=gw;break;default:c=xf}a=c.bind(null,t,a,e),c=void 0,!Tc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),r?c!==void 0?e.addEventListener(t,a,{capture:!0,passive:c}):e.addEventListener(t,a,!0):c!==void 0?e.addEventListener(t,a,{passive:c}):e.addEventListener(t,a,!1)}function rf(e,t,a,r,c){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var E=r.stateNode.containerInfo;if(E===c)break;if(y===4)for(y=r.return;y!==null;){var O=y.tag;if((O===3||O===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;E!==null;){if(y=qo(E),y===null)return;if(O=y.tag,O===5||O===6||O===26||O===27){r=d=y;continue e}E=E.parentNode}}r=r.return}jm(function(){var q=d,W=wc(a),ae=[];e:{var K=sh.get(e);if(K!==void 0){var Z=li,he=e;switch(e){case"keypress":if(oi(a)===0)break e;case"keydown":case"keyup":Z=j1;break;case"focusin":he="focus",Z=Mc;break;case"focusout":he="blur",Z=Mc;break;case"beforeblur":case"afterblur":Z=Mc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Hm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=w1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=H1;break;case oh:case rh:case lh:Z=C1;break;case ih:Z=U1;break;case"scroll":case"scrollend":Z=x1;break;case"wheel":Z=Y1;break;case"copy":case"cut":case"paste":Z=_1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Um;break;case"toggle":case"beforetoggle":Z=V1}var Ce=(t&4)!==0,rt=!Ce&&(e==="scroll"||e==="scrollend"),U=Ce?K!==null?K+"Capture":null:K;Ce=[];for(var k=q,V;k!==null;){var te=k;if(V=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||V===null||U===null||(te=Pr(k,U),te!=null&&Ce.push(Cl(k,te,V))),rt)break;k=k.return}0<Ce.length&&(K=new Z(K,he,null,a,W),ae.push({event:K,listeners:Ce}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",Z=e==="mouseout"||e==="pointerout",K&&a!==Sc&&(he=a.relatedTarget||a.fromElement)&&(qo(he)||he[Vo]))break e;if((Z||K)&&(K=W.window===W?W:(K=W.ownerDocument)?K.defaultView||K.parentWindow:window,Z?(he=a.relatedTarget||a.toElement,Z=q,he=he?qo(he):null,he!==null&&(rt=u(he),Ce=he.tag,he!==rt||Ce!==5&&Ce!==27&&Ce!==6)&&(he=null)):(Z=null,he=q),Z!==he)){if(Ce=Hm,te="onMouseLeave",U="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Um,te="onPointerLeave",U="onPointerEnter",k="pointer"),rt=Z==null?K:Xr(Z),V=he==null?K:Xr(he),K=new Ce(te,k+"leave",Z,a,W),K.target=rt,K.relatedTarget=V,te=null,qo(W)===q&&(Ce=new Ce(U,k+"enter",he,a,W),Ce.target=V,Ce.relatedTarget=rt,te=Ce),rt=te,Z&&he)t:{for(Ce=IS,U=Z,k=he,V=0,te=U;te;te=Ce(te))V++;te=0;for(var Se=k;Se;Se=Ce(Se))te++;for(;0<V-te;)U=Ce(U),V--;for(;0<te-V;)k=Ce(k),te--;for(;V--;){if(U===k||k!==null&&U===k.alternate){Ce=U;break t}U=Ce(U),k=Ce(k)}Ce=null}else Ce=null;Z!==null&&Ng(ae,K,Z,Ce,!1),he!==null&&rt!==null&&Ng(ae,rt,he,Ce,!0)}}e:{if(K=q?Xr(q):window,Z=K.nodeName&&K.nodeName.toLowerCase(),Z==="select"||Z==="input"&&K.type==="file")var Xe=$m;else if(Xm(K))if(Km)Xe=W1;else{Xe=Z1;var xe=F1}else Z=K.nodeName,!Z||Z.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?q&&xc(q.elementType)&&(Xe=$m):Xe=J1;if(Xe&&(Xe=Xe(e,q))){Pm(ae,Xe,a,W);break e}xe&&xe(e,K,q),e==="focusout"&&q&&K.type==="number"&&q.memoizedProps.value!=null&&bc(K,"number",K.value)}switch(xe=q?Xr(q):window,e){case"focusin":(Xm(xe)||xe.contentEditable==="true")&&(Wo=xe,jc=q,el=null);break;case"focusout":el=jc=Wo=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,nh(ae,a,W);break;case"selectionchange":if(tS)break;case"keydown":case"keyup":nh(ae,a,W)}var De;if(Nc)e:{switch(e){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else Jo?Vm(e,a)&&(Ye="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Ye="onCompositionStart");Ye&&(Gm&&a.locale!=="ko"&&(Jo||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&Jo&&(De=km()):(Aa=W,Cc="value"in Aa?Aa.value:Aa.textContent,Jo=!0)),xe=Fi(q,Ye),0<xe.length&&(Ye=new Bm(Ye,e,null,a,W),ae.push({event:Ye,listeners:xe}),De?Ye.data=De:(De=qm(a),De!==null&&(Ye.data=De)))),(De=X1?P1(e,a):$1(e,a))&&(Ye=Fi(q,"onBeforeInput"),0<Ye.length&&(xe=new Bm("onBeforeInput","beforeinput",null,a,W),ae.push({event:xe,listeners:Ye}),xe.data=De)),BS(ae,e,q,a,W)}Mg(ae,t)})}function Cl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Fi(e,t){for(var a=t+"Capture",r=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Pr(e,a),c!=null&&r.unshift(Cl(e,c,d)),c=Pr(e,t),c!=null&&r.push(Cl(e,c,d))),e.tag===3)return r;e=e.return}return[]}function IS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ng(e,t,a,r,c){for(var d=t._reactName,y=[];a!==null&&a!==r;){var E=a,O=E.alternate,q=E.stateNode;if(E=E.tag,O!==null&&O===r)break;E!==5&&E!==26&&E!==27||q===null||(O=q,c?(q=Pr(a,d),q!=null&&y.unshift(Cl(a,q,O))):c||(q=Pr(a,d),q!=null&&y.push(Cl(a,q,O)))),a=a.return}y.length!==0&&e.push({event:t,listeners:y})}var VS=/\r\n?/g,qS=/\u0000|\uFFFD/g;function Og(e){return(typeof e=="string"?e:""+e).replace(VS,`
|
|
49
|
+
`).replace(qS,"")}function zg(e,t){return t=Og(t),Og(e)===t}function ot(e,t,a,r,c,d){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Qo(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Qo(e,""+r);break;case"className":ei(e,"class",r);break;case"tabIndex":ei(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ei(e,a,r);break;case"style":zm(e,r,d);break;case"data":if(t!=="object"){ei(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ni(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"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 d=="function"&&(a==="formAction"?(t!=="input"&&ot(e,t,"name",c.name,c,null),ot(e,t,"formEncType",c.formEncType,c,null),ot(e,t,"formMethod",c.formMethod,c,null),ot(e,t,"formTarget",c.formTarget,c,null)):(ot(e,t,"encType",c.encType,c,null),ot(e,t,"method",c.method,c,null),ot(e,t,"target",c.target,c,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ni(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=aa);break;case"onScroll":r!=null&&Be("scroll",e);break;case"onScrollEnd":r!=null&&Be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=ni(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Be("beforetoggle",e),Be("toggle",e),Wl(e,"popover",r);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Wl(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=v1.get(a)||a,Wl(e,a,r))}}function lf(e,t,a,r,c,d){switch(a){case"style":zm(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Qo(e,r):(typeof r=="number"||typeof r=="bigint")&&Qo(e,""+r);break;case"onScroll":r!=null&&Be("scroll",e);break;case"onScrollEnd":r!=null&&Be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Em.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(c=a.endsWith("Capture"),t=a.slice(2,c?a.length-7:void 0),d=e[Zt]||null,d=d!=null?d[a]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof r=="function")){typeof d!="function"&&d!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,c);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Wl(e,a,r)}}}function Ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",e),Be("load",e);var r=!1,c=!1,d;for(d in a)if(a.hasOwnProperty(d)){var y=a[d];if(y!=null)switch(d){case"src":r=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ot(e,t,d,y,a,null)}}c&&ot(e,t,"srcSet",a.srcSet,a,null),r&&ot(e,t,"src",a.src,a,null);return;case"input":Be("invalid",e);var E=d=y=c=null,O=null,q=null;for(r in a)if(a.hasOwnProperty(r)){var W=a[r];if(W!=null)switch(r){case"name":c=W;break;case"type":y=W;break;case"checked":O=W;break;case"defaultChecked":q=W;break;case"value":d=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,t));break;default:ot(e,t,r,W,a,null)}}Mm(e,d,E,O,q,y,c,!1);return;case"select":Be("invalid",e),r=y=d=null;for(c in a)if(a.hasOwnProperty(c)&&(E=a[c],E!=null))switch(c){case"value":d=E;break;case"defaultValue":y=E;break;case"multiple":r=E;default:ot(e,t,c,E,a,null)}t=d,a=y,e.multiple=!!r,t!=null?Ko(e,!!r,t,!1):a!=null&&Ko(e,!!r,a,!0);return;case"textarea":Be("invalid",e),d=c=r=null;for(y in a)if(a.hasOwnProperty(y)&&(E=a[y],E!=null))switch(y){case"value":r=E;break;case"defaultValue":c=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(i(91));break;default:ot(e,t,y,E,a,null)}Nm(e,r,c,d);return;case"option":for(O in a)if(a.hasOwnProperty(O)&&(r=a[O],r!=null))switch(O){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:ot(e,t,O,r,a,null)}return;case"dialog":Be("beforetoggle",e),Be("toggle",e),Be("cancel",e),Be("close",e);break;case"iframe":case"object":Be("load",e);break;case"video":case"audio":for(r=0;r<Tl.length;r++)Be(Tl[r],e);break;case"image":Be("error",e),Be("load",e);break;case"details":Be("toggle",e);break;case"embed":case"source":case"link":Be("error",e),Be("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(q in a)if(a.hasOwnProperty(q)&&(r=a[q],r!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ot(e,t,q,r,a,null)}return;default:if(xc(t)){for(W in a)a.hasOwnProperty(W)&&(r=a[W],r!==void 0&&lf(e,t,W,r,a,void 0));return}}for(E in a)a.hasOwnProperty(E)&&(r=a[E],r!=null&&ot(e,t,E,r,a,null))}function XS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,E=null,O=null,q=null,W=null;for(Z in a){var ae=a[Z];if(a.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":O=ae;default:r.hasOwnProperty(Z)||ot(e,t,Z,null,r,ae)}}for(var K in r){var Z=r[K];if(ae=a[K],r.hasOwnProperty(K)&&(Z!=null||ae!=null))switch(K){case"type":d=Z;break;case"name":c=Z;break;case"checked":q=Z;break;case"defaultChecked":W=Z;break;case"value":y=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Z!==ae&&ot(e,t,K,Z,r,ae)}}vc(e,y,E,O,q,W,d,c);return;case"select":Z=y=E=K=null;for(d in a)if(O=a[d],a.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":Z=O;default:r.hasOwnProperty(d)||ot(e,t,d,null,r,O)}for(c in r)if(d=r[c],O=a[c],r.hasOwnProperty(c)&&(d!=null||O!=null))switch(c){case"value":K=d;break;case"defaultValue":E=d;break;case"multiple":y=d;default:d!==O&&ot(e,t,c,d,r,O)}t=E,a=y,r=Z,K!=null?Ko(e,!!a,K,!1):!!r!=!!a&&(t!=null?Ko(e,!!a,t,!0):Ko(e,!!a,a?[]:"",!1));return;case"textarea":Z=K=null;for(E in a)if(c=a[E],a.hasOwnProperty(E)&&c!=null&&!r.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ot(e,t,E,null,r,c)}for(y in r)if(c=r[y],d=a[y],r.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":K=c;break;case"defaultValue":Z=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==d&&ot(e,t,y,c,r,d)}Rm(e,K,Z);return;case"option":for(var he in a)if(K=a[he],a.hasOwnProperty(he)&&K!=null&&!r.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:ot(e,t,he,null,r,K)}for(O in r)if(K=r[O],Z=a[O],r.hasOwnProperty(O)&&K!==Z&&(K!=null||Z!=null))switch(O){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:ot(e,t,O,K,r,Z)}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 Ce in a)K=a[Ce],a.hasOwnProperty(Ce)&&K!=null&&!r.hasOwnProperty(Ce)&&ot(e,t,Ce,null,r,K);for(q in r)if(K=r[q],Z=a[q],r.hasOwnProperty(q)&&K!==Z&&(K!=null||Z!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:ot(e,t,q,K,r,Z)}return;default:if(xc(t)){for(var rt in a)K=a[rt],a.hasOwnProperty(rt)&&K!==void 0&&!r.hasOwnProperty(rt)&&lf(e,t,rt,void 0,r,K);for(W in r)K=r[W],Z=a[W],!r.hasOwnProperty(W)||K===Z||K===void 0&&Z===void 0||lf(e,t,W,K,r,Z);return}}for(var U in a)K=a[U],a.hasOwnProperty(U)&&K!=null&&!r.hasOwnProperty(U)&&ot(e,t,U,null,r,K);for(ae in r)K=r[ae],Z=a[ae],!r.hasOwnProperty(ae)||K===Z||K==null&&Z==null||ot(e,t,ae,K,r,Z)}function Dg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var c=a[r],d=c.transferSize,y=c.initiatorType,E=c.duration;if(d&&E&&Dg(y)){for(y=0,E=c.responseEnd,r+=1;r<a.length;r++){var O=a[r],q=O.startTime;if(q>E)break;var W=O.transferSize,ae=O.initiatorType;W&&Dg(ae)&&(O=O.responseEnd,y+=W*(O<E?1:(E-q)/(O-q)))}if(--r,t+=8*(d+y)/(c.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 sf=null,cf=null;function Zi(e){return e.nodeType===9?e:e.ownerDocument}function jg(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 kg(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 uf(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 ff=null;function $S(){var e=window.event;return e&&e.type==="popstate"?e===ff?!1:(ff=e,!0):(ff=null,!1)}var Lg=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,Hg=typeof Promise=="function"?Promise:void 0,QS=typeof queueMicrotask=="function"?queueMicrotask:typeof Hg<"u"?function(e){return Hg.resolve(null).then(e).catch(FS)}:Lg;function FS(e){setTimeout(function(){throw e})}function Va(e){return e==="head"}function Bg(e,t){var a=t,r=0;do{var c=a.nextSibling;if(e.removeChild(a),c&&c.nodeType===8)if(a=c.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(c),Ar(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Al(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Al(a);for(var d=a.firstChild;d;){var y=d.nextSibling,E=d.nodeName;d[qr]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&d.rel.toLowerCase()==="stylesheet"||a.removeChild(d),d=y}}else a==="body"&&Al(e.ownerDocument.body);a=c}while(a);Ar(t)}function Ug(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function df(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":df(a),gc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ZS(e,t,a,r){for(;e.nodeType===1;){var c=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[qr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Nn(e.nextSibling),e===null)break}return null}function JS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Nn(e.nextSibling),e===null))return null;return e}function Gg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nn(e.nextSibling),e===null))return null;return e}function mf(e){return e.data==="$?"||e.data==="$~"}function hf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function WS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Nn(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 pf=null;function Yg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Nn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ig(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Vg(e,t,a){switch(t=Zi(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Al(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gc(e)}var On=new Map,qg=new Set;function Ji(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=Y.d;Y.d={f:ew,r:tw,D:nw,C:aw,L:ow,m:rw,X:iw,S:lw,M:sw};function ew(){var e=ba.f(),t=Vi();return e||t}function tw(e){var t=Xo(e);t!==null&&t.tag===5&&t.type==="form"?ip(t):ba.r(e)}var Er=typeof document>"u"?null:document;function Xg(e,t,a){var r=Er;if(r&&typeof t=="string"&&t){var c=En(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof a=="string"&&(c+='[crossorigin="'+a+'"]'),qg.has(c)||(qg.add(c),e={rel:e,crossOrigin:a,href:t},r.querySelector(c)===null&&(t=r.createElement("link"),Ut(t,"link",e),Ot(t),r.head.appendChild(t)))}}function nw(e){ba.D(e),Xg("dns-prefetch",e,null)}function aw(e,t){ba.C(e,t),Xg("preconnect",e,t)}function ow(e,t,a){ba.L(e,t,a);var r=Er;if(r&&e&&t){var c='link[rel="preload"][as="'+En(t)+'"]';t==="image"&&a&&a.imageSrcSet?(c+='[imagesrcset="'+En(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(c+='[imagesizes="'+En(a.imageSizes)+'"]')):c+='[href="'+En(e)+'"]';var d=c;switch(t){case"style":d=Tr(e);break;case"script":d=Cr(e)}On.has(d)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),On.set(d,e),r.querySelector(c)!==null||t==="style"&&r.querySelector(_l(d))||t==="script"&&r.querySelector(Ml(d))||(t=r.createElement("link"),Ut(t,"link",e),Ot(t),r.head.appendChild(t)))}}function rw(e,t){ba.m(e,t);var a=Er;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+En(r)+'"][href="'+En(e)+'"]',d=c;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Cr(e)}if(!On.has(d)&&(e=g({rel:"modulepreload",href:e},t),On.set(d,e),a.querySelector(c)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ml(d)))return}r=a.createElement("link"),Ut(r,"link",e),Ot(r),a.head.appendChild(r)}}}function lw(e,t,a){ba.S(e,t,a);var r=Er;if(r&&e){var c=Po(r).hoistableStyles,d=Tr(e);t=t||"default";var y=c.get(d);if(!y){var E={loading:0,preload:null};if(y=r.querySelector(_l(d)))E.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=On.get(d))&&gf(e,a);var O=y=r.createElement("link");Ot(O),Ut(O,"link",e),O._p=new Promise(function(q,W){O.onload=q,O.onerror=W}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Wi(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:E},c.set(d,y)}}}function iw(e,t){ba.X(e,t);var a=Er;if(a&&e){var r=Po(a).hoistableScripts,c=Cr(e),d=r.get(c);d||(d=a.querySelector(Ml(c)),d||(e=g({src:e,async:!0},t),(t=On.get(c))&&yf(e,t),d=a.createElement("script"),Ot(d),Ut(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(c,d))}}function sw(e,t){ba.M(e,t);var a=Er;if(a&&e){var r=Po(a).hoistableScripts,c=Cr(e),d=r.get(c);d||(d=a.querySelector(Ml(c)),d||(e=g({src:e,async:!0,type:"module"},t),(t=On.get(c))&&yf(e,t),d=a.createElement("script"),Ot(d),Ut(d,"link",e),a.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(c,d))}}function Pg(e,t,a,r){var c=(c=ce.current)?Ji(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Tr(a.href),a=Po(c).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Tr(a.href);var d=Po(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(_l(e)))&&!d._p&&(y.instance=d,y.state.loading=5),On.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},On.set(e,a),d||cw(c,e,a,y.state))),t&&r===null)throw Error(i(528,""));return y}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Cr(a),a=Po(c).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Tr(e){return'href="'+En(e)+'"'}function _l(e){return'link[rel="stylesheet"]['+e+"]"}function $g(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function cw(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Ut(t,"link",a),Ot(t),e.head.appendChild(t))}function Cr(e){return'[src="'+En(e)+'"]'}function Ml(e){return"script[async]"+e}function Kg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+En(a.href)+'"]');if(r)return t.instance=r,Ot(r),r;var c=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ot(r),Ut(r,"style",c),Wi(r,a.precedence,e),t.instance=r;case"stylesheet":c=Tr(a.href);var d=e.querySelector(_l(c));if(d)return t.state.loading|=4,t.instance=d,Ot(d),d;r=$g(a),(c=On.get(c))&&gf(r,c),d=(e.ownerDocument||e).createElement("link"),Ot(d);var y=d;return y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),Ut(d,"link",r),t.state.loading|=4,Wi(d,a.precedence,e),t.instance=d;case"script":return d=Cr(a.src),(c=e.querySelector(Ml(d)))?(t.instance=c,Ot(c),c):(r=a,(c=On.get(d))&&(r=g({},a),yf(r,c)),e=e.ownerDocument||e,c=e.createElement("script"),Ot(c),Ut(c,"link",r),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Wi(r,a.precedence,e));return t.instance}function Wi(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=r.length?r[r.length-1]:null,d=c,y=0;y<r.length;y++){var E=r[y];if(E.dataset.precedence===t)d=E;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function gf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function yf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var es=null;function Qg(e,t,a){if(es===null){var r=new Map,c=es=new Map;c.set(a,r)}else c=es,r=c.get(a),r||(r=new Map,c.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),c=0;c<a.length;c++){var d=a[c];if(!(d[qr]||d[kt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var E=r.get(y);E?E.push(d):r.set(y,[d])}}return r}function Fg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function uw(e,t,a){if(a===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 Zg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function fw(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var c=Tr(r.href),d=t.querySelector(_l(c));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ts.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=d,Ot(d);return}d=t.ownerDocument||t,r=$g(r),(c=On.get(c))&&gf(r,c),d=d.createElement("link"),Ot(d);var y=d;y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),Ut(d,"link",r),a.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ts.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vf=0;function dw(e,t){return e.stylesheets&&e.count===0&&as(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&as(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&vf===0&&(vf=62500*PS());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&as(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>vf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(c)}}:null}function ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)as(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ns=null;function as(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ns=new Map,t.forEach(mw,e),ns=null,ts.call(e))}function mw(e,t){if(!(t.state.loading&4)){var a=ns.get(e);if(a)var r=a.get(null);else{a=new Map,ns.set(e,a);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(a.set(y.dataset.precedence,y),r=y)}r&&a.set(null,r)}c=t.instance,y=c.getAttribute("data-precedence"),d=a.get(y)||r,d===r&&a.set(null,c),a.set(y,c),this.count++,r=ts.bind(this),c.addEventListener("load",r),c.addEventListener("error",r),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var Rl={$$typeof:H,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function hw(e,t,a,r,c,d,y,E,O){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=qn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qn(0),this.hiddenUpdates=qn(null),this.identifierPrefix=r,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Jg(e,t,a,r,c,d,y,E,O,q,W,ae){return e=new hw(e,t,a,y,O,q,W,ae,E),t=1,d===!0&&(t|=24),d=un(3,null,null,t),e.current=d,d.stateNode=e,t=Fc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:a,cache:t},eu(d),e}function Wg(e){return e?(e=nr,e):nr}function ey(e,t,a,r,c,d){c=Wg(c),r.context===null?r.context=c:r.pendingContext=c,r=za(t),r.payload={element:a},d=d===void 0?null:d,d!==null&&(r.callback=d),a=Da(e,r,t),a!==null&&(an(a,e,t),il(a,e,t))}function ty(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function bf(e,t){ty(e,t),(e=e.alternate)&&ty(e,t)}function ny(e){if(e.tag===13||e.tag===31){var t=yo(e,67108864);t!==null&&an(t,e,67108864),bf(e,67108864)}}function ay(e){if(e.tag===13||e.tag===31){var t=pn();t=Io(t);var a=yo(e,t);a!==null&&an(a,e,t),bf(e,t)}}var os=!0;function pw(e,t,a,r){var c=M.T;M.T=null;var d=Y.p;try{Y.p=2,xf(e,t,a,r)}finally{Y.p=d,M.T=c}}function gw(e,t,a,r){var c=M.T;M.T=null;var d=Y.p;try{Y.p=8,xf(e,t,a,r)}finally{Y.p=d,M.T=c}}function xf(e,t,a,r){if(os){var c=Sf(r);if(c===null)rf(e,t,r,rs,a),ry(e,r);else if(vw(c,e,t,a,r))r.stopPropagation();else if(ry(e,r),t&4&&-1<yw.indexOf(e)){for(;c!==null;){var d=Xo(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=jt(d.pendingLanes);if(y!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;y;){var O=1<<31-tt(y);E.entanglements[1]|=O,y&=~O}Kn(d),(Fe&6)===0&&(Yi=_t()+500,El(0))}}break;case 31:case 13:E=yo(d,2),E!==null&&an(E,d,2),Vi(),bf(d,2)}if(d=Sf(r),d===null&&rf(e,t,r,rs,a),d===c)break;c=d}c!==null&&r.stopPropagation()}else rf(e,t,r,null,a)}}function Sf(e){return e=wc(e),wf(e)}var rs=null;function wf(e){if(rs=null,e=qo(e),e!==null){var t=u(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return rs=e,null}function oy(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"resize":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"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"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jn()){case ue:return 2;case Te:return 8;case ye:case Oe:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Ef=!1,qa=null,Xa=null,Pa=null,Nl=new Map,Ol=new Map,$a=[],yw="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 ry(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Xa=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":Nl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(t.pointerId)}}function zl(e,t,a,r,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:d,targetContainers:[c]},t!==null&&(t=Xo(t),t!==null&&ny(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function vw(e,t,a,r,c){switch(t){case"focusin":return qa=zl(qa,e,t,a,r,c),!0;case"dragenter":return Xa=zl(Xa,e,t,a,r,c),!0;case"mouseover":return Pa=zl(Pa,e,t,a,r,c),!0;case"pointerover":var d=c.pointerId;return Nl.set(d,zl(Nl.get(d)||null,e,t,a,r,c)),!0;case"gotpointercapture":return d=c.pointerId,Ol.set(d,zl(Ol.get(d)||null,e,t,a,r,c)),!0}return!1}function ly(e){var t=qo(e.target);if(t!==null){var a=u(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,xm(e.priority,function(){ay(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,xm(e.priority,function(){ay(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Sf(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Sc=r,a.target.dispatchEvent(r),Sc=null}else return t=Xo(a),t!==null&&ny(t),e.blockedOn=a,!1;t.shift()}return!0}function iy(e,t,a){ls(e)&&a.delete(t)}function bw(){Ef=!1,qa!==null&&ls(qa)&&(qa=null),Xa!==null&&ls(Xa)&&(Xa=null),Pa!==null&&ls(Pa)&&(Pa=null),Nl.forEach(iy),Ol.forEach(iy)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,Ef||(Ef=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,bw)))}var ss=null;function sy(e){ss!==e&&(ss=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ss===e&&(ss=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],c=e[t+2];if(typeof r!="function"){if(wf(r||a)===null)continue;break}var d=Xo(a);d!==null&&(e.splice(t,3),t-=3,xu(d,{pending:!0,data:c,method:a.method,action:r},r,c))}}))}function Ar(e){function t(O){return is(O,e)}qa!==null&&is(qa,e),Xa!==null&&is(Xa,e),Pa!==null&&is(Pa,e),Nl.forEach(t),Ol.forEach(t);for(var a=0;a<$a.length;a++){var r=$a[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<$a.length&&(a=$a[0],a.blockedOn===null);)ly(a),a.blockedOn===null&&$a.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var c=a[r],d=a[r+1],y=c[Zt]||null;if(typeof d=="function")y||sy(a);else if(y){var E=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Zt]||null)E=y.formAction;else if(wf(c)!==null)continue}else E=y.action;typeof E=="function"?a[r+1]=E:(a.splice(r,3),r-=3),sy(a)}}}function cy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return c=y})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Tf(e){this._internalRoot=e}cs.prototype.render=Tf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=pn();ey(a,r,e,t,null,null)},cs.prototype.unmount=Tf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ey(e.current,2,null,e,null,null),Vi(),t[Vo]=null}};function cs(e){this._internalRoot=e}cs.prototype.unstable_scheduleHydration=function(e){if(e){var t=hc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<$a.length&&t!==0&&t<$a[a].priority;a++);$a.splice(a,0,e),a===0&&ly(e)}};var uy=o.version;if(uy!=="19.2.5")throw Error(i(527,uy,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var xw={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var us=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!us.isDisabled&&us.supportsFiber)try{it=us.inject(xw),Ze=us}catch{}}return jl.createRoot=function(e,t){if(!s(e))throw Error(i(299));var a=!1,r="",c=yp,d=vp,y=bp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Jg(e,1,!1,null,null,a,r,null,c,d,y,cy),e[Vo]=t.current,of(e),new Tf(t)},jl.hydrateRoot=function(e,t,a){if(!s(e))throw Error(i(299));var r=!1,c="",d=yp,y=vp,E=bp,O=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(y=a.onCaughtError),a.onRecoverableError!==void 0&&(E=a.onRecoverableError),a.formState!==void 0&&(O=a.formState)),t=Jg(e,1,!0,t,a??null,r,c,O,d,y,E,cy),t.context=Wg(null),a=t.current,r=pn(),r=Io(r),c=za(r),c.callback=null,Da(a,c,r),a=r,t.current.lanes=a,pt(t,a),Kn(t),e[Vo]=t.current,of(e),new cs(t)},jl.version="19.2.5",jl}var xy;function Nw(){if(xy)return _f.exports;xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(o){console.error(o)}}return n(),_f.exports=Rw(),_f.exports}var Ow=Nw();const zw=Dd(Ow);var Xl=Vv();const qv=Dd(Xl);function Dw(n){if(typeof document>"u")return;let o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",o.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const jw=n=>{switch(n){case"success":return Hw;case"info":return Uw;case"warning":return Bw;case"error":return Gw;default:return null}},kw=Array(12).fill(0),Lw=({visible:n,className:o})=>fe.createElement("div",{className:["sonner-loading-wrapper",o].filter(Boolean).join(" "),"data-visible":n},fe.createElement("div",{className:"sonner-spinner"},kw.map((l,i)=>fe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),Hw=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Bw=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},fe.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Uw=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Gw=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Yw=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},fe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),fe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Iw=()=>{const[n,o]=fe.useState(document.hidden);return fe.useEffect(()=>{const l=()=>{o(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let td=1;class Vw{constructor(){this.subscribe=o=>(this.subscribers.push(o),()=>{const l=this.subscribers.indexOf(o);this.subscribers.splice(l,1)}),this.publish=o=>{this.subscribers.forEach(l=>l(o))},this.addToast=o=>{this.publish(o),this.toasts=[...this.toasts,o]},this.create=o=>{var l;const{message:i,...s}=o,u=typeof(o==null?void 0:o.id)=="number"||((l=o.id)==null?void 0:l.length)>0?o.id:td++,f=this.toasts.find(h=>h.id===u),m=o.dismissible===void 0?!0:o.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),f?this.toasts=this.toasts.map(h=>h.id===u?(this.publish({...h,...o,id:u,title:i}),{...h,...o,id:u,dismissible:m,title:i}):h):this.addToast({title:i,...s,dismissible:m,id:u}),u},this.dismiss=o=>(o?(this.dismissedToasts.add(o),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:o,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(i=>i({id:l.id,dismiss:!0}))}),o),this.message=(o,l)=>this.create({...l,message:o}),this.error=(o,l)=>this.create({...l,message:o,type:"error"}),this.success=(o,l)=>this.create({...l,type:"success",message:o}),this.info=(o,l)=>this.create({...l,type:"info",message:o}),this.warning=(o,l)=>this.create({...l,type:"warning",message:o}),this.loading=(o,l)=>this.create({...l,type:"loading",message:o}),this.promise=(o,l)=>{if(!l)return;let i;l.loading!==void 0&&(i=this.create({...l,promise:o,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const s=Promise.resolve(o instanceof Function?o():o);let u=i!==void 0,f;const m=s.then(async p=>{if(f=["resolve",p],fe.isValidElement(p))u=!1,this.create({id:i,type:"default",message:p});else if(Xw(p)&&!p.ok){u=!1;const g=typeof l.error=="function"?await l.error(`HTTP error! status: ${p.status}`):l.error,S=typeof l.description=="function"?await l.description(`HTTP error! status: ${p.status}`):l.description,C=typeof g=="object"&&!fe.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:S,...C})}else if(p instanceof Error){u=!1;const g=typeof l.error=="function"?await l.error(p):l.error,S=typeof l.description=="function"?await l.description(p):l.description,C=typeof g=="object"&&!fe.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:S,...C})}else if(l.success!==void 0){u=!1;const g=typeof l.success=="function"?await l.success(p):l.success,S=typeof l.description=="function"?await l.description(p):l.description,C=typeof g=="object"&&!fe.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:S,...C})}}).catch(async p=>{if(f=["reject",p],l.error!==void 0){u=!1;const v=typeof l.error=="function"?await l.error(p):l.error,g=typeof l.description=="function"?await l.description(p):l.description,w=typeof v=="object"&&!fe.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:g,...w})}}).finally(()=>{u&&(this.dismiss(i),i=void 0),l.finally==null||l.finally.call(l)}),h=()=>new Promise((p,v)=>m.then(()=>f[0]==="reject"?v(f[1]):p(f[1])).catch(v));return typeof i!="string"&&typeof i!="number"?{unwrap:h}:Object.assign(i,{unwrap:h})},this.custom=(o,l)=>{const i=(l==null?void 0:l.id)||td++;return this.create({jsx:o(i),id:i,...l}),i},this.getActiveToasts=()=>this.toasts.filter(o=>!this.dismissedToasts.has(o.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const on=new Vw,qw=(n,o)=>{const l=(o==null?void 0:o.id)||td++;return on.addToast({title:n,...o,id:l}),l},Xw=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",Pw=qw,$w=()=>on.toasts,Kw=()=>on.getActiveToasts(),Sy=Object.assign(Pw,{success:on.success,info:on.info,warning:on.warning,error:on.error,custom:on.custom,message:on.message,promise:on.promise,dismiss:on.dismiss,loading:on.loading},{getHistory:$w,getToasts:Kw});Dw("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function fs(n){return n.label!==void 0}const Qw=3,Fw="24px",Zw="16px",wy=4e3,Jw=356,Ww=14,e2=45,t2=200;function Qn(...n){return n.filter(Boolean).join(" ")}function n2(n){const[o,l]=n.split("-"),i=[];return o&&i.push(o),l&&i.push(l),i}const a2=n=>{var o,l,i,s,u,f,m,h,p;const{invert:v,toast:g,unstyled:S,interacting:w,setHeights:C,visibleToasts:T,heights:A,index:_,toasts:z,expanded:H,removeToast:I,defaultRichColors:Q,closeButton:D,style:N,cancelButtonStyle:j,actionButtonStyle:L,className:P="",descriptionClassName:J="",duration:le,position:re,gap:ee,expandByDefault:se,classNames:M,icons:Y,closeButtonAriaLabel:B="Close toast"}=n,[$,X]=fe.useState(null),[R,G]=fe.useState(null),[F,ne]=fe.useState(!1),[oe,ce]=fe.useState(!1),[ie,me]=fe.useState(!1),[de,_e]=fe.useState(!1),[Ee,we]=fe.useState(!1),[lt,qe]=fe.useState(0),[Yt,Dt]=fe.useState(0),vt=fe.useRef(g.duration||le||wy),Ne=fe.useRef(null),ge=fe.useRef(null),ln=_===0,sn=_+1<=T,ct=g.type,bn=g.dismissible!==!1,_t=g.className||"",jn=g.descriptionClassName||"",ue=fe.useMemo(()=>A.findIndex(Ae=>Ae.toastId===g.id)||0,[A,g.id]),Te=fe.useMemo(()=>{var Ae;return(Ae=g.closeButton)!=null?Ae:D},[g.closeButton,D]),ye=fe.useMemo(()=>g.duration||le||wy,[g.duration,le]),Oe=fe.useRef(0),Ue=fe.useRef(0),Le=fe.useRef(0),Qe=fe.useRef(null),[it,Ze]=re.split("-"),mt=fe.useMemo(()=>A.reduce((Ae,nt,ht)=>ht>=ue?Ae:Ae+nt.height,0),[A,ue]),tt=Iw(),xn=g.invert||v,Sn=ct==="loading";Ue.current=fe.useMemo(()=>ue*ee+mt,[ue,mt]),fe.useEffect(()=>{vt.current=ye},[ye]),fe.useEffect(()=>{ne(!0)},[]),fe.useEffect(()=>{const Ae=ge.current;if(Ae){const nt=Ae.getBoundingClientRect().height;return Dt(nt),C(ht=>[{toastId:g.id,height:nt,position:g.position},...ht]),()=>C(ht=>ht.filter(wt=>wt.toastId!==g.id))}},[C,g.id]),fe.useLayoutEffect(()=>{if(!F)return;const Ae=ge.current,nt=Ae.style.height;Ae.style.height="auto";const ht=Ae.getBoundingClientRect().height;Ae.style.height=nt,Dt(ht),C(wt=>wt.find(pt=>pt.toastId===g.id)?wt.map(pt=>pt.toastId===g.id?{...pt,height:ht}:pt):[{toastId:g.id,height:ht,position:g.position},...wt])},[F,g.title,g.description,C,g.id,g.jsx,g.action,g.cancel]);const $t=fe.useCallback(()=>{ce(!0),qe(Ue.current),C(Ae=>Ae.filter(nt=>nt.toastId!==g.id)),setTimeout(()=>{I(g)},t2)},[g,I,C,Ue]);fe.useEffect(()=>{if(g.promise&&ct==="loading"||g.duration===1/0||g.type==="loading")return;let Ae;return H||w||tt?(()=>{if(Le.current<Oe.current){const wt=new Date().getTime()-Oe.current;vt.current=vt.current-wt}Le.current=new Date().getTime()})():(()=>{vt.current!==1/0&&(Oe.current=new Date().getTime(),Ae=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),$t()},vt.current))})(),()=>clearTimeout(Ae)},[H,w,g,ct,tt,$t]),fe.useEffect(()=>{g.delete&&($t(),g.onDismiss==null||g.onDismiss.call(g,g))},[$t,g.delete]);function kn(){var Ae;if(Y!=null&&Y.loading){var nt;return fe.createElement("div",{className:Qn(M==null?void 0:M.loader,g==null||(nt=g.classNames)==null?void 0:nt.loader,"sonner-loader"),"data-visible":ct==="loading"},Y.loading)}return fe.createElement(Lw,{className:Qn(M==null?void 0:M.loader,g==null||(Ae=g.classNames)==null?void 0:Ae.loader),visible:ct==="loading"})}const St=g.icon||(Y==null?void 0:Y[ct])||jw(ct);var Xt,jt;return fe.createElement("li",{tabIndex:0,ref:ge,className:Qn(P,_t,M==null?void 0:M.toast,g==null||(o=g.classNames)==null?void 0:o.toast,M==null?void 0:M.default,M==null?void 0:M[ct],g==null||(l=g.classNames)==null?void 0:l[ct]),"data-sonner-toast":"","data-rich-colors":(Xt=g.richColors)!=null?Xt:Q,"data-styled":!(g.jsx||g.unstyled||S),"data-mounted":F,"data-promise":!!g.promise,"data-swiped":Ee,"data-removed":oe,"data-visible":sn,"data-y-position":it,"data-x-position":Ze,"data-index":_,"data-front":ln,"data-swiping":ie,"data-dismissible":bn,"data-type":ct,"data-invert":xn,"data-swipe-out":de,"data-swipe-direction":R,"data-expanded":!!(H||se&&F),"data-testid":g.testId,style:{"--index":_,"--toasts-before":_,"--z-index":z.length-_,"--offset":`${oe?lt:Ue.current}px`,"--initial-height":se?"auto":`${Yt}px`,...N,...g.style},onDragEnd:()=>{me(!1),X(null),Qe.current=null},onPointerDown:Ae=>{Ae.button!==2&&(Sn||!bn||(Ne.current=new Date,qe(Ue.current),Ae.target.setPointerCapture(Ae.pointerId),Ae.target.tagName!=="BUTTON"&&(me(!0),Qe.current={x:Ae.clientX,y:Ae.clientY})))},onPointerUp:()=>{var Ae,nt,ht;if(de||!bn)return;Qe.current=null;const wt=Number(((Ae=ge.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),qn=Number(((nt=ge.current)==null?void 0:nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pt=new Date().getTime()-((ht=Ne.current)==null?void 0:ht.getTime()),Kt=$==="x"?wt:qn,fo=Math.abs(Kt)/pt;if(Math.abs(Kt)>=e2||fo>.11){qe(Ue.current),g.onDismiss==null||g.onDismiss.call(g,g),G($==="x"?wt>0?"right":"left":qn>0?"down":"up"),$t(),_e(!0);return}else{var Qt,Ft;(Qt=ge.current)==null||Qt.style.setProperty("--swipe-amount-x","0px"),(Ft=ge.current)==null||Ft.style.setProperty("--swipe-amount-y","0px")}we(!1),me(!1),X(null)},onPointerMove:Ae=>{var nt,ht,wt;if(!Qe.current||!bn||((nt=window.getSelection())==null?void 0:nt.toString().length)>0)return;const pt=Ae.clientY-Qe.current.y,Kt=Ae.clientX-Qe.current.x;var fo;const Qt=(fo=n.swipeDirections)!=null?fo:n2(re);!$&&(Math.abs(Kt)>1||Math.abs(pt)>1)&&X(Math.abs(Kt)>Math.abs(pt)?"x":"y");let Ft={x:0,y:0};const Io=Ln=>1/(1.5+Math.abs(Ln)/20);if($==="y"){if(Qt.includes("top")||Qt.includes("bottom"))if(Qt.includes("top")&&pt<0||Qt.includes("bottom")&&pt>0)Ft.y=pt;else{const Ln=pt*Io(pt);Ft.y=Math.abs(Ln)<Math.abs(pt)?Ln:pt}}else if($==="x"&&(Qt.includes("left")||Qt.includes("right")))if(Qt.includes("left")&&Kt<0||Qt.includes("right")&&Kt>0)Ft.x=Kt;else{const Ln=Kt*Io(Kt);Ft.x=Math.abs(Ln)<Math.abs(Kt)?Ln:Kt}(Math.abs(Ft.x)>0||Math.abs(Ft.y)>0)&&we(!0),(ht=ge.current)==null||ht.style.setProperty("--swipe-amount-x",`${Ft.x}px`),(wt=ge.current)==null||wt.style.setProperty("--swipe-amount-y",`${Ft.y}px`)}},Te&&!g.jsx&&ct!=="loading"?fe.createElement("button",{"aria-label":B,"data-disabled":Sn,"data-close-button":!0,onClick:Sn||!bn?()=>{}:()=>{$t(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Qn(M==null?void 0:M.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(jt=Y==null?void 0:Y.close)!=null?jt:Yw):null,(ct||g.icon||g.promise)&&g.icon!==null&&((Y==null?void 0:Y[ct])!==null||g.icon)?fe.createElement("div",{"data-icon":"",className:Qn(M==null?void 0:M.icon,g==null||(s=g.classNames)==null?void 0:s.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||kn():null,g.type!=="loading"?St:null):null,fe.createElement("div",{"data-content":"",className:Qn(M==null?void 0:M.content,g==null||(u=g.classNames)==null?void 0:u.content)},fe.createElement("div",{"data-title":"",className:Qn(M==null?void 0:M.title,g==null||(f=g.classNames)==null?void 0:f.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?fe.createElement("div",{"data-description":"",className:Qn(J,jn,M==null?void 0:M.description,g==null||(m=g.classNames)==null?void 0:m.description)},typeof g.description=="function"?g.description():g.description):null),fe.isValidElement(g.cancel)?g.cancel:g.cancel&&fs(g.cancel)?fe.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||j,onClick:Ae=>{fs(g.cancel)&&bn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ae),$t())},className:Qn(M==null?void 0:M.cancelButton,g==null||(h=g.classNames)==null?void 0:h.cancelButton)},g.cancel.label):null,fe.isValidElement(g.action)?g.action:g.action&&fs(g.action)?fe.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||L,onClick:Ae=>{fs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ae),!Ae.defaultPrevented&&$t())},className:Qn(M==null?void 0:M.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Ey(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function o2(n,o){const l={};return[n,o].forEach((i,s)=>{const u=s===1,f=u?"--mobile-offset":"--offset",m=u?Zw:Fw;function h(p){["top","right","bottom","left"].forEach(v=>{l[`${f}-${v}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?h(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?l[`${f}-${p}`]=m:l[`${f}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):h(m)}),l}const r2=fe.forwardRef(function(o,l){const{id:i,invert:s,position:u="bottom-right",hotkey:f=["altKey","KeyT"],expand:m,closeButton:h,className:p,offset:v,mobileOffset:g,theme:S="light",richColors:w,duration:C,style:T,visibleToasts:A=Qw,toastOptions:_,dir:z=Ey(),gap:H=Ww,icons:I,containerAriaLabel:Q="Notifications"}=o,[D,N]=fe.useState([]),j=fe.useMemo(()=>i?D.filter(F=>F.toasterId===i):D.filter(F=>!F.toasterId),[D,i]),L=fe.useMemo(()=>Array.from(new Set([u].concat(j.filter(F=>F.position).map(F=>F.position)))),[j,u]),[P,J]=fe.useState([]),[le,re]=fe.useState(!1),[ee,se]=fe.useState(!1),[M,Y]=fe.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=fe.useRef(null),$=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),X=fe.useRef(null),R=fe.useRef(!1),G=fe.useCallback(F=>{N(ne=>{var oe;return(oe=ne.find(ce=>ce.id===F.id))!=null&&oe.delete||on.dismiss(F.id),ne.filter(({id:ce})=>ce!==F.id)})},[]);return fe.useEffect(()=>on.subscribe(F=>{if(F.dismiss){requestAnimationFrame(()=>{N(ne=>ne.map(oe=>oe.id===F.id?{...oe,delete:!0}:oe))});return}setTimeout(()=>{qv.flushSync(()=>{N(ne=>{const oe=ne.findIndex(ce=>ce.id===F.id);return oe!==-1?[...ne.slice(0,oe),{...ne[oe],...F},...ne.slice(oe+1)]:[F,...ne]})})})}),[D]),fe.useEffect(()=>{if(S!=="system"){Y(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:ne})=>{Y(ne?"dark":"light")})}catch{F.addListener(({matches:oe})=>{try{Y(oe?"dark":"light")}catch(ce){console.error(ce)}})}},[S]),fe.useEffect(()=>{D.length<=1&&re(!1)},[D]),fe.useEffect(()=>{const F=ne=>{var oe;if(f.every(me=>ne[me]||ne.code===me)){var ie;re(!0),(ie=B.current)==null||ie.focus()}ne.code==="Escape"&&(document.activeElement===B.current||(oe=B.current)!=null&&oe.contains(document.activeElement))&&re(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[f]),fe.useEffect(()=>{if(B.current)return()=>{X.current&&(X.current.focus({preventScroll:!0}),X.current=null,R.current=!1)}},[B.current]),fe.createElement("section",{ref:l,"aria-label":`${Q} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((F,ne)=>{var oe;const[ce,ie]=F.split("-");return j.length?fe.createElement("ol",{key:F,dir:z==="auto"?Ey():z,tabIndex:-1,ref:B,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ce,"data-x-position":ie,style:{"--front-toast-height":`${((oe=P[0])==null?void 0:oe.height)||0}px`,"--width":`${Jw}px`,"--gap":`${H}px`,...T,...o2(v,g)},onBlur:me=>{R.current&&!me.currentTarget.contains(me.relatedTarget)&&(R.current=!1,X.current&&(X.current.focus({preventScroll:!0}),X.current=null))},onFocus:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||R.current||(R.current=!0,X.current=me.relatedTarget)},onMouseEnter:()=>re(!0),onMouseMove:()=>re(!0),onMouseLeave:()=>{ee||re(!1)},onDragEnd:()=>re(!1),onPointerDown:me=>{me.target instanceof HTMLElement&&me.target.dataset.dismissible==="false"||se(!0)},onPointerUp:()=>se(!1)},j.filter(me=>!me.position&&ne===0||me.position===F).map((me,de)=>{var _e,Ee;return fe.createElement(a2,{key:me.id,icons:I,index:de,toast:me,defaultRichColors:w,duration:(_e=_==null?void 0:_.duration)!=null?_e:C,className:_==null?void 0:_.className,descriptionClassName:_==null?void 0:_.descriptionClassName,invert:s,visibleToasts:A,closeButton:(Ee=_==null?void 0:_.closeButton)!=null?Ee:h,interacting:ee,position:F,style:_==null?void 0:_.style,unstyled:_==null?void 0:_.unstyled,classNames:_==null?void 0:_.classNames,cancelButtonStyle:_==null?void 0:_.cancelButtonStyle,actionButtonStyle:_==null?void 0:_.actionButtonStyle,closeButtonAriaLabel:_==null?void 0:_.closeButtonAriaLabel,removeToast:G,toasts:j.filter(we=>we.position==me.position),heights:P.filter(we=>we.position==me.position),setHeights:J,expandByDefault:m,gap:H,expanded:le,swipeDirections:o.swipeDirections})})):null}))}),Me="data-editor-id",jo="data-slide-root",ko=1920,Lo=1080;function kd(n){return`[${Me}="${n}"]`}function l2(n){return n.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"slide"}function Xv(n,o){return`${o}-${n+1}`}function Ty(n,o){const l=Number.parseInt(n||"",10);return Number.isFinite(l)&&l>0?l:o}function i2(n){return l2(n)}function Ds(n){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(n,"text/html")}function Pv(n){const o=n.querySelector(`[${jo}]`);if(o)return o.getAttribute("data-slide-width")||o.setAttribute("data-slide-width",String(ko)),o.getAttribute("data-slide-height")||o.setAttribute("data-slide-height",String(Lo)),o;const l=n.querySelector(".slide-container");return l?(l.setAttribute(jo,"true"),l.getAttribute("data-slide-width")||l.setAttribute("data-slide-width",String(ko)),l.getAttribute("data-slide-height")||l.setAttribute("data-slide-height",String(Lo)),l):null}function s2(n){return`<!DOCTYPE html>
|
|
50
|
+
${n.documentElement.outerHTML}`}function c2(n){const o=Ds(n);if(!o)return n;const l=Pv(o),i=Array.from(o.querySelectorAll("[data-editable]"));return l&&!l.getAttribute(Me)&&l.setAttribute(Me,"slide-root"),i.forEach((s,u)=>{if(!s.getAttribute(Me)){const f=s.getAttribute("data-editable")||"block";s.setAttribute(Me,Xv(u,f))}}),s2(o)}function Ja(n,o="slide-1"){var w;if(!Ds(n))return{id:o,title:"Untitled Slide",htmlSource:n,rootSelector:`[${jo}]`,width:ko,height:Lo,elements:[]};const i=c2(n),s=Ds(i);if(!s)return{id:o,title:"Untitled Slide",htmlSource:i,rootSelector:`[${jo}]`,width:ko,height:Lo,elements:[]};const u=Pv(s),f=Array.from(s.querySelectorAll("[data-editable]")),m=u!=null&&u.getAttribute(Me)?`[${Me}="${u.getAttribute(Me)}"]`:`[${jo}]`,h=Ty((u==null?void 0:u.getAttribute("data-slide-width"))??null,ko),p=Ty((u==null?void 0:u.getAttribute("data-slide-height"))??null,Lo),v=f.map((C,T)=>{const A=C.getAttribute("data-editable")||"block",_=C.getAttribute(Me)||Xv(T,A);return{id:_,selector:kd(_),type:A==="block"&&C.getAttribute("data-group")==="true"?"group":A,content:C instanceof HTMLImageElement?C.src:C.textContent||"",tagName:C.tagName.toLowerCase()}}),g=s.querySelector("h1, h2, title"),S=((w=g==null?void 0:g.textContent)==null?void 0:w.trim())||`Slide ${o}`;return{id:i2(o),title:S,htmlSource:i,rootSelector:m,width:h,height:p,elements:v}}function et(n,o){return n.querySelector(kd(o))}function u2(n,o,l){const i=Ds(n.htmlSource);if(!i)return"";const s=et(i,o);return(s==null?void 0:s.style.getPropertyValue(l).trim())||""}function ro(n){return typeof DOMParser>"u"?null:new DOMParser().parseFromString(n,"text/html")}function Ld(n){return`<!DOCTYPE html>
|
|
51
|
+
${n.documentElement.outerHTML}`}function Ur(n,o){const l=ro(n);return l?(o(l),Ld(l)):n}const Hd=["position","left","top","width","height","transform","transformOrigin","margin","zIndex"];function $v(){return{position:null,left:null,top:null,width:null,height:null,transform:null,transformOrigin:null,margin:null,zIndex:null}}function Gl(n){const o=$v();for(const l of Hd){const i=n.style[l];o[l]=i||null}return o}function nd(n){return{...$v(),...n}}function Yn(n){const o=n||"",l=o.match(/translate\(([-\d.]+)px,\s*([-\d.]+)px\)/i),i=o.match(/rotate\(([-\d.]+)deg\)/i);return{translateX:l&&Number.parseFloat(l[1]||"0")||0,translateY:l&&Number.parseFloat(l[2]||"0")||0,rotate:i&&Number.parseFloat(i[1]||"0")||0}}function Of(n){return Math.round(n*100)/100}function Sa(n,o,l){const i=[];return(Math.abs(n)>.01||Math.abs(o)>.01)&&i.push(`translate(${Of(n)}px, ${Of(o)}px)`),Math.abs(l)>.01&&i.push(`rotate(${Of(l)}deg)`),i.length?i.join(" "):null}function Ul(n,o,l){return{x:l.offsetX+(n.left-o.left)*l.scale,y:l.offsetY+(n.top-o.top)*l.scale,width:n.width*l.scale,height:n.height*l.scale}}function No(n,o){return{...o,sourceFile:n.sourceFile}}function Kv(n,o){if(n.id!==o.slideId)return n;switch(o.type){case"operation.batch":return o.operations.reduce((l,i)=>Kv(l,i),n);case"text.update":return No(n,Ja(f2(n.htmlSource,o.elementId,o.nextText),n.id));case"style.update":return No(n,Ja(d2(n.htmlSource,o.elementId,o.propertyName,o.nextValue),n.id));case"attribute.update":return No(n,Ja(m2(n.htmlSource,o.elementId,o.attributeName,o.nextValue),n.id));case"element.layout.update":return No(n,Ja(p2(n.htmlSource,o.elementId,o.nextStyle),n.id));case"element.insert":return No(n,Ja(g2(n.htmlSource,o),n.id));case"element.remove":return No(n,Ja(y2(n.htmlSource,o.elementId),n.id));case"group.create":case"group.ungroup":return No(n,Ja(o.nextHtmlSource,n.id))}}function Qv(n){switch(n.type){case"operation.batch":return{type:"operation.batch",slideId:n.slideId,operations:n.operations.map(o=>Qv(o)).reverse(),timestamp:n.timestamp};case"text.update":return{...n,previousText:n.nextText,nextText:n.previousText};case"style.update":return{...n,previousValue:n.nextValue,nextValue:n.previousValue};case"attribute.update":return{...n,previousValue:n.nextValue,nextValue:n.previousValue};case"element.layout.update":return{...n,previousStyle:n.nextStyle,nextStyle:n.previousStyle};case"element.insert":return{type:"element.remove",slideId:n.slideId,elementId:n.elementId,parentElementId:n.parentElementId,previousSiblingElementId:n.previousSiblingElementId,nextSiblingElementId:n.nextSiblingElementId,html:n.html,timestamp:n.timestamp};case"element.remove":return{type:"element.insert",slideId:n.slideId,elementId:n.elementId,parentElementId:n.parentElementId,previousSiblingElementId:n.previousSiblingElementId,nextSiblingElementId:n.nextSiblingElementId,html:n.html,timestamp:n.timestamp};case"group.create":return{type:"group.ungroup",slideId:n.slideId,groupElementId:n.groupElementId,childElementIds:n.elementIds,previousHtmlSource:n.nextHtmlSource,nextHtmlSource:n.previousHtmlSource,timestamp:n.timestamp};case"group.ungroup":return{type:"group.create",slideId:n.slideId,groupElementId:n.groupElementId,elementIds:n.childElementIds,previousHtmlSource:n.nextHtmlSource,nextHtmlSource:n.previousHtmlSource,timestamp:n.timestamp}}}function ds(n){const o=Number.parseFloat(n||"");return Number.isFinite(o)?o:0}function Cy(n){const o=Yn(n.style.transform);return{x:ds(n.style.left)+o.translateX,y:ds(n.style.top)+o.translateY,width:ds(n.style.width)||ko,height:ds(n.style.height)||Lo}}function js(n,o={}){let l=n,i=0,s=0;const u=n.getAttribute(Me)??"",f=o[u]??Cy(n),m=f.width,h=f.height;for(;l;){const p=l.getAttribute(Me)??"",v=o[p]??Cy(l);i+=v.x,s+=v.y;const g=l.parentElement;if(!g||!g.hasAttribute("data-editable"))break;l=g}return{x:i,y:s,width:m,height:h}}function Fv(n,o={}){const l=n.parentElement;if(!l||!l.hasAttribute("data-editable"))return{x:0,y:0};const i=js(l,o);return{x:i.x,y:i.y}}function ad(n,o){n.style.position=n.style.position||"absolute",n.style.left=`${Math.round(o.x*100)/100}px`,n.style.top=`${Math.round(o.y*100)/100}px`,n.style.width=`${Math.round(o.width*100)/100}px`,n.style.height=`${Math.round(o.height*100)/100}px`;const l=Yn(n.style.transform),i=Sa(0,0,l.rotate);i?n.style.transform=i:n.style.removeProperty("transform")}function zf(n){const o=n.parentElement;return o&&(o.hasAttribute(jo)||o.hasAttribute("data-editable"))?o:null}function od(n){return Array.from(n.children).filter(o=>o instanceof HTMLElement&&o.hasAttribute("data-editable"))}function f2(n,o,l){return Ur(n,i=>{const s=et(i,o);s&&(s.textContent=l)})}function d2(n,o,l,i){return Ur(n,s=>{var f;const u=et(s,o);u&&(i.trim().length===0?u.style.removeProperty(l):u.style.setProperty(l,i),(f=u.getAttribute("style"))!=null&&f.trim()||u.removeAttribute("style"))})}function m2(n,o,l,i){return Ur(n,s=>{const u=et(s,o);u&&(i.trim().length===0?u.removeAttribute(l):u.setAttribute(l,i))})}function h2(n,o){var l;for(const i of Hd){const s=o[i];if(s===null){n.style[i]="";continue}n.style[i]=s}(l=n.getAttribute("style"))!=null&&l.trim()||n.removeAttribute("style")}function p2(n,o,l){return Ur(n,i=>{const s=et(i,o);s&&h2(s,l)})}function ks(n,o){const l=ro(n);if(!l)return null;const i=et(l,o);if(!i||!(i.parentElement instanceof HTMLElement))return null;const s=i.previousElementSibling instanceof HTMLElement?i.previousElementSibling.getAttribute(Me):null,u=i.nextElementSibling instanceof HTMLElement?i.nextElementSibling.getAttribute(Me):null;return{parentElementId:i.parentElement.getAttribute(Me),previousSiblingElementId:s,nextSiblingElementId:u}}function Ls(n,o){var i;const l=ro(n);return l?((i=et(l,o))==null?void 0:i.outerHTML)??null:null}function Zv(n,o){var u;const l=ro(`<template>${n}</template>`),i=(u=l==null?void 0:l.querySelector("template"))==null?void 0:u.content.firstElementChild;if(!(i instanceof HTMLElement))return n;const s=[i,...Array.from(i.querySelectorAll(`[${Me}]`))];for(const f of s){const m=f.getAttribute(Me);m&&o[m]&&f.setAttribute(Me,o[m])}return i.outerHTML}function rd(n,o){const l=ro(n);if(!l)return o;const i=new Set(Array.from(l.querySelectorAll(`[${Me}]`)).map(m=>m.getAttribute(Me)).filter(m=>!!m));if(!i.has(o))return o;const s=o.match(/^(.*?)(?:-(\d+))?$/),u=(s==null?void 0:s[1])||o;let f=Number.parseInt((s==null?void 0:s[2])||"1",10)+1;for(;i.has(`${u}-${f}`);)f+=1;return`${u}-${f}`}function g2(n,o){return Ur(n,l=>{var h;if(et(l,o.elementId))return;const i=ro(`<template>${o.html}</template>`),s=(h=i==null?void 0:i.querySelector("template"))==null?void 0:h.content.firstElementChild;if(!(s instanceof HTMLElement))return;const u=(o.parentElementId?et(l,o.parentElementId):null)??l.querySelector(`[${jo}]`)??l.body,f=o.nextSiblingElementId?et(l,o.nextSiblingElementId):null,m=o.previousSiblingElementId?et(l,o.previousSiblingElementId):null;(f==null?void 0:f.parentElement)===u?u.insertBefore(l.importNode(s,!0),f):(m==null?void 0:m.parentElement)===u?m.after(l.importNode(s,!0)):u.appendChild(l.importNode(s,!0))})}function y2(n,o){return Ur(n,l=>{var i;(i=et(l,o))==null||i.remove()})}function v2({html:n,slideId:o,groupElementId:l,elementIds:i,elementRects:s={},timestamp:u=Date.now()}){const f=ro(n);if(!f||!i.length)return null;const m=i.map(D=>et(f,D)).filter(D=>!!D);if(m.length!==i.length)return null;const p=m.flatMap(D=>D.getAttribute("data-group")==="true"?od(D):[D]).filter((D,N,j)=>j.findIndex(L=>L===D)===N);if(p.length<2)return null;const v=zf(m[0]);if(!v||m.some(D=>zf(D)!==v)||et(f,l))return null;const g=m.filter(D=>D.getAttribute("data-group")==="true"),S=p.map(D=>js(D,s)),w=Math.min(...S.map(D=>D.x)),C=Math.min(...S.map(D=>D.y)),T=Math.max(...S.map(D=>D.x+D.width)),A=Math.max(...S.map(D=>D.y+D.height)),_=Fv(m[0],s),z=f.createElement("div");z.setAttribute("data-editable","block"),z.setAttribute("data-group","true"),z.setAttribute(Me,l),ad(z,{x:w-_.x,y:C-_.y,width:T-w,height:A-C});const H=Array.from(v.children).flatMap(D=>D instanceof HTMLElement?g.includes(D)?od(D).filter(N=>p.includes(N)):p.includes(D)?[D]:[]:[]),I=m.find(D=>zf(D)===v)??null;(I==null?void 0:I.parentElement)===v?v.insertBefore(z,I):v.appendChild(z);for(const D of H){const N=js(D,s);ad(D,{x:N.x-w,y:N.y-C,width:N.width,height:N.height}),z.appendChild(D)}for(const D of g)D.children.length||D.remove();const Q=Ld(f);return Q===n?null:{type:"group.create",slideId:o,groupElementId:l,elementIds:H.map(D=>D.getAttribute(Me)).filter(D=>!!D),previousHtmlSource:n,nextHtmlSource:Q,timestamp:u}}function b2({html:n,slideId:o,groupElementId:l,elementRects:i={},timestamp:s=Date.now()}){const u=ro(n);if(!u)return null;const f=et(u,l);if(!f||f.getAttribute("data-group")!=="true"||!f.parentElement)return null;const m=f.parentElement,h=Fv(f,i),p=od(f);if(!p.length)return null;const v=p.map(S=>S.getAttribute(Me)).filter(S=>!!S);for(const S of p){const w=js(S,i);ad(S,{x:w.x-h.x,y:w.y-h.y,width:w.width,height:w.height}),m.insertBefore(S,f)}f.remove();const g=Ld(u);return g===n?null:{type:"group.ungroup",slideId:o,groupElementId:l,childElementIds:v,previousHtmlSource:n,nextHtmlSource:g,timestamp:s}}function Df(n,o){return n.map(l=>Kv(l,o))}function Jv(n){return{slides:n,undoStack:[],redoStack:[]}}function ms(n,o){switch(o.type){case"history.reset":return Jv(o.slides);case"history.commit":return{slides:Df(n.slides,o.operation),undoStack:[...n.undoStack,o.operation],redoStack:[]};case"history.undo":{const l=n.undoStack[n.undoStack.length-1];return l?{slides:Df(n.slides,Qv(l)),undoStack:n.undoStack.slice(0,-1),redoStack:[...n.redoStack,l]}:n}case"history.redo":{const l=n.redoStack[n.redoStack.length-1];return l?{slides:Df(n.slides,l),undoStack:[...n.undoStack,l],redoStack:n.redoStack.slice(0,-1)}:n}}}async function x2({manifestUrl:n,fetchImpl:o,requestInit:l,slideIdPrefix:i="generated-slide-"}){var g;const s=o??globalThis.fetch;if(!s)throw new Error("loadSlidesFromManifest requires a fetch implementation.");const u={cache:"no-store",...l},f=await s(n,u);if(!f.ok)return null;const m=await f.json();if(!((g=m.slides)!=null&&g.length))return null;const h=f.url||n,p=new URL(h),v=await Promise.all(m.slides.map(async(S,w)=>{const C=new URL(S.file,h);for(const[z,H]of p.searchParams)C.searchParams.has(z)||C.searchParams.set(z,H);const T=await s(C.toString(),u);if(!T.ok)throw new Error(`Failed to load slide HTML: ${S.file}`);const A=await T.text(),_=Ja(A,`${i}${w+1}`);return{..._,sourceFile:S.file,title:S.title||_.title}}));return{manifest:m,slides:v}}/**
|
|
52
|
+
* @license lucide-react v1.14.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Wv=(...n)=>n.filter((o,l,i)=>!!o&&o.trim()!==""&&i.indexOf(o)===l).join(" ").trim();/**
|
|
57
|
+
* @license lucide-react v1.14.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const S2=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
62
|
+
* @license lucide-react v1.14.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const w2=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(o,l,i)=>i?i.toUpperCase():l.toLowerCase());/**
|
|
67
|
+
* @license lucide-react v1.14.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const Ay=n=>{const o=w2(n);return o.charAt(0).toUpperCase()+o.slice(1)};/**
|
|
72
|
+
* @license lucide-react v1.14.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var jf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
77
|
+
* @license lucide-react v1.14.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const E2=n=>{for(const o in n)if(o.startsWith("aria-")||o==="role"||o==="title")return!0;return!1},T2=b.createContext({}),C2=()=>b.useContext(T2),A2=b.forwardRef(({color:n,size:o,strokeWidth:l,absoluteStrokeWidth:i,className:s="",children:u,iconNode:f,...m},h)=>{const{size:p=24,strokeWidth:v=2,absoluteStrokeWidth:g=!1,color:S="currentColor",className:w=""}=C2()??{},C=i??g?Number(l??v)*24/Number(o??p):l??v;return b.createElement("svg",{ref:h,...jf,width:o??p??jf.width,height:o??p??jf.height,stroke:n??S,strokeWidth:C,className:Wv("lucide",w,s),...!u&&!E2(m)&&{"aria-hidden":"true"},...m},[...f.map(([T,A])=>b.createElement(T,A)),...Array.isArray(u)?u:[u]])});/**
|
|
82
|
+
* @license lucide-react v1.14.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const ke=(n,o)=>{const l=b.forwardRef(({className:i,...s},u)=>b.createElement(A2,{ref:u,iconNode:o,className:Wv(`lucide-${S2(Ay(n))}`,`lucide-${n}`,i),...s}));return l.displayName=Ay(n),l};/**
|
|
87
|
+
* @license lucide-react v1.14.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const _2=[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]],ld=ke("align-center-horizontal",_2);/**
|
|
92
|
+
* @license lucide-react v1.14.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const M2=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",key:"1e2lrw"}],["path",{d:"M8 20H7a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2h1",key:"1fkdwx"}],["path",{d:"M16 14h1a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-1",key:"1euafb"}]],e0=ke("align-center-vertical",M2);/**
|
|
97
|
+
* @license lucide-react v1.14.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const R2=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],t0=ke("align-end-horizontal",R2);/**
|
|
102
|
+
* @license lucide-react v1.14.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const N2=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],n0=ke("align-end-vertical",N2);/**
|
|
107
|
+
* @license lucide-react v1.14.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const O2=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],a0=ke("align-start-horizontal",O2);/**
|
|
112
|
+
* @license lucide-react v1.14.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const z2=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],o0=ke("align-start-vertical",z2);/**
|
|
117
|
+
* @license lucide-react v1.14.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const D2=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],r0=ke("arrow-down-to-line",D2);/**
|
|
122
|
+
* @license lucide-react v1.14.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const j2=[["path",{d:"M5 3h14",key:"7usisc"}],["path",{d:"m18 13-6-6-6 6",key:"1kf1n9"}],["path",{d:"M12 7v14",key:"1akyts"}]],id=ke("arrow-up-to-line",j2);/**
|
|
127
|
+
* @license lucide-react v1.14.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const k2=[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]],L2=ke("box",k2);/**
|
|
132
|
+
* @license lucide-react v1.14.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const H2=[["path",{d:"m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",key:"d5nyq2"}],["path",{d:"M22 9v7",key:"pvm9v3"}],["path",{d:"M3.304 13h6.392",key:"1q3zxz"}],["circle",{cx:"18.5",cy:"12.5",r:"3.5",key:"z97x68"}]],kf=ke("case-sensitive",H2);/**
|
|
137
|
+
* @license lucide-react v1.14.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const B2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],l0=ke("check",B2);/**
|
|
142
|
+
* @license lucide-react v1.14.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const U2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Pl=ke("chevron-down",U2);/**
|
|
147
|
+
* @license lucide-react v1.14.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const G2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Y2=ke("chevron-right",G2);/**
|
|
152
|
+
* @license lucide-react v1.14.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const I2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Bd=ke("chevron-up",I2);/**
|
|
157
|
+
* @license lucide-react v1.14.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const V2=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],q2=ke("cloud",V2);/**
|
|
162
|
+
* @license lucide-react v1.14.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const X2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],sd=ke("columns-3",X2);/**
|
|
167
|
+
* @license lucide-react v1.14.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const P2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$2=ke("copy",P2);/**
|
|
172
|
+
* @license lucide-react v1.14.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const K2=[["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"}]],Q2=ke("download",K2);/**
|
|
177
|
+
* @license lucide-react v1.14.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const F2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Z2=ke("eye",F2);/**
|
|
182
|
+
* @license lucide-react v1.14.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const J2=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],W2=ke("file-code-corner",J2);/**
|
|
187
|
+
* @license lucide-react v1.14.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const eE=[["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"}]],tE=ke("file-text",eE);/**
|
|
192
|
+
* @license lucide-react v1.14.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const nE=[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]],cd=ke("group",nE);/**
|
|
197
|
+
* @license lucide-react v1.14.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const aE=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],oE=ke("hash",aE);/**
|
|
202
|
+
* @license lucide-react v1.14.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const rE=[["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"}]],lE=ke("layers",rE);/**
|
|
207
|
+
* @license lucide-react v1.14.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const iE=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],sE=ke("link-2",iE);/**
|
|
212
|
+
* @license lucide-react v1.14.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const cE=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],_y=ke("lock",cE);/**
|
|
217
|
+
* @license lucide-react v1.14.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const uE=[["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"}]],My=ke("palette",uE);/**
|
|
222
|
+
* @license lucide-react v1.14.0 - ISC
|
|
223
|
+
*
|
|
224
|
+
* This source code is licensed under the ISC license.
|
|
225
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
226
|
+
*/const fE=[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]],dE=ke("pilcrow",fE);/**
|
|
227
|
+
* @license lucide-react v1.14.0 - ISC
|
|
228
|
+
*
|
|
229
|
+
* This source code is licensed under the ISC license.
|
|
230
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
231
|
+
*/const mE=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],hE=ke("play",mE);/**
|
|
232
|
+
* @license lucide-react v1.14.0 - ISC
|
|
233
|
+
*
|
|
234
|
+
* This source code is licensed under the ISC license.
|
|
235
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
236
|
+
*/const pE=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],gE=ke("presentation",pE);/**
|
|
237
|
+
* @license lucide-react v1.14.0 - ISC
|
|
238
|
+
*
|
|
239
|
+
* This source code is licensed under the ISC license.
|
|
240
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
241
|
+
*/const yE=[["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"}]],vE=ke("rotate-cw",yE);/**
|
|
242
|
+
* @license lucide-react v1.14.0 - ISC
|
|
243
|
+
*
|
|
244
|
+
* This source code is licensed under the ISC license.
|
|
245
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
246
|
+
*/const bE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],i0=ke("rows-3",bE);/**
|
|
247
|
+
* @license lucide-react v1.14.0 - ISC
|
|
248
|
+
*
|
|
249
|
+
* This source code is licensed under the ISC license.
|
|
250
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
+
*/const xE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ry=ke("square",xE);/**
|
|
252
|
+
* @license lucide-react v1.14.0 - ISC
|
|
253
|
+
*
|
|
254
|
+
* This source code is licensed under the ISC license.
|
|
255
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
256
|
+
*/const SE=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 19H5",key:"vjpgq2"}]],wE=ke("text-align-center",SE);/**
|
|
257
|
+
* @license lucide-react v1.14.0 - ISC
|
|
258
|
+
*
|
|
259
|
+
* This source code is licensed under the ISC license.
|
|
260
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
+
*/const EE=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 19H7",key:"4cu937"}]],TE=ke("text-align-end",EE);/**
|
|
262
|
+
* @license lucide-react v1.14.0 - ISC
|
|
263
|
+
*
|
|
264
|
+
* This source code is licensed under the ISC license.
|
|
265
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
+
*/const CE=[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]],AE=ke("text-align-start",CE);/**
|
|
267
|
+
* @license lucide-react v1.14.0 - ISC
|
|
268
|
+
*
|
|
269
|
+
* This source code is licensed under the ISC license.
|
|
270
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
+
*/const _E=[["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"}]],ME=ke("trash-2",_E);/**
|
|
272
|
+
* @license lucide-react v1.14.0 - ISC
|
|
273
|
+
*
|
|
274
|
+
* This source code is licensed under the ISC license.
|
|
275
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
+
*/const RE=[["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"}]],Ny=ke("type",RE);/**
|
|
277
|
+
* @license lucide-react v1.14.0 - ISC
|
|
278
|
+
*
|
|
279
|
+
* This source code is licensed under the ISC license.
|
|
280
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
+
*/const NE=[["rect",{width:"8",height:"6",x:"5",y:"4",rx:"1",key:"nzclkv"}],["rect",{width:"8",height:"6",x:"11",y:"14",rx:"1",key:"4tytwb"}]],s0=ke("ungroup",NE);function c0(n){var o,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(o=0;o<s;o++)n[o]&&(l=c0(n[o]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function u0(){for(var n,o,l=0,i="",s=arguments.length;l<s;l++)(n=arguments[l])&&(o=c0(n))&&(i&&(i+=" "),i+=o);return i}const OE=(n,o)=>{const l=new Array(n.length+o.length);for(let i=0;i<n.length;i++)l[i]=n[i];for(let i=0;i<o.length;i++)l[n.length+i]=o[i];return l},zE=(n,o)=>({classGroupId:n,validator:o}),f0=(n=new Map,o=null,l)=>({nextPart:n,validators:o,classGroupId:l}),Hs="-",Oy=[],DE="arbitrary..",jE=n=>{const o=LE(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return kE(f);const m=f.split(Hs),h=m[0]===""&&m.length>1?1:0;return d0(m,h,o)},getConflictingClassGroupIds:(f,m)=>{if(m){const h=i[f],p=l[f];return h?p?OE(p,h):h:p||Oy}return l[f]||Oy}}},d0=(n,o,l)=>{if(n.length-o===0)return l.classGroupId;const s=n[o],u=l.nextPart.get(s);if(u){const p=d0(n,o+1,u);if(p)return p}const f=l.validators;if(f===null)return;const m=o===0?n.join(Hs):n.slice(o).join(Hs),h=f.length;for(let p=0;p<h;p++){const v=f[p];if(v.validator(m))return v.classGroupId}},kE=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const o=n.slice(1,-1),l=o.indexOf(":"),i=o.slice(0,l);return i?DE+i:void 0})(),LE=n=>{const{theme:o,classGroups:l}=n;return HE(l,o)},HE=(n,o)=>{const l=f0();for(const i in n){const s=n[i];Ud(s,l,i,o)}return l},Ud=(n,o,l,i)=>{const s=n.length;for(let u=0;u<s;u++){const f=n[u];BE(f,o,l,i)}},BE=(n,o,l,i)=>{if(typeof n=="string"){UE(n,o,l);return}if(typeof n=="function"){GE(n,o,l,i);return}YE(n,o,l,i)},UE=(n,o,l)=>{const i=n===""?o:m0(o,n);i.classGroupId=l},GE=(n,o,l,i)=>{if(IE(n)){Ud(n(i),o,l,i);return}o.validators===null&&(o.validators=[]),o.validators.push(zE(l,n))},YE=(n,o,l,i)=>{const s=Object.entries(n),u=s.length;for(let f=0;f<u;f++){const[m,h]=s[f];Ud(h,m0(o,m),l,i)}},m0=(n,o)=>{let l=n;const i=o.split(Hs),s=i.length;for(let u=0;u<s;u++){const f=i[u];let m=l.nextPart.get(f);m||(m=f0(),l.nextPart.set(f,m)),l=m}return l},IE=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,VE=n=>{if(n<1)return{get:()=>{},set:()=>{}};let o=0,l=Object.create(null),i=Object.create(null);const s=(u,f)=>{l[u]=f,o++,o>n&&(o=0,i=l,l=Object.create(null))};return{get(u){let f=l[u];if(f!==void 0)return f;if((f=i[u])!==void 0)return s(u,f),f},set(u,f){u in l?l[u]=f:s(u,f)}}},ud="!",zy=":",qE=[],Dy=(n,o,l,i,s)=>({modifiers:n,hasImportantModifier:o,baseClassName:l,maybePostfixModifierPosition:i,isExternal:s}),XE=n=>{const{prefix:o,experimentalParseClassName:l}=n;let i=s=>{const u=[];let f=0,m=0,h=0,p;const v=s.length;for(let T=0;T<v;T++){const A=s[T];if(f===0&&m===0){if(A===zy){u.push(s.slice(h,T)),h=T+1;continue}if(A==="/"){p=T;continue}}A==="["?f++:A==="]"?f--:A==="("?m++:A===")"&&m--}const g=u.length===0?s:s.slice(h);let S=g,w=!1;g.endsWith(ud)?(S=g.slice(0,-1),w=!0):g.startsWith(ud)&&(S=g.slice(1),w=!0);const C=p&&p>h?p-h:void 0;return Dy(u,w,S,C)};if(o){const s=o+zy,u=i;i=f=>f.startsWith(s)?u(f.slice(s.length)):Dy(qE,!1,f,void 0,!0)}if(l){const s=i;i=u=>l({className:u,parseClassName:s})}return i},PE=n=>{const o=new Map;return n.orderSensitiveModifiers.forEach((l,i)=>{o.set(l,1e6+i)}),l=>{const i=[];let s=[];for(let u=0;u<l.length;u++){const f=l[u],m=f[0]==="[",h=o.has(f);m||h?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(f)):s.push(f)}return s.length>0&&(s.sort(),i.push(...s)),i}},$E=n=>({cache:VE(n.cacheSize),parseClassName:XE(n),sortModifiers:PE(n),...jE(n)}),KE=/\s+/,QE=(n,o)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=o,f=[],m=n.trim().split(KE);let h="";for(let p=m.length-1;p>=0;p-=1){const v=m[p],{isExternal:g,modifiers:S,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:T}=l(v);if(g){h=v+(h.length>0?" "+h:h);continue}let A=!!T,_=i(A?C.substring(0,T):C);if(!_){if(!A){h=v+(h.length>0?" "+h:h);continue}if(_=i(C),!_){h=v+(h.length>0?" "+h:h);continue}A=!1}const z=S.length===0?"":S.length===1?S[0]:u(S).join(":"),H=w?z+ud:z,I=H+_;if(f.indexOf(I)>-1)continue;f.push(I);const Q=s(_,A);for(let D=0;D<Q.length;++D){const N=Q[D];f.push(H+N)}h=v+(h.length>0?" "+h:h)}return h},FE=(...n)=>{let o=0,l,i,s="";for(;o<n.length;)(l=n[o++])&&(i=h0(l))&&(s&&(s+=" "),s+=i);return s},h0=n=>{if(typeof n=="string")return n;let o,l="";for(let i=0;i<n.length;i++)n[i]&&(o=h0(n[i]))&&(l&&(l+=" "),l+=o);return l},ZE=(n,...o)=>{let l,i,s,u;const f=h=>{const p=o.reduce((v,g)=>g(v),n());return l=$E(p),i=l.cache.get,s=l.cache.set,u=m,m(h)},m=h=>{const p=i(h);if(p)return p;const v=QE(h,l);return s(h,v),v};return u=f,(...h)=>u(FE(...h))},JE=[],Rt=n=>{const o=l=>l[n]||JE;return o.isThemeGetter=!0,o},p0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,g0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,WE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,eT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,nT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,oT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qa=n=>WE.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Fa=n=>!!n&&Number.isInteger(Number(n)),Lf=n=>n.endsWith("%")&&je(n.slice(0,-1)),xa=n=>eT.test(n),y0=()=>!0,rT=n=>tT.test(n)&&!nT.test(n),Gd=()=>!1,lT=n=>aT.test(n),iT=n=>oT.test(n),sT=n=>!ve(n)&&!be(n),cT=n=>lo(n,x0,Gd),ve=n=>p0.test(n),Oo=n=>lo(n,S0,rT),jy=n=>lo(n,yT,je),uT=n=>lo(n,E0,y0),fT=n=>lo(n,w0,Gd),ky=n=>lo(n,v0,Gd),dT=n=>lo(n,b0,iT),hs=n=>lo(n,T0,lT),be=n=>g0.test(n),kl=n=>Go(n,S0),mT=n=>Go(n,w0),Ly=n=>Go(n,v0),hT=n=>Go(n,x0),pT=n=>Go(n,b0),ps=n=>Go(n,T0,!0),gT=n=>Go(n,E0,!0),lo=(n,o,l)=>{const i=p0.exec(n);return i?i[1]?o(i[1]):l(i[2]):!1},Go=(n,o,l=!1)=>{const i=g0.exec(n);return i?i[1]?o(i[1]):l:!1},v0=n=>n==="position"||n==="percentage",b0=n=>n==="image"||n==="url",x0=n=>n==="length"||n==="size"||n==="bg-size",S0=n=>n==="length",yT=n=>n==="number",w0=n=>n==="family-name",E0=n=>n==="number"||n==="weight",T0=n=>n==="shadow",vT=()=>{const n=Rt("color"),o=Rt("font"),l=Rt("text"),i=Rt("font-weight"),s=Rt("tracking"),u=Rt("leading"),f=Rt("breakpoint"),m=Rt("container"),h=Rt("spacing"),p=Rt("radius"),v=Rt("shadow"),g=Rt("inset-shadow"),S=Rt("text-shadow"),w=Rt("drop-shadow"),C=Rt("blur"),T=Rt("perspective"),A=Rt("aspect"),_=Rt("ease"),z=Rt("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...I(),be,ve],D=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],j=()=>[be,ve,h],L=()=>[Qa,"full","auto",...j()],P=()=>[Fa,"none","subgrid",be,ve],J=()=>["auto",{span:["full",Fa,be,ve]},Fa,be,ve],le=()=>[Fa,"auto",be,ve],re=()=>["auto","min","max","fr",be,ve],ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],se=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...j()],Y=()=>[Qa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...j()],B=()=>[Qa,"screen","full","dvw","lvw","svw","min","max","fit",...j()],$=()=>[Qa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...j()],X=()=>[n,be,ve],R=()=>[...I(),Ly,ky,{position:[be,ve]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",hT,cT,{size:[be,ve]}],ne=()=>[Lf,kl,Oo],oe=()=>["","none","full",p,be,ve],ce=()=>["",je,kl,Oo],ie=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[je,Lf,Ly,ky],_e=()=>["","none",C,be,ve],Ee=()=>["none",je,be,ve],we=()=>["none",je,be,ve],lt=()=>[je,be,ve],qe=()=>[Qa,"full",...j()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[y0],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[sT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",je],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qa,ve,be,A]}],container:["container"],columns:[{columns:[je,ve,be,m]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Q()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Fa,"auto",be,ve]}],basis:[{basis:[Qa,"full","auto",m,...j()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Qa,"auto","initial","none",ve]}],grow:[{grow:["",je,be,ve]}],shrink:[{shrink:["",je,be,ve]}],order:[{order:[Fa,"first","last","none",be,ve]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:J()}],"col-start":[{"col-start":le()}],"col-end":[{"col-end":le()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:J()}],"row-start":[{"row-start":le()}],"row-end":[{"row-end":le()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:j()}],"gap-x":[{"gap-x":j()}],"gap-y":[{"gap-y":j()}],"justify-content":[{justify:[...ee(),"normal"]}],"justify-items":[{"justify-items":[...se(),"normal"]}],"justify-self":[{"justify-self":["auto",...se()]}],"align-content":[{content:["normal",...ee()]}],"align-items":[{items:[...se(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...se(),{baseline:["","last"]}]}],"place-content":[{"place-content":ee()}],"place-items":[{"place-items":[...se(),"baseline"]}],"place-self":[{"place-self":["auto",...se()]}],p:[{p:j()}],px:[{px:j()}],py:[{py:j()}],ps:[{ps:j()}],pe:[{pe:j()}],pbs:[{pbs:j()}],pbe:[{pbe:j()}],pt:[{pt:j()}],pr:[{pr:j()}],pb:[{pb:j()}],pl:[{pl:j()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":j()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":j()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...B()]}],"min-inline-size":[{"min-inline":["auto",...B()]}],"max-inline-size":[{"max-inline":["none",...B()]}],"block-size":[{block:["auto",...$()]}],"min-block-size":[{"min-block":["auto",...$()]}],"max-block-size":[{"max-block":["none",...$()]}],w:[{w:[m,"screen",...Y()]}],"min-w":[{"min-w":[m,"screen","none",...Y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",l,kl,Oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,gT,uT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lf,ve]}],"font-family":[{font:[mT,fT,o]}],"font-features":[{"font-features":[ve]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,be,ve]}],"line-clamp":[{"line-clamp":[je,"none",be,jy]}],leading:[{leading:[u,...j()]}],"list-image":[{"list-image":["none",be,ve]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ve]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:X()}],"text-color":[{text:X()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",be,Oo]}],"text-decoration-color":[{decoration:X()}],"underline-offset":[{"underline-offset":[je,"auto",be,ve]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",be,ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fa,be,ve],radial:["",be,ve],conic:[Fa,be,ve]},pT,dT]}],"bg-color":[{bg:X()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:X()}],"gradient-via":[{via:X()}],"gradient-to":[{to:X()}],rounded:[{rounded:oe()}],"rounded-s":[{"rounded-s":oe()}],"rounded-e":[{"rounded-e":oe()}],"rounded-t":[{"rounded-t":oe()}],"rounded-r":[{"rounded-r":oe()}],"rounded-b":[{"rounded-b":oe()}],"rounded-l":[{"rounded-l":oe()}],"rounded-ss":[{"rounded-ss":oe()}],"rounded-se":[{"rounded-se":oe()}],"rounded-ee":[{"rounded-ee":oe()}],"rounded-es":[{"rounded-es":oe()}],"rounded-tl":[{"rounded-tl":oe()}],"rounded-tr":[{"rounded-tr":oe()}],"rounded-br":[{"rounded-br":oe()}],"rounded-bl":[{"rounded-bl":oe()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-bs":[{"border-bs":ce()}],"border-w-be":[{"border-be":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:X()}],"border-color-x":[{"border-x":X()}],"border-color-y":[{"border-y":X()}],"border-color-s":[{"border-s":X()}],"border-color-e":[{"border-e":X()}],"border-color-bs":[{"border-bs":X()}],"border-color-be":[{"border-be":X()}],"border-color-t":[{"border-t":X()}],"border-color-r":[{"border-r":X()}],"border-color-b":[{"border-b":X()}],"border-color-l":[{"border-l":X()}],"divide-color":[{divide:X()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,be,ve]}],"outline-w":[{outline:["",je,kl,Oo]}],"outline-color":[{outline:X()}],shadow:[{shadow:["","none",v,ps,hs]}],"shadow-color":[{shadow:X()}],"inset-shadow":[{"inset-shadow":["none",g,ps,hs]}],"inset-shadow-color":[{"inset-shadow":X()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:X()}],"ring-offset-w":[{"ring-offset":[je,Oo]}],"ring-offset-color":[{"ring-offset":X()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":X()}],"text-shadow":[{"text-shadow":["none",S,ps,hs]}],"text-shadow-color":[{"text-shadow":X()}],opacity:[{opacity:[je,be,ve]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":X()}],"mask-image-linear-to-color":[{"mask-linear-to":X()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":X()}],"mask-image-t-to-color":[{"mask-t-to":X()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":X()}],"mask-image-r-to-color":[{"mask-r-to":X()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":X()}],"mask-image-b-to-color":[{"mask-b-to":X()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":X()}],"mask-image-l-to-color":[{"mask-l-to":X()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":X()}],"mask-image-x-to-color":[{"mask-x-to":X()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":X()}],"mask-image-y-to-color":[{"mask-y-to":X()}],"mask-image-radial":[{"mask-radial":[be,ve]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":X()}],"mask-image-radial-to-color":[{"mask-radial-to":X()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":I()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":X()}],"mask-image-conic-to-color":[{"mask-conic-to":X()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ve]}],filter:[{filter:["","none",be,ve]}],blur:[{blur:_e()}],brightness:[{brightness:[je,be,ve]}],contrast:[{contrast:[je,be,ve]}],"drop-shadow":[{"drop-shadow":["","none",w,ps,hs]}],"drop-shadow-color":[{"drop-shadow":X()}],grayscale:[{grayscale:["",je,be,ve]}],"hue-rotate":[{"hue-rotate":[je,be,ve]}],invert:[{invert:["",je,be,ve]}],saturate:[{saturate:[je,be,ve]}],sepia:[{sepia:["",je,be,ve]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ve]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[je,be,ve]}],"backdrop-contrast":[{"backdrop-contrast":[je,be,ve]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,be,ve]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,be,ve]}],"backdrop-invert":[{"backdrop-invert":["",je,be,ve]}],"backdrop-opacity":[{"backdrop-opacity":[je,be,ve]}],"backdrop-saturate":[{"backdrop-saturate":[je,be,ve]}],"backdrop-sepia":[{"backdrop-sepia":["",je,be,ve]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":j()}],"border-spacing-x":[{"border-spacing-x":j()}],"border-spacing-y":[{"border-spacing-y":j()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ve]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",be,ve]}],ease:[{ease:["linear","initial",_,be,ve]}],delay:[{delay:[je,be,ve]}],animate:[{animate:["none",z,be,ve]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[T,be,ve]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:lt()}],"skew-x":[{"skew-x":lt()}],"skew-y":[{"skew-y":lt()}],transform:[{transform:[be,ve,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:X()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:X()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",be,ve]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mbs":[{"scroll-mbs":j()}],"scroll-mbe":[{"scroll-mbe":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pbs":[{"scroll-pbs":j()}],"scroll-pbe":[{"scroll-pbe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",be,ve]}],fill:[{fill:["none",...X()]}],"stroke-w":[{stroke:[je,kl,Oo,jy]}],stroke:[{stroke:["none",...X()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},bT=ZE(vT);function $e(...n){return bT(u0(n))}const xT=[{id:"html",label:"Single HTML",desc:"Package as one shareable offline page, with built-in presenter view",icon:W2},{id:"pdf",label:"PDF",desc:"Export as a printable PDF document",icon:tE},{id:"pptx",label:"PPTX",desc:"Export as a PowerPoint file",icon:gE,soon:!0},{id:"gslides",label:"Google Slides",desc:"Sync to Google Slides",icon:q2,soon:!0}];function ST({title:n,onTitleChange:o,onPresent:l,onExportPdf:i,isSaving:s}){const[u,f]=b.useState(!1),[m,h]=b.useState(0),p=b.useRef(null),v=n||"Untitled presentation";b.useEffect(()=>{const w=C=>{p.current&&!p.current.contains(C.target)&&f(!1)};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const g=b.useCallback(w=>{if(!w)return;const C=w.getBoundingClientRect().width;h(Math.ceil(C))},[]),S=w=>{if(f(!1),w.soon){Sy(`${w.label} is not available yet.`,{description:"We are still building this export option."});return}if(w.id==="pdf"){i==null||i("all");return}Sy(`Exporting as ${w.label}...`)};return x.jsxs("header",{className:"px-6 h-14 flex items-center justify-between bg-white border-b border-foreground/[0.06]",children:[x.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[x.jsx("div",{className:"w-8 h-8 rounded-lg bg-foreground flex items-center justify-center shrink-0",children:x.jsx("span",{className:"text-background font-bold text-sm font-display",children:"P"})}),x.jsx("div",{className:"w-px h-5 bg-foreground/10"}),x.jsxs("div",{className:"relative min-w-0 flex-1",children:[x.jsx("input",{value:n,onChange:w=>o==null?void 0:o(w.target.value),className:"max-w-full min-w-0 flex-none rounded-md bg-transparent px-2 py-1 text-[14px] font-medium text-foreground outline-none focus:bg-foreground/[0.04]",style:m?{width:`${m}px`}:void 0,placeholder:"Untitled presentation"}),x.jsx("span",{ref:g,"aria-hidden":"true",className:"pointer-events-none invisible absolute left-0 top-0 whitespace-pre rounded-md px-2 py-1 text-[14px] font-medium",children:v},v)]}),s?x.jsx("span",{className:"inline-flex h-5 shrink-0 items-center rounded-md border border-foreground/[0.08] bg-foreground/[0.03] px-2 text-[10px] font-medium uppercase leading-none tracking-wider text-foreground/45","aria-live":"polite",children:"saving..."}):null]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs("div",{className:"relative",ref:p,children:[x.jsxs("button",{type:"button",onClick:()=>f(w=>!w),className:"h-8 px-3 rounded-md flex items-center gap-1.5 text-[13px] text-foreground/70 hover:bg-foreground/[0.04] hover:text-foreground transition-colors",children:[x.jsx(Q2,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Export"}),x.jsx(Pl,{className:$e("w-3 h-3 transition-transform",u&&"rotate-180")})]}),u&&x.jsxs("div",{className:"absolute right-0 mt-1.5 w-[280px] bg-white rounded-xl border border-foreground/[0.08] shadow-[0_4px_20px_rgba(0,0,0,0.06),0_12px_40px_rgba(0,0,0,0.08)] p-1.5 animate-fade-in z-50",children:[x.jsx("div",{className:"text-[10px] uppercase tracking-wider text-foreground/40 px-2.5 py-1.5 font-medium",children:"Export formats"}),xT.map(w=>{const C=w.icon;return x.jsxs("button",{type:"button",onClick:()=>S(w),className:$e("w-full text-left px-2.5 py-2 rounded-md flex items-start gap-2.5 transition-colors",w.soon?"opacity-50 cursor-not-allowed":"hover:bg-foreground/[0.04] cursor-pointer"),children:[x.jsx("div",{className:"w-7 h-7 rounded-md bg-foreground/[0.04] flex items-center justify-center shrink-0 mt-0.5",children:x.jsx(C,{className:"w-3.5 h-3.5 text-foreground/70"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsxs("div",{className:"flex items-center gap-1.5",children:[x.jsx("span",{className:"text-[13px] font-medium text-foreground",children:w.label}),w.soon&&x.jsx("span",{className:"text-[10px] px-1.5 py-0.5 rounded bg-foreground/[0.06] text-foreground/50 uppercase tracking-wider",children:"Soon"})]}),x.jsx("div",{className:"text-[11px] text-foreground/50 mt-0.5 leading-snug",children:w.desc})]}),!w.soon&&x.jsx(l0,{className:"w-3 h-3 text-foreground/0 mt-2"})]},w.id)}),x.jsx("div",{className:"my-1 h-px bg-foreground/[0.08]"}),x.jsx("button",{type:"button",onClick:()=>{f(!1),i==null||i("current")},className:"w-full rounded-md px-2.5 py-2 text-left text-[12px] font-medium text-foreground/70 transition-colors hover:bg-foreground/[0.04] hover:text-foreground",children:"Current slide PDF"}),x.jsx("button",{type:"button",onClick:()=>{f(!1),i==null||i("selected")},className:"w-full rounded-md px-2.5 py-2 text-left text-[12px] font-medium text-foreground/70 transition-colors hover:bg-foreground/[0.04] hover:text-foreground",children:"Selected slides PDF"})]})]}),x.jsxs("button",{type:"button",onClick:l,className:"h-8 px-3.5 rounded-md flex items-center gap-1.5 text-[13px] font-medium bg-foreground text-background hover:bg-foreground/90 transition-colors",children:[x.jsx(hE,{className:"w-3.5 h-3.5"}),x.jsx("span",{children:"Present"})]})]})]})}function Hy(n,o){if(typeof n=="function")return n(o);n!=null&&(n.current=o)}function Yd(...n){return o=>{let l=!1;const i=n.map(s=>{const u=Hy(s,o);return!l&&typeof u=="function"&&(l=!0),u});if(l)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():Hy(n[s],null)}}}}function Ke(...n){return b.useCallback(Yd(...n),n)}function jr(n){const o=ET(n),l=b.forwardRef((i,s)=>{const{children:u,...f}=i,m=b.Children.toArray(u),h=m.find(CT);if(h){const p=h.props.children,v=m.map(g=>g===h?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:g);return x.jsx(o,{...f,ref:s,children:b.isValidElement(p)?b.cloneElement(p,void 0,v):null})}return x.jsx(o,{...f,ref:s,children:u})});return l.displayName=`${n}.Slot`,l}var wT=jr("Slot");function ET(n){const o=b.forwardRef((l,i)=>{const{children:s,...u}=l;if(b.isValidElement(s)){const f=_T(s),m=AT(u,s.props);return s.type!==b.Fragment&&(m.ref=i?Yd(i,f):f),b.cloneElement(s,m)}return b.Children.count(s)>1?b.Children.only(null):null});return o.displayName=`${n}.SlotClone`,o}var C0=Symbol("radix.slottable");function TT(n){const o=({children:l})=>x.jsx(x.Fragment,{children:l});return o.displayName=`${n}.Slottable`,o.__radixId=C0,o}function CT(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===C0}function AT(n,o){const l={...o};for(const i in o){const s=n[i],u=o[i];/^on[A-Z]/.test(i)?s&&u?l[i]=(...m)=>{const h=u(...m);return s(...m),h}:s&&(l[i]=s):i==="style"?l[i]={...s,...u}:i==="className"&&(l[i]=[s,u].filter(Boolean).join(" "))}return{...n,...l}}function _T(n){var i,s;let o=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?n.ref:(o=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var MT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=MT.reduce((n,o)=>{const l=jr(`Primitive.${o}`),i=b.forwardRef((s,u)=>{const{asChild:f,...m}=s,h=f?l:o;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(h,{...m,ref:u})});return i.displayName=`Primitive.${o}`,{...n,[o]:i}},{});function A0(n,o){n&&Xl.flushSync(()=>n.dispatchEvent(o))}var _0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),RT="VisuallyHidden",M0=b.forwardRef((n,o)=>x.jsx(Ie.span,{...n,ref:o,style:{..._0,...n.style}}));M0.displayName=RT;var NT=M0;function io(n,o=[]){let l=[];function i(u,f){const m=b.createContext(f),h=l.length;l=[...l,f];const p=g=>{var _;const{scope:S,children:w,...C}=g,T=((_=S==null?void 0:S[n])==null?void 0:_[h])||m,A=b.useMemo(()=>C,Object.values(C));return x.jsx(T.Provider,{value:A,children:w})};p.displayName=u+"Provider";function v(g,S){var T;const w=((T=S==null?void 0:S[n])==null?void 0:T[h])||m,C=b.useContext(w);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${g}\` must be used within \`${u}\``)}return[p,v]}const s=()=>{const u=l.map(f=>b.createContext(f));return function(m){const h=(m==null?void 0:m[n])||u;return b.useMemo(()=>({[`__scope${n}`]:{...m,[n]:h}}),[m,h])}};return s.scopeName=n,[i,OT(s,...o)]}function OT(...n){const o=n[0];if(n.length===1)return o;const l=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(u){const f=i.reduce((m,{useScope:h,scopeName:p})=>{const g=h(u)[`__scope${p}`];return{...m,...g}},{});return b.useMemo(()=>({[`__scope${o.scopeName}`]:f}),[f])}};return l.scopeName=o.scopeName,l}function Id(n){const o=n+"CollectionProvider",[l,i]=io(o),[s,u]=l(o,{collectionRef:{current:null},itemMap:new Map}),f=T=>{const{scope:A,children:_}=T,z=fe.useRef(null),H=fe.useRef(new Map).current;return x.jsx(s,{scope:A,itemMap:H,collectionRef:z,children:_})};f.displayName=o;const m=n+"CollectionSlot",h=jr(m),p=fe.forwardRef((T,A)=>{const{scope:_,children:z}=T,H=u(m,_),I=Ke(A,H.collectionRef);return x.jsx(h,{ref:I,children:z})});p.displayName=m;const v=n+"CollectionItemSlot",g="data-radix-collection-item",S=jr(v),w=fe.forwardRef((T,A)=>{const{scope:_,children:z,...H}=T,I=fe.useRef(null),Q=Ke(A,I),D=u(v,_);return fe.useEffect(()=>(D.itemMap.set(I,{ref:I,...H}),()=>void D.itemMap.delete(I))),x.jsx(S,{[g]:"",ref:Q,children:z})});w.displayName=v;function C(T){const A=u(n+"CollectionConsumer",T);return fe.useCallback(()=>{const z=A.collectionRef.current;if(!z)return[];const H=Array.from(z.querySelectorAll(`[${g}]`));return Array.from(A.itemMap.values()).sort((D,N)=>H.indexOf(D.ref.current)-H.indexOf(N.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:f,Slot:p,ItemSlot:w},C,i]}function pe(n,o,{checkForDefaultPrevented:l=!0}={}){return function(s){if(n==null||n(s),l===!1||!s.defaultPrevented)return o==null?void 0:o(s)}}var Gt=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},zT=Iv[" useInsertionEffect ".trim().toString()]||Gt;function Bs({prop:n,defaultProp:o,onChange:l=()=>{},caller:i}){const[s,u,f]=DT({defaultProp:o,onChange:l}),m=n!==void 0,h=m?n:s;{const v=b.useRef(n!==void 0);b.useEffect(()=>{const g=v.current;g!==m&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=m},[m,i])}const p=b.useCallback(v=>{var g;if(m){const S=jT(v)?v(n):v;S!==n&&((g=f.current)==null||g.call(f,S))}else u(v)},[m,n,u,f]);return[h,p]}function DT({defaultProp:n,onChange:o}){const[l,i]=b.useState(n),s=b.useRef(l),u=b.useRef(o);return zT(()=>{u.current=o},[o]),b.useEffect(()=>{var f;s.current!==l&&((f=u.current)==null||f.call(u,l),s.current=l)},[l,s]),[l,i,u]}function jT(n){return typeof n=="function"}function kT(n,o){return b.useReducer((l,i)=>o[l][i]??l,n)}var Wn=n=>{const{present:o,children:l}=n,i=LT(o),s=typeof l=="function"?l({present:i.isPresent}):b.Children.only(l),u=Ke(i.ref,HT(s));return typeof l=="function"||i.isPresent?b.cloneElement(s,{ref:u}):null};Wn.displayName="Presence";function LT(n){const[o,l]=b.useState(),i=b.useRef(null),s=b.useRef(n),u=b.useRef("none"),f=n?"mounted":"unmounted",[m,h]=kT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const p=gs(i.current);u.current=m==="mounted"?p:"none"},[m]),Gt(()=>{const p=i.current,v=s.current;if(v!==n){const S=u.current,w=gs(p);n?h("MOUNT"):w==="none"||(p==null?void 0:p.display)==="none"?h("UNMOUNT"):h(v&&S!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,h]),Gt(()=>{if(o){let p;const v=o.ownerDocument.defaultView??window,g=w=>{const T=gs(i.current).includes(CSS.escape(w.animationName));if(w.target===o&&T&&(h("ANIMATION_END"),!s.current)){const A=o.style.animationFillMode;o.style.animationFillMode="forwards",p=v.setTimeout(()=>{o.style.animationFillMode==="forwards"&&(o.style.animationFillMode=A)})}},S=w=>{w.target===o&&(u.current=gs(i.current))};return o.addEventListener("animationstart",S),o.addEventListener("animationcancel",g),o.addEventListener("animationend",g),()=>{v.clearTimeout(p),o.removeEventListener("animationstart",S),o.removeEventListener("animationcancel",g),o.removeEventListener("animationend",g)}}else h("ANIMATION_END")},[o,h]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(p=>{i.current=p?getComputedStyle(p):null,l(p)},[])}}function gs(n){return(n==null?void 0:n.animationName)||"none"}function HT(n){var i,s;let o=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=o&&"isReactWarning"in o&&o.isReactWarning;return l?n.ref:(o=(s=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:s.get,l=o&&"isReactWarning"in o&&o.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var BT=Iv[" useId ".trim().toString()]||(()=>{}),UT=0;function kr(n){const[o,l]=b.useState(BT());return Gt(()=>{l(i=>i??String(UT++))},[n]),n||(o?`radix-${o}`:"")}var GT=b.createContext(void 0);function Js(n){const o=b.useContext(GT);return n||o||"ltr"}function Nt(n){const o=b.useRef(n);return b.useEffect(()=>{o.current=n}),b.useMemo(()=>(...l)=>{var i;return(i=o.current)==null?void 0:i.call(o,...l)},[])}function YT(n,o=globalThis==null?void 0:globalThis.document){const l=Nt(n);b.useEffect(()=>{const i=s=>{s.key==="Escape"&&l(s)};return o.addEventListener("keydown",i,{capture:!0}),()=>o.removeEventListener("keydown",i,{capture:!0})},[l,o])}var IT="DismissableLayer",fd="dismissableLayer.update",VT="dismissableLayer.pointerDownOutside",qT="dismissableLayer.focusOutside",By,R0=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ws=b.forwardRef((n,o)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:f,onDismiss:m,...h}=n,p=b.useContext(R0),[v,g]=b.useState(null),S=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=b.useState({}),C=Ke(o,N=>g(N)),T=Array.from(p.layers),[A]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),_=T.indexOf(A),z=v?T.indexOf(v):-1,H=p.layersWithOutsidePointerEventsDisabled.size>0,I=z>=_,Q=$T(N=>{const j=N.target,L=[...p.branches].some(P=>P.contains(j));!I||L||(s==null||s(N),f==null||f(N),N.defaultPrevented||m==null||m())},S),D=KT(N=>{const j=N.target;[...p.branches].some(P=>P.contains(j))||(u==null||u(N),f==null||f(N),N.defaultPrevented||m==null||m())},S);return YT(N=>{z===p.layers.size-1&&(i==null||i(N),!N.defaultPrevented&&m&&(N.preventDefault(),m()))},S),b.useEffect(()=>{if(v)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(By=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),Uy(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=By)}},[v,S,l,p]),b.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),Uy())},[v,p]),b.useEffect(()=>{const N=()=>w({});return document.addEventListener(fd,N),()=>document.removeEventListener(fd,N)},[]),x.jsx(Ie.div,{...h,ref:C,style:{pointerEvents:H?I?"auto":"none":void 0,...n.style},onFocusCapture:pe(n.onFocusCapture,D.onFocusCapture),onBlurCapture:pe(n.onBlurCapture,D.onBlurCapture),onPointerDownCapture:pe(n.onPointerDownCapture,Q.onPointerDownCapture)})});Ws.displayName=IT;var XT="DismissableLayerBranch",PT=b.forwardRef((n,o)=>{const l=b.useContext(R0),i=b.useRef(null),s=Ke(o,i);return b.useEffect(()=>{const u=i.current;if(u)return l.branches.add(u),()=>{l.branches.delete(u)}},[l.branches]),x.jsx(Ie.div,{...n,ref:s})});PT.displayName=XT;function $T(n,o=globalThis==null?void 0:globalThis.document){const l=Nt(n),i=b.useRef(!1),s=b.useRef(()=>{});return b.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let h=function(){N0(VT,l,p,{discrete:!0})};const p={originalEvent:m};m.pointerType==="touch"?(o.removeEventListener("click",s.current),s.current=h,o.addEventListener("click",s.current,{once:!0})):h()}else o.removeEventListener("click",s.current);i.current=!1},f=window.setTimeout(()=>{o.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),o.removeEventListener("pointerdown",u),o.removeEventListener("click",s.current)}},[o,l]),{onPointerDownCapture:()=>i.current=!0}}function KT(n,o=globalThis==null?void 0:globalThis.document){const l=Nt(n),i=b.useRef(!1);return b.useEffect(()=>{const s=u=>{u.target&&!i.current&&N0(qT,l,{originalEvent:u},{discrete:!1})};return o.addEventListener("focusin",s),()=>o.removeEventListener("focusin",s)},[o,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Uy(){const n=new CustomEvent(fd);document.dispatchEvent(n)}function N0(n,o,l,{discrete:i}){const s=l.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});o&&s.addEventListener(n,o,{once:!0}),i?A0(s,u):s.dispatchEvent(u)}var Hf="focusScope.autoFocusOnMount",Bf="focusScope.autoFocusOnUnmount",Gy={bubbles:!1,cancelable:!0},QT="FocusScope",Vd=b.forwardRef((n,o)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...f}=n,[m,h]=b.useState(null),p=Nt(s),v=Nt(u),g=b.useRef(null),S=Ke(o,T=>h(T)),w=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(i){let T=function(H){if(w.paused||!m)return;const I=H.target;m.contains(I)?g.current=I:Wa(g.current,{select:!0})},A=function(H){if(w.paused||!m)return;const I=H.relatedTarget;I!==null&&(m.contains(I)||Wa(g.current,{select:!0}))},_=function(H){if(document.activeElement===document.body)for(const Q of H)Q.removedNodes.length>0&&Wa(m)};document.addEventListener("focusin",T),document.addEventListener("focusout",A);const z=new MutationObserver(_);return m&&z.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",T),document.removeEventListener("focusout",A),z.disconnect()}}},[i,m,w.paused]),b.useEffect(()=>{if(m){Iy.add(w);const T=document.activeElement;if(!m.contains(T)){const _=new CustomEvent(Hf,Gy);m.addEventListener(Hf,p),m.dispatchEvent(_),_.defaultPrevented||(FT(tC(O0(m)),{select:!0}),document.activeElement===T&&Wa(m))}return()=>{m.removeEventListener(Hf,p),setTimeout(()=>{const _=new CustomEvent(Bf,Gy);m.addEventListener(Bf,v),m.dispatchEvent(_),_.defaultPrevented||Wa(T??document.body,{select:!0}),m.removeEventListener(Bf,v),Iy.remove(w)},0)}}},[m,p,v,w]);const C=b.useCallback(T=>{if(!l&&!i||w.paused)return;const A=T.key==="Tab"&&!T.altKey&&!T.ctrlKey&&!T.metaKey,_=document.activeElement;if(A&&_){const z=T.currentTarget,[H,I]=ZT(z);H&&I?!T.shiftKey&&_===I?(T.preventDefault(),l&&Wa(H,{select:!0})):T.shiftKey&&_===H&&(T.preventDefault(),l&&Wa(I,{select:!0})):_===z&&T.preventDefault()}},[l,i,w.paused]);return x.jsx(Ie.div,{tabIndex:-1,...f,ref:S,onKeyDown:C})});Vd.displayName=QT;function FT(n,{select:o=!1}={}){const l=document.activeElement;for(const i of n)if(Wa(i,{select:o}),document.activeElement!==l)return}function ZT(n){const o=O0(n),l=Yy(o,n),i=Yy(o.reverse(),n);return[l,i]}function O0(n){const o=[],l=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)o.push(l.currentNode);return o}function Yy(n,o){for(const l of n)if(!JT(l,{upTo:o}))return l}function JT(n,{upTo:o}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(o!==void 0&&n===o)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function WT(n){return n instanceof HTMLInputElement&&"select"in n}function Wa(n,{select:o=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&WT(n)&&o&&n.select()}}var Iy=eC();function eC(){let n=[];return{add(o){const l=n[0];o!==l&&(l==null||l.pause()),n=Vy(n,o),n.unshift(o)},remove(o){var l;n=Vy(n,o),(l=n[0])==null||l.resume()}}}function Vy(n,o){const l=[...n],i=l.indexOf(o);return i!==-1&&l.splice(i,1),l}function tC(n){return n.filter(o=>o.tagName!=="A")}var nC="Portal",qd=b.forwardRef((n,o)=>{var m;const{container:l,...i}=n,[s,u]=b.useState(!1);Gt(()=>u(!0),[]);const f=l||s&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return f?qv.createPortal(x.jsx(Ie.div,{...i,ref:o}),f):null});qd.displayName=nC;var Uf=0;function z0(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??qy()),document.body.insertAdjacentElement("beforeend",n[1]??qy()),Uf++,()=>{Uf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(o=>o.remove()),Uf--}},[])}function qy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Fn=function(){return Fn=Object.assign||function(o){for(var l,i=1,s=arguments.length;i<s;i++){l=arguments[i];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(o[u]=l[u])}return o},Fn.apply(this,arguments)};function D0(n,o){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)o.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(l[i[s]]=n[i[s]]);return l}function aC(n,o,l){if(l||arguments.length===2)for(var i=0,s=o.length,u;i<s;i++)(u||!(i in o))&&(u||(u=Array.prototype.slice.call(o,0,i)),u[i]=o[i]);return n.concat(u||Array.prototype.slice.call(o))}var Ms="right-scroll-bar-position",Rs="width-before-scroll-bar",oC="with-scroll-bars-hidden",rC="--removed-body-scroll-bar-size";function Gf(n,o){return typeof n=="function"?n(o):n&&(n.current=o),n}function lC(n,o){var l=b.useState(function(){return{value:n,callback:o,facade:{get current(){return l.value},set current(i){var s=l.value;s!==i&&(l.value=i,l.callback(i,s))}}}})[0];return l.callback=o,l.facade}var iC=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xy=new WeakMap;function sC(n,o){var l=lC(null,function(i){return n.forEach(function(s){return Gf(s,i)})});return iC(function(){var i=Xy.get(l);if(i){var s=new Set(i),u=new Set(n),f=l.current;s.forEach(function(m){u.has(m)||Gf(m,null)}),u.forEach(function(m){s.has(m)||Gf(m,f)})}Xy.set(l,n)},[n]),l}function cC(n){return n}function uC(n,o){o===void 0&&(o=cC);var l=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:n},useMedium:function(u){var f=o(u,i);return l.push(f),function(){l=l.filter(function(m){return m!==f})}},assignSyncMedium:function(u){for(i=!0;l.length;){var f=l;l=[],f.forEach(u)}l={push:function(m){return u(m)},filter:function(){return l}}},assignMedium:function(u){i=!0;var f=[];if(l.length){var m=l;l=[],m.forEach(u),f=l}var h=function(){var v=f;f=[],v.forEach(u)},p=function(){return Promise.resolve().then(h)};p(),l={push:function(v){f.push(v),p()},filter:function(v){return f=f.filter(v),l}}}};return s}function fC(n){n===void 0&&(n={});var o=uC(null);return o.options=Fn({async:!0,ssr:!1},n),o}var j0=function(n){var o=n.sideCar,l=D0(n,["sideCar"]);if(!o)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=o.read();if(!i)throw new Error("Sidecar medium not found");return b.createElement(i,Fn({},l))};j0.isSideCarExport=!0;function dC(n,o){return n.useMedium(o),j0}var k0=fC(),Yf=function(){},ec=b.forwardRef(function(n,o){var l=b.useRef(null),i=b.useState({onScrollCapture:Yf,onWheelCapture:Yf,onTouchMoveCapture:Yf}),s=i[0],u=i[1],f=n.forwardProps,m=n.children,h=n.className,p=n.removeScrollBar,v=n.enabled,g=n.shards,S=n.sideCar,w=n.noRelative,C=n.noIsolation,T=n.inert,A=n.allowPinchZoom,_=n.as,z=_===void 0?"div":_,H=n.gapMode,I=D0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=S,D=sC([l,o]),N=Fn(Fn({},I),s);return b.createElement(b.Fragment,null,v&&b.createElement(Q,{sideCar:k0,removeScrollBar:p,shards:g,noRelative:w,noIsolation:C,inert:T,setCallbacks:u,allowPinchZoom:!!A,lockRef:l,gapMode:H}),f?b.cloneElement(b.Children.only(m),Fn(Fn({},N),{ref:D})):b.createElement(z,Fn({},N,{className:h,ref:D}),m))});ec.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ec.classNames={fullWidth:Rs,zeroRight:Ms};var mC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var o=mC();return o&&n.setAttribute("nonce",o),n}function pC(n,o){n.styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o))}function gC(n){var o=document.head||document.getElementsByTagName("head")[0];o.appendChild(n)}var yC=function(){var n=0,o=null;return{add:function(l){n==0&&(o=hC())&&(pC(o,l),gC(o)),n++},remove:function(){n--,!n&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}},vC=function(){var n=yC();return function(o,l){b.useEffect(function(){return n.add(o),function(){n.remove()}},[o&&l])}},L0=function(){var n=vC(),o=function(l){var i=l.styles,s=l.dynamic;return n(i,s),null};return o},bC={left:0,top:0,right:0,gap:0},If=function(n){return parseInt(n||"",10)||0},xC=function(n){var o=window.getComputedStyle(document.body),l=o[n==="padding"?"paddingLeft":"marginLeft"],i=o[n==="padding"?"paddingTop":"marginTop"],s=o[n==="padding"?"paddingRight":"marginRight"];return[If(l),If(i),If(s)]},SC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return bC;var o=xC(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,i-l+o[2]-o[0])}},wC=L0(),zr="data-scroll-locked",EC=function(n,o,l,i){var s=n.left,u=n.top,f=n.right,m=n.gap;return l===void 0&&(l="margin"),`
|
|
282
|
+
.`.concat(oC,` {
|
|
283
|
+
overflow: hidden `).concat(i,`;
|
|
284
|
+
padding-right: `).concat(m,"px ").concat(i,`;
|
|
285
|
+
}
|
|
286
|
+
body[`).concat(zr,`] {
|
|
287
|
+
overflow: hidden `).concat(i,`;
|
|
288
|
+
overscroll-behavior: contain;
|
|
289
|
+
`).concat([o&&"position: relative ".concat(i,";"),l==="margin"&&`
|
|
290
|
+
padding-left: `.concat(s,`px;
|
|
291
|
+
padding-top: `).concat(u,`px;
|
|
292
|
+
padding-right: `).concat(f,`px;
|
|
293
|
+
margin-left:0;
|
|
294
|
+
margin-top:0;
|
|
295
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
296
|
+
`),l==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.`).concat(Ms,` {
|
|
300
|
+
right: `).concat(m,"px ").concat(i,`;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.`).concat(Rs,` {
|
|
304
|
+
margin-right: `).concat(m,"px ").concat(i,`;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.`).concat(Ms," .").concat(Ms,` {
|
|
308
|
+
right: 0 `).concat(i,`;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.`).concat(Rs," .").concat(Rs,` {
|
|
312
|
+
margin-right: 0 `).concat(i,`;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
body[`).concat(zr,`] {
|
|
316
|
+
`).concat(rC,": ").concat(m,`px;
|
|
317
|
+
}
|
|
318
|
+
`)},Py=function(){var n=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(n)?n:0},TC=function(){b.useEffect(function(){return document.body.setAttribute(zr,(Py()+1).toString()),function(){var n=Py()-1;n<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,n.toString())}},[])},CC=function(n){var o=n.noRelative,l=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;TC();var u=b.useMemo(function(){return SC(s)},[s]);return b.createElement(wC,{styles:EC(u,!o,s,l?"":"!important")})},dd=!1;if(typeof window<"u")try{var ys=Object.defineProperty({},"passive",{get:function(){return dd=!0,!0}});window.addEventListener("test",ys,ys),window.removeEventListener("test",ys,ys)}catch{dd=!1}var _r=dd?{passive:!1}:!1,AC=function(n){return n.tagName==="TEXTAREA"},H0=function(n,o){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[o]!=="hidden"&&!(l.overflowY===l.overflowX&&!AC(n)&&l[o]==="visible")},_C=function(n){return H0(n,"overflowY")},MC=function(n){return H0(n,"overflowX")},$y=function(n,o){var l=o.ownerDocument,i=o;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=B0(n,i);if(s){var u=U0(n,i),f=u[1],m=u[2];if(f>m)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},RC=function(n){var o=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[o,l,i]},NC=function(n){var o=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[o,l,i]},B0=function(n,o){return n==="v"?_C(o):MC(o)},U0=function(n,o){return n==="v"?RC(o):NC(o)},OC=function(n,o){return n==="h"&&o==="rtl"?-1:1},zC=function(n,o,l,i,s){var u=OC(n,window.getComputedStyle(o).direction),f=u*i,m=l.target,h=o.contains(m),p=!1,v=f>0,g=0,S=0;do{if(!m)break;var w=U0(n,m),C=w[0],T=w[1],A=w[2],_=T-A-u*C;(C||_)&&B0(n,m)&&(g+=_,S+=C);var z=m.parentNode;m=z&&z.nodeType===Node.DOCUMENT_FRAGMENT_NODE?z.host:z}while(!h&&m!==document.body||h&&(o.contains(m)||o===m));return(v&&Math.abs(g)<1||!v&&Math.abs(S)<1)&&(p=!0),p},vs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Ky=function(n){return[n.deltaX,n.deltaY]},Qy=function(n){return n&&"current"in n?n.current:n},DC=function(n,o){return n[0]===o[0]&&n[1]===o[1]},jC=function(n){return`
|
|
319
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
320
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
321
|
+
`)},kC=0,Mr=[];function LC(n){var o=b.useRef([]),l=b.useRef([0,0]),i=b.useRef(),s=b.useState(kC++)[0],u=b.useState(L0)[0],f=b.useRef(n);b.useEffect(function(){f.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var T=aC([n.lockRef.current],(n.shards||[]).map(Qy),!0).filter(Boolean);return T.forEach(function(A){return A.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),T.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=b.useCallback(function(T,A){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!f.current.allowPinchZoom;var _=vs(T),z=l.current,H="deltaX"in T?T.deltaX:z[0]-_[0],I="deltaY"in T?T.deltaY:z[1]-_[1],Q,D=T.target,N=Math.abs(H)>Math.abs(I)?"h":"v";if("touches"in T&&N==="h"&&D.type==="range")return!1;var j=window.getSelection(),L=j&&j.anchorNode,P=L?L===D||L.contains(D):!1;if(P)return!1;var J=$y(N,D);if(!J)return!0;if(J?Q=N:(Q=N==="v"?"h":"v",J=$y(N,D)),!J)return!1;if(!i.current&&"changedTouches"in T&&(H||I)&&(i.current=Q),!Q)return!0;var le=i.current||Q;return zC(le,A,T,le==="h"?H:I)},[]),h=b.useCallback(function(T){var A=T;if(!(!Mr.length||Mr[Mr.length-1]!==u)){var _="deltaY"in A?Ky(A):vs(A),z=o.current.filter(function(Q){return Q.name===A.type&&(Q.target===A.target||A.target===Q.shadowParent)&&DC(Q.delta,_)})[0];if(z&&z.should){A.cancelable&&A.preventDefault();return}if(!z){var H=(f.current.shards||[]).map(Qy).filter(Boolean).filter(function(Q){return Q.contains(A.target)}),I=H.length>0?m(A,H[0]):!f.current.noIsolation;I&&A.cancelable&&A.preventDefault()}}},[]),p=b.useCallback(function(T,A,_,z){var H={name:T,delta:A,target:_,should:z,shadowParent:HC(_)};o.current.push(H),setTimeout(function(){o.current=o.current.filter(function(I){return I!==H})},1)},[]),v=b.useCallback(function(T){l.current=vs(T),i.current=void 0},[]),g=b.useCallback(function(T){p(T.type,Ky(T),T.target,m(T,n.lockRef.current))},[]),S=b.useCallback(function(T){p(T.type,vs(T),T.target,m(T,n.lockRef.current))},[]);b.useEffect(function(){return Mr.push(u),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:S}),document.addEventListener("wheel",h,_r),document.addEventListener("touchmove",h,_r),document.addEventListener("touchstart",v,_r),function(){Mr=Mr.filter(function(T){return T!==u}),document.removeEventListener("wheel",h,_r),document.removeEventListener("touchmove",h,_r),document.removeEventListener("touchstart",v,_r)}},[]);var w=n.removeScrollBar,C=n.inert;return b.createElement(b.Fragment,null,C?b.createElement(u,{styles:jC(s)}):null,w?b.createElement(CC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function HC(n){for(var o=null;n!==null;)n instanceof ShadowRoot&&(o=n.host,n=n.host),n=n.parentNode;return o}const BC=dC(k0,LC);var Xd=b.forwardRef(function(n,o){return b.createElement(ec,Fn({},n,{ref:o,sideCar:BC}))});Xd.classNames=ec.classNames;var UC=function(n){if(typeof document>"u")return null;var o=Array.isArray(n)?n[0]:n;return o.ownerDocument.body},Rr=new WeakMap,bs=new WeakMap,xs={},Vf=0,G0=function(n){return n&&(n.host||G0(n.parentNode))},GC=function(n,o){return o.map(function(l){if(n.contains(l))return l;var i=G0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},YC=function(n,o,l,i){var s=GC(o,Array.isArray(n)?n:[n]);xs[l]||(xs[l]=new WeakMap);var u=xs[l],f=[],m=new Set,h=new Set(s),p=function(g){!g||m.has(g)||(m.add(g),p(g.parentNode))};s.forEach(p);var v=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(S){if(m.has(S))v(S);else try{var w=S.getAttribute(i),C=w!==null&&w!=="false",T=(Rr.get(S)||0)+1,A=(u.get(S)||0)+1;Rr.set(S,T),u.set(S,A),f.push(S),T===1&&C&&bs.set(S,!0),A===1&&S.setAttribute(l,"true"),C||S.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",S,_)}})};return v(o),m.clear(),Vf++,function(){f.forEach(function(g){var S=Rr.get(g)-1,w=u.get(g)-1;Rr.set(g,S),u.set(g,w),S||(bs.has(g)||g.removeAttribute(i),bs.delete(g)),w||g.removeAttribute(l)}),Vf--,Vf||(Rr=new WeakMap,Rr=new WeakMap,bs=new WeakMap,xs={})}},Y0=function(n,o,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=UC(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),YC(i,s,l,"aria-hidden")):function(){return null}};function IC(n){const o=b.useRef({value:n,previous:n});return b.useMemo(()=>(o.current.value!==n&&(o.current.previous=o.current.value,o.current.value=n),o.current.previous),[n])}function VC(n){const[o,l]=b.useState(void 0);return Gt(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let f,m;if("borderBoxSize"in u){const h=u.borderBoxSize,p=Array.isArray(h)?h[0]:h;f=p.inlineSize,m=p.blockSize}else f=n.offsetWidth,m=n.offsetHeight;l({width:f,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),o}const qC=["top","right","bottom","left"],ao=Math.min,yn=Math.max,Us=Math.round,Ss=Math.floor,Jn=n=>({x:n,y:n}),XC={left:"right",right:"left",bottom:"top",top:"bottom"};function md(n,o,l){return yn(n,ao(o,l))}function wa(n,o){return typeof n=="function"?n(o):n}function Ea(n){return n.split("-")[0]}function Gr(n){return n.split("-")[1]}function Pd(n){return n==="x"?"y":"x"}function $d(n){return n==="y"?"height":"width"}function Zn(n){const o=n[0];return o==="t"||o==="b"?"y":"x"}function Kd(n){return Pd(Zn(n))}function PC(n,o,l){l===void 0&&(l=!1);const i=Gr(n),s=Kd(n),u=$d(s);let f=s==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[u]>o.floating[u]&&(f=Gs(f)),[f,Gs(f)]}function $C(n){const o=Gs(n);return[hd(n),o,hd(o)]}function hd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Fy=["left","right"],Zy=["right","left"],KC=["top","bottom"],QC=["bottom","top"];function FC(n,o,l){switch(n){case"top":case"bottom":return l?o?Zy:Fy:o?Fy:Zy;case"left":case"right":return o?KC:QC;default:return[]}}function ZC(n,o,l,i){const s=Gr(n);let u=FC(Ea(n),l==="start",i);return s&&(u=u.map(f=>f+"-"+s),o&&(u=u.concat(u.map(hd)))),u}function Gs(n){const o=Ea(n);return XC[o]+n.slice(o.length)}function JC(n){return{top:0,right:0,bottom:0,left:0,...n}}function I0(n){return typeof n!="number"?JC(n):{top:n,right:n,bottom:n,left:n}}function Ys(n){const{x:o,y:l,width:i,height:s}=n;return{width:i,height:s,top:l,left:o,right:o+i,bottom:l+s,x:o,y:l}}function Jy(n,o,l){let{reference:i,floating:s}=n;const u=Zn(o),f=Kd(o),m=$d(f),h=Ea(o),p=u==="y",v=i.x+i.width/2-s.width/2,g=i.y+i.height/2-s.height/2,S=i[m]/2-s[m]/2;let w;switch(h){case"top":w={x:v,y:i.y-s.height};break;case"bottom":w={x:v,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:g};break;case"left":w={x:i.x-s.width,y:g};break;default:w={x:i.x,y:i.y}}switch(Gr(o)){case"start":w[f]-=S*(l&&p?-1:1);break;case"end":w[f]+=S*(l&&p?-1:1);break}return w}async function WC(n,o){var l;o===void 0&&(o={});const{x:i,y:s,platform:u,rects:f,elements:m,strategy:h}=n,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:g="floating",altBoundary:S=!1,padding:w=0}=wa(o,n),C=I0(w),A=m[S?g==="floating"?"reference":"floating":g],_=Ys(await u.getClippingRect({element:(l=await(u.isElement==null?void 0:u.isElement(A)))==null||l?A:A.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:p,rootBoundary:v,strategy:h})),z=g==="floating"?{x:i,y:s,width:f.floating.width,height:f.floating.height}:f.reference,H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),I=await(u.isElement==null?void 0:u.isElement(H))?await(u.getScale==null?void 0:u.getScale(H))||{x:1,y:1}:{x:1,y:1},Q=Ys(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:z,offsetParent:H,strategy:h}):z);return{top:(_.top-Q.top+C.top)/I.y,bottom:(Q.bottom-_.bottom+C.bottom)/I.y,left:(_.left-Q.left+C.left)/I.x,right:(Q.right-_.right+C.right)/I.x}}const eA=50,tA=async(n,o,l)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:f}=l,m=f.detectOverflow?f:{...f,detectOverflow:WC},h=await(f.isRTL==null?void 0:f.isRTL(o));let p=await f.getElementRects({reference:n,floating:o,strategy:s}),{x:v,y:g}=Jy(p,i,h),S=i,w=0;const C={};for(let T=0;T<u.length;T++){const A=u[T];if(!A)continue;const{name:_,fn:z}=A,{x:H,y:I,data:Q,reset:D}=await z({x:v,y:g,initialPlacement:i,placement:S,strategy:s,middlewareData:C,rects:p,platform:m,elements:{reference:n,floating:o}});v=H??v,g=I??g,C[_]={...C[_],...Q},D&&w<eA&&(w++,typeof D=="object"&&(D.placement&&(S=D.placement),D.rects&&(p=D.rects===!0?await f.getElementRects({reference:n,floating:o,strategy:s}):D.rects),{x:v,y:g}=Jy(p,S,h)),T=-1)}return{x:v,y:g,placement:S,strategy:s,middlewareData:C}},nA=n=>({name:"arrow",options:n,async fn(o){const{x:l,y:i,placement:s,rects:u,platform:f,elements:m,middlewareData:h}=o,{element:p,padding:v=0}=wa(n,o)||{};if(p==null)return{};const g=I0(v),S={x:l,y:i},w=Kd(s),C=$d(w),T=await f.getDimensions(p),A=w==="y",_=A?"top":"left",z=A?"bottom":"right",H=A?"clientHeight":"clientWidth",I=u.reference[C]+u.reference[w]-S[w]-u.floating[C],Q=S[w]-u.reference[w],D=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let N=D?D[H]:0;(!N||!await(f.isElement==null?void 0:f.isElement(D)))&&(N=m.floating[H]||u.floating[C]);const j=I/2-Q/2,L=N/2-T[C]/2-1,P=ao(g[_],L),J=ao(g[z],L),le=P,re=N-T[C]-J,ee=N/2-T[C]/2+j,se=md(le,ee,re),M=!h.arrow&&Gr(s)!=null&&ee!==se&&u.reference[C]/2-(ee<le?P:J)-T[C]/2<0,Y=M?ee<le?ee-le:ee-re:0;return{[w]:S[w]+Y,data:{[w]:se,centerOffset:ee-se-Y,...M&&{alignmentOffset:Y}},reset:M}}}),aA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var l,i;const{placement:s,middlewareData:u,rects:f,initialPlacement:m,platform:h,elements:p}=o,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:S,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:T=!0,...A}=wa(n,o);if((l=u.arrow)!=null&&l.alignmentOffset)return{};const _=Ea(s),z=Zn(m),H=Ea(m)===m,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),Q=S||(H||!T?[Gs(m)]:$C(m)),D=C!=="none";!S&&D&&Q.push(...ZC(m,T,C,I));const N=[m,...Q],j=await h.detectOverflow(o,A),L=[];let P=((i=u.flip)==null?void 0:i.overflows)||[];if(v&&L.push(j[_]),g){const ee=PC(s,f,I);L.push(j[ee[0]],j[ee[1]])}if(P=[...P,{placement:s,overflows:L}],!L.every(ee=>ee<=0)){var J,le;const ee=(((J=u.flip)==null?void 0:J.index)||0)+1,se=N[ee];if(se&&(!(g==="alignment"?z!==Zn(se):!1)||P.every(B=>Zn(B.placement)===z?B.overflows[0]>0:!0)))return{data:{index:ee,overflows:P},reset:{placement:se}};let M=(le=P.filter(Y=>Y.overflows[0]<=0).sort((Y,B)=>Y.overflows[1]-B.overflows[1])[0])==null?void 0:le.placement;if(!M)switch(w){case"bestFit":{var re;const Y=(re=P.filter(B=>{if(D){const $=Zn(B.placement);return $===z||$==="y"}return!0}).map(B=>[B.placement,B.overflows.filter($=>$>0).reduce(($,X)=>$+X,0)]).sort((B,$)=>B[1]-$[1])[0])==null?void 0:re[0];Y&&(M=Y);break}case"initialPlacement":M=m;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function Wy(n,o){return{top:n.top-o.height,right:n.right-o.width,bottom:n.bottom-o.height,left:n.left-o.width}}function ev(n){return qC.some(o=>n[o]>=0)}const oA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(o){const{rects:l,platform:i}=o,{strategy:s="referenceHidden",...u}=wa(n,o);switch(s){case"referenceHidden":{const f=await i.detectOverflow(o,{...u,elementContext:"reference"}),m=Wy(f,l.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:ev(m)}}}case"escaped":{const f=await i.detectOverflow(o,{...u,altBoundary:!0}),m=Wy(f,l.floating);return{data:{escapedOffsets:m,escaped:ev(m)}}}default:return{}}}}},V0=new Set(["left","top"]);async function rA(n,o){const{placement:l,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),f=Ea(l),m=Gr(l),h=Zn(l)==="y",p=V0.has(f)?-1:1,v=u&&h?-1:1,g=wa(o,n);let{mainAxis:S,crossAxis:w,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof C=="number"&&(w=m==="end"?C*-1:C),h?{x:w*v,y:S*p}:{x:S*p,y:w*v}}const lA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var l,i;const{x:s,y:u,placement:f,middlewareData:m}=o,h=await rA(o,n);return f===((l=m.offset)==null?void 0:l.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+h.x,y:u+h.y,data:{...h,placement:f}}}}},iA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){const{x:l,y:i,placement:s,platform:u}=o,{mainAxis:f=!0,crossAxis:m=!1,limiter:h={fn:_=>{let{x:z,y:H}=_;return{x:z,y:H}}},...p}=wa(n,o),v={x:l,y:i},g=await u.detectOverflow(o,p),S=Zn(Ea(s)),w=Pd(S);let C=v[w],T=v[S];if(f){const _=w==="y"?"top":"left",z=w==="y"?"bottom":"right",H=C+g[_],I=C-g[z];C=md(H,C,I)}if(m){const _=S==="y"?"top":"left",z=S==="y"?"bottom":"right",H=T+g[_],I=T-g[z];T=md(H,T,I)}const A=h.fn({...o,[w]:C,[S]:T});return{...A,data:{x:A.x-l,y:A.y-i,enabled:{[w]:f,[S]:m}}}}}},sA=function(n){return n===void 0&&(n={}),{options:n,fn(o){const{x:l,y:i,placement:s,rects:u,middlewareData:f}=o,{offset:m=0,mainAxis:h=!0,crossAxis:p=!0}=wa(n,o),v={x:l,y:i},g=Zn(s),S=Pd(g);let w=v[S],C=v[g];const T=wa(m,o),A=typeof T=="number"?{mainAxis:T,crossAxis:0}:{mainAxis:0,crossAxis:0,...T};if(h){const H=S==="y"?"height":"width",I=u.reference[S]-u.floating[H]+A.mainAxis,Q=u.reference[S]+u.reference[H]-A.mainAxis;w<I?w=I:w>Q&&(w=Q)}if(p){var _,z;const H=S==="y"?"width":"height",I=V0.has(Ea(s)),Q=u.reference[g]-u.floating[H]+(I&&((_=f.offset)==null?void 0:_[g])||0)+(I?0:A.crossAxis),D=u.reference[g]+u.reference[H]+(I?0:((z=f.offset)==null?void 0:z[g])||0)-(I?A.crossAxis:0);C<Q?C=Q:C>D&&(C=D)}return{[S]:w,[g]:C}}}},cA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var l,i;const{placement:s,rects:u,platform:f,elements:m}=o,{apply:h=()=>{},...p}=wa(n,o),v=await f.detectOverflow(o,p),g=Ea(s),S=Gr(s),w=Zn(s)==="y",{width:C,height:T}=u.floating;let A,_;g==="top"||g==="bottom"?(A=g,_=S===(await(f.isRTL==null?void 0:f.isRTL(m.floating))?"start":"end")?"left":"right"):(_=g,A=S==="end"?"top":"bottom");const z=T-v.top-v.bottom,H=C-v.left-v.right,I=ao(T-v[A],z),Q=ao(C-v[_],H),D=!o.middlewareData.shift;let N=I,j=Q;if((l=o.middlewareData.shift)!=null&&l.enabled.x&&(j=H),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(N=z),D&&!S){const P=yn(v.left,0),J=yn(v.right,0),le=yn(v.top,0),re=yn(v.bottom,0);w?j=C-2*(P!==0||J!==0?P+J:yn(v.left,v.right)):N=T-2*(le!==0||re!==0?le+re:yn(v.top,v.bottom))}await h({...o,availableWidth:j,availableHeight:N});const L=await f.getDimensions(m.floating);return C!==L.width||T!==L.height?{reset:{rects:!0}}:{}}}};function tc(){return typeof window<"u"}function Yr(n){return q0(n)?(n.nodeName||"").toLowerCase():"#document"}function vn(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function ea(n){var o;return(o=(q0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function q0(n){return tc()?n instanceof Node||n instanceof vn(n).Node:!1}function In(n){return tc()?n instanceof Element||n instanceof vn(n).Element:!1}function Ta(n){return tc()?n instanceof HTMLElement||n instanceof vn(n).HTMLElement:!1}function tv(n){return!tc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof vn(n).ShadowRoot}function $l(n){const{overflow:o,overflowX:l,overflowY:i,display:s}=Vn(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+l)&&s!=="inline"&&s!=="contents"}function uA(n){return/^(table|td|th)$/.test(Yr(n))}function nc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const fA=/transform|translate|scale|rotate|perspective|filter/,dA=/paint|layout|strict|content/,zo=n=>!!n&&n!=="none";let qf;function Qd(n){const o=In(n)?Vn(n):n;return zo(o.transform)||zo(o.translate)||zo(o.scale)||zo(o.rotate)||zo(o.perspective)||!Fd()&&(zo(o.backdropFilter)||zo(o.filter))||fA.test(o.willChange||"")||dA.test(o.contain||"")}function mA(n){let o=oo(n);for(;Ta(o)&&!Lr(o);){if(Qd(o))return o;if(nc(o))return null;o=oo(o)}return null}function Fd(){return qf==null&&(qf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qf}function Lr(n){return/^(html|body|#document)$/.test(Yr(n))}function Vn(n){return vn(n).getComputedStyle(n)}function ac(n){return In(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function oo(n){if(Yr(n)==="html")return n;const o=n.assignedSlot||n.parentNode||tv(n)&&n.host||ea(n);return tv(o)?o.host:o}function X0(n){const o=oo(n);return Lr(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ta(o)&&$l(o)?o:X0(o)}function Yl(n,o,l){var i;o===void 0&&(o=[]),l===void 0&&(l=!0);const s=X0(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),f=vn(s);if(u){const m=pd(f);return o.concat(f,f.visualViewport||[],$l(s)?s:[],m&&l?Yl(m):[])}else return o.concat(s,Yl(s,[],l))}function pd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function P0(n){const o=Vn(n);let l=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const s=Ta(n),u=s?n.offsetWidth:l,f=s?n.offsetHeight:i,m=Us(l)!==u||Us(i)!==f;return m&&(l=u,i=f),{width:l,height:i,$:m}}function Zd(n){return In(n)?n:n.contextElement}function Dr(n){const o=Zd(n);if(!Ta(o))return Jn(1);const l=o.getBoundingClientRect(),{width:i,height:s,$:u}=P0(o);let f=(u?Us(l.width):l.width)/i,m=(u?Us(l.height):l.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!m||!Number.isFinite(m))&&(m=1),{x:f,y:m}}const hA=Jn(0);function $0(n){const o=vn(n);return!Fd()||!o.visualViewport?hA:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function pA(n,o,l){return o===void 0&&(o=!1),!l||o&&l!==vn(n)?!1:o}function Ho(n,o,l,i){o===void 0&&(o=!1),l===void 0&&(l=!1);const s=n.getBoundingClientRect(),u=Zd(n);let f=Jn(1);o&&(i?In(i)&&(f=Dr(i)):f=Dr(n));const m=pA(u,l,i)?$0(u):Jn(0);let h=(s.left+m.x)/f.x,p=(s.top+m.y)/f.y,v=s.width/f.x,g=s.height/f.y;if(u){const S=vn(u),w=i&&In(i)?vn(i):i;let C=S,T=pd(C);for(;T&&i&&w!==C;){const A=Dr(T),_=T.getBoundingClientRect(),z=Vn(T),H=_.left+(T.clientLeft+parseFloat(z.paddingLeft))*A.x,I=_.top+(T.clientTop+parseFloat(z.paddingTop))*A.y;h*=A.x,p*=A.y,v*=A.x,g*=A.y,h+=H,p+=I,C=vn(T),T=pd(C)}}return Ys({width:v,height:g,x:h,y:p})}function oc(n,o){const l=ac(n).scrollLeft;return o?o.left+l:Ho(ea(n)).left+l}function K0(n,o){const l=n.getBoundingClientRect(),i=l.left+o.scrollLeft-oc(n,l),s=l.top+o.scrollTop;return{x:i,y:s}}function gA(n){let{elements:o,rect:l,offsetParent:i,strategy:s}=n;const u=s==="fixed",f=ea(i),m=o?nc(o.floating):!1;if(i===f||m&&u)return l;let h={scrollLeft:0,scrollTop:0},p=Jn(1);const v=Jn(0),g=Ta(i);if((g||!g&&!u)&&((Yr(i)!=="body"||$l(f))&&(h=ac(i)),g)){const w=Ho(i);p=Dr(i),v.x=w.x+i.clientLeft,v.y=w.y+i.clientTop}const S=f&&!g&&!u?K0(f,h):Jn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-h.scrollLeft*p.x+v.x+S.x,y:l.y*p.y-h.scrollTop*p.y+v.y+S.y}}function yA(n){return Array.from(n.getClientRects())}function vA(n){const o=ea(n),l=ac(n),i=n.ownerDocument.body,s=yn(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),u=yn(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let f=-l.scrollLeft+oc(n);const m=-l.scrollTop;return Vn(i).direction==="rtl"&&(f+=yn(o.clientWidth,i.clientWidth)-s),{width:s,height:u,x:f,y:m}}const nv=25;function bA(n,o){const l=vn(n),i=ea(n),s=l.visualViewport;let u=i.clientWidth,f=i.clientHeight,m=0,h=0;if(s){u=s.width,f=s.height;const v=Fd();(!v||v&&o==="fixed")&&(m=s.offsetLeft,h=s.offsetTop)}const p=oc(i);if(p<=0){const v=i.ownerDocument,g=v.body,S=getComputedStyle(g),w=v.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,C=Math.abs(i.clientWidth-g.clientWidth-w);C<=nv&&(u-=C)}else p<=nv&&(u+=p);return{width:u,height:f,x:m,y:h}}function xA(n,o){const l=Ho(n,!0,o==="fixed"),i=l.top+n.clientTop,s=l.left+n.clientLeft,u=Ta(n)?Dr(n):Jn(1),f=n.clientWidth*u.x,m=n.clientHeight*u.y,h=s*u.x,p=i*u.y;return{width:f,height:m,x:h,y:p}}function av(n,o,l){let i;if(o==="viewport")i=bA(n,l);else if(o==="document")i=vA(ea(n));else if(In(o))i=xA(o,l);else{const s=$0(n);i={x:o.x-s.x,y:o.y-s.y,width:o.width,height:o.height}}return Ys(i)}function Q0(n,o){const l=oo(n);return l===o||!In(l)||Lr(l)?!1:Vn(l).position==="fixed"||Q0(l,o)}function SA(n,o){const l=o.get(n);if(l)return l;let i=Yl(n,[],!1).filter(m=>In(m)&&Yr(m)!=="body"),s=null;const u=Vn(n).position==="fixed";let f=u?oo(n):n;for(;In(f)&&!Lr(f);){const m=Vn(f),h=Qd(f);!h&&m.position==="fixed"&&(s=null),(u?!h&&!s:!h&&m.position==="static"&&!!s&&(s.position==="absolute"||s.position==="fixed")||$l(f)&&!h&&Q0(n,f))?i=i.filter(v=>v!==f):s=m,f=oo(f)}return o.set(n,i),i}function wA(n){let{element:o,boundary:l,rootBoundary:i,strategy:s}=n;const f=[...l==="clippingAncestors"?nc(o)?[]:SA(o,this._c):[].concat(l),i],m=av(o,f[0],s);let h=m.top,p=m.right,v=m.bottom,g=m.left;for(let S=1;S<f.length;S++){const w=av(o,f[S],s);h=yn(w.top,h),p=ao(w.right,p),v=ao(w.bottom,v),g=yn(w.left,g)}return{width:p-g,height:v-h,x:g,y:h}}function EA(n){const{width:o,height:l}=P0(n);return{width:o,height:l}}function TA(n,o,l){const i=Ta(o),s=ea(o),u=l==="fixed",f=Ho(n,!0,u,o);let m={scrollLeft:0,scrollTop:0};const h=Jn(0);function p(){h.x=oc(s)}if(i||!i&&!u)if((Yr(o)!=="body"||$l(s))&&(m=ac(o)),i){const w=Ho(o,!0,u,o);h.x=w.x+o.clientLeft,h.y=w.y+o.clientTop}else s&&p();u&&!i&&s&&p();const v=s&&!i&&!u?K0(s,m):Jn(0),g=f.left+m.scrollLeft-h.x-v.x,S=f.top+m.scrollTop-h.y-v.y;return{x:g,y:S,width:f.width,height:f.height}}function Xf(n){return Vn(n).position==="static"}function ov(n,o){if(!Ta(n)||Vn(n).position==="fixed")return null;if(o)return o(n);let l=n.offsetParent;return ea(n)===l&&(l=l.ownerDocument.body),l}function F0(n,o){const l=vn(n);if(nc(n))return l;if(!Ta(n)){let s=oo(n);for(;s&&!Lr(s);){if(In(s)&&!Xf(s))return s;s=oo(s)}return l}let i=ov(n,o);for(;i&&uA(i)&&Xf(i);)i=ov(i,o);return i&&Lr(i)&&Xf(i)&&!Qd(i)?l:i||mA(n)||l}const CA=async function(n){const o=this.getOffsetParent||F0,l=this.getDimensions,i=await l(n.floating);return{reference:TA(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function AA(n){return Vn(n).direction==="rtl"}const _A={convertOffsetParentRelativeRectToViewportRelativeRect:gA,getDocumentElement:ea,getClippingRect:wA,getOffsetParent:F0,getElementRects:CA,getClientRects:yA,getDimensions:EA,getScale:Dr,isElement:In,isRTL:AA};function Z0(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function MA(n,o){let l=null,i;const s=ea(n);function u(){var m;clearTimeout(i),(m=l)==null||m.disconnect(),l=null}function f(m,h){m===void 0&&(m=!1),h===void 0&&(h=1),u();const p=n.getBoundingClientRect(),{left:v,top:g,width:S,height:w}=p;if(m||o(),!S||!w)return;const C=Ss(g),T=Ss(s.clientWidth-(v+S)),A=Ss(s.clientHeight-(g+w)),_=Ss(v),H={rootMargin:-C+"px "+-T+"px "+-A+"px "+-_+"px",threshold:yn(0,ao(1,h))||1};let I=!0;function Q(D){const N=D[0].intersectionRatio;if(N!==h){if(!I)return f();N?f(!1,N):i=setTimeout(()=>{f(!1,1e-7)},1e3)}N===1&&!Z0(p,n.getBoundingClientRect())&&f(),I=!1}try{l=new IntersectionObserver(Q,{...H,root:s.ownerDocument})}catch{l=new IntersectionObserver(Q,H)}l.observe(n)}return f(!0),u}function RA(n,o,l,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=i,p=Zd(n),v=s||u?[...p?Yl(p):[],...o?Yl(o):[]]:[];v.forEach(_=>{s&&_.addEventListener("scroll",l,{passive:!0}),u&&_.addEventListener("resize",l)});const g=p&&m?MA(p,l):null;let S=-1,w=null;f&&(w=new ResizeObserver(_=>{let[z]=_;z&&z.target===p&&w&&o&&(w.unobserve(o),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var H;(H=w)==null||H.observe(o)})),l()}),p&&!h&&w.observe(p),o&&w.observe(o));let C,T=h?Ho(n):null;h&&A();function A(){const _=Ho(n);T&&!Z0(T,_)&&l(),T=_,C=requestAnimationFrame(A)}return l(),()=>{var _;v.forEach(z=>{s&&z.removeEventListener("scroll",l),u&&z.removeEventListener("resize",l)}),g==null||g(),(_=w)==null||_.disconnect(),w=null,h&&cancelAnimationFrame(C)}}const NA=lA,OA=iA,zA=aA,DA=cA,jA=oA,rv=nA,kA=sA,LA=(n,o,l)=>{const i=new Map,s={platform:_A,...l},u={...s.platform,_c:i};return tA(n,o,{...s,platform:u})};var HA=typeof document<"u",BA=function(){},Ns=HA?b.useLayoutEffect:BA;function Is(n,o){if(n===o)return!0;if(typeof n!=typeof o)return!1;if(typeof n=="function"&&n.toString()===o.toString())return!0;let l,i,s;if(n&&o&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==o.length)return!1;for(i=l;i--!==0;)if(!Is(n[i],o[i]))return!1;return!0}if(s=Object.keys(n),l=s.length,l!==Object.keys(o).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(o,s[i]))return!1;for(i=l;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!Is(n[u],o[u]))return!1}return!0}return n!==n&&o!==o}function J0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function lv(n,o){const l=J0(n);return Math.round(o*l)/l}function Pf(n){const o=b.useRef(n);return Ns(()=>{o.current=n}),o}function UA(n){n===void 0&&(n={});const{placement:o="bottom",strategy:l="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:f}={},transform:m=!0,whileElementsMounted:h,open:p}=n,[v,g]=b.useState({x:0,y:0,strategy:l,placement:o,middlewareData:{},isPositioned:!1}),[S,w]=b.useState(i);Is(S,i)||w(i);const[C,T]=b.useState(null),[A,_]=b.useState(null),z=b.useCallback(B=>{B!==D.current&&(D.current=B,T(B))},[]),H=b.useCallback(B=>{B!==N.current&&(N.current=B,_(B))},[]),I=u||C,Q=f||A,D=b.useRef(null),N=b.useRef(null),j=b.useRef(v),L=h!=null,P=Pf(h),J=Pf(s),le=Pf(p),re=b.useCallback(()=>{if(!D.current||!N.current)return;const B={placement:o,strategy:l,middleware:S};J.current&&(B.platform=J.current),LA(D.current,N.current,B).then($=>{const X={...$,isPositioned:le.current!==!1};ee.current&&!Is(j.current,X)&&(j.current=X,Xl.flushSync(()=>{g(X)}))})},[S,o,l,J,le]);Ns(()=>{p===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,g(B=>({...B,isPositioned:!1})))},[p]);const ee=b.useRef(!1);Ns(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Ns(()=>{if(I&&(D.current=I),Q&&(N.current=Q),I&&Q){if(P.current)return P.current(I,Q,re);re()}},[I,Q,re,P,L]);const se=b.useMemo(()=>({reference:D,floating:N,setReference:z,setFloating:H}),[z,H]),M=b.useMemo(()=>({reference:I,floating:Q}),[I,Q]),Y=b.useMemo(()=>{const B={position:l,left:0,top:0};if(!M.floating)return B;const $=lv(M.floating,v.x),X=lv(M.floating,v.y);return m?{...B,transform:"translate("+$+"px, "+X+"px)",...J0(M.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:$,top:X}},[l,m,M.floating,v.x,v.y]);return b.useMemo(()=>({...v,update:re,refs:se,elements:M,floatingStyles:Y}),[v,re,se,M,Y])}const GA=n=>{function o(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:i,padding:s}=typeof n=="function"?n(l):n;return i&&o(i)?i.current!=null?rv({element:i.current,padding:s}).fn(l):{}:i?rv({element:i,padding:s}).fn(l):{}}}},YA=(n,o)=>{const l=NA(n);return{name:l.name,fn:l.fn,options:[n,o]}},IA=(n,o)=>{const l=OA(n);return{name:l.name,fn:l.fn,options:[n,o]}},VA=(n,o)=>({fn:kA(n).fn,options:[n,o]}),qA=(n,o)=>{const l=zA(n);return{name:l.name,fn:l.fn,options:[n,o]}},XA=(n,o)=>{const l=DA(n);return{name:l.name,fn:l.fn,options:[n,o]}},PA=(n,o)=>{const l=jA(n);return{name:l.name,fn:l.fn,options:[n,o]}},$A=(n,o)=>{const l=GA(n);return{name:l.name,fn:l.fn,options:[n,o]}};var KA="Arrow",W0=b.forwardRef((n,o)=>{const{children:l,width:i=10,height:s=5,...u}=n;return x.jsx(Ie.svg,{...u,ref:o,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});W0.displayName=KA;var QA=W0,Jd="Popper",[eb,Ir]=io(Jd),[FA,tb]=eb(Jd),nb=n=>{const{__scopePopper:o,children:l}=n,[i,s]=b.useState(null);return x.jsx(FA,{scope:o,anchor:i,onAnchorChange:s,children:l})};nb.displayName=Jd;var ab="PopperAnchor",ob=b.forwardRef((n,o)=>{const{__scopePopper:l,virtualRef:i,...s}=n,u=tb(ab,l),f=b.useRef(null),m=Ke(o,f),h=b.useRef(null);return b.useEffect(()=>{const p=h.current;h.current=(i==null?void 0:i.current)||f.current,p!==h.current&&u.onAnchorChange(h.current)}),i?null:x.jsx(Ie.div,{...s,ref:m})});ob.displayName=ab;var Wd="PopperContent",[ZA,JA]=eb(Wd),rb=b.forwardRef((n,o)=>{var ie,me,de,_e,Ee,we;const{__scopePopper:l,side:i="bottom",sideOffset:s=0,align:u="center",alignOffset:f=0,arrowPadding:m=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:g="partial",hideWhenDetached:S=!1,updatePositionStrategy:w="optimized",onPlaced:C,...T}=n,A=tb(Wd,l),[_,z]=b.useState(null),H=Ke(o,lt=>z(lt)),[I,Q]=b.useState(null),D=VC(I),N=(D==null?void 0:D.width)??0,j=(D==null?void 0:D.height)??0,L=i+(u!=="center"?"-"+u:""),P=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},J=Array.isArray(p)?p:[p],le=J.length>0,re={padding:P,boundary:J.filter(e_),altBoundary:le},{refs:ee,floatingStyles:se,placement:M,isPositioned:Y,middlewareData:B}=UA({strategy:"fixed",placement:L,whileElementsMounted:(...lt)=>RA(...lt,{animationFrame:w==="always"}),elements:{reference:A.anchor},middleware:[YA({mainAxis:s+j,alignmentAxis:f}),h&&IA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?VA():void 0,...re}),h&&qA({...re}),XA({...re,apply:({elements:lt,rects:qe,availableWidth:Yt,availableHeight:Dt})=>{const{width:vt,height:Ne}=qe.reference,ge=lt.floating.style;ge.setProperty("--radix-popper-available-width",`${Yt}px`),ge.setProperty("--radix-popper-available-height",`${Dt}px`),ge.setProperty("--radix-popper-anchor-width",`${vt}px`),ge.setProperty("--radix-popper-anchor-height",`${Ne}px`)}}),I&&$A({element:I,padding:m}),t_({arrowWidth:N,arrowHeight:j}),S&&PA({strategy:"referenceHidden",...re})]}),[$,X]=sb(M),R=Nt(C);Gt(()=>{Y&&(R==null||R())},[Y,R]);const G=(ie=B.arrow)==null?void 0:ie.x,F=(me=B.arrow)==null?void 0:me.y,ne=((de=B.arrow)==null?void 0:de.centerOffset)!==0,[oe,ce]=b.useState();return Gt(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),x.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...se,transform:Y?se.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(_e=B.transformOrigin)==null?void 0:_e.x,(Ee=B.transformOrigin)==null?void 0:Ee.y].join(" "),...((we=B.hide)==null?void 0:we.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:x.jsx(ZA,{scope:l,placedSide:$,onArrowChange:Q,arrowX:G,arrowY:F,shouldHideArrow:ne,children:x.jsx(Ie.div,{"data-side":$,"data-align":X,...T,ref:H,style:{...T.style,animation:Y?void 0:"none"}})})})});rb.displayName=Wd;var lb="PopperArrow",WA={top:"bottom",right:"left",bottom:"top",left:"right"},ib=b.forwardRef(function(o,l){const{__scopePopper:i,...s}=o,u=JA(lb,i),f=WA[u.placedSide];return x.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:x.jsx(QA,{...s,ref:l,style:{...s.style,display:"block"}})})});ib.displayName=lb;function e_(n){return n!==null}var t_=n=>({name:"transformOrigin",options:n,fn(o){var A,_,z;const{placement:l,rects:i,middlewareData:s}=o,f=((A=s.arrow)==null?void 0:A.centerOffset)!==0,m=f?0:n.arrowWidth,h=f?0:n.arrowHeight,[p,v]=sb(l),g={start:"0%",center:"50%",end:"100%"}[v],S=(((_=s.arrow)==null?void 0:_.x)??0)+m/2,w=(((z=s.arrow)==null?void 0:z.y)??0)+h/2;let C="",T="";return p==="bottom"?(C=f?g:`${S}px`,T=`${-h}px`):p==="top"?(C=f?g:`${S}px`,T=`${i.floating.height+h}px`):p==="right"?(C=`${-h}px`,T=f?g:`${w}px`):p==="left"&&(C=`${i.floating.width+h}px`,T=f?g:`${w}px`),{data:{x:C,y:T}}}});function sb(n){const[o,l="center"]=n.split("-");return[o,l]}var em=nb,tm=ob,nm=rb,am=ib,$f="rovingFocusGroup.onEntryFocus",n_={bubbles:!1,cancelable:!0},Kl="RovingFocusGroup",[gd,cb,a_]=Id(Kl),[o_,ub]=io(Kl,[a_]),[r_,l_]=o_(Kl),fb=b.forwardRef((n,o)=>x.jsx(gd.Provider,{scope:n.__scopeRovingFocusGroup,children:x.jsx(gd.Slot,{scope:n.__scopeRovingFocusGroup,children:x.jsx(i_,{...n,ref:o})})}));fb.displayName=Kl;var i_=b.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:l,orientation:i,loop:s=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:p,preventScrollOnEntryFocus:v=!1,...g}=n,S=b.useRef(null),w=Ke(o,S),C=Js(u),[T,A]=Bs({prop:f,defaultProp:m??null,onChange:h,caller:Kl}),[_,z]=b.useState(!1),H=Nt(p),I=cb(l),Q=b.useRef(!1),[D,N]=b.useState(0);return b.useEffect(()=>{const j=S.current;if(j)return j.addEventListener($f,H),()=>j.removeEventListener($f,H)},[H]),x.jsx(r_,{scope:l,orientation:i,dir:C,loop:s,currentTabStopId:T,onItemFocus:b.useCallback(j=>A(j),[A]),onItemShiftTab:b.useCallback(()=>z(!0),[]),onFocusableItemAdd:b.useCallback(()=>N(j=>j+1),[]),onFocusableItemRemove:b.useCallback(()=>N(j=>j-1),[]),children:x.jsx(Ie.div,{tabIndex:_||D===0?-1:0,"data-orientation":i,...g,ref:w,style:{outline:"none",...n.style},onMouseDown:pe(n.onMouseDown,()=>{Q.current=!0}),onFocus:pe(n.onFocus,j=>{const L=!Q.current;if(j.target===j.currentTarget&&L&&!_){const P=new CustomEvent($f,n_);if(j.currentTarget.dispatchEvent(P),!P.defaultPrevented){const J=I().filter(M=>M.focusable),le=J.find(M=>M.active),re=J.find(M=>M.id===T),se=[le,re,...J].filter(Boolean).map(M=>M.ref.current);hb(se,v)}}Q.current=!1}),onBlur:pe(n.onBlur,()=>z(!1))})})}),db="RovingFocusGroupItem",mb=b.forwardRef((n,o)=>{const{__scopeRovingFocusGroup:l,focusable:i=!0,active:s=!1,tabStopId:u,children:f,...m}=n,h=kr(),p=u||h,v=l_(db,l),g=v.currentTabStopId===p,S=cb(l),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:T}=v;return b.useEffect(()=>{if(i)return w(),()=>C()},[i,w,C]),x.jsx(gd.ItemSlot,{scope:l,id:p,focusable:i,active:s,children:x.jsx(Ie.span,{tabIndex:g?0:-1,"data-orientation":v.orientation,...m,ref:o,onMouseDown:pe(n.onMouseDown,A=>{i?v.onItemFocus(p):A.preventDefault()}),onFocus:pe(n.onFocus,()=>v.onItemFocus(p)),onKeyDown:pe(n.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){v.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const _=u_(A,v.orientation,v.dir);if(_!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let H=S().filter(I=>I.focusable).map(I=>I.ref.current);if(_==="last")H.reverse();else if(_==="prev"||_==="next"){_==="prev"&&H.reverse();const I=H.indexOf(A.currentTarget);H=v.loop?f_(H,I+1):H.slice(I+1)}setTimeout(()=>hb(H))}}),children:typeof f=="function"?f({isCurrentTabStop:g,hasTabStop:T!=null}):f})})});mb.displayName=db;var s_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function c_(n,o){return o!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function u_(n,o,l){const i=c_(n.key,l);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return s_[i]}function hb(n,o=!1){const l=document.activeElement;for(const i of n)if(i===l||(i.focus({preventScroll:o}),document.activeElement!==l))return}function f_(n,o){return n.map((l,i)=>n[(o+i)%n.length])}var d_=fb,m_=mb,yd=["Enter"," "],h_=["ArrowDown","PageUp","Home"],pb=["ArrowUp","PageDown","End"],p_=[...h_,...pb],g_={ltr:[...yd,"ArrowRight"],rtl:[...yd,"ArrowLeft"]},y_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ql="Menu",[Il,v_,b_]=Id(Ql),[Yo,gb]=io(Ql,[b_,Ir,ub]),Fl=Ir(),yb=ub(),[vb,so]=Yo(Ql),[x_,Zl]=Yo(Ql),bb=n=>{const{__scopeMenu:o,open:l=!1,children:i,dir:s,onOpenChange:u,modal:f=!0}=n,m=Fl(o),[h,p]=b.useState(null),v=b.useRef(!1),g=Nt(u),S=Js(s);return b.useEffect(()=>{const w=()=>{v.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>v.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),x.jsx(em,{...m,children:x.jsx(vb,{scope:o,open:l,onOpenChange:g,content:h,onContentChange:p,children:x.jsx(x_,{scope:o,onClose:b.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:v,dir:S,modal:f,children:i})})})};bb.displayName=Ql;var S_="MenuAnchor",om=b.forwardRef((n,o)=>{const{__scopeMenu:l,...i}=n,s=Fl(l);return x.jsx(tm,{...s,...i,ref:o})});om.displayName=S_;var rm="MenuPortal",[w_,xb]=Yo(rm,{forceMount:void 0}),Sb=n=>{const{__scopeMenu:o,forceMount:l,children:i,container:s}=n,u=so(rm,o);return x.jsx(w_,{scope:o,forceMount:l,children:x.jsx(Wn,{present:l||u.open,children:x.jsx(qd,{asChild:!0,container:s,children:i})})})};Sb.displayName=rm;var zn="MenuContent",[E_,lm]=Yo(zn),wb=b.forwardRef((n,o)=>{const l=xb(zn,n.__scopeMenu),{forceMount:i=l.forceMount,...s}=n,u=so(zn,n.__scopeMenu),f=Zl(zn,n.__scopeMenu);return x.jsx(Il.Provider,{scope:n.__scopeMenu,children:x.jsx(Wn,{present:i||u.open,children:x.jsx(Il.Slot,{scope:n.__scopeMenu,children:f.modal?x.jsx(T_,{...s,ref:o}):x.jsx(C_,{...s,ref:o})})})})}),T_=b.forwardRef((n,o)=>{const l=so(zn,n.__scopeMenu),i=b.useRef(null),s=Ke(o,i);return b.useEffect(()=>{const u=i.current;if(u)return Y0(u)},[]),x.jsx(im,{...n,ref:s,trapFocus:l.open,disableOutsidePointerEvents:l.open,disableOutsideScroll:!0,onFocusOutside:pe(n.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>l.onOpenChange(!1)})}),C_=b.forwardRef((n,o)=>{const l=so(zn,n.__scopeMenu);return x.jsx(im,{...n,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>l.onOpenChange(!1)})}),A_=jr("MenuContent.ScrollLock"),im=b.forwardRef((n,o)=>{const{__scopeMenu:l,loop:i=!1,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:m,onEntryFocus:h,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:S,onDismiss:w,disableOutsideScroll:C,...T}=n,A=so(zn,l),_=Zl(zn,l),z=Fl(l),H=yb(l),I=v_(l),[Q,D]=b.useState(null),N=b.useRef(null),j=Ke(o,N,A.onContentChange),L=b.useRef(0),P=b.useRef(""),J=b.useRef(0),le=b.useRef(null),re=b.useRef("right"),ee=b.useRef(0),se=C?Xd:b.Fragment,M=C?{as:A_,allowPinchZoom:!0}:void 0,Y=$=>{var ie,me;const X=P.current+$,R=I().filter(de=>!de.disabled),G=document.activeElement,F=(ie=R.find(de=>de.ref.current===G))==null?void 0:ie.textValue,ne=R.map(de=>de.textValue),oe=B_(ne,X,F),ce=(me=R.find(de=>de.textValue===oe))==null?void 0:me.ref.current;(function de(_e){P.current=_e,window.clearTimeout(L.current),_e!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(X),ce&&setTimeout(()=>ce.focus())};b.useEffect(()=>()=>window.clearTimeout(L.current),[]),z0();const B=b.useCallback($=>{var R,G;return re.current===((R=le.current)==null?void 0:R.side)&&G_($,(G=le.current)==null?void 0:G.area)},[]);return x.jsx(E_,{scope:l,searchRef:P,onItemEnter:b.useCallback($=>{B($)&&$.preventDefault()},[B]),onItemLeave:b.useCallback($=>{var X;B($)||((X=N.current)==null||X.focus(),D(null))},[B]),onTriggerLeave:b.useCallback($=>{B($)&&$.preventDefault()},[B]),pointerGraceTimerRef:J,onPointerGraceIntentChange:b.useCallback($=>{le.current=$},[]),children:x.jsx(se,{...M,children:x.jsx(Vd,{asChild:!0,trapped:s,onMountAutoFocus:pe(u,$=>{var X;$.preventDefault(),(X=N.current)==null||X.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:x.jsx(Ws,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:g,onInteractOutside:S,onDismiss:w,children:x.jsx(d_,{asChild:!0,...H,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:Q,onCurrentTabStopIdChange:D,onEntryFocus:pe(h,$=>{_.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:x.jsx(nm,{role:"menu","aria-orientation":"vertical","data-state":Ub(A.open),"data-radix-menu-content":"",dir:_.dir,...z,...T,ref:j,style:{outline:"none",...T.style},onKeyDown:pe(T.onKeyDown,$=>{const R=$.target.closest("[data-radix-menu-content]")===$.currentTarget,G=$.ctrlKey||$.altKey||$.metaKey,F=$.key.length===1;R&&($.key==="Tab"&&$.preventDefault(),!G&&F&&Y($.key));const ne=N.current;if($.target!==ne||!p_.includes($.key))return;$.preventDefault();const ce=I().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);pb.includes($.key)&&ce.reverse(),L_(ce)}),onBlur:pe(n.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(L.current),P.current="")}),onPointerMove:pe(n.onPointerMove,Vl($=>{const X=$.target,R=ee.current!==$.clientX;if($.currentTarget.contains(X)&&R){const G=$.clientX>ee.current?"right":"left";re.current=G,ee.current=$.clientX}}))})})})})})})});wb.displayName=zn;var __="MenuGroup",sm=b.forwardRef((n,o)=>{const{__scopeMenu:l,...i}=n;return x.jsx(Ie.div,{role:"group",...i,ref:o})});sm.displayName=__;var M_="MenuLabel",Eb=b.forwardRef((n,o)=>{const{__scopeMenu:l,...i}=n;return x.jsx(Ie.div,{...i,ref:o})});Eb.displayName=M_;var Vs="MenuItem",iv="menu.itemSelect",rc=b.forwardRef((n,o)=>{const{disabled:l=!1,onSelect:i,...s}=n,u=b.useRef(null),f=Zl(Vs,n.__scopeMenu),m=lm(Vs,n.__scopeMenu),h=Ke(o,u),p=b.useRef(!1),v=()=>{const g=u.current;if(!l&&g){const S=new CustomEvent(iv,{bubbles:!0,cancelable:!0});g.addEventListener(iv,w=>i==null?void 0:i(w),{once:!0}),A0(g,S),S.defaultPrevented?p.current=!1:f.onClose()}};return x.jsx(Tb,{...s,ref:h,disabled:l,onClick:pe(n.onClick,v),onPointerDown:g=>{var S;(S=n.onPointerDown)==null||S.call(n,g),p.current=!0},onPointerUp:pe(n.onPointerUp,g=>{var S;p.current||(S=g.currentTarget)==null||S.click()}),onKeyDown:pe(n.onKeyDown,g=>{const S=m.searchRef.current!=="";l||S&&g.key===" "||yd.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});rc.displayName=Vs;var Tb=b.forwardRef((n,o)=>{const{__scopeMenu:l,disabled:i=!1,textValue:s,...u}=n,f=lm(Vs,l),m=yb(l),h=b.useRef(null),p=Ke(o,h),[v,g]=b.useState(!1),[S,w]=b.useState("");return b.useEffect(()=>{const C=h.current;C&&w((C.textContent??"").trim())},[u.children]),x.jsx(Il.ItemSlot,{scope:l,disabled:i,textValue:s??S,children:x.jsx(m_,{asChild:!0,...m,focusable:!i,children:x.jsx(Ie.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:p,onPointerMove:pe(n.onPointerMove,Vl(C=>{i?f.onItemLeave(C):(f.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:pe(n.onPointerLeave,Vl(C=>f.onItemLeave(C))),onFocus:pe(n.onFocus,()=>g(!0)),onBlur:pe(n.onBlur,()=>g(!1))})})})}),R_="MenuCheckboxItem",Cb=b.forwardRef((n,o)=>{const{checked:l=!1,onCheckedChange:i,...s}=n;return x.jsx(Nb,{scope:n.__scopeMenu,checked:l,children:x.jsx(rc,{role:"menuitemcheckbox","aria-checked":qs(l)?"mixed":l,...s,ref:o,"data-state":fm(l),onSelect:pe(s.onSelect,()=>i==null?void 0:i(qs(l)?!0:!l),{checkForDefaultPrevented:!1})})})});Cb.displayName=R_;var Ab="MenuRadioGroup",[N_,O_]=Yo(Ab,{value:void 0,onValueChange:()=>{}}),_b=b.forwardRef((n,o)=>{const{value:l,onValueChange:i,...s}=n,u=Nt(i);return x.jsx(N_,{scope:n.__scopeMenu,value:l,onValueChange:u,children:x.jsx(sm,{...s,ref:o})})});_b.displayName=Ab;var Mb="MenuRadioItem",Rb=b.forwardRef((n,o)=>{const{value:l,...i}=n,s=O_(Mb,n.__scopeMenu),u=l===s.value;return x.jsx(Nb,{scope:n.__scopeMenu,checked:u,children:x.jsx(rc,{role:"menuitemradio","aria-checked":u,...i,ref:o,"data-state":fm(u),onSelect:pe(i.onSelect,()=>{var f;return(f=s.onValueChange)==null?void 0:f.call(s,l)},{checkForDefaultPrevented:!1})})})});Rb.displayName=Mb;var cm="MenuItemIndicator",[Nb,z_]=Yo(cm,{checked:!1}),Ob=b.forwardRef((n,o)=>{const{__scopeMenu:l,forceMount:i,...s}=n,u=z_(cm,l);return x.jsx(Wn,{present:i||qs(u.checked)||u.checked===!0,children:x.jsx(Ie.span,{...s,ref:o,"data-state":fm(u.checked)})})});Ob.displayName=cm;var D_="MenuSeparator",zb=b.forwardRef((n,o)=>{const{__scopeMenu:l,...i}=n;return x.jsx(Ie.div,{role:"separator","aria-orientation":"horizontal",...i,ref:o})});zb.displayName=D_;var j_="MenuArrow",Db=b.forwardRef((n,o)=>{const{__scopeMenu:l,...i}=n,s=Fl(l);return x.jsx(am,{...s,...i,ref:o})});Db.displayName=j_;var um="MenuSub",[k_,jb]=Yo(um),kb=n=>{const{__scopeMenu:o,children:l,open:i=!1,onOpenChange:s}=n,u=so(um,o),f=Fl(o),[m,h]=b.useState(null),[p,v]=b.useState(null),g=Nt(s);return b.useEffect(()=>(u.open===!1&&g(!1),()=>g(!1)),[u.open,g]),x.jsx(em,{...f,children:x.jsx(vb,{scope:o,open:i,onOpenChange:g,content:p,onContentChange:v,children:x.jsx(k_,{scope:o,contentId:kr(),triggerId:kr(),trigger:m,onTriggerChange:h,children:l})})})};kb.displayName=um;var Ll="MenuSubTrigger",Lb=b.forwardRef((n,o)=>{const l=so(Ll,n.__scopeMenu),i=Zl(Ll,n.__scopeMenu),s=jb(Ll,n.__scopeMenu),u=lm(Ll,n.__scopeMenu),f=b.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:h}=u,p={__scopeMenu:n.__scopeMenu},v=b.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return b.useEffect(()=>v,[v]),b.useEffect(()=>{const g=m.current;return()=>{window.clearTimeout(g),h(null)}},[m,h]),x.jsx(om,{asChild:!0,...p,children:x.jsx(Tb,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":s.contentId,"data-state":Ub(l.open),...n,ref:Yd(o,s.onTriggerChange),onClick:g=>{var S;(S=n.onClick)==null||S.call(n,g),!(n.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),l.open||l.onOpenChange(!0))},onPointerMove:pe(n.onPointerMove,Vl(g=>{u.onItemEnter(g),!g.defaultPrevented&&!n.disabled&&!l.open&&!f.current&&(u.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{l.onOpenChange(!0),v()},100))})),onPointerLeave:pe(n.onPointerLeave,Vl(g=>{var w,C;v();const S=(w=l.content)==null?void 0:w.getBoundingClientRect();if(S){const T=(C=l.content)==null?void 0:C.dataset.side,A=T==="right",_=A?-5:5,z=S[A?"left":"right"],H=S[A?"right":"left"];u.onPointerGraceIntentChange({area:[{x:g.clientX+_,y:g.clientY},{x:z,y:S.top},{x:H,y:S.top},{x:H,y:S.bottom},{x:z,y:S.bottom}],side:T}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(g),g.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:pe(n.onKeyDown,g=>{var w;const S=u.searchRef.current!=="";n.disabled||S&&g.key===" "||g_[i.dir].includes(g.key)&&(l.onOpenChange(!0),(w=l.content)==null||w.focus(),g.preventDefault())})})})});Lb.displayName=Ll;var Hb="MenuSubContent",Bb=b.forwardRef((n,o)=>{const l=xb(zn,n.__scopeMenu),{forceMount:i=l.forceMount,...s}=n,u=so(zn,n.__scopeMenu),f=Zl(zn,n.__scopeMenu),m=jb(Hb,n.__scopeMenu),h=b.useRef(null),p=Ke(o,h);return x.jsx(Il.Provider,{scope:n.__scopeMenu,children:x.jsx(Wn,{present:i||u.open,children:x.jsx(Il.Slot,{scope:n.__scopeMenu,children:x.jsx(im,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:p,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{var g;f.isUsingKeyboardRef.current&&((g=h.current)==null||g.focus()),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:pe(n.onFocusOutside,v=>{v.target!==m.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:pe(n.onEscapeKeyDown,v=>{f.onClose(),v.preventDefault()}),onKeyDown:pe(n.onKeyDown,v=>{var w;const g=v.currentTarget.contains(v.target),S=y_[f.dir].includes(v.key);g&&S&&(u.onOpenChange(!1),(w=m.trigger)==null||w.focus(),v.preventDefault())})})})})})});Bb.displayName=Hb;function Ub(n){return n?"open":"closed"}function qs(n){return n==="indeterminate"}function fm(n){return qs(n)?"indeterminate":n?"checked":"unchecked"}function L_(n){const o=document.activeElement;for(const l of n)if(l===o||(l.focus(),document.activeElement!==o))return}function H_(n,o){return n.map((l,i)=>n[(o+i)%n.length])}function B_(n,o,l){const s=o.length>1&&Array.from(o).every(p=>p===o[0])?o[0]:o,u=l?n.indexOf(l):-1;let f=H_(n,Math.max(u,0));s.length===1&&(f=f.filter(p=>p!==l));const h=f.find(p=>p.toLowerCase().startsWith(s.toLowerCase()));return h!==l?h:void 0}function U_(n,o){const{x:l,y:i}=n;let s=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const m=o[u],h=o[f],p=m.x,v=m.y,g=h.x,S=h.y;v>i!=S>i&&l<(g-p)*(i-v)/(S-v)+p&&(s=!s)}return s}function G_(n,o){if(!o)return!1;const l={x:n.clientX,y:n.clientY};return U_(l,o)}function Vl(n){return o=>o.pointerType==="mouse"?n(o):void 0}var Y_=bb,I_=om,V_=Sb,q_=wb,X_=sm,P_=Eb,$_=rc,K_=Cb,Q_=_b,F_=Rb,Z_=Ob,J_=zb,W_=Db,eM=kb,tM=Lb,nM=Bb,dm="ContextMenu",[aM]=io(dm,[gb]),qt=gb(),[oM,Gb]=aM(dm),Yb=n=>{const{__scopeContextMenu:o,children:l,onOpenChange:i,dir:s,modal:u=!0}=n,[f,m]=b.useState(!1),h=qt(o),p=Nt(i),v=b.useCallback(g=>{m(g),p(g)},[p]);return x.jsx(oM,{scope:o,open:f,onOpenChange:v,modal:u,children:x.jsx(Y_,{...h,dir:s,open:f,onOpenChange:v,modal:u,children:l})})};Yb.displayName=dm;var Ib="ContextMenuTrigger",Vb=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,disabled:i=!1,...s}=n,u=Gb(Ib,l),f=qt(l),m=b.useRef({x:0,y:0}),h=b.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...m.current})}),p=b.useRef(0),v=b.useCallback(()=>window.clearTimeout(p.current),[]),g=S=>{m.current={x:S.clientX,y:S.clientY},u.onOpenChange(!0)};return b.useEffect(()=>v,[v]),b.useEffect(()=>void(i&&v()),[i,v]),x.jsxs(x.Fragment,{children:[x.jsx(I_,{...f,virtualRef:h}),x.jsx(Ie.span,{"data-state":u.open?"open":"closed","data-disabled":i?"":void 0,...s,ref:o,style:{WebkitTouchCallout:"none",...n.style},onContextMenu:i?n.onContextMenu:pe(n.onContextMenu,S=>{v(),g(S),S.preventDefault()}),onPointerDown:i?n.onPointerDown:pe(n.onPointerDown,ws(S=>{v(),p.current=window.setTimeout(()=>g(S),700)})),onPointerMove:i?n.onPointerMove:pe(n.onPointerMove,ws(v)),onPointerCancel:i?n.onPointerCancel:pe(n.onPointerCancel,ws(v)),onPointerUp:i?n.onPointerUp:pe(n.onPointerUp,ws(v))})]})});Vb.displayName=Ib;var rM="ContextMenuPortal",qb=n=>{const{__scopeContextMenu:o,...l}=n,i=qt(o);return x.jsx(V_,{...i,...l})};qb.displayName=rM;var Xb="ContextMenuContent",Pb=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=Gb(Xb,l),u=qt(l),f=b.useRef(!1);return x.jsx(q_,{...u,...i,ref:o,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:m=>{var h;(h=n.onCloseAutoFocus)==null||h.call(n,m),!m.defaultPrevented&&f.current&&m.preventDefault(),f.current=!1},onInteractOutside:m=>{var h;(h=n.onInteractOutside)==null||h.call(n,m),!m.defaultPrevented&&!s.modal&&(f.current=!0)},style:{...n.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Pb.displayName=Xb;var lM="ContextMenuGroup",iM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(X_,{...s,...i,ref:o})});iM.displayName=lM;var sM="ContextMenuLabel",cM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(P_,{...s,...i,ref:o})});cM.displayName=sM;var uM="ContextMenuItem",$b=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx($_,{...s,...i,ref:o})});$b.displayName=uM;var fM="ContextMenuCheckboxItem",dM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(K_,{...s,...i,ref:o})});dM.displayName=fM;var mM="ContextMenuRadioGroup",hM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(Q_,{...s,...i,ref:o})});hM.displayName=mM;var pM="ContextMenuRadioItem",gM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(F_,{...s,...i,ref:o})});gM.displayName=pM;var yM="ContextMenuItemIndicator",vM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(Z_,{...s,...i,ref:o})});vM.displayName=yM;var bM="ContextMenuSeparator",Kb=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(J_,{...s,...i,ref:o})});Kb.displayName=bM;var xM="ContextMenuArrow",SM=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(W_,{...s,...i,ref:o})});SM.displayName=xM;var Qb="ContextMenuSub",Fb=n=>{const{__scopeContextMenu:o,children:l,onOpenChange:i,open:s,defaultOpen:u}=n,f=qt(o),[m,h]=Bs({prop:s,defaultProp:u??!1,onChange:i,caller:Qb});return x.jsx(eM,{...f,open:m,onOpenChange:h,children:l})};Fb.displayName=Qb;var wM="ContextMenuSubTrigger",Zb=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(tM,{...s,...i,ref:o})});Zb.displayName=wM;var EM="ContextMenuSubContent",Jb=b.forwardRef((n,o)=>{const{__scopeContextMenu:l,...i}=n,s=qt(l);return x.jsx(nM,{...s,...i,ref:o,style:{...n.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jb.displayName=EM;function ws(n){return o=>o.pointerType!=="mouse"?n(o):void 0}var TM=Yb,CM=Vb,AM=qb,_M=Pb,MM=$b,RM=Kb,NM=Fb,OM=Zb,zM=Jb;function vd(n,[o,l]){return Math.min(l,Math.max(o,n))}function DM(n,o){return b.useReducer((l,i)=>o[l][i]??l,n)}var mm="ScrollArea",[Wb]=io(mm),[jM,Dn]=Wb(mm),ex=b.forwardRef((n,o)=>{const{__scopeScrollArea:l,type:i="hover",dir:s,scrollHideDelay:u=600,...f}=n,[m,h]=b.useState(null),[p,v]=b.useState(null),[g,S]=b.useState(null),[w,C]=b.useState(null),[T,A]=b.useState(null),[_,z]=b.useState(0),[H,I]=b.useState(0),[Q,D]=b.useState(!1),[N,j]=b.useState(!1),L=Ke(o,J=>h(J)),P=Js(s);return x.jsx(jM,{scope:l,type:i,dir:P,scrollHideDelay:u,scrollArea:m,viewport:p,onViewportChange:v,content:g,onContentChange:S,scrollbarX:w,onScrollbarXChange:C,scrollbarXEnabled:Q,onScrollbarXEnabledChange:D,scrollbarY:T,onScrollbarYChange:A,scrollbarYEnabled:N,onScrollbarYEnabledChange:j,onCornerWidthChange:z,onCornerHeightChange:I,children:x.jsx(Ie.div,{dir:P,...f,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":H+"px",...n.style}})})});ex.displayName=mm;var tx="ScrollAreaViewport",nx=b.forwardRef((n,o)=>{const{__scopeScrollArea:l,children:i,nonce:s,...u}=n,f=Dn(tx,l),m=b.useRef(null),h=Ke(o,m,f.onViewportChange);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),x.jsx(Ie.div,{"data-radix-scroll-area-viewport":"",...u,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...n.style},children:x.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});nx.displayName=tx;var ta="ScrollAreaScrollbar",ax=b.forwardRef((n,o)=>{const{forceMount:l,...i}=n,s=Dn(ta,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:f}=s,m=n.orientation==="horizontal";return b.useEffect(()=>(m?u(!0):f(!0),()=>{m?u(!1):f(!1)}),[m,u,f]),s.type==="hover"?x.jsx(kM,{...i,ref:o,forceMount:l}):s.type==="scroll"?x.jsx(LM,{...i,ref:o,forceMount:l}):s.type==="auto"?x.jsx(ox,{...i,ref:o,forceMount:l}):s.type==="always"?x.jsx(hm,{...i,ref:o}):null});ax.displayName=ta;var kM=b.forwardRef((n,o)=>{const{forceMount:l,...i}=n,s=Dn(ta,n.__scopeScrollArea),[u,f]=b.useState(!1);return b.useEffect(()=>{const m=s.scrollArea;let h=0;if(m){const p=()=>{window.clearTimeout(h),f(!0)},v=()=>{h=window.setTimeout(()=>f(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",p),m.addEventListener("pointerleave",v),()=>{window.clearTimeout(h),m.removeEventListener("pointerenter",p),m.removeEventListener("pointerleave",v)}}},[s.scrollArea,s.scrollHideDelay]),x.jsx(Wn,{present:l||u,children:x.jsx(ox,{"data-state":u?"visible":"hidden",...i,ref:o})})}),LM=b.forwardRef((n,o)=>{const{forceMount:l,...i}=n,s=Dn(ta,n.__scopeScrollArea),u=n.orientation==="horizontal",f=ic(()=>h("SCROLL_END"),100),[m,h]=DM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return b.useEffect(()=>{if(m==="idle"){const p=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(p)}},[m,s.scrollHideDelay,h]),b.useEffect(()=>{const p=s.viewport,v=u?"scrollLeft":"scrollTop";if(p){let g=p[v];const S=()=>{const w=p[v];g!==w&&(h("SCROLL"),f()),g=w};return p.addEventListener("scroll",S),()=>p.removeEventListener("scroll",S)}},[s.viewport,u,h,f]),x.jsx(Wn,{present:l||m!=="hidden",children:x.jsx(hm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:o,onPointerEnter:pe(n.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:pe(n.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),ox=b.forwardRef((n,o)=>{const l=Dn(ta,n.__scopeScrollArea),{forceMount:i,...s}=n,[u,f]=b.useState(!1),m=n.orientation==="horizontal",h=ic(()=>{if(l.viewport){const p=l.viewport.offsetWidth<l.viewport.scrollWidth,v=l.viewport.offsetHeight<l.viewport.scrollHeight;f(m?p:v)}},10);return Hr(l.viewport,h),Hr(l.content,h),x.jsx(Wn,{present:i||u,children:x.jsx(hm,{"data-state":u?"visible":"hidden",...s,ref:o})})}),hm=b.forwardRef((n,o)=>{const{orientation:l="vertical",...i}=n,s=Dn(ta,n.__scopeScrollArea),u=b.useRef(null),f=b.useRef(0),[m,h]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=cx(m.viewport,m.content),v={...i,sizes:m,onSizesChange:h,hasThumb:p>0&&p<1,onThumbChange:S=>u.current=S,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:S=>f.current=S};function g(S,w){return IM(S,f.current,m,w)}return l==="horizontal"?x.jsx(HM,{...v,ref:o,onThumbPositionChange:()=>{if(s.viewport&&u.current){const S=s.viewport.scrollLeft,w=sv(S,m,s.dir);u.current.style.transform=`translate3d(${w}px, 0, 0)`}},onWheelScroll:S=>{s.viewport&&(s.viewport.scrollLeft=S)},onDragScroll:S=>{s.viewport&&(s.viewport.scrollLeft=g(S,s.dir))}}):l==="vertical"?x.jsx(BM,{...v,ref:o,onThumbPositionChange:()=>{if(s.viewport&&u.current){const S=s.viewport.scrollTop,w=sv(S,m);u.current.style.transform=`translate3d(0, ${w}px, 0)`}},onWheelScroll:S=>{s.viewport&&(s.viewport.scrollTop=S)},onDragScroll:S=>{s.viewport&&(s.viewport.scrollTop=g(S))}}):null}),HM=b.forwardRef((n,o)=>{const{sizes:l,onSizesChange:i,...s}=n,u=Dn(ta,n.__scopeScrollArea),[f,m]=b.useState(),h=b.useRef(null),p=Ke(o,h,u.onScrollbarXChange);return b.useEffect(()=>{h.current&&m(getComputedStyle(h.current))},[h]),x.jsx(lx,{"data-orientation":"horizontal",...s,ref:p,sizes:l,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":lc(l)+"px",...n.style},onThumbPointerDown:v=>n.onThumbPointerDown(v.x),onDragScroll:v=>n.onDragScroll(v.x),onWheelScroll:(v,g)=>{if(u.viewport){const S=u.viewport.scrollLeft+v.deltaX;n.onWheelScroll(S),fx(S,g)&&v.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&i({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:h.current.clientWidth,paddingStart:Ps(f.paddingLeft),paddingEnd:Ps(f.paddingRight)}})}})}),BM=b.forwardRef((n,o)=>{const{sizes:l,onSizesChange:i,...s}=n,u=Dn(ta,n.__scopeScrollArea),[f,m]=b.useState(),h=b.useRef(null),p=Ke(o,h,u.onScrollbarYChange);return b.useEffect(()=>{h.current&&m(getComputedStyle(h.current))},[h]),x.jsx(lx,{"data-orientation":"vertical",...s,ref:p,sizes:l,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":lc(l)+"px",...n.style},onThumbPointerDown:v=>n.onThumbPointerDown(v.y),onDragScroll:v=>n.onDragScroll(v.y),onWheelScroll:(v,g)=>{if(u.viewport){const S=u.viewport.scrollTop+v.deltaY;n.onWheelScroll(S),fx(S,g)&&v.preventDefault()}},onResize:()=>{h.current&&u.viewport&&f&&i({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:h.current.clientHeight,paddingStart:Ps(f.paddingTop),paddingEnd:Ps(f.paddingBottom)}})}})}),[UM,rx]=Wb(ta),lx=b.forwardRef((n,o)=>{const{__scopeScrollArea:l,sizes:i,hasThumb:s,onThumbChange:u,onThumbPointerUp:f,onThumbPointerDown:m,onThumbPositionChange:h,onDragScroll:p,onWheelScroll:v,onResize:g,...S}=n,w=Dn(ta,l),[C,T]=b.useState(null),A=Ke(o,L=>T(L)),_=b.useRef(null),z=b.useRef(""),H=w.viewport,I=i.content-i.viewport,Q=Nt(v),D=Nt(h),N=ic(g,10);function j(L){if(_.current){const P=L.clientX-_.current.left,J=L.clientY-_.current.top;p({x:P,y:J})}}return b.useEffect(()=>{const L=P=>{const J=P.target;(C==null?void 0:C.contains(J))&&Q(P,I)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[H,C,I,Q]),b.useEffect(D,[i,D]),Hr(C,N),Hr(w.content,N),x.jsx(UM,{scope:l,scrollbar:C,hasThumb:s,onThumbChange:Nt(u),onThumbPointerUp:Nt(f),onThumbPositionChange:D,onThumbPointerDown:Nt(m),children:x.jsx(Ie.div,{...S,ref:A,style:{position:"absolute",...S.style},onPointerDown:pe(n.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),_.current=C.getBoundingClientRect(),z.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",w.viewport&&(w.viewport.style.scrollBehavior="auto"),j(L))}),onPointerMove:pe(n.onPointerMove,j),onPointerUp:pe(n.onPointerUp,L=>{const P=L.target;P.hasPointerCapture(L.pointerId)&&P.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=z.current,w.viewport&&(w.viewport.style.scrollBehavior=""),_.current=null})})})}),Xs="ScrollAreaThumb",ix=b.forwardRef((n,o)=>{const{forceMount:l,...i}=n,s=rx(Xs,n.__scopeScrollArea);return x.jsx(Wn,{present:l||s.hasThumb,children:x.jsx(GM,{ref:o,...i})})}),GM=b.forwardRef((n,o)=>{const{__scopeScrollArea:l,style:i,...s}=n,u=Dn(Xs,l),f=rx(Xs,l),{onThumbPositionChange:m}=f,h=Ke(o,g=>f.onThumbChange(g)),p=b.useRef(void 0),v=ic(()=>{p.current&&(p.current(),p.current=void 0)},100);return b.useEffect(()=>{const g=u.viewport;if(g){const S=()=>{if(v(),!p.current){const w=VM(g,m);p.current=w,m()}};return m(),g.addEventListener("scroll",S),()=>g.removeEventListener("scroll",S)}},[u.viewport,v,m]),x.jsx(Ie.div,{"data-state":f.hasThumb?"visible":"hidden",...s,ref:h,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:pe(n.onPointerDownCapture,g=>{const w=g.target.getBoundingClientRect(),C=g.clientX-w.left,T=g.clientY-w.top;f.onThumbPointerDown({x:C,y:T})}),onPointerUp:pe(n.onPointerUp,f.onThumbPointerUp)})});ix.displayName=Xs;var pm="ScrollAreaCorner",sx=b.forwardRef((n,o)=>{const l=Dn(pm,n.__scopeScrollArea),i=!!(l.scrollbarX&&l.scrollbarY);return l.type!=="scroll"&&i?x.jsx(YM,{...n,ref:o}):null});sx.displayName=pm;var YM=b.forwardRef((n,o)=>{const{__scopeScrollArea:l,...i}=n,s=Dn(pm,l),[u,f]=b.useState(0),[m,h]=b.useState(0),p=!!(u&&m);return Hr(s.scrollbarX,()=>{var g;const v=((g=s.scrollbarX)==null?void 0:g.offsetHeight)||0;s.onCornerHeightChange(v),h(v)}),Hr(s.scrollbarY,()=>{var g;const v=((g=s.scrollbarY)==null?void 0:g.offsetWidth)||0;s.onCornerWidthChange(v),f(v)}),p?x.jsx(Ie.div,{...i,ref:o,style:{width:u,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Ps(n){return n?parseInt(n,10):0}function cx(n,o){const l=n/o;return isNaN(l)?0:l}function lc(n){const o=cx(n.viewport,n.content),l=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-l)*o;return Math.max(i,18)}function IM(n,o,l,i="ltr"){const s=lc(l),u=s/2,f=o||u,m=s-f,h=l.scrollbar.paddingStart+f,p=l.scrollbar.size-l.scrollbar.paddingEnd-m,v=l.content-l.viewport,g=i==="ltr"?[0,v]:[v*-1,0];return ux([h,p],g)(n)}function sv(n,o,l="ltr"){const i=lc(o),s=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,u=o.scrollbar.size-s,f=o.content-o.viewport,m=u-i,h=l==="ltr"?[0,f]:[f*-1,0],p=vd(n,h);return ux([0,f],[0,m])(p)}function ux(n,o){return l=>{if(n[0]===n[1]||o[0]===o[1])return o[0];const i=(o[1]-o[0])/(n[1]-n[0]);return o[0]+i*(l-n[0])}}function fx(n,o){return n>0&&n<o}var VM=(n,o=()=>{})=>{let l={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},f=l.left!==u.left,m=l.top!==u.top;(f||m)&&o(),l=u,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function ic(n,o){const l=Nt(n),i=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),b.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(l,o)},[l,o])}function Hr(n,o){const l=Nt(o);Gt(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(l)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,l])}var qM=ex,XM=nx,PM=sx,$M=[" ","Enter","ArrowUp","ArrowDown"],KM=[" ","Enter"],Bo="Select",[sc,cc,QM]=Id(Bo),[Vr]=io(Bo,[QM,Ir]),uc=Ir(),[FM,co]=Vr(Bo),[ZM,JM]=Vr(Bo),dx=n=>{const{__scopeSelect:o,children:l,open:i,defaultOpen:s,onOpenChange:u,value:f,defaultValue:m,onValueChange:h,dir:p,name:v,autoComplete:g,disabled:S,required:w,form:C}=n,T=uc(o),[A,_]=b.useState(null),[z,H]=b.useState(null),[I,Q]=b.useState(!1),D=Js(p),[N,j]=Bs({prop:i,defaultProp:s??!1,onChange:u,caller:Bo}),[L,P]=Bs({prop:f,defaultProp:m,onChange:h,caller:Bo}),J=b.useRef(null),le=A?C||!!A.closest("form"):!0,[re,ee]=b.useState(new Set),se=Array.from(re).map(M=>M.props.value).join(";");return x.jsx(em,{...T,children:x.jsxs(FM,{required:w,scope:o,trigger:A,onTriggerChange:_,valueNode:z,onValueNodeChange:H,valueNodeHasChildren:I,onValueNodeHasChildrenChange:Q,contentId:kr(),value:L,onValueChange:P,open:N,onOpenChange:j,dir:D,triggerPointerDownPosRef:J,disabled:S,children:[x.jsx(sc.Provider,{scope:o,children:x.jsx(ZM,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(M=>{ee(Y=>new Set(Y).add(M))},[]),onNativeOptionRemove:b.useCallback(M=>{ee(Y=>{const B=new Set(Y);return B.delete(M),B})},[]),children:l})}),le?x.jsxs(kx,{"aria-hidden":!0,required:w,tabIndex:-1,name:v,autoComplete:g,value:L,onChange:M=>P(M.target.value),disabled:S,form:C,children:[L===void 0?x.jsx("option",{value:""}):null,Array.from(re)]},se):null]})})};dx.displayName=Bo;var mx="SelectTrigger",hx=b.forwardRef((n,o)=>{const{__scopeSelect:l,disabled:i=!1,...s}=n,u=uc(l),f=co(mx,l),m=f.disabled||i,h=Ke(o,f.onTriggerChange),p=cc(l),v=b.useRef("touch"),[g,S,w]=Hx(T=>{const A=p().filter(H=>!H.disabled),_=A.find(H=>H.value===f.value),z=Bx(A,T,_);z!==void 0&&f.onValueChange(z.value)}),C=T=>{m||(f.onOpenChange(!0),w()),T&&(f.triggerPointerDownPosRef.current={x:Math.round(T.pageX),y:Math.round(T.pageY)})};return x.jsx(tm,{asChild:!0,...u,children:x.jsx(Ie.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Lx(f.value)?"":void 0,...s,ref:h,onClick:pe(s.onClick,T=>{T.currentTarget.focus(),v.current!=="mouse"&&C(T)}),onPointerDown:pe(s.onPointerDown,T=>{v.current=T.pointerType;const A=T.target;A.hasPointerCapture(T.pointerId)&&A.releasePointerCapture(T.pointerId),T.button===0&&T.ctrlKey===!1&&T.pointerType==="mouse"&&(C(T),T.preventDefault())}),onKeyDown:pe(s.onKeyDown,T=>{const A=g.current!=="";!(T.ctrlKey||T.altKey||T.metaKey)&&T.key.length===1&&S(T.key),!(A&&T.key===" ")&&$M.includes(T.key)&&(C(),T.preventDefault())})})})});hx.displayName=mx;var px="SelectValue",gx=b.forwardRef((n,o)=>{const{__scopeSelect:l,className:i,style:s,children:u,placeholder:f="",...m}=n,h=co(px,l),{onValueNodeHasChildrenChange:p}=h,v=u!==void 0,g=Ke(o,h.onValueNodeChange);return Gt(()=>{p(v)},[p,v]),x.jsx(Ie.span,{...m,ref:g,style:{pointerEvents:"none"},children:Lx(h.value)?x.jsx(x.Fragment,{children:f}):u})});gx.displayName=px;var WM="SelectIcon",yx=b.forwardRef((n,o)=>{const{__scopeSelect:l,children:i,...s}=n;return x.jsx(Ie.span,{"aria-hidden":!0,...s,ref:o,children:i||"▼"})});yx.displayName=WM;var eR="SelectPortal",vx=n=>x.jsx(qd,{asChild:!0,...n});vx.displayName=eR;var Uo="SelectContent",bx=b.forwardRef((n,o)=>{const l=co(Uo,n.__scopeSelect),[i,s]=b.useState();if(Gt(()=>{s(new DocumentFragment)},[]),!l.open){const u=i;return u?Xl.createPortal(x.jsx(xx,{scope:n.__scopeSelect,children:x.jsx(sc.Slot,{scope:n.__scopeSelect,children:x.jsx("div",{children:n.children})})}),u):null}return x.jsx(Sx,{...n,ref:o})});bx.displayName=Uo;var Gn=10,[xx,uo]=Vr(Uo),tR="SelectContentImpl",nR=jr("SelectContent.RemoveScroll"),Sx=b.forwardRef((n,o)=>{const{__scopeSelect:l,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:u,onPointerDownOutside:f,side:m,sideOffset:h,align:p,alignOffset:v,arrowPadding:g,collisionBoundary:S,collisionPadding:w,sticky:C,hideWhenDetached:T,avoidCollisions:A,..._}=n,z=co(Uo,l),[H,I]=b.useState(null),[Q,D]=b.useState(null),N=Ke(o,ie=>I(ie)),[j,L]=b.useState(null),[P,J]=b.useState(null),le=cc(l),[re,ee]=b.useState(!1),se=b.useRef(!1);b.useEffect(()=>{if(H)return Y0(H)},[H]),z0();const M=b.useCallback(ie=>{const[me,...de]=le().map(we=>we.ref.current),[_e]=de.slice(-1),Ee=document.activeElement;for(const we of ie)if(we===Ee||(we==null||we.scrollIntoView({block:"nearest"}),we===me&&Q&&(Q.scrollTop=0),we===_e&&Q&&(Q.scrollTop=Q.scrollHeight),we==null||we.focus(),document.activeElement!==Ee))return},[le,Q]),Y=b.useCallback(()=>M([j,H]),[M,j,H]);b.useEffect(()=>{re&&Y()},[re,Y]);const{onOpenChange:B,triggerPointerDownPosRef:$}=z;b.useEffect(()=>{if(H){let ie={x:0,y:0};const me=_e=>{var Ee,we;ie={x:Math.abs(Math.round(_e.pageX)-(((Ee=$.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(_e.pageY)-(((we=$.current)==null?void 0:we.y)??0))}},de=_e=>{ie.x<=10&&ie.y<=10?_e.preventDefault():H.contains(_e.target)||B(!1),document.removeEventListener("pointermove",me),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",me),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",me),document.removeEventListener("pointerup",de,{capture:!0})}}},[H,B,$]),b.useEffect(()=>{const ie=()=>B(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[B]);const[X,R]=Hx(ie=>{const me=le().filter(Ee=>!Ee.disabled),de=me.find(Ee=>Ee.ref.current===document.activeElement),_e=Bx(me,ie,de);_e&&setTimeout(()=>_e.ref.current.focus())}),G=b.useCallback((ie,me,de)=>{const _e=!se.current&&!de;(z.value!==void 0&&z.value===me||_e)&&(L(ie),_e&&(se.current=!0))},[z.value]),F=b.useCallback(()=>H==null?void 0:H.focus(),[H]),ne=b.useCallback((ie,me,de)=>{const _e=!se.current&&!de;(z.value!==void 0&&z.value===me||_e)&&J(ie)},[z.value]),oe=i==="popper"?bd:wx,ce=oe===bd?{side:m,sideOffset:h,align:p,alignOffset:v,arrowPadding:g,collisionBoundary:S,collisionPadding:w,sticky:C,hideWhenDetached:T,avoidCollisions:A}:{};return x.jsx(xx,{scope:l,content:H,viewport:Q,onViewportChange:D,itemRefCallback:G,selectedItem:j,onItemLeave:F,itemTextRefCallback:ne,focusSelectedItem:Y,selectedItemText:P,position:i,isPositioned:re,searchRef:X,children:x.jsx(Xd,{as:nR,allowPinchZoom:!0,children:x.jsx(Vd,{asChild:!0,trapped:z.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:pe(s,ie=>{var me;(me=z.trigger)==null||me.focus({preventScroll:!0}),ie.preventDefault()}),children:x.jsx(Ws,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>z.onOpenChange(!1),children:x.jsx(oe,{role:"listbox",id:z.contentId,"data-state":z.open?"open":"closed",dir:z.dir,onContextMenu:ie=>ie.preventDefault(),..._,...ce,onPlaced:()=>ee(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:pe(_.onKeyDown,ie=>{const me=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!me&&ie.key.length===1&&R(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let _e=le().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(_e=_e.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Ee=ie.target,we=_e.indexOf(Ee);_e=_e.slice(we+1)}setTimeout(()=>M(_e)),ie.preventDefault()}})})})})})})});Sx.displayName=tR;var aR="SelectItemAlignedPosition",wx=b.forwardRef((n,o)=>{const{__scopeSelect:l,onPlaced:i,...s}=n,u=co(Uo,l),f=uo(Uo,l),[m,h]=b.useState(null),[p,v]=b.useState(null),g=Ke(o,N=>v(N)),S=cc(l),w=b.useRef(!1),C=b.useRef(!0),{viewport:T,selectedItem:A,selectedItemText:_,focusSelectedItem:z}=f,H=b.useCallback(()=>{if(u.trigger&&u.valueNode&&m&&p&&T&&A&&_){const N=u.trigger.getBoundingClientRect(),j=p.getBoundingClientRect(),L=u.valueNode.getBoundingClientRect(),P=_.getBoundingClientRect();if(u.dir!=="rtl"){const Ee=P.left-j.left,we=L.left-Ee,lt=N.left-we,qe=N.width+lt,Yt=Math.max(qe,j.width),Dt=window.innerWidth-Gn,vt=vd(we,[Gn,Math.max(Gn,Dt-Yt)]);m.style.minWidth=qe+"px",m.style.left=vt+"px"}else{const Ee=j.right-P.right,we=window.innerWidth-L.right-Ee,lt=window.innerWidth-N.right-we,qe=N.width+lt,Yt=Math.max(qe,j.width),Dt=window.innerWidth-Gn,vt=vd(we,[Gn,Math.max(Gn,Dt-Yt)]);m.style.minWidth=qe+"px",m.style.right=vt+"px"}const J=S(),le=window.innerHeight-Gn*2,re=T.scrollHeight,ee=window.getComputedStyle(p),se=parseInt(ee.borderTopWidth,10),M=parseInt(ee.paddingTop,10),Y=parseInt(ee.borderBottomWidth,10),B=parseInt(ee.paddingBottom,10),$=se+M+re+B+Y,X=Math.min(A.offsetHeight*5,$),R=window.getComputedStyle(T),G=parseInt(R.paddingTop,10),F=parseInt(R.paddingBottom,10),ne=N.top+N.height/2-Gn,oe=le-ne,ce=A.offsetHeight/2,ie=A.offsetTop+ce,me=se+M+ie,de=$-me;if(me<=ne){const Ee=J.length>0&&A===J[J.length-1].ref.current;m.style.bottom="0px";const we=p.clientHeight-T.offsetTop-T.offsetHeight,lt=Math.max(oe,ce+(Ee?F:0)+we+Y),qe=me+lt;m.style.height=qe+"px"}else{const Ee=J.length>0&&A===J[0].ref.current;m.style.top="0px";const lt=Math.max(ne,se+T.offsetTop+(Ee?G:0)+ce)+de;m.style.height=lt+"px",T.scrollTop=me-ne+T.offsetTop}m.style.margin=`${Gn}px 0`,m.style.minHeight=X+"px",m.style.maxHeight=le+"px",i==null||i(),requestAnimationFrame(()=>w.current=!0)}},[S,u.trigger,u.valueNode,m,p,T,A,_,u.dir,i]);Gt(()=>H(),[H]);const[I,Q]=b.useState();Gt(()=>{p&&Q(window.getComputedStyle(p).zIndex)},[p]);const D=b.useCallback(N=>{N&&C.current===!0&&(H(),z==null||z(),C.current=!1)},[H,z]);return x.jsx(rR,{scope:l,contentWrapper:m,shouldExpandOnScrollRef:w,onScrollButtonChange:D,children:x.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:x.jsx(Ie.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});wx.displayName=aR;var oR="SelectPopperPosition",bd=b.forwardRef((n,o)=>{const{__scopeSelect:l,align:i="start",collisionPadding:s=Gn,...u}=n,f=uc(l);return x.jsx(nm,{...f,...u,ref:o,align:i,collisionPadding:s,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});bd.displayName=oR;var[rR,gm]=Vr(Uo,{}),xd="SelectViewport",Ex=b.forwardRef((n,o)=>{const{__scopeSelect:l,nonce:i,...s}=n,u=uo(xd,l),f=gm(xd,l),m=Ke(o,u.onViewportChange),h=b.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),x.jsx(sc.Slot,{scope:l,children:x.jsx(Ie.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:pe(s.onScroll,p=>{const v=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&g){const w=Math.abs(h.current-v.scrollTop);if(w>0){const C=window.innerHeight-Gn*2,T=parseFloat(g.style.minHeight),A=parseFloat(g.style.height),_=Math.max(T,A);if(_<C){const z=_+w,H=Math.min(C,z),I=z-H;g.style.height=H+"px",g.style.bottom==="0px"&&(v.scrollTop=I>0?I:0,g.style.justifyContent="flex-end")}}}h.current=v.scrollTop})})})]})});Ex.displayName=xd;var Tx="SelectGroup",[lR,iR]=Vr(Tx),Cx=b.forwardRef((n,o)=>{const{__scopeSelect:l,...i}=n,s=kr();return x.jsx(lR,{scope:l,id:s,children:x.jsx(Ie.div,{role:"group","aria-labelledby":s,...i,ref:o})})});Cx.displayName=Tx;var Ax="SelectLabel",sR=b.forwardRef((n,o)=>{const{__scopeSelect:l,...i}=n,s=iR(Ax,l);return x.jsx(Ie.div,{id:s.id,...i,ref:o})});sR.displayName=Ax;var $s="SelectItem",[cR,_x]=Vr($s),Mx=b.forwardRef((n,o)=>{const{__scopeSelect:l,value:i,disabled:s=!1,textValue:u,...f}=n,m=co($s,l),h=uo($s,l),p=m.value===i,[v,g]=b.useState(u??""),[S,w]=b.useState(!1),C=Ke(o,z=>{var H;return(H=h.itemRefCallback)==null?void 0:H.call(h,z,i,s)}),T=kr(),A=b.useRef("touch"),_=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return x.jsx(cR,{scope:l,value:i,disabled:s,textId:T,isSelected:p,onItemTextChange:b.useCallback(z=>{g(H=>H||((z==null?void 0:z.textContent)??"").trim())},[]),children:x.jsx(sc.ItemSlot,{scope:l,value:i,disabled:s,textValue:v,children:x.jsx(Ie.div,{role:"option","aria-labelledby":T,"data-highlighted":S?"":void 0,"aria-selected":p&&S,"data-state":p?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...f,ref:C,onFocus:pe(f.onFocus,()=>w(!0)),onBlur:pe(f.onBlur,()=>w(!1)),onClick:pe(f.onClick,()=>{A.current!=="mouse"&&_()}),onPointerUp:pe(f.onPointerUp,()=>{A.current==="mouse"&&_()}),onPointerDown:pe(f.onPointerDown,z=>{A.current=z.pointerType}),onPointerMove:pe(f.onPointerMove,z=>{var H;A.current=z.pointerType,s?(H=h.onItemLeave)==null||H.call(h):A.current==="mouse"&&z.currentTarget.focus({preventScroll:!0})}),onPointerLeave:pe(f.onPointerLeave,z=>{var H;z.currentTarget===document.activeElement&&((H=h.onItemLeave)==null||H.call(h))}),onKeyDown:pe(f.onKeyDown,z=>{var I;((I=h.searchRef)==null?void 0:I.current)!==""&&z.key===" "||(KM.includes(z.key)&&_(),z.key===" "&&z.preventDefault())})})})})});Mx.displayName=$s;var Hl="SelectItemText",Rx=b.forwardRef((n,o)=>{const{__scopeSelect:l,className:i,style:s,...u}=n,f=co(Hl,l),m=uo(Hl,l),h=_x(Hl,l),p=JM(Hl,l),[v,g]=b.useState(null),S=Ke(o,_=>g(_),h.onItemTextChange,_=>{var z;return(z=m.itemTextRefCallback)==null?void 0:z.call(m,_,h.value,h.disabled)}),w=v==null?void 0:v.textContent,C=b.useMemo(()=>x.jsx("option",{value:h.value,disabled:h.disabled,children:w},h.value),[h.disabled,h.value,w]),{onNativeOptionAdd:T,onNativeOptionRemove:A}=p;return Gt(()=>(T(C),()=>A(C)),[T,A,C]),x.jsxs(x.Fragment,{children:[x.jsx(Ie.span,{id:h.textId,...u,ref:S}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Xl.createPortal(u.children,f.valueNode):null]})});Rx.displayName=Hl;var Nx="SelectItemIndicator",Ox=b.forwardRef((n,o)=>{const{__scopeSelect:l,...i}=n;return _x(Nx,l).isSelected?x.jsx(Ie.span,{"aria-hidden":!0,...i,ref:o}):null});Ox.displayName=Nx;var Sd="SelectScrollUpButton",zx=b.forwardRef((n,o)=>{const l=uo(Sd,n.__scopeSelect),i=gm(Sd,n.__scopeSelect),[s,u]=b.useState(!1),f=Ke(o,i.onScrollButtonChange);return Gt(()=>{if(l.viewport&&l.isPositioned){let m=function(){const p=h.scrollTop>0;u(p)};const h=l.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[l.viewport,l.isPositioned]),s?x.jsx(jx,{...n,ref:f,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=l;m&&h&&(m.scrollTop=m.scrollTop-h.offsetHeight)}}):null});zx.displayName=Sd;var wd="SelectScrollDownButton",Dx=b.forwardRef((n,o)=>{const l=uo(wd,n.__scopeSelect),i=gm(wd,n.__scopeSelect),[s,u]=b.useState(!1),f=Ke(o,i.onScrollButtonChange);return Gt(()=>{if(l.viewport&&l.isPositioned){let m=function(){const p=h.scrollHeight-h.clientHeight,v=Math.ceil(h.scrollTop)<p;u(v)};const h=l.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[l.viewport,l.isPositioned]),s?x.jsx(jx,{...n,ref:f,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=l;m&&h&&(m.scrollTop=m.scrollTop+h.offsetHeight)}}):null});Dx.displayName=wd;var jx=b.forwardRef((n,o)=>{const{__scopeSelect:l,onAutoScroll:i,...s}=n,u=uo("SelectScrollButton",l),f=b.useRef(null),m=cc(l),h=b.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return b.useEffect(()=>()=>h(),[h]),Gt(()=>{var v;const p=m().find(g=>g.ref.current===document.activeElement);(v=p==null?void 0:p.ref.current)==null||v.scrollIntoView({block:"nearest"})},[m]),x.jsx(Ie.div,{"aria-hidden":!0,...s,ref:o,style:{flexShrink:0,...s.style},onPointerDown:pe(s.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:pe(s.onPointerMove,()=>{var p;(p=u.onItemLeave)==null||p.call(u),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:pe(s.onPointerLeave,()=>{h()})})}),uR="SelectSeparator",fR=b.forwardRef((n,o)=>{const{__scopeSelect:l,...i}=n;return x.jsx(Ie.div,{"aria-hidden":!0,...i,ref:o})});fR.displayName=uR;var Ed="SelectArrow",dR=b.forwardRef((n,o)=>{const{__scopeSelect:l,...i}=n,s=uc(l),u=co(Ed,l),f=uo(Ed,l);return u.open&&f.position==="popper"?x.jsx(am,{...s,...i,ref:o}):null});dR.displayName=Ed;var mR="SelectBubbleInput",kx=b.forwardRef(({__scopeSelect:n,value:o,...l},i)=>{const s=b.useRef(null),u=Ke(i,s),f=IC(o);return b.useEffect(()=>{const m=s.current;if(!m)return;const h=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(h,"value").set;if(f!==o&&v){const g=new Event("change",{bubbles:!0});v.call(m,o),m.dispatchEvent(g)}},[f,o]),x.jsx(Ie.select,{...l,style:{..._0,...l.style},ref:u,defaultValue:o})});kx.displayName=mR;function Lx(n){return n===""||n===void 0}function Hx(n){const o=Nt(n),l=b.useRef(""),i=b.useRef(0),s=b.useCallback(f=>{const m=l.current+f;o(m),(function h(p){l.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>h(""),1e3))})(m)},[o]),u=b.useCallback(()=>{l.current="",window.clearTimeout(i.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(i.current),[]),[l,s,u]}function Bx(n,o,l){const s=o.length>1&&Array.from(o).every(p=>p===o[0])?o[0]:o,u=l?n.indexOf(l):-1;let f=hR(n,Math.max(u,0));s.length===1&&(f=f.filter(p=>p!==l));const h=f.find(p=>p.textValue.toLowerCase().startsWith(s.toLowerCase()));return h!==l?h:void 0}function hR(n,o){return n.map((l,i)=>n[(o+i)%n.length])}var pR=dx,gR=hx,yR=gx,vR=yx,bR=vx,xR=bx,SR=Ex,wR=Cx,ER=Mx,TR=Rx,CR=Ox,AR=zx,_R=Dx,MR="Separator",cv="horizontal",RR=["horizontal","vertical"],Ux=b.forwardRef((n,o)=>{const{decorative:l,orientation:i=cv,...s}=n,u=NR(i)?i:cv,m=l?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return x.jsx(Ie.div,{"data-orientation":u,...m,...s,ref:o})});Ux.displayName=MR;function NR(n){return RR.includes(n)}var OR=Ux,[fc]=io("Tooltip",[Ir]),ym=Ir(),Gx="TooltipProvider",zR=700,uv="tooltip.open",[DR,Yx]=fc(Gx),Ix=n=>{const{__scopeTooltip:o,delayDuration:l=zR,skipDelayDuration:i=300,disableHoverableContent:s=!1,children:u}=n,f=b.useRef(!0),m=b.useRef(!1),h=b.useRef(0);return b.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),x.jsx(DR,{scope:o,isOpenDelayedRef:f,delayDuration:l,onOpen:b.useCallback(()=>{window.clearTimeout(h.current),f.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>f.current=!0,i)},[i]),isPointerInTransitRef:m,onPointerInTransitChange:b.useCallback(p=>{m.current=p},[]),disableHoverableContent:s,children:u})};Ix.displayName=Gx;var Vx="Tooltip",[q5,dc]=fc(Vx),Td="TooltipTrigger",jR=b.forwardRef((n,o)=>{const{__scopeTooltip:l,...i}=n,s=dc(Td,l),u=Yx(Td,l),f=ym(l),m=b.useRef(null),h=Ke(o,m,s.onTriggerChange),p=b.useRef(!1),v=b.useRef(!1),g=b.useCallback(()=>p.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),x.jsx(tm,{asChild:!0,...f,children:x.jsx(Ie.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:h,onPointerMove:pe(n.onPointerMove,S=>{S.pointerType!=="touch"&&!v.current&&!u.isPointerInTransitRef.current&&(s.onTriggerEnter(),v.current=!0)}),onPointerLeave:pe(n.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:pe(n.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:pe(n.onFocus,()=>{p.current||s.onOpen()}),onBlur:pe(n.onBlur,s.onClose),onClick:pe(n.onClick,s.onClose)})})});jR.displayName=Td;var kR="TooltipPortal",[X5,LR]=fc(kR,{forceMount:void 0}),Br="TooltipContent",HR=b.forwardRef((n,o)=>{const l=LR(Br,n.__scopeTooltip),{forceMount:i=l.forceMount,side:s="top",...u}=n,f=dc(Br,n.__scopeTooltip);return x.jsx(Wn,{present:i||f.open,children:f.disableHoverableContent?x.jsx(qx,{side:s,...u,ref:o}):x.jsx(BR,{side:s,...u,ref:o})})}),BR=b.forwardRef((n,o)=>{const l=dc(Br,n.__scopeTooltip),i=Yx(Br,n.__scopeTooltip),s=b.useRef(null),u=Ke(o,s),[f,m]=b.useState(null),{trigger:h,onClose:p}=l,v=s.current,{onPointerInTransitChange:g}=i,S=b.useCallback(()=>{m(null),g(!1)},[g]),w=b.useCallback((C,T)=>{const A=C.currentTarget,_={x:C.clientX,y:C.clientY},z=VR(_,A.getBoundingClientRect()),H=qR(_,z),I=XR(T.getBoundingClientRect()),Q=$R([...H,...I]);m(Q),g(!0)},[g]);return b.useEffect(()=>()=>S(),[S]),b.useEffect(()=>{if(h&&v){const C=A=>w(A,v),T=A=>w(A,h);return h.addEventListener("pointerleave",C),v.addEventListener("pointerleave",T),()=>{h.removeEventListener("pointerleave",C),v.removeEventListener("pointerleave",T)}}},[h,v,w,S]),b.useEffect(()=>{if(f){const C=T=>{const A=T.target,_={x:T.clientX,y:T.clientY},z=(h==null?void 0:h.contains(A))||(v==null?void 0:v.contains(A)),H=!PR(_,f);z?S():H&&(S(),p())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[h,v,f,p,S]),x.jsx(qx,{...n,ref:u})}),[UR,GR]=fc(Vx,{isInside:!1}),YR=TT("TooltipContent"),qx=b.forwardRef((n,o)=>{const{__scopeTooltip:l,children:i,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:f,...m}=n,h=dc(Br,l),p=ym(l),{onClose:v}=h;return b.useEffect(()=>(document.addEventListener(uv,v),()=>document.removeEventListener(uv,v)),[v]),b.useEffect(()=>{if(h.trigger){const g=S=>{const w=S.target;w!=null&&w.contains(h.trigger)&&v()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[h.trigger,v]),x.jsx(Ws,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:g=>g.preventDefault(),onDismiss:v,children:x.jsxs(nm,{"data-state":h.stateAttribute,...p,...m,ref:o,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(YR,{children:i}),x.jsx(UR,{scope:l,isInside:!0,children:x.jsx(NT,{id:h.contentId,role:"tooltip",children:s||i})})]})})});HR.displayName=Br;var Xx="TooltipArrow",IR=b.forwardRef((n,o)=>{const{__scopeTooltip:l,...i}=n,s=ym(l);return GR(Xx,l).isInside?null:x.jsx(am,{...s,...i,ref:o})});IR.displayName=Xx;function VR(n,o){const l=Math.abs(o.top-n.y),i=Math.abs(o.bottom-n.y),s=Math.abs(o.right-n.x),u=Math.abs(o.left-n.x);switch(Math.min(l,i,s,u)){case u:return"left";case s:return"right";case l:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function qR(n,o,l=5){const i=[];switch(o){case"top":i.push({x:n.x-l,y:n.y+l},{x:n.x+l,y:n.y+l});break;case"bottom":i.push({x:n.x-l,y:n.y-l},{x:n.x+l,y:n.y-l});break;case"left":i.push({x:n.x+l,y:n.y-l},{x:n.x+l,y:n.y+l});break;case"right":i.push({x:n.x-l,y:n.y-l},{x:n.x-l,y:n.y+l});break}return i}function XR(n){const{top:o,right:l,bottom:i,left:s}=n;return[{x:s,y:o},{x:l,y:o},{x:l,y:i},{x:s,y:i}]}function PR(n,o){const{x:l,y:i}=n;let s=!1;for(let u=0,f=o.length-1;u<o.length;f=u++){const m=o[u],h=o[f],p=m.x,v=m.y,g=h.x,S=h.y;v>i!=S>i&&l<(g-p)*(i-v)/(S-v)+p&&(s=!s)}return s}function $R(n){const o=n.slice();return o.sort((l,i)=>l.x<i.x?-1:l.x>i.x?1:l.y<i.y?-1:l.y>i.y?1:0),KR(o)}function KR(n){if(n.length<=1)return n.slice();const o=[];for(let i=0;i<n.length;i++){const s=n[i];for(;o.length>=2;){const u=o[o.length-1],f=o[o.length-2];if((u.x-f.x)*(s.y-f.y)>=(u.y-f.y)*(s.x-f.x))o.pop();else break}o.push(s)}o.pop();const l=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;l.length>=2;){const u=l[l.length-1],f=l[l.length-2];if((u.x-f.x)*(s.y-f.y)>=(u.y-f.y)*(s.x-f.x))l.pop();else break}l.push(s)}return l.pop(),o.length===1&&l.length===1&&o[0].x===l[0].x&&o[0].y===l[0].y?o:o.concat(l)}var QR=Ix;function FR({className:n,children:o,...l}){return x.jsxs(qM,{"data-slot":"scroll-area",className:$e("relative",n),...l,children:[x.jsx(XM,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:o}),x.jsx(ZR,{}),x.jsx(PM,{})]})}function ZR({className:n,orientation:o="vertical",...l}){return x.jsx(ax,{"data-slot":"scroll-area-scrollbar",orientation:o,className:$e("flex touch-none p-px transition-colors select-none",o==="vertical"&&"h-full w-2.5 border-l border-l-transparent",o==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...l,children:x.jsx(ix,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function JR({slides:n,activeSlideId:o,slideCount:l,thumbnails:i,onSelectSlide:s}){const u=b.useCallback(f=>{f==null||f.scrollIntoView({block:"nearest",inline:"nearest"})},[]);return x.jsx("aside",{className:"group/sidebar relative flex min-h-0 min-w-0 basis-[124px] items-stretch justify-start overflow-hidden bg-transparent p-3 transition-[flex-basis,width,opacity] duration-200 ease-out after:absolute after:inset-y-1.5 after:right-0 after:w-px after:bg-foreground/10 hover:basis-[260px] focus-within:basis-[260px] max-[1200px]:basis-auto max-[1200px]:p-0 max-[1200px]:pb-2.5 max-[1200px]:after:inset-x-0 max-[1200px]:after:inset-y-auto max-[1200px]:after:bottom-0 max-[1200px]:after:h-px max-[1200px]:after:w-auto","data-testid":"slide-sidebar",children:x.jsxs("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-col gap-2.5","data-testid":"slide-sidebar-panel",children:[x.jsx("div",{className:"flex min-h-7 items-center pt-1",children:x.jsxs("span",{className:"inline-block text-[10px] font-medium uppercase tracking-wider text-foreground/40","data-testid":"slide-count",children:[l," slide",l===1?"":"s"]})}),x.jsx(FR,{className:"min-h-0 flex-1 overflow-hidden pt-2 [mask-image:linear-gradient(to_bottom,transparent_0,black_18px,black_calc(100%_-_18px),transparent_100%)]","data-testid":"slide-list",children:x.jsx("div",{className:"grid content-start gap-2.5 pr-2 transition-[gap] duration-150 group-[:not(:hover):not(:focus-within)]/sidebar:gap-2",children:n.map((f,m)=>x.jsx("button",{ref:f.id===o?u:null,className:$e("grid w-full cursor-pointer gap-2 border-0 bg-transparent p-0 text-left opacity-100 transition-opacity duration-150 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",f.id!==o&&"group-[:not(:hover):not(:focus-within)]/sidebar:opacity-90"),onClick:()=>s(f.id),type:"button","aria-label":`Slide ${m+1}`,"aria-current":f.id===o?"true":void 0,"data-testid":"slide-card",children:x.jsxs("div",{className:$e("relative aspect-video w-full overflow-hidden rounded-xl border border-foreground/[0.08] bg-white transition-[border-color,box-shadow,border-radius] duration-150 group-[:not(:hover):not(:focus-within)]/sidebar:rounded-lg",f.id===o&&"border-foreground/25 shadow-[0_0_0_2px_rgba(255,255,255,0.9),0_0_0_4px_rgba(0,0,0,0.08)]"),"data-testid":"slide-thumbnail",children:[i[f.id]?x.jsx("img",{alt:`Slide ${m+1}`,className:$e("block size-full bg-transparent object-cover",f.id===o&&"shadow-[inset_0_0_0_1px_rgba(0,0,0,0.08)]"),src:i[f.id]}):x.jsx("div",{className:$e("grid size-full place-items-center bg-foreground/[0.03]",f.id===o&&"shadow-[inset_0_0_0_1px_rgba(0,0,0,0.08)]"),"aria-hidden":"true",children:x.jsx("span",{className:"size-[18px] animate-spin rounded-full border-[1.5px] border-foreground/15 border-t-foreground/45"})}),x.jsx("span",{className:"pointer-events-none absolute right-2 top-2 rounded-md bg-foreground/65 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wider text-background opacity-0 transition-opacity duration-150 group-hover/sidebar:opacity-100 group-focus-within/sidebar:opacity-100",children:m+1})]})},f.id))})})]})})}function WR({selectionBounds:n,snapGuides:o,resizeHandles:l,rotationHandle:i,onResizeHandleMouseDown:s,onRotateHandleMouseDown:u}){const f="absolute z-[5] size-[13px] -translate-x-1/2 -translate-y-1/2 cursor-pointer rounded-full border border-white bg-foreground shadow-[0_2px_8px_rgba(0,0,0,0.16)] transition-colors before:absolute before:inset-[3px] before:rounded-full before:bg-white/90 hover:bg-foreground/80";return x.jsxs(x.Fragment,{children:[o.map((m,h)=>{const p=m.variant==="spacing"?"2px":"1px";return x.jsx("div",{className:"pointer-events-none absolute z-[4] border-foreground","data-testid":`snap-guide-${m.orientation}`,"data-variant":m.variant,style:m.orientation==="vertical"?{left:`${m.start.x}px`,top:`${Math.min(m.start.y,m.end.y)}px`,width:"0",height:`${Math.max(Math.abs(m.end.y-m.start.y),32)}px`,borderLeftWidth:p,borderLeftStyle:"solid",opacity:m.variant==="spacing"?.9:.82}:{left:`${Math.min(m.start.x,m.end.x)}px`,top:`${m.start.y}px`,width:`${Math.max(Math.abs(m.end.x-m.start.x),32)}px`,height:"0",borderTopWidth:p,borderTopStyle:"solid",opacity:m.variant==="spacing"?.9:.82}},`${m.orientation}-${m.start.x}-${m.start.y}-${m.end.x}-${m.end.y}-${m.variant}-${h}`)}),x.jsx("button",{type:"button",className:`${f} cursor-alias`,"data-testid":"block-rotate-handle","aria-label":"Rotate selected element",style:{left:`${i.x}px`,top:`${i.y}px`},onMouseDown:u}),l.map(m=>x.jsx("button",{type:"button",className:`${f} cursor-nwse-resize`,"data-testid":`block-resize-handle-${m.corner}`,"aria-label":`Resize selected element from ${m.corner}`,style:{left:`${m.x}px`,top:`${m.y}px`},onMouseDown:h=>{s(m.corner,h)}},m.corner))]})}function eN({...n}){return x.jsx(TM,{"data-slot":"context-menu",...n})}function tN({...n}){return x.jsx(CM,{"data-slot":"context-menu-trigger",...n})}function Kf({...n}){return x.jsx(NM,{"data-slot":"context-menu-sub",...n})}function Qf({className:n,inset:o,children:l,...i}){return x.jsxs(OM,{"data-slot":"context-menu-sub-trigger","data-inset":o,className:$e("flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-[13px] outline-hidden focus:bg-foreground/[0.04] data-[state=open]:bg-foreground/[0.04] data-[inset=true]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",n),...i,children:[l,x.jsx(Y2,{className:"ml-auto size-3.5 text-foreground/40"})]})}function Ff({className:n,...o}){return x.jsx(zM,{"data-slot":"context-menu-sub-content",className:$e("z-50 min-w-44 rounded-md border border-foreground/[0.08] bg-white p-1.5 text-popover-foreground shadow-[0_4px_20px_rgba(0,0,0,0.06),0_12px_40px_rgba(0,0,0,0.08)] outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",n),...o})}function nN({className:n,...o}){return x.jsx(AM,{children:x.jsx(_M,{"data-slot":"context-menu-content",className:$e("z-50 min-w-48 rounded-md border border-foreground/[0.08] bg-white p-1.5 text-popover-foreground shadow-[0_4px_20px_rgba(0,0,0,0.06),0_12px_40px_rgba(0,0,0,0.08)] outline-hidden data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",n),...o})})}function Vt({className:n,inset:o,variant:l="default",...i}){return x.jsx(MM,{"data-slot":"context-menu-item","data-inset":o,"data-variant":l,className:$e("relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-[13px] text-foreground/75 outline-hidden transition-colors focus:bg-foreground/[0.04] focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-45 data-[inset=true]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",n),...i})}function fv({className:n,...o}){return x.jsx(RM,{"data-slot":"context-menu-separator",className:$e("-mx-1 my-1 h-px bg-foreground/10",n),...o})}function dv({className:n,...o}){return x.jsx("span",{"data-slot":"context-menu-shortcut",className:$e("ml-auto text-[11px] tracking-normal text-foreground/40",n),...o})}function aN({children:n,selectionCommandAvailability:o,onAlignToSlide:l,onDelete:i,onDistribute:s,onDuplicate:u,onGroup:f,onLayerOrder:m,onUngroup:h}){return x.jsxs(eN,{children:[x.jsx(tN,{asChild:!0,children:n}),x.jsxs(nN,{"aria-label":"Selection actions",children:[x.jsxs(Vt,{disabled:!o.group,onSelect:f,children:[x.jsx(cd,{className:"size-3.5"}),"Group"]}),x.jsxs(Vt,{disabled:!o.ungroup,onSelect:h,children:[x.jsx(s0,{className:"size-3.5"}),"Ungroup"]}),x.jsx(fv,{}),x.jsxs(Kf,{children:[x.jsxs(Qf,{children:[x.jsx(id,{className:"size-3.5"}),"Layer"]}),x.jsxs(Ff,{children:[x.jsxs(Vt,{onSelect:()=>m("front"),children:[x.jsx(id,{className:"size-3.5"}),"Bring to front"]}),x.jsxs(Vt,{onSelect:()=>m("forward"),children:[x.jsx(Bd,{className:"size-3.5"}),"Bring forward"]}),x.jsxs(Vt,{onSelect:()=>m("backward"),children:[x.jsx(Pl,{className:"size-3.5"}),"Send backward"]}),x.jsxs(Vt,{onSelect:()=>m("back"),children:[x.jsx(r0,{className:"size-3.5"}),"Send to back"]})]})]}),x.jsxs(Kf,{children:[x.jsxs(Qf,{children:[x.jsx(ld,{className:"size-3.5"}),"Align"]}),x.jsxs(Ff,{children:[x.jsxs(Vt,{onSelect:()=>l("left"),children:[x.jsx(a0,{className:"size-3.5"}),"Align left"]}),x.jsxs(Vt,{onSelect:()=>l("hcenter"),children:[x.jsx(ld,{className:"size-3.5"}),"Align horizontal center"]}),x.jsxs(Vt,{onSelect:()=>l("right"),children:[x.jsx(t0,{className:"size-3.5"}),"Align right"]}),x.jsxs(Vt,{onSelect:()=>l("top"),children:[x.jsx(o0,{className:"size-3.5"}),"Align top"]}),x.jsxs(Vt,{onSelect:()=>l("vcenter"),children:[x.jsx(e0,{className:"size-3.5"}),"Align vertical center"]}),x.jsxs(Vt,{onSelect:()=>l("bottom"),children:[x.jsx(n0,{className:"size-3.5"}),"Align bottom"]})]})]}),x.jsxs(Kf,{children:[x.jsxs(Qf,{children:[x.jsx(sd,{className:"size-3.5"}),"Distribute"]}),x.jsxs(Ff,{children:[x.jsxs(Vt,{onSelect:()=>s("horizontal"),children:[x.jsx(sd,{className:"size-3.5"}),"Horizontally"]}),x.jsxs(Vt,{onSelect:()=>s("vertical"),children:[x.jsx(i0,{className:"size-3.5"}),"Vertically"]})]})]}),x.jsx(fv,{}),x.jsxs(Vt,{onSelect:u,children:[x.jsx($2,{className:"size-3.5"}),"Duplicate",x.jsx(dv,{children:"⌘D"})]}),x.jsxs(Vt,{variant:"destructive",onSelect:i,children:[x.jsx(ME,{className:"size-3.5"}),"Delete",x.jsx(dv,{children:"Del"})]})]})]})}const oN=[{label:"Inter",value:'"Inter", "IBM Plex Sans", "Segoe UI", sans-serif'},{label:"Aptos",value:'"Aptos", "Segoe UI", Arial, sans-serif'},{label:"Avenir Next",value:'"Avenir Next", "Montserrat", "Segoe UI", sans-serif'},{label:"Optima",value:'"Optima", "Candara", "Segoe UI", sans-serif'},{label:"Arial Narrow",value:'"Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif'},{label:"Georgia",value:'Georgia, "Times New Roman", serif'},{label:"Times New Roman",value:'"Times New Roman", Times, serif'},{label:"Didot",value:'"Didot", "Bodoni 72", Georgia, serif'},{label:"SF Mono",value:'"SFMono-Regular", Menlo, Consolas, monospace'},{label:"IBM Plex Mono",value:'"IBM Plex Mono", "SFMono-Regular", Consolas, monospace'},{label:"System UI",value:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'},{label:"Nunito",value:'"Nunito", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif'}];function rN(n,o){const l=hv(n),i=hv(o);return!l||!i?!1:l===i||pv(mv(n))===pv(mv(o))}function lN(n){const o=n.trim().toLowerCase();if(o==="bold"||o==="bolder")return!0;const l=Number.parseInt(o,10);return Number.isFinite(l)&&l>=600}function Cd(n){const o=new Set,l=n.toLowerCase();if(!l||l==="none")return o;for(const i of l.split(/\s+/))(i==="underline"||i==="line-through"||i==="overline")&&o.add(i);return o}function iN(n){return sN(n)?n.trim():cN(n)??"#000000"}function sN(n){return/^#(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test(n.trim())}function mv(n){return(n.split(",")[0]??"").trim().replace(/^["']|["']$/g,"")}function hv(n){return n.toLowerCase().replace(/["']/g,"").replace(/\s+/g," ").trim()}function pv(n){return n.toLowerCase().replace(/["']/g,"").trim()}function Zf(n){return Math.max(0,Math.min(255,Number.parseInt(n,10)||0)).toString(16).padStart(2,"0")}function cN(n){const o=n.trim().match(/^rgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})(?:[\s,/]+[\d.]+)?\s*\)$/i);return o?`#${Zf(o[1]||"0")}${Zf(o[2]||"0")}${Zf(o[3]||"0")}`:null}function Ad({feature:n,inspectedStyles:o,attributeValues:l}){var s,u;if(n.target==="attribute")return n.attributeName==="data-editor-locked"?l.locked:n.attributeName==="alt"?l.altText:n.attributeName==="aria-label"?l.ariaLabel:n.attributeName==="data-link-url"?l.linkUrl:"";if(!n.propertyName)return"";const i=fN(o,n.propertyName);return n.id==="font-family"?((u=(s=n.options)==null?void 0:s.find(f=>rN(i,f.value)))==null?void 0:u.value)??i:n.id==="font-size"&&i.endsWith("px")?i.slice(0,-2):n.id==="line-height"||n.id==="opacity"?i||(n.id==="opacity"?"1":""):n.id==="rotation"?String(Yn(i).rotate):n.controlType==="color"?iN(i):n.id==="text-align"&&i==="start"?"left":i}function gv(n,o){return n.id==="font-size"&&o.trim()?`${Math.min(200,Math.max(8,Number.parseFloat(o)||8))}px`:n.id==="font-bold"?o?"700":"400":n.id==="font-italic"?o?"italic":"normal":n.id==="font-underline"?o?"underline":"none":n.id==="font-strikethrough"?o?"line-through":"none":n.id==="locked"?o?"true":"":o.trim()}function yv(n,o,l){const i=Cd(n);return l?i.delete(o):i.add(o),i.size?Array.from(i).join(" "):"none"}function Px(n,o){return n.id==="font-bold"?lN(o):n.id==="font-italic"?o.trim().toLowerCase()==="italic":n.id==="font-underline"?Cd(o).has("underline"):n.id==="font-strikethrough"?Cd(o).has("line-through"):n.id==="locked"?o==="true":!!o}function uN(n,o){const l=n.options??[{label:"unset",value:""}];return!o||l.some(i=>i.value===o)?l:[{label:o,value:o},...l]}function fN(n,o){var l;return((l=n.find(i=>i.name===o))==null?void 0:l.value)??""}function dN({attributeValues:n,feature:o,inspectedStyles:l,nextValue:i,onAlignToSlide:s,onAttributeChange:u,onLayerOrder:f,onStyleChange:m}){if(o.target==="style"&&o.propertyName){const h=Ad({feature:o,inspectedStyles:l,attributeValues:n});if(o.id==="rotation"){const p=mN(l),v=Yn(p),g=Number.parseFloat(i);m(o.propertyName,Sa(v.translateX,v.translateY,Number.isFinite(g)?g:0)??"");return}if(o.id==="font-underline"){m(o.propertyName,yv(h,"underline",i===""));return}if(o.id==="font-strikethrough"){m(o.propertyName,yv(h,"line-through",i===""));return}m(o.propertyName,gv(o,i));return}if(o.target==="attribute"&&o.attributeName){u(o.attributeName,gv(o,i));return}o.id==="align-to-slide"&&s(i),o.id==="layer-order"&&f(i)}function mN(n){var o;return((o=n.find(l=>l.name==="transform"))==null?void 0:o.value)??""}const hN=[{value:"left",label:"Left",icon:AE},{value:"center",label:"Center",icon:wE},{value:"right",label:"Right",icon:TE}],pN=[{value:"left",icon:a0,label:"Align left"},{value:"hcenter",icon:ld,label:"Align horizontal center"},{value:"right",icon:t0,label:"Align right"},{value:"top",icon:o0,label:"Align top"},{value:"vcenter",icon:e0,label:"Align vertical center"},{value:"bottom",icon:n0,label:"Align bottom"}],gN=[{value:"front",icon:id,label:"Bring to front"},{value:"forward",icon:Bd,label:"Bring forward"},{value:"backward",icon:Pl,label:"Send backward"},{value:"back",icon:r0,label:"Send to back"}],yN=[{value:"horizontal",icon:sd,label:"Distribute horizontally"},{value:"vertical",icon:i0,label:"Distribute vertically"}],vv=[{id:"typography",label:"Typography",icon:Ny,subgroups:[{id:"font",label:"Font",icon:Ny,features:[{id:"font-family",label:"Font family",controlType:"select",target:"style",propertyName:"font-family",options:oN.map(n=>({label:n.label,value:n.value}))},{id:"font-size",label:"Font size",controlType:"slider",target:"style",propertyName:"font-size",min:8,max:200,step:1,unit:"px"},{id:"font-bold",label:"Bold",controlType:"toggle",target:"style",propertyName:"font-weight"},{id:"font-italic",label:"Italic",controlType:"toggle",target:"style",propertyName:"font-style"},{id:"font-underline",label:"Underline",controlType:"toggle",target:"style",propertyName:"text-decoration-line"},{id:"font-strikethrough",label:"Strikethrough",controlType:"toggle",target:"style",propertyName:"text-decoration-line"}]},{id:"paragraph",label:"Paragraph",icon:dE,features:[{id:"line-height",label:"Line height",controlType:"slider",target:"style",propertyName:"line-height",min:.8,max:3,step:.05},{id:"text-align",label:"Text align",controlType:"action-group",target:"style",propertyName:"text-align",options:hN}]}]},{id:"appearance",label:"Appearance",icon:My,subgroups:[{id:"fill",label:"Fill",icon:My,features:[{id:"text-color",label:"Text color",controlType:"color",target:"style",propertyName:"color"},{id:"background-color",label:"Background color",controlType:"color",target:"style",propertyName:"background-color"}]},{id:"border",label:"Border",icon:L2,features:[{id:"border",label:"Border",controlType:"text",target:"style",propertyName:"border",placeholder:"1px solid #d1c1ae"},{id:"border-radius",label:"Border radius",controlType:"text",target:"style",propertyName:"border-radius",placeholder:"16px"},{id:"box-shadow",label:"Shadow",controlType:"text",target:"style",propertyName:"box-shadow",placeholder:"0 12px 30px rgba(...)"}]}]},{id:"layout",label:"Layout",icon:Ry,subgroups:[{id:"size",label:"Size",icon:Ry,features:[{id:"width",label:"Width",controlType:"text",target:"style",propertyName:"width",placeholder:"320px or auto"},{id:"height",label:"Height",controlType:"text",target:"style",propertyName:"height",placeholder:"240px or auto"}]},{id:"visibility",label:"Visibility",icon:Z2,features:[{id:"opacity",label:"Opacity",controlType:"slider",target:"style",propertyName:"opacity",min:0,max:1,step:.01}]},{id:"rotation",label:"Rotation",icon:vE,features:[{id:"rotation",label:"Rotation",controlType:"number",target:"style",propertyName:"transform",min:-360,max:360,step:1,unit:"deg"}]},{id:"layer-alignment",label:"Layer, Align, Distribute",icon:lE,features:[{id:"align-to-slide",label:"Align selected element to slide bounds",controlType:"action-group",target:"operation",options:pN},{id:"layer-order",label:"Layer order",controlType:"action-group",target:"operation",options:gN},{id:"distribute",label:"Distribute selection",controlType:"action-group",target:"operation",options:yN}]},{id:"grouping",label:"Group",icon:cd,features:[{id:"group",label:"Group selection",controlType:"action-group",target:"operation",options:[{value:"group",icon:cd,label:"Group"}]},{id:"ungroup",label:"Ungroup selected group",controlType:"action-group",target:"operation",options:[{value:"ungroup",icon:s0,label:"Ungroup"}]}]}]},{id:"misc",label:"Misc",icon:_y,subgroups:[{id:"state",label:"State",icon:_y,features:[{id:"locked",label:"Lock / unlock",controlType:"toggle",target:"attribute",attributeName:"data-editor-locked"}]},{id:"link",label:"Link",icon:sE,features:[{id:"link-url",label:"Link URL",controlType:"text",target:"attribute",attributeName:"data-link-url",placeholder:"https://"}]}]},{id:"others",label:"Others",icon:kf,subgroups:[{id:"text-alternatives",label:"Text alternatives",icon:kf,features:[{id:"alt-text",label:"Alt text",controlType:"text",target:"attribute",attributeName:"alt",placeholder:"Describe this element"}]},{id:"labels",label:"Labels",icon:kf,features:[{id:"aria-label",label:"ARIA label",controlType:"text",target:"attribute",attributeName:"aria-label",placeholder:"aria-label"}]},{id:"css",label:"CSS",icon:oE,features:[{id:"custom-css",label:"Custom CSS property",controlType:"custom-css",target:"style"}]}]}],vN=200,$x="motion-safe:duration-200 motion-safe:ease-out",Kx="motion-safe:animate-in motion-safe:fade-in-0 motion-reduce:animate-none",bN="motion-safe:animate-out motion-safe:fade-out-0 motion-reduce:animate-none";function ql({className:n,type:o,...l}){return x.jsx("input",{type:o,"data-slot":"input",className:$e("h-8 w-full min-w-0 rounded-md border border-foreground/[0.08] bg-foreground/[0.03] px-2 py-1 text-sm shadow-none transition-colors outline-none selection:bg-foreground selection:text-background file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-foreground/35 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50","hover:bg-foreground/[0.04] focus-visible:border-foreground/20 focus-visible:bg-white focus-visible:ring-[2px] focus-visible:ring-ring/35","aria-invalid:border-destructive aria-invalid:ring-destructive/20",n),...l})}const xN=["#0F172A","#FFFFFF","#EF4444","#F97316","#F59E0B","#EAB308","#84CC16","#10B981","#06B6D4","#3B82F6","#8B5CF6","#EC4899"],SN=["linear-gradient(135deg,#a855f7,#ec4899)","linear-gradient(135deg,#06b6d4,#8b5cf6)","linear-gradient(135deg,#f59e0b,#ec4899)","linear-gradient(135deg,#10b981,#06b6d4)","linear-gradient(135deg,#f97316,#ef4444)","linear-gradient(135deg,#8b5cf6,#3b82f6)"];function wN({value:n,includeGradients:o=!0,onChange:l}){const i=b.useRef(null),s=b.useRef(null),u=b.useMemo(()=>EN(n),[n]),f=Jf(u),[m,h]=b.useState(f.replace("#","")),p=`hsl(${u.h}, 100%, 50%)`;b.useEffect(()=>{h(f.replace("#",""))},[f]);function v(S){var A;const w=(A=i.current)==null?void 0:A.getBoundingClientRect();if(!w)return;S.currentTarget.setPointerCapture(S.pointerId);const C=Os((S.clientX-w.left)/w.width,0,1),T=Os(1-(S.clientY-w.top)/w.height,0,1);l(Jf({...u,s:C,v:T}))}function g(S){var T;const w=(T=s.current)==null?void 0:T.getBoundingClientRect();if(!w)return;S.currentTarget.setPointerCapture(S.pointerId);const C=Math.round(Os((S.clientX-w.left)/w.width,0,1)*360);l(Jf({...u,h:C===360?0:C}))}return x.jsxs("div",{className:"grid gap-3",children:[x.jsx("div",{className:"relative h-36 w-full touch-none select-none overflow-hidden rounded-xl border-0 before:pointer-events-none before:absolute before:inset-0 before:bg-[linear-gradient(to_top,#000,transparent),linear-gradient(to_right,#fff,transparent)] before:content-[''] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",ref:i,role:"slider","aria-label":"Color saturation and brightness","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(u.v*100),"aria-valuetext":f,tabIndex:0,style:{backgroundColor:p},onPointerDown:v,onPointerMove:S=>{S.buttons===1&&v(S)},children:x.jsx("span",{className:"pointer-events-none absolute size-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-current shadow-[0_2px_8px_rgba(0,0,0,0.22)]","aria-hidden":"true",style:{color:f,left:`calc(${u.s*100}% + ${(.5-u.s)*22}px)`,top:`calc(${(1-u.v)*100}% + ${(u.v-.5)*22}px)`}})}),x.jsx("div",{className:"relative h-3 touch-none select-none rounded-full bg-[linear-gradient(to_right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",ref:s,role:"slider","aria-label":"Hue","aria-valuemin":0,"aria-valuemax":359,"aria-valuenow":u.h,tabIndex:0,onPointerDown:g,onPointerMove:S=>{S.buttons===1&&g(S)},children:x.jsx("span",{className:"pointer-events-none absolute -top-0.5 size-4 -translate-x-1/2 rounded-full border-2 border-white bg-current shadow-[0_2px_8px_rgba(0,0,0,0.2)]","aria-hidden":"true",style:{color:p,left:`${u.h/360*100}%`}})}),x.jsxs("div",{className:"grid grid-cols-[40px_auto_minmax(0,1fr)] items-center gap-2",children:[x.jsx("span",{className:"size-10 rounded-md border border-foreground/10 shadow-[0_1px_4px_rgba(0,0,0,0.08)]",style:{background:f},"aria-hidden":"true"}),x.jsx("span",{className:"font-mono text-sm font-medium leading-none text-foreground/45",children:"#"}),x.jsx(ql,{className:"h-8 rounded-md bg-foreground/[0.03] px-2 font-mono text-sm font-medium uppercase",type:"text",value:m,spellCheck:!1,onChange:S=>{const w=S.target.value.replace(/[^0-9a-f]/gi,"").slice(0,6);h(w),w.length===6&&l(`#${w}`)},onBlur:()=>{h(f.replace("#",""))}})]}),x.jsxs("section",{className:"grid gap-1.5","aria-label":"Preset colors",children:[x.jsx("div",{className:"text-[10px] font-medium uppercase leading-tight tracking-wider text-foreground/40",children:"Presets"}),x.jsx("div",{className:"grid grid-cols-12 gap-1",children:xN.map(S=>x.jsx("button",{className:$e("aspect-square min-w-0 cursor-pointer rounded-md border border-foreground/10 shadow-[0_1px_4px_rgba(0,0,0,0.08)] transition-[box-shadow,outline-color,border-color] duration-150 hover:border-foreground/25 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",S.toLowerCase()===n.toLowerCase()&&"shadow-[0_0_0_2px_white,0_0_0_4px_rgba(0,0,0,0.18)]"),type:"button",style:{background:S},"aria-label":`Use ${S}`,onClick:()=>{l(S)}},S))})]}),o?x.jsxs("section",{className:"grid gap-1.5","aria-label":"Preset gradients",children:[x.jsx("div",{className:"text-[10px] font-medium uppercase leading-tight tracking-wider text-foreground/40",children:"Gradients"}),x.jsx("div",{className:"grid grid-cols-6 gap-1.5",children:SN.map(S=>x.jsx("button",{className:$e("h-8 cursor-pointer rounded-md border border-foreground/10 shadow-[0_1px_4px_rgba(0,0,0,0.08)] transition-[box-shadow,outline-color,border-color] duration-150 hover:border-foreground/25 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",S===n&&"shadow-[0_0_0_2px_white,0_0_0_4px_rgba(0,0,0,0.18)]"),type:"button",style:{background:S},"aria-label":"Use gradient",onClick:()=>{l(S)}},S))})]}):null]})}function Os(n,o,l){return Math.min(Math.max(n,o),l)}function EN(n){const o={h:220,s:.54,v:.5},l=/^#?([0-9a-f]{6})$/i.exec(n.trim());if(!l)return o;const i=l[1],s=Number.parseInt(i.slice(0,2),16)/255,u=Number.parseInt(i.slice(2,4),16)/255,f=Number.parseInt(i.slice(4,6),16)/255,m=Math.max(s,u,f),h=Math.min(s,u,f),p=m-h;let v=0;p!==0&&(m===s?v=(u-f)/p%6:m===u?v=(f-s)/p+2:v=(s-u)/p+4);const g=Math.round(v*60);return{h:g<0?g+360:g,s:m===0?0:p/m,v:m}}function Jf({h:n,s:o,v:l}){const i=l*o,s=i*(1-Math.abs(n/60%2-1)),u=l-i;let f=0,m=0,h=0;return n<60?(f=i,m=s):n<120?(f=s,m=i):n<180?(m=i,h=s):n<240?(m=s,h=i):n<300?(f=s,h=i):(f=i,h=s),`#${Wf(f+u)}${Wf(m+u)}${Wf(h+u)}`.toUpperCase()}function Wf(n){return Math.round(Os(n,0,1)*255).toString(16).padStart(2,"0")}const bv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,xv=u0,TN=(n,o)=>l=>{var i;if((o==null?void 0:o.variants)==null)return xv(n,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:s,defaultVariants:u}=o,f=Object.keys(s).map(p=>{const v=l==null?void 0:l[p],g=u==null?void 0:u[p];if(v===null)return null;const S=bv(v)||bv(g);return s[p][S]}),m=l&&Object.entries(l).reduce((p,v)=>{let[g,S]=v;return S===void 0||(p[g]=S),p},{}),h=o==null||(i=o.compoundVariants)===null||i===void 0?void 0:i.reduce((p,v)=>{let{class:g,className:S,...w}=v;return Object.entries(w).every(C=>{let[T,A]=C;return Array.isArray(A)?A.includes({...u,...m}[T]):{...u,...m}[T]===A})?[...p,g,S]:p},[]);return xv(n,f,h,l==null?void 0:l.class,l==null?void 0:l.className)},CN=TN("inline-flex shrink-0 items-center justify-center gap-1.5 rounded-md text-[13px] font-medium whitespace-nowrap transition-colors outline-none focus-visible:border-ring focus-visible:ring-[2px] focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5",{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/85",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20",outline:"border border-foreground/[0.08] bg-white text-foreground/70 shadow-none hover:bg-foreground/[0.04] hover:text-foreground",secondary:"bg-foreground/[0.06] text-foreground hover:bg-foreground/[0.08]",ghost:"text-foreground/70 hover:bg-foreground/[0.04] hover:text-foreground",link:"text-foreground underline-offset-4 hover:underline"},size:{default:"h-8 px-3 py-1.5 has-[>svg]:px-2.5",xs:"h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-8 gap-1 rounded-md px-2 has-[>svg]:px-2",lg:"h-10 rounded-md px-4 has-[>svg]:px-3",icon:"size-8","icon-xs":"size-6 rounded-md [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Jl({className:n,variant:o="default",size:l="default",asChild:i=!1,...s}){const u=i?wT:"button";return x.jsx(u,{"data-slot":"button","data-variant":o,"data-size":l,className:$e(CN({variant:o,size:l,className:n})),...s})}function AN({className:n,orientation:o="horizontal",decorative:l=!0,...i}){return x.jsx(OR,{"data-slot":"separator",decorative:l,orientation:o,className:$e("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...i})}function _N({children:n,active:o=!1,label:l,onClick:i}){return x.jsx(Jl,{variant:o?"secondary":"ghost",size:"icon-sm",className:$e("h-8 w-8 rounded-md text-foreground/60 hover:text-foreground",o&&"bg-foreground/[0.06] text-foreground"),type:"button","aria-label":l,title:l,onClick:i,children:n})}function MN({children:n,active:o=!1,label:l,onClick:i}){return x.jsx(Jl,{variant:o?"secondary":"ghost",size:"icon-sm",className:$e("h-8 w-8 rounded-md text-foreground/60 hover:text-foreground",o&&"bg-foreground/[0.06] text-foreground"),type:"button","aria-label":l,title:l,onClick:i,children:n})}function RN({children:n,left:o,width:l="default"}){const i=b.useRef(null),[s,u]=b.useState({x:0,y:0});b.useLayoutEffect(()=>{const m=i.current;if(!m)return;const h=m.getBoundingClientRect(),p=m.closest('[data-testid="floating-toolbar-anchor"]'),v=p instanceof HTMLElement?p.getBoundingClientRect():null,g=v?v.left+o:h.left-s.x,S=v?v.bottom+8:h.top-s.y,w={bottom:S+h.height,left:g,right:g+h.width,top:S},C=16;let T=0,A=0;w.right>window.innerWidth-C&&(T=window.innerWidth-C-w.right),w.left+T<C&&(T+=C-(w.left+T)),w.bottom>window.innerHeight-C&&(A=window.innerHeight-C-w.bottom),w.top+A<C&&(A+=C-(w.top+A)),(_d(s.x,T)||_d(s.y,A))&&u({x:T,y:A})},[o,s.x,s.y]);const f=l==="wide"?"w-80 max-w-[min(320px,calc(100vw-40px))] max-h-[calc(100vh-36px)] overflow-y-auto":l==="medium"?"w-[272px]":"w-64";return x.jsx("div",{className:$e("absolute z-50 grid gap-1.5 rounded-md border border-foreground/[0.08] bg-white p-1.5 text-popover-foreground shadow-[0_4px_20px_rgba(0,0,0,0.06),0_12px_40px_rgba(0,0,0,0.08)] max-[1200px]:max-w-[calc(100vw-40px)]",$x,Kx,f),ref:i,style:{left:o+s.x,top:`calc(100% + 8px + ${s.y}px)`},role:"menu",children:n})}function NN(n){return n.features.some(o=>o.controlType==="color")?"wide":n.features.some(o=>o.controlType==="action-group")?"medium":"default"}function _d(n,o){return Math.abs(n-o)>=.5}function ON(){return x.jsx(AN,{orientation:"vertical",className:"mx-1 h-4 bg-foreground/10"})}function zN({children:n}){return x.jsx("div",{className:"inline-flex items-center gap-1.5 px-2 py-1 text-[10px] font-medium uppercase leading-tight tracking-wider text-foreground/40",children:n})}function Do({children:n,htmlFor:o}){return x.jsx("label",{htmlFor:o,className:"text-[10px] font-medium uppercase tracking-wider text-foreground/50",children:n})}function Md({icon:n}){return x.jsx(n,{className:"size-3.5"})}function DN({children:n,disabled:o=!1,onClick:l,title:i}){return x.jsx(Jl,{variant:"ghost",className:"min-h-8 w-full justify-start gap-2 rounded-md px-2 py-1.5 text-left text-[13px] font-normal text-foreground/70 hover:text-foreground",type:"button",disabled:o,title:i,onClick:l,children:n})}function jN({...n}){return x.jsx(pR,{"data-slot":"select",...n})}function kN({...n}){return x.jsx(wR,{"data-slot":"select-group",...n})}function LN({...n}){return x.jsx(yR,{"data-slot":"select-value",...n})}function HN({className:n,size:o="default",children:l,...i}){return x.jsxs(gR,{"data-slot":"select-trigger","data-size":o,className:$e("flex w-fit items-center justify-between gap-2 rounded-md border border-foreground/[0.08] bg-foreground/[0.03] px-2 text-sm whitespace-nowrap shadow-none transition-colors outline-none hover:bg-foreground/[0.05] focus-visible:border-foreground/20 focus-visible:bg-white focus-visible:ring-[2px] focus-visible:ring-ring/35 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-foreground/35 data-[size=default]:h-8 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='text-'])]:text-foreground/45",n),...i,children:[l,x.jsx(vR,{asChild:!0,children:x.jsx(Pl,{className:"size-4 opacity-50"})})]})}function BN({className:n,children:o,position:l="item-aligned",align:i="center",...s}){return x.jsx(bR,{children:x.jsxs(xR,{"data-slot":"select-content",className:$e("relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-xl border border-foreground/[0.08] bg-white text-popover-foreground shadow-[0_4px_20px_rgba(0,0,0,0.06),0_12px_40px_rgba(0,0,0,0.08)] data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",l==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:l,align:i,...s,children:[x.jsx(GN,{}),x.jsx(SR,{className:$e("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:o}),x.jsx(YN,{})]})})}function UN({className:n,children:o,...l}){return x.jsxs(ER,{"data-slot":"select-item",className:$e("relative flex w-full cursor-default items-center gap-2 rounded-md py-1.5 pr-8 pl-2 text-[13px] text-foreground/70 outline-hidden select-none focus:bg-foreground/[0.04] focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 [&_svg:not([class*='text-'])]:text-foreground/50 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...l,children:[x.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:x.jsx(CR,{children:x.jsx(l0,{className:"size-4"})})}),x.jsx(TR,{children:o})]})}function GN({className:n,...o}){return x.jsx(AR,{"data-slot":"select-scroll-up-button",className:$e("flex cursor-default items-center justify-center py-1",n),...o,children:x.jsx(Bd,{className:"size-4"})})}function YN({className:n,...o}){return x.jsx(_R,{"data-slot":"select-scroll-down-button",className:$e("flex cursor-default items-center justify-center py-1",n),...o,children:x.jsx(Pl,{className:"size-4"})})}const Es="__empty__";function IN({currentValue:n,feature:o,onClosePanel:l,onCommitFeature:i,operationAvailability:s,onStyleChange:u}){const f=`floating-${o.id}`;if(o.controlType==="select")return x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{htmlFor:f,children:o.label}),x.jsxs(jN,{value:n||Es,onValueChange:m=>i(o,m===Es?"":m),children:[x.jsx(HN,{id:f,"aria-label":o.label,size:"sm",className:"h-8 rounded-md border-transparent bg-foreground/[0.03] px-2 text-xs shadow-none hover:bg-foreground/[0.06]","data-value":n,children:x.jsx(LN,{})}),x.jsx(BN,{children:x.jsx(kN,{children:uN(o,n).map(m=>x.jsx(UN,{value:m.value||Es,"data-value":m.value,style:o.id==="font-family"&&m.value?{fontFamily:m.value}:void 0,children:m.label},m.value||Es))})})]})]},o.id);if(o.controlType==="color")return x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{children:o.label}),x.jsx(wN,{value:n,includeGradients:o.id==="background-color",onChange:m=>i(o,m)})]},o.id);if(o.controlType==="toggle"){const m=Px(o,n);return x.jsx(Jl,{type:"button",variant:m?"secondary":"outline","aria-pressed":m,onClick:()=>i(o,m?"":"true"),children:o.label},o.id)}return o.controlType==="slider"||o.controlType==="number"?x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{htmlFor:f,children:o.label}),x.jsx(ql,{id:f,type:"number",min:o.min,max:o.max,step:o.step,value:n,onChange:m=>i(o,m.target.value),className:"h-8 rounded-md bg-foreground/[0.03] px-2 text-[13px] tabular-nums"})]},o.id):o.controlType==="action-group"?x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{children:o.label}),x.jsx("div",{className:"grid gap-1",children:(o.options??[]).map(m=>{const h=m.icon,p=o.target==="operation"&&s?s[o.id]===!1:!1;return x.jsxs(DN,{disabled:p,title:m.label,onClick:()=>{p||(i(o,m.value),l())},children:[h?x.jsx(Md,{icon:h}):null,x.jsx("span",{children:m.label})]},m.value)})})]},o.id):o.controlType==="custom-css"?x.jsx(VN,{onCommit:u},o.id):x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{htmlFor:f,children:o.label}),x.jsx(ql,{id:f,type:"text",value:n,placeholder:o.placeholder,onChange:m=>i(o,m.target.value),className:"h-8 rounded-md bg-foreground/[0.03] px-2 text-[13px]"})]},o.id)}function VN({onCommit:n}){const o=b.useId(),l=b.useId(),[i,s]=b.useState(""),[u,f]=b.useState("");function m(){const h=i.trim();h&&(n(h,u.trim()),f(""))}return x.jsxs("div",{className:"grid gap-2",children:[x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{htmlFor:o,children:"Property name"}),x.jsx(ql,{id:o,type:"text",value:i,placeholder:"e.g. justify-content",onChange:h=>s(h.target.value)})]}),x.jsxs("div",{className:"grid gap-1",children:[x.jsx(Do,{htmlFor:l,children:"Property value"}),x.jsx(ql,{id:l,type:"text",value:u,placeholder:"e.g. space-between",onChange:h=>f(h.target.value),onKeyDown:h=>{h.key==="Enter"&&(h.preventDefault(),m())}})]}),x.jsx(Jl,{type:"button",variant:"outline",disabled:!i.trim(),onClick:m,children:"Apply property"})]})}function qN({inspectedStyles:n,selectedElementType:o,selectionCommandAvailability:l,attributeValues:i,onStyleChange:s,onAttributeChange:u,onAlignToSlide:f,onDistribute:m,onGroup:h,onLayerOrder:p,onUngroup:v}){const g=b.useRef(null),[S,w]=b.useState(null),[C,T]=b.useState(0),[A,_]=b.useState(0),z=b.useRef(0);b.useEffect(()=>{if(g.current)return()=>{const L=g.current,P=L==null?void 0:L.closest('[data-testid="stage-panel"]');if(!(L instanceof HTMLElement)||!(P instanceof HTMLElement))return;const J=L.getBoundingClientRect(),le=P.getBoundingClientRect(),re=L.cloneNode(!0);re instanceof HTMLElement&&(re.className=$e(re.className,"absolute z-40 m-0 pointer-events-none"),re.classList.remove("motion-safe:animate-in","motion-safe:fade-in-0"),re.className=$e(re.className,bN),re.setAttribute("aria-hidden","true"),re.style.left=`${J.left-le.left}px`,re.style.top=`${J.top-le.top}px`,re.style.width=`${J.width}px`,re.style.height=`${J.height}px`,P.appendChild(re),re.addEventListener("animationend",()=>{re.remove()}),window.setTimeout(()=>{re.remove()},vN+50))}},[]),b.useLayoutEffect(()=>{const j=g.current;if(!j)return;const L=j.getBoundingClientRect(),P=L.left-z.current,J=L.right-z.current,le=16;let re=0;P<le&&(re=le-P),J+re>window.innerWidth-le&&(re+=window.innerWidth-le-(J+re)),_d(z.current,re)&&(z.current=re,_(re))},[]),b.useEffect(()=>{function j(L){var P;(P=g.current)!=null&&P.contains(L.target)||w(null)}return document.addEventListener("mousedown",j),()=>{document.removeEventListener("mousedown",j)}},[]),b.useEffect(()=>{function j(L){L.key==="Escape"&&w(null)}return document.addEventListener("keydown",j),()=>{document.removeEventListener("keydown",j)}},[]);function H(j,L){T(L),w(P=>P===j?null:j)}function I(j,L){if(j.id==="distribute"){m(L);return}if(j.id==="group"){h();return}if(j.id==="ungroup"){v();return}dN({attributeValues:i,feature:j,inspectedStyles:n,nextValue:L,onAlignToSlide:f,onAttributeChange:u,onLayerOrder:p,onStyleChange:s})}const Q=XN(o);return x.jsxs("div",{className:$e("relative grid w-max min-w-max max-w-[min(980px,calc(100vw-280px))] gap-2 text-foreground pointer-events-auto max-[1200px]:w-full max-[1200px]:min-w-0",$x,Kx),ref:g,style:{marginLeft:A},children:[x.jsx("div",{className:"flex w-max items-center gap-0.5 overflow-x-auto overflow-y-hidden rounded-md border border-foreground/[0.08] bg-white px-1.5 py-1.5 shadow-[0_2px_12px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.06)] max-[1200px]:min-w-[760px]","aria-label":"Formatting toolbar",children:Q.map((j,L)=>x.jsxs("div",{className:"contents",children:[L>0?x.jsx(ON,{}):null,x.jsx("div",{className:"flex items-center gap-0.5 rounded-md bg-foreground/[0.02] px-0.5",children:j.subgroups.map(P=>{const J=P.features.length===1?P.features[0]:null;return(J==null?void 0:J.controlType)==="toggle"?D(P,J):x.jsx(_N,{active:S===P.id,label:P.label,onClick:le=>H(P.id,le.currentTarget.offsetLeft),children:x.jsx(Md,{icon:P.icon})},P.id)})})]},j.id))}),Q.flatMap(j=>j.subgroups).map(j=>S===j.id?x.jsxs(RN,{left:C,width:NN(j),children:[x.jsx(zN,{children:j.label}),x.jsx("div",{className:"grid gap-2",children:j.features.map(N)})]},j.id):null)]});function D(j,L){const P=Ad({feature:L,inspectedStyles:n,attributeValues:i}),J=Px(L,P);return x.jsx(MN,{label:L.label,active:J,onClick:()=>I(L,J?"":"true"),children:x.jsx(Md,{icon:j.icon})},j.id)}function N(j){return IN({currentValue:Ad({feature:j,inspectedStyles:n,attributeValues:i}),feature:j,onClosePanel:()=>w(null),onCommitFeature:I,operationAvailability:l,onStyleChange:s})}}function XN(n){return n!=="group"?vv:vv.flatMap(o=>o.id!=="layout"?[]:[{...o,subgroups:o.subgroups.filter(l=>["size","rotation","layer-alignment","grouping"].includes(l.id))}])}function PN({slideWidth:n,slideHeight:o,offsetX:l,offsetY:i,scale:s,selectionOverlay:u,toolbarKey:f,inspectedStyles:m,selectedElementType:h,selectionCommandAvailability:p,groupScopeOverlayPassive:v,isEditingText:g,manipulationOverlay:S,attributeValues:w,iframeRef:C,stageViewportRef:T,selectionOverlayRef:A,isManipulating:_,onSelectionOverlayMouseDown:z,onResizeHandleMouseDown:H,onRotateHandleMouseDown:I,onSelectionOverlayDoubleClick:Q,onBackgroundClick:D,onStyleChange:N,onAttributeChange:j,onAlignToSlide:L,onDistribute:P,onGroup:J,onLayerOrder:le,onUngroup:re,onDuplicate:ee,onDelete:se}){const M=(B,$)=>{B===$&&D()},Y=u?$N({selectionOverlay:u,offsetX:l,scale:s,slideWidth:n}):void 0;return x.jsxs("section",{className:"relative z-[5] min-h-0 min-w-0 flex-auto overflow-visible p-10 pb-6 max-[1200px]:px-5 max-[1200px]:py-4","data-testid":"stage-panel",ref:T,onClick:B=>{M(B.target,B.currentTarget)},onKeyDown:B=>{(B.key==="Enter"||B.key===" ")&&M(B.target,B.currentTarget)},children:[u&&!_&&!g?x.jsx("div",{className:"pointer-events-none absolute z-40 w-max max-[1200px]:static max-[1200px]:mb-4 max-[1200px]:pointer-events-auto",style:Y,"data-testid":"floating-toolbar-anchor",children:x.jsx(qN,{inspectedStyles:m,selectedElementType:h,selectionCommandAvailability:p,attributeValues:w,onStyleChange:N,onAttributeChange:j,onAlignToSlide:L,onDistribute:P,onGroup:J,onLayerOrder:le,onUngroup:re},f)}):null,g?x.jsx("p",{className:"absolute left-10 top-4 z-40 rounded-md border border-foreground/[0.06] bg-white px-3 py-2 text-[12px] leading-normal text-foreground/65 shadow-sm",children:"Editing text. Press Enter to save or Escape to cancel."}):null,x.jsx("div",{className:"absolute origin-top-left overflow-hidden rounded-xl bg-white shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_2px_12px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.06)] max-[1200px]:max-w-full","data-testid":"stage-frame",style:{width:`${n}px`,height:`${o}px`,left:`${l}px`,top:`${i}px`,transform:`scale(${s})`},children:x.jsx("iframe",{ref:C,title:"Slide canvas",className:"size-full border-0 bg-white","data-testid":"slide-iframe"})}),u&&!g?x.jsx(aN,{selectionCommandAvailability:p,onAlignToSlide:L,onDelete:se,onDistribute:P,onDuplicate:ee,onGroup:J,onLayerOrder:le,onUngroup:re,children:x.jsx("div",{ref:A,"data-testid":"selection-overlay",className:$e("absolute z-[3] border border-dashed border-foreground/55 bg-foreground/[0.02]",v?"pointer-events-none":"pointer-events-auto"),style:{left:`${u.x}px`,top:`${u.y}px`,width:`${u.width}px`,height:`${u.height}px`},onMouseDown:z,onDoubleClick:B=>{Q(B)}})}):null,S?x.jsx(WR,{selectionBounds:S.selectionBounds,snapGuides:S.snapGuides,resizeHandles:S.resizeHandles,rotationHandle:S.rotationHandle,onResizeHandleMouseDown:H,onRotateHandleMouseDown:I}):null]})}function $N({selectionOverlay:n,offsetX:o,scale:l,slideWidth:i}){const u=o,f=o+i*l,m=Math.max((f-u)/2,0),h=Math.min(288,m),p=u+h,v=f-h,g=n.x+n.width/2;return{left:`${Math.min(Math.max(g,p),Math.max(p,v))}px`,top:n.y<84?`${n.y+n.height+18}px`:`${n.y-18}px`,transform:n.y<84?"translate(-50%, 0)":"translate(-50%, -100%)"}}function KN({delayDuration:n=0,...o}){return x.jsx(QR,{"data-slot":"tooltip-provider",delayDuration:n,...o})}function Rd(n,o,l){return u2(n,o,l)}function Bl(n,o,l){var u;if(typeof DOMParser>"u")return"";const s=new DOMParser().parseFromString(n.htmlSource,"text/html").querySelector(`[${Me}="${o}"]`);return((u=s==null?void 0:s.getAttribute(l))==null?void 0:u.trim())??""}function QN({elementId:n,nextValue:o,propertyName:l,slide:i}){const s=Rd(i,n,l),u=o.trim();return s===u?null:{type:"style.update",slideId:i.id,elementId:n,propertyName:l,previousValue:s,nextValue:u,timestamp:Date.now()}}function FN({attributeName:n,elementId:o,nextValue:l,slide:i}){const s=Bl(i,o,n),u=l.trim();return s===u?null:{type:"attribute.update",slideId:i.id,elementId:o,attributeName:n,previousValue:s,nextValue:u,timestamp:Date.now()}}function eo(n){return Math.round(n*100)/100}function Qx(n,o){var m;if(typeof DOMParser>"u")return n;const s=(m=new DOMParser().parseFromString(`<template>${n}</template>`,"text/html").querySelector("template"))==null?void 0:m.content.firstElementChild;if(!(s instanceof HTMLElement))return n;const u=Yn(s.style.transform),f=Sa(0,0,u.rotate);return s.style.position="absolute",s.style.left=`${eo(o.x)}px`,s.style.top=`${eo(o.y)}px`,s.style.width=`${eo(o.width)}px`,s.style.height=`${eo(o.height)}px`,s.style.margin="0px",s.style.boxSizing="border-box",f?s.style.transform=f:s.style.removeProperty("transform"),s.style.transformOrigin||(s.style.transformOrigin="center center"),s.outerHTML}function Fx(n,o){return{x:n.left-o.left,y:n.top-o.top,width:n.width,height:n.height}}function ZN(n,o,l){var f;const i=(f=n.current)==null?void 0:f.contentDocument,s=i==null?void 0:i.querySelector(o.rootSelector),u=s==null?void 0:s.getBoundingClientRect();return{width:(u==null?void 0:u.width)||l.width,height:(u==null?void 0:u.height)||l.height}}function Nd(n,o,l){return{x:eo(n.x+o),y:eo(n.y+l),width:n.width,height:n.height}}function JN(n){return n.length?n.reduce((o,l)=>{const i=Math.min(o.x,l.x),s=Math.min(o.y,l.y),u=Math.max(o.x+o.width,l.x+l.width),f=Math.max(o.y+o.height,l.y+l.height);return{x:i,y:s,width:u-i,height:f-s}}):null}function WN(n,o,l){const i=Math.max(0,l.width-n.width),s=Math.max(0,l.height-n.height),u=Math.min(i,Math.max(0,n.x+o)),f=Math.min(s,Math.max(0,n.y+o));return{x:eo(u-n.x),y:eo(f-n.y)}}const eO=18,Zx=6,Sv=80,Ts=24,Ks=40,wv=12,Ev=360;function to(n,o,l,i,s){return Math.max(n,l)-Math.min(o,i)<=s}function Jx(n,o){const l=[];return o.vertical&&l.push(...Tv(n,o.vertical,"vertical")),o.horizontal&&l.push(...Tv(n,o.horizontal,"horizontal")),l}function Tv(n,o,l){return o.target.kind==="spacing"?nO(n,o,l):[tO(n,o,l)]}function tO(n,o,l){const i=o.target;if(n.x+n.width/2,n.y+n.height/2,i.rect.x+i.rect.width/2,i.rect.y+i.rect.height/2,l==="vertical"){const m=Cv(n,o.anchor,"vertical");if(i.kind==="slide")return{orientation:l,start:{x:i.position,y:n.y},end:{x:i.position,y:n.y+n.height},...i.role==="center"?{start:{x:i.position,y:i.rect.y},end:{x:i.position,y:i.rect.y+i.rect.height}}:{},variant:"alignment"};const h=Math.min(n.y,i.rect.y),p=Math.max(n.y+n.height,i.rect.y+i.rect.height);return{orientation:l,start:{x:m,y:h-Ts},end:{x:m,y:p+Ts},variant:"alignment"}}const s=Cv(n,o.anchor,"horizontal");if(i.kind==="slide")return{orientation:l,start:{x:n.x,y:i.position},end:{x:n.x+n.width,y:i.position},...i.role==="center"?{start:{x:i.rect.x,y:i.position},end:{x:i.rect.x+i.rect.width,y:i.position}}:{},variant:"alignment"};const u=Math.min(n.x,i.rect.x),f=Math.max(n.x+n.width,i.rect.x+i.rect.width);return{orientation:l,start:{x:u-Ts,y:s},end:{x:f+Ts,y:s},variant:"alignment"}}function nO(n,o,l){const i=o.target.relatedRects;if(i.length<2)return[];const[s,u]=i;if(!s||!u)return[];if(l==="vertical"){const w=s.x<=u.x?s:u,C=w===s?u:s,T=w.x+w.width,A=C.x,_=o.anchor==="start"?n.x:n.x+n.width,z={orientation:"horizontal",start:{x:T,y:w.y+w.height/2},end:{x:A,y:C.y+C.height/2},variant:"spacing"},H={orientation:"horizontal",start:o.anchor==="start"?{x:C.x+C.width,y:C.y+C.height/2}:{x:w.x,y:w.y+w.height/2},end:{x:_,y:n.y+n.height/2},variant:"spacing"};return[z,H]}const f=s.y<=u.y?s:u,m=f===s?u:s,h=f.y+f.height,p=m.y,v=o.anchor==="start"?n.y:n.y+n.height,g={orientation:"vertical",start:{x:f.x+f.width/2,y:h},end:{x:m.x+m.width/2,y:p},variant:"spacing"},S={orientation:"vertical",start:o.anchor==="start"?{x:m.x+m.width/2,y:m.y+m.height}:{x:f.x+f.width/2,y:f.y},end:{x:n.x+n.width/2,y:v},variant:"spacing"};return[g,S]}function Cv(n,o,l){return l==="vertical"?o==="start"?n.x:o==="end"?n.x+n.width:n.x+n.width/2:o==="start"?n.y:o==="end"?n.y+n.height:n.y+n.height/2}function aO({activeSlide:n,doc:o,rootRect:l,selectedElementId:i,slideStageRect:s,stageGeometry:u}){var S;const f=(w,C)=>({position:w,rect:s,kind:"slide",role:C,anchor:null,priority:C==="center"?0:2,elementId:null,relatedRects:[]}),m=[f(s.x,"start"),f(s.x+s.width/2,"center"),f(s.x+s.width,"end")],h=[f(s.y,"start"),f(s.y+s.height/2,"center"),f(s.y+s.height,"end")],p=o.querySelector(`[data-editor-id="${i}"]`),v=[];for(const w of n.elements){if(w.id===i)continue;const C=o.querySelector(`[data-editor-id="${w.id}"]`);if(!C||p&&(p.contains(C)||C.contains(p)))continue;const T=(S=o.defaultView)==null?void 0:S.getComputedStyle(C);if((T==null?void 0:T.display)==="none"||(T==null?void 0:T.visibility)==="hidden")continue;const A=C.getBoundingClientRect();if(A.width<=0||A.height<=0)continue;const _=Ul(A,l,u);(w.type==="block"||w.type==="image")&&v.push({elementId:w.id,rect:_});const z=_.x,H=_.x+_.width/2,I=_.x+_.width,Q=_.y,D=_.y+_.height/2,N=_.y+_.height,j=(L,P)=>({position:L,rect:_,kind:"element",role:P,anchor:null,priority:P==="center"?3:4,elementId:w.id,relatedRects:[]});m.push(j(z,"start"),j(H,"center"),j(I,"end")),h.push(j(Q,"start"),j(D,"center"),j(N,"end"))}const g=oO(v);return m.push(...g.vertical),h.push(...g.horizontal),{vertical:m,horizontal:h}}function oO(n){const o=[],l=[],i=n.slice().sort((u,f)=>u.rect.x-f.rect.x).filter(u=>u.rect.width>0&&u.rect.height>0),s=n.slice().sort((u,f)=>u.rect.y-f.rect.y).filter(u=>u.rect.width>0&&u.rect.height>0);for(let u=0;u<i.length-1;u+=1){const f=i[u],m=i[u+1];if(!f||!m)continue;if(!to(f.rect.x,f.rect.x+f.rect.width,m.rect.x,m.rect.x+m.rect.width,0)){const p=m.rect.x-(f.rect.x+f.rect.width);p>=wv&&p<=Ev&&to(f.rect.y,f.rect.y+f.rect.height,m.rect.y,m.rect.y+m.rect.height,Ks)&&o.push(Cs({position:m.rect.x+m.rect.width+p,rect:m.rect,anchor:"start",relatedRects:[f.rect,m.rect]}),Cs({position:f.rect.x-p,rect:f.rect,anchor:"end",relatedRects:[f.rect,m.rect]}))}}for(let u=0;u<s.length-1;u+=1){const f=s[u],m=s[u+1];if(!f||!m)continue;if(!to(f.rect.y,f.rect.y+f.rect.height,m.rect.y,m.rect.y+m.rect.height,0)){const p=m.rect.y-(f.rect.y+f.rect.height);p>=wv&&p<=Ev&&to(f.rect.x,f.rect.x+f.rect.width,m.rect.x,m.rect.x+m.rect.width,Ks)&&l.push(Cs({position:m.rect.y+m.rect.height+p,rect:m.rect,anchor:"start",relatedRects:[f.rect,m.rect]}),Cs({position:f.rect.y-p,rect:f.rect,anchor:"end",relatedRects:[f.rect,m.rect]}))}}return{vertical:o,horizontal:l}}function Cs({position:n,rect:o,anchor:l,relatedRects:i}){return{position:n,rect:o,kind:"spacing",role:"end",anchor:l,priority:1,elementId:null,relatedRects:i}}function rO(n,o){const l=Qs([{anchor:"start",position:n.x},{anchor:"center",position:n.x+n.width/2},{anchor:"end",position:n.x+n.width}],o.vertical,n,"vertical"),i=Qs([{anchor:"start",position:n.y},{anchor:"center",position:n.y+n.height/2},{anchor:"end",position:n.y+n.height}],o.horizontal,n,"horizontal"),s={...n,x:n.x+((l==null?void 0:l.delta)??0),y:n.y+((i==null?void 0:i.delta)??0)};return{rect:s,guides:Jx(s,{vertical:l,horizontal:i})}}function lO(n,o,l){const i={...n},s=o==="top-left"||o==="bottom-left"?"start":"end",u=o==="top-left"||o==="top-right"?"start":"end",f=Qs([{anchor:s,position:s==="start"?n.x:n.x+n.width}],l.vertical,n,"vertical"),m=Qs([{anchor:u,position:u==="start"?n.y:n.y+n.height}],l.horizontal,n,"horizontal");if(f)if(s==="start"){const h=i.width-f.delta;h>=48&&(i.x+=f.delta,i.width=h)}else{const h=i.width+f.delta;h>=48&&(i.width=h)}if(m)if(u==="start"){const h=i.height-m.delta;h>=48&&(i.y+=m.delta,i.height=h)}else{const h=i.height+m.delta;h>=48&&(i.height=h)}return{rect:i,guides:Jx(i,{vertical:m,horizontal:f})}}function Qs(n,o,l,i){const s=uO(o);let u=null;for(const f of n)for(const m of s){if(!sO(l,m,i)||m.anchor&&m.anchor!==f.anchor)continue;const h=m.position-f.position,p=Math.abs(h);if(p>eO)continue;const v=m.kind==="spacing"?Math.max(0,p-Zx):p,g=Wx(f.anchor,m),S=v*100+m.priority+g,w=u?iO(u):Number.POSITIVE_INFINITY;S>=w||(u={anchor:f.anchor,delta:h,target:m})}return u}function iO(n){const o=Math.abs(n.delta);return(n.target.kind==="spacing"?Math.max(0,o-Zx):o)*100+n.target.priority+Wx(n.anchor,n.target)}function Wx(n,o){return o.kind==="slide"&&o.role==="center"&&n!=="center"?25:0}function sO(n,o,l){return o.kind==="slide"?!0:o.kind==="spacing"?cO(n,o,l):l==="vertical"?to(n.y,n.y+n.height,o.rect.y,o.rect.y+o.rect.height,Sv):to(n.x,n.x+n.width,o.rect.x,o.rect.x+o.rect.width,Sv)}function cO(n,o,l){if(o.relatedRects.length<2)return!1;if(l==="vertical"){const u=Math.min(...o.relatedRects.map(m=>m.y)),f=Math.max(...o.relatedRects.map(m=>m.y+m.height));return to(n.y,n.y+n.height,u,f,Ks)}const i=Math.min(...o.relatedRects.map(u=>u.x)),s=Math.max(...o.relatedRects.map(u=>u.x+u.width));return to(n.x,n.x+n.width,i,s,Ks)}function uO(n){const o=new Set;return n.filter(l=>{const i=`${l.kind}:${l.elementId??"slide"}:${l.position.toFixed(2)}`;return o.has(i)?!1:(o.add(i),!0)})}function As(n){return`${Math.round(n*100)/100}px`}function Za(n,o){return Math.max(n,48*o)}function Od(n){return(n==null?void 0:n.type)==="block"||(n==null?void 0:n.type)==="text"||(n==null?void 0:n.type)==="group"}function fO(n){return(n==null?void 0:n.type)==="block"||(n==null?void 0:n.type)==="text"||(n==null?void 0:n.type)==="group"}function dO(n){const[o,...l]=n;return o?l.reduce((i,s)=>{const u=Math.min(i.x,s.x),f=Math.min(i.y,s.y),m=Math.max(i.x+i.width,s.x+s.width),h=Math.max(i.y+i.height,s.y+s.height);return{x:u,y:f,width:m-u,height:h-f}},o):{x:0,y:0,width:0,height:0}}function Av(n,o,l,i){return Math.atan2(o-i,n-l)*180/Math.PI}function mO({resizeCorner:n,scale:o,stageDeltaX:l,stageDeltaY:i,startStageRect:s}){let u=s.x,f=s.y,m=s.width,h=s.height;switch(n){case"top-left":{m=Za(s.width-l,o),h=Za(s.height-i,o),u=s.x+(s.width-m),f=s.y+(s.height-h);break}case"top-right":{m=Za(s.width+l,o),h=Za(s.height-i,o),f=s.y+(s.height-h);break}case"bottom-left":{m=Za(s.width-l,o),h=Za(s.height+i,o),u=s.x+(s.width-m);break}default:{m=Za(s.width+l,o),h=Za(s.height+i,o);break}}return{x:u,y:f,width:m,height:h}}function zs(n,o){for(const l of Hd)n.style[l]=o[l]??""}function hO(n){return n.elementIds.map(o=>{const l=n.targetNodes[o],i=n.previousStyles[o];if(!l||!i)return null;const s=Gl(l);return JSON.stringify(s)===JSON.stringify(i)?null:{type:"element.layout.update",slideId:n.slideId,elementId:o,previousStyle:i,nextStyle:s,timestamp:Date.now()}}).filter(o=>!!o)}function pO(n,o){return o.length===1?o[0]:{type:"operation.batch",slideId:n.slideId,operations:o,timestamp:Date.now()}}function gO({isEditingText:n,isManipulating:o,selectedElement:l,selectedElementId:i,snapGuides:s,stageRect:u}){return!u||!i||!fO(l)||n?null:{selectionBounds:u,snapGuides:o?s:[],resizeHandles:[{corner:"top-left",x:u.x,y:u.y},{corner:"top-right",x:u.x+u.width,y:u.y},{corner:"bottom-right",x:u.x+u.width,y:u.y+u.height},{corner:"bottom-left",x:u.x,y:u.y+u.height}],rotationHandle:{x:u.x+u.width/2,y:u.y+u.height+20}}}function yO({activeSlide:n,selectedElement:o,selectedElementId:l,selectedElementIds:i,selectedStageRect:s,iframeRef:u,stageGeometry:f,isEditingText:m,onCommitOperation:h}){const{offsetX:p,offsetY:v,scale:g,slideHeight:S,slideWidth:w}=f,C=b.useRef(null),T=b.useRef(null),[A,_]=b.useState(!1),[z,H]=b.useState(!1),[I,Q]=b.useState(null),[D,N]=b.useState([]),L=gO({isEditingText:m,isManipulating:A,selectedElement:o,selectedElementId:l,snapGuides:D,stageRect:I??s});b.useEffect(()=>()=>{C.current=null,T.current&&window.clearTimeout(T.current)},[]),b.useEffect(()=>{(!n||!l||!Od(o)||m)&&(C.current=null,_(!1),Q(null))},[n,m,o,l]),b.useEffect(()=>{A||(Q(null),N([]))},[A]);const P=b.useCallback(()=>{H(!0),T.current&&window.clearTimeout(T.current),T.current=window.setTimeout(()=>{H(!1),T.current=null},0)},[]),J=b.useCallback((le,re,ee=null)=>{var vt;if(!n||!l||!s||!Od(o)||m)return;const se=(vt=u.current)==null?void 0:vt.contentDocument;if(!se)return;const M=se.querySelector(n.rootSelector),Y=et(se,l);if(!M||!Y)return;const B=vO({activeSlide:n,doc:se,mode:le,selectedElementId:l,selectedElementIds:i}),$=Object.fromEntries(B.map(Ne=>[Ne,et(se,Ne)]).filter(Ne=>!!Ne[1]));if(!Object.keys($).length)return;const X=Object.fromEntries(Object.entries($).map(([Ne,ge])=>[Ne,Gl(ge)])),R=Object.fromEntries(Object.entries($).map(([Ne,ge])=>[Ne,bO(ge,$)])),G=u.current,F=(G==null?void 0:G.style.pointerEvents)||"";re.preventDefault(),re.stopPropagation();const ne=Y.getBoundingClientRect(),oe=M.getBoundingClientRect(),ce={x:p,y:v,width:w*g,height:S*g},ie={scale:g,offsetX:p,offsetY:v},me=aO({activeSlide:n,doc:se,rootRect:oe,selectedElementId:l,slideStageRect:ce,stageGeometry:ie}),de=Object.values($).map(Ne=>Ul(Ne.getBoundingClientRect(),oe,ie)),_e=Object.fromEntries(Object.entries($).map(([Ne,ge])=>[Ne,Ul(ge.getBoundingClientRect(),oe,ie)])),Ee=Object.fromEntries(Object.values($).map(Ne=>Ne.parentElement).filter(Ne=>!!Ne).map(Ne=>[e1(Ne),Ul(Ne.getBoundingClientRect(),oe,ie)])),we=de.length?dO(de):s;C.current={slideId:n.id,elementId:l,elementIds:Object.keys($),mode:le,resizeCorner:ee,startPointer:{x:re.clientX,y:re.clientY},startStageRect:we,centerPoint:{x:ne.left+ne.width/2,y:ne.top+ne.height/2},previousStyle:X[l],previousStyles:X,startElementStageRects:_e,resizeParentElementIds:R,startParentStageRects:Ee,targetNodes:$,snapTargets:me},_(!0),N([]),G&&(G.style.pointerEvents="none");const lt=Ne=>{const ge=C.current;if(!ge)return;Ne.preventDefault();const ln=Ne.clientX-ge.startPointer.x,sn=Ne.clientY-ge.startPointer.y;if(ge.mode==="move"){const jn={x:ge.startStageRect.x+ln,y:ge.startStageRect.y+sn,width:ge.startStageRect.width,height:ge.startStageRect.height},ue=Ne.altKey?{rect:jn,guides:[]}:rO(jn,ge.snapTargets);Q(ue.rect),N(ue.guides);const Te=(ue.rect.x-ge.startStageRect.x)/g,ye=(ue.rect.y-ge.startStageRect.y)/g;for(const Oe of ge.elementIds){const Ue=ge.targetNodes[Oe],Le=ge.previousStyles[Oe];if(!Ue||!Le)continue;const Qe=Yn(Le.transform);zs(Ue,{...Le,transform:Sa(Qe.translateX+Te,Qe.translateY+ye,Qe.rotate),transformOrigin:Le.transformOrigin||"center center"})}return}if(ge.mode==="resize"){const jn=mO({resizeCorner:ge.resizeCorner,scale:g,stageDeltaX:ln,stageDeltaY:sn,startStageRect:ge.startStageRect}),ue=Ne.altKey||!ge.resizeCorner?{rect:jn,guides:[]}:lO(jn,ge.resizeCorner,ge.snapTargets);Q(ue.rect),N(ue.guides),xO(ge,ue.rect,{offsetX:p,offsetY:v,scale:g});return}const ct=Yn(ge.previousStyle.transform),bn=Av(ge.startPointer.x,ge.startPointer.y,ge.centerPoint.x,ge.centerPoint.y),_t=Av(Ne.clientX,Ne.clientY,ge.centerPoint.x,ge.centerPoint.y);zs(Y,{...ge.previousStyle,transform:Sa(ct.translateX,ct.translateY,ct.rotate+(_t-bn)),transformOrigin:"center center"}),N([])},qe=()=>{window.removeEventListener("mousemove",lt),window.removeEventListener("mouseup",Yt),window.removeEventListener("keydown",Dt),G&&(G.style.pointerEvents=F)},Yt=()=>{const Ne=C.current;if(qe(),_(!1),P(),C.current=null,N([]),!Ne)return;const ge=hO(Ne);if(!ge.length){Q(null);return}h(pO(Ne,ge))},Dt=Ne=>{if(Ne.key!=="Escape")return;const ge=C.current;if(qe(),_(!1),P(),C.current=null,N([]),!!ge){for(const ln of ge.elementIds){const sn=ge.targetNodes[ln],ct=ge.previousStyles[ln];sn&&ct&&zs(sn,ct)}Q(null)}};window.addEventListener("mousemove",lt),window.addEventListener("mouseup",Yt),window.addEventListener("keydown",Dt)},[n,u,m,h,o,l,i,s,g,p,v,w,S,P]);return{manipulationOverlay:L,isManipulating:A,suppressBackgroundClear:z,beginMove:le=>{J("move",le)},beginResize:(le,re)=>{J("resize",re,le)},beginRotate:le=>{J("rotate",le)}}}function vO({activeSlide:n,doc:o,mode:l,selectedElementId:i,selectedElementIds:s}){const u=s.filter(m=>{const h=n.elements.find(p=>p.id===m);return Od(h)});if(l==="move")return u;if(l==="rotate")return[i];const f=new Set;for(const m of u.length?u:[i]){const h=et(o,m);if(h&&(f.add(m),h.getAttribute("data-group")==="true"))for(const p of h.querySelectorAll(`[data-editable][${Me}]`)){const v=p.getAttribute(Me);v&&f.add(v)}}return[...f]}function bO(n,o){const l=Object.entries(o);let i=n.parentElement;for(;i;){const s=l.find(([,u])=>u===i);if(s)return s[0];i=i.parentElement}return null}function xO(n,o,l){const i=n.startStageRect.width>0?o.width/n.startStageRect.width:1,s=n.startStageRect.height>0?o.height/n.startStageRect.height:1,u={x:l.offsetX,y:l.offsetY},f=Object.fromEntries(Object.entries(n.startElementStageRects).map(([m,h])=>[m,{x:o.x+(h.x-n.startStageRect.x)*i,y:o.y+(h.y-n.startStageRect.y)*s,width:h.width*i,height:h.height*s}]));for(const m of n.elementIds){const h=n.targetNodes[m],p=n.previousStyles[m],v=f[m];if(!h||!p||!v)continue;const g=n.resizeParentElementIds[m]?f[n.resizeParentElementIds[m]]:n.startParentStageRects[e1(h.parentElement)]??u;if(!g)continue;const S=Yn(p.transform);zs(h,{...p,position:p.position||"absolute",left:As((v.x-g.x)/l.scale),top:As((v.y-g.y)/l.scale),width:As(v.width/l.scale),height:As(v.height/l.scale),transform:Sa(0,0,S.rotate),transformOrigin:p.transformOrigin||"center center"})}}function e1(n){return n!=null&&n.getAttribute(Me)?`editable:${n.getAttribute(Me)}`:"slide"}const _v={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}};function SO(n){return n instanceof Element?!!n.closest('input, textarea, select, [contenteditable="true"], [contenteditable="plaintext-only"]'):!1}function wO(n){return(n==null?void 0:n.type)==="block"||(n==null?void 0:n.type)==="text"}function EO(n){return n.altKey?1:n.shiftKey?10:5}function TO(n,o,l){var f;const i={[o]:l};if(typeof DOMParser>"u")return i;const u=(f=new DOMParser().parseFromString(`<template>${n}</template>`,"text/html").querySelector("template"))==null?void 0:f.content.firstElementChild;if(!(u instanceof HTMLElement))return i;for(const m of u.querySelectorAll("[data-editor-id]")){const h=m.getAttribute("data-editor-id");h&&(i[h]=`${l}-${h}`)}return i}function _s(n,o,l){return o.length?(l(o.length===1?o[0]:{type:"operation.batch",slideId:n,operations:o,timestamp:Date.now()}),!0):!1}function CO({activeSlide:n,selectedElementIds:o,iframeRef:l,slideWidth:i,slideHeight:s,isEditingText:u,canUndo:f,canRedo:m,onEscapeSelection:h,onCommitOperation:p,onSelectElementIds:v,onUndo:g,onRedo:S}){const w=b.useRef(null),C=b.useRef(n),T=b.useRef(o),A=b.useRef(f),_=b.useRef(m),z=b.useRef(u),H=b.useRef(h);C.current=n,T.current=o,A.current=f,_.current=m,z.current=u,H.current=h,b.useEffect(()=>{var le,re;const I=()=>{var R;const ee=C.current,se=T.current;if(!ee||!se.length)return!1;const M=(R=l.current)==null?void 0:R.contentDocument,Y=M==null?void 0:M.querySelector(ee.rootSelector),B=Y==null?void 0:Y.getBoundingClientRect();if(!B)return!1;const $=se.map(G=>{const F=Ls(ee.htmlSource,G),ne=ks(ee.htmlSource,G),oe=M?et(M,G):null;return!F||!ne||!oe?null:{sourceElementId:G,html:F,rect:Fx(oe.getBoundingClientRect(),B),...ne}}).filter(G=>!!G);if(!$.length)return!1;const X=JN($.map(G=>G.rect));return X?(w.current={elements:$,unionRect:X},!0):!1},Q=()=>{const ee=C.current,se=T.current;if(!ee||!se.length)return!1;const M=se.map(Y=>{const B=Ls(ee.htmlSource,Y),$=ks(ee.htmlSource,Y);return!B||!$?null:{type:"element.remove",slideId:ee.id,elementId:Y,...$,html:B,timestamp:Date.now()}}).filter(Y=>!!Y);return M.length?(_s(ee.id,M,p),v([]),!0):!1},D=(ee=w.current)=>{const se=C.current;if(!se||!ee)return!1;let M=se.htmlSource;const Y=[],B=ZN(l,se,{width:i,height:s}),$=WN(ee.unionRect,24,{width:B.width,height:B.height}),X=[],R=ee.elements.map(G=>{const F=rd(M,`${G.sourceElementId}-copy`),ne=Zv(G.html,TO(G.html,G.sourceElementId,F)),oe=Nd(G.rect,$.x,$.y),ce=Qx(ne,oe);return M=`${M}
|
|
322
|
+
<!-- ${F} reserved -->`,Y.push(F),X.push({...G,rect:oe}),{type:"element.insert",slideId:se.id,elementId:F,parentElementId:null,previousSiblingElementId:null,nextSiblingElementId:null,html:ce,timestamp:Date.now()}});return _s(se.id,R,p),v(Y),w.current={elements:X,unionRect:Nd(ee.unionRect,$.x,$.y)},!0},N=ee=>{var R;const se=_v[ee.key],M=C.current,Y=T.current;if(!M||!Y.length||!se)return!1;const B=(R=l.current)==null?void 0:R.contentDocument,$=EO(ee),X=Y.map(G=>{const F=M.elements.find(me=>me.id===G);if(!wO(F))return null;const ne=B?et(B,G):null;if(!ne)return null;const oe=Gl(ne),ce=Yn(oe.transform),ie=nd({...oe,transform:Sa(ce.translateX+se.x*$,ce.translateY+se.y*$,ce.rotate),transformOrigin:oe.transformOrigin||"center center"});return{type:"element.layout.update",slideId:M.id,elementId:G,previousStyle:oe,nextStyle:ie,timestamp:Date.now()}}).filter(G=>!!G);return _s(M.id,X,p),!0},j=ee=>{var $;const se=C.current,M=T.current;if(!se||!M.length)return!1;const Y=($=l.current)==null?void 0:$.contentDocument,B=M.map(X=>{const R=Y?et(Y,X):null;if(!R)return null;const G=Gl(R),F=Number.parseInt(G.zIndex||"",10),ne=Number.isFinite(F)?F:0,oe=ee==="front"?999:ee==="back"?0:Math.max(0,ne+(ee==="forward"?1:-1)),ce=nd({...G,zIndex:String(oe)});return ce.zIndex===G.zIndex?null:{type:"element.layout.update",slideId:se.id,elementId:X,previousStyle:G,nextStyle:ce,timestamp:Date.now()}}).filter(X=>!!X);return _s(se.id,B,p)},L=ee=>{if(ee.defaultPrevented||z.current)return;const se=ee.key.toLowerCase(),M=ee.metaKey||ee.ctrlKey,Y=M&&!ee.shiftKey&&se==="z",B=M&&(ee.shiftKey&&se==="z"||se==="y"),$=SO(ee.target);let X=!1;if(Y&&A.current)g(),X=!0;else if(B&&_.current)S(),X=!0;else{if($)return;M&&!ee.shiftKey&&se==="c"?X=I():M&&!ee.shiftKey&&se==="x"?X=I()&&Q():M&&!ee.shiftKey&&se==="v"?X=D():M&&!ee.shiftKey&&se==="d"?X=I()&&D():ee.key==="Backspace"||ee.key==="Delete"?X=Q():ee.key==="Escape"?X=H.current():ee.key in _v?X=N(ee):M&&ee.key==="]"?X=j(ee.shiftKey?"front":"forward"):M&&ee.key==="["&&(X=j(ee.shiftKey?"back":"backward"))}X&&(ee.preventDefault(),ee.stopPropagation())},P=(le=l.current)==null?void 0:le.contentDocument,J=(re=l.current)==null?void 0:re.contentWindow;return window.addEventListener("keydown",L),J==null||J.addEventListener("keydown",L),P==null||P.addEventListener("keydown",L),()=>{window.removeEventListener("keydown",L),J==null||J.removeEventListener("keydown",L),P==null||P.removeEventListener("keydown",L)}},[l,p,S,v,g,s,i])}const Mv="hse-editing-text-style",AO=`
|
|
323
|
+
[data-hse-editing="true"] {
|
|
324
|
+
outline: none !important;
|
|
325
|
+
box-shadow: none !important;
|
|
326
|
+
overflow: visible;
|
|
327
|
+
caret-color: currentColor;
|
|
328
|
+
white-space: pre-wrap;
|
|
329
|
+
user-select: text;
|
|
330
|
+
-webkit-user-select: text;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
[data-hse-editing="true"]:focus,
|
|
334
|
+
[data-hse-editing="true"]:focus-visible {
|
|
335
|
+
outline: none !important;
|
|
336
|
+
box-shadow: none !important;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
body[data-hse-group-scope] [data-editable] {
|
|
340
|
+
transition: opacity 120ms ease, filter 120ms ease;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
body[data-hse-group-scope] [data-editable][data-hse-outside-group-scope="true"] {
|
|
344
|
+
opacity: 0.28;
|
|
345
|
+
filter: blur(1.5px);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
body[data-hse-group-scope] [data-editable][data-hse-active-group-scope="true"] {
|
|
349
|
+
outline: 1px solid rgba(15, 23, 42, 0.22);
|
|
350
|
+
outline-offset: 4px;
|
|
351
|
+
}
|
|
352
|
+
`;function _O(n){return n.closest(`[data-editable][${Me}]`)}function Rv(n,o){const l=Array.from(n.querySelectorAll("[data-editable]"));for(const s of l)s.removeAttribute("data-hse-active-group-scope"),s.removeAttribute("data-hse-outside-group-scope");if(!o){n.body.removeAttribute("data-hse-group-scope");return}n.body.setAttribute("data-hse-group-scope",o);const i=n.querySelector(`[data-editable="block"][data-group="true"][${Me}="${o}"]`);if(!i){n.body.removeAttribute("data-hse-group-scope");return}i.setAttribute("data-hse-active-group-scope","true");for(const s of l)s!==i&&!i.contains(s)&&s.setAttribute("data-hse-outside-group-scope","true")}function Nv(n,o){const l=_O(n);return l?o?l.closest(`[data-editable="block"][data-group="true"][${Me}="${o}"]`)?l:null:l.closest(`[data-editable="block"][data-group="true"][${Me}]`)??l:null}function MO(n){if(n.getElementById(Mv))return;const o=n.createElement("style");o.id=Mv,o.textContent=AO,n.head.appendChild(o)}function RO(n){const o=n.ownerDocument.getSelection(),l=n.ownerDocument.createRange();l.selectNodeContents(n),l.collapse(!1),o==null||o.removeAllRanges(),o==null||o.addRange(l)}function NO({activeSlide:n,iframeRef:o,onCommitOperation:l}){const[i,s]=b.useState([]),[u,f]=b.useState(null),[m,h]=b.useState(null),p=b.useRef(null),v=b.useRef(null),g=b.useRef(()=>{}),S=b.useRef(()=>{}),w=i[i.length-1]??null;function C(D){s(N=>{const j=typeof D=="function"?D(N[N.length-1]??null):D;return j?[j]:[]})}const T=b.useCallback(D=>{s(N=>N.includes(D)?N.filter(j=>j!==D):[...N,D])},[]),A=b.useCallback(D=>{var P;if(!n)return;const N=(P=o.current)==null?void 0:P.contentDocument,j=N?et(N,D):null;if(!j||j.getAttribute("data-editable")!=="text")return;const L={slideId:n.id,elementId:D,initialText:j.textContent||""};s([D]),p.current=L,h(L)},[n,o]),_=b.useCallback(D=>{f(D),v.current=D,s([D])},[]),z=b.useCallback(()=>{const D=v.current;v.current=null,f(null),s(D?[D]:[])},[]),H=b.useCallback(()=>p.current?!1:v.current?(z(),!0):i.length?(s([]),!0):!1,[z,i.length]);function I(D,N){const j=m;if(!n||!j||j.slideId!==n.id||j.elementId!==D){p.current=null,h(null);return}const L=j.initialText;p.current=null,h(null),N!==L&&l({type:"text.update",slideId:n.id,elementId:D,previousText:L,nextText:N,timestamp:Date.now()})}function Q(){var j;const D=(j=o.current)==null?void 0:j.contentDocument,N=p.current;if(N&&D){const L=et(D,N.elementId);L&&(L.textContent=N.initialText)}p.current=null,h(null)}return b.useEffect(()=>{p.current=m},[m]),b.useEffect(()=>{v.current=u},[u]),b.useEffect(()=>{!n||!m||m.slideId===n.id||h(null)},[n,m]),g.current=I,S.current=Q,b.useEffect(()=>{if(!n)return;const D=o.current;if(!D)return;const N=D.contentDocument;if(!N)return;N.open(),N.write(n.htmlSource),N.close(),MO(N),Rv(N,v.current);const j=P=>{const J=P.getAttribute(Me);J&&g.current(J,P.textContent||"")};N.onclick=P=>{const J=P.target;if(!(J instanceof Element)){if(p.current){const se=et(N,p.current.elementId);if(se){j(se);return}}s([]);return}const le=p.current;if(le){const se=et(N,le.elementId);if(se&&!se.contains(J)){j(se);return}return}const re=Nv(J,v.current);if(!re){v.current||s([]);return}const ee=re.getAttribute(Me);ee&&(P.shiftKey||P.metaKey||P.ctrlKey?T(ee):s([ee]))};const L=Array.from(N.querySelectorAll(`[data-editable][${Me}]`));for(const P of L)P.style.cursor="pointer",P.ondblclick=null,P.onblur=null,P.onkeydown=null,P.onclick=J=>{var ee;J.stopPropagation();const le=Nv(J.target,v.current);if(v.current&&!le)return;const re=(le==null?void 0:le.getAttribute(Me))??P.getAttribute(Me);((ee=p.current)==null?void 0:ee.elementId)!==re&&re&&(J.shiftKey||J.metaKey||J.ctrlKey?T(re):s([re]))},P.ondblclick=J=>{const le=P.getAttribute(Me),re=p.current;if(le&&P.getAttribute("data-group")==="true"){J.preventDefault(),J.stopPropagation(),_(le);return}if(P.getAttribute("data-editable")==="text"){if(le&&re&&re.slideId===n.id&&re.elementId===le){J.stopPropagation();return}J.preventDefault(),J.stopPropagation(),le&&A(le)}}},[n,_,A,o,T]),b.useEffect(()=>{var N;const D=(N=o.current)==null?void 0:N.contentDocument;D&&Rv(D,u)},[u,o]),b.useEffect(()=>{var Y;const D=m;if(!D||!n||D.slideId!==n.id)return;const N=o.current,j=N==null?void 0:N.contentDocument;if(!N||!j)return;const L=j.querySelector(kd(D.elementId));if(!L)return;const P=()=>{g.current(D.elementId,L.textContent||"")};let J=!1;const le=L.style.display,re=L.style.alignItems,ee=L.style.overflow,se=(Y=L.ownerDocument.defaultView)==null?void 0:Y.getComputedStyle(L),M=(se==null?void 0:se.display)??"";return L.setAttribute("contenteditable","plaintext-only"),L.setAttribute("spellcheck","false"),L.setAttribute("data-hse-editing","true"),L.style.cursor="text",L.style.overflow="visible",M==="inline-flex"?(L.style.display="inline-block",L.style.alignItems="normal"):(M==="flex"||M==="grid"||M==="inline-grid")&&(L.style.display="block",L.style.alignItems="normal"),L.focus(),RO(L),L.onkeydown=B=>{if(B.key==="Enter"&&!B.shiftKey){B.preventDefault(),P();return}B.key==="Escape"&&(B.preventDefault(),S.current())},L.onmousedown=()=>{J=!1},L.onmouseup=()=>{const B=L.ownerDocument.getSelection(),$=B==null?void 0:B.anchorNode,X=B==null?void 0:B.focusNode,R=$?L.contains($):!1,G=X?L.contains(X):!1;J=!!(B&&!B.isCollapsed&&R&&G)},L.onclick=B=>{B.stopPropagation(),J&&(B.preventDefault(),J=!1)},L.onblur=()=>{window.setTimeout(()=>{var F;if(((F=p.current)==null?void 0:F.elementId)!==D.elementId)return;const B=L.ownerDocument.getSelection(),$=B==null?void 0:B.anchorNode,X=B==null?void 0:B.focusNode,R=L.ownerDocument.activeElement,G=!!(B&&!B.isCollapsed)&&!!($&&L.contains($))&&!!(X&&L.contains(X));R===L||G||P()},0)},()=>{L.removeAttribute("contenteditable"),L.removeAttribute("spellcheck"),L.removeAttribute("data-hse-editing"),L.style.cursor="pointer",L.style.display=le,L.style.alignItems=re,L.style.overflow=ee,L.onblur=null,L.onclick=null,L.onkeydown=null,L.onmousedown=null,L.onmouseup=null}},[n,o,m]),{selectedElementId:w,selectedElementIds:i,activeGroupScopeId:u,isEditingText:!!(n&&(m==null?void 0:m.slideId)===n.id),setSelectedElementId:C,setSelectedElementIds:s,beginTextEditing:A,beginGroupEditingScope:_,exitGroupEditingScope:z,clearSelection:H}}function OO(n,o={}){var h;const{onSlidesChange:l}=o,[i,s]=b.useReducer(ms,n,Jv),[u,f]=b.useState(((h=n[0])==null?void 0:h.id)??"");b.useEffect(()=>{var p;s({type:"history.reset",slides:n}),f(((p=n[0])==null?void 0:p.id)??"")},[n]);const m=b.useMemo(()=>i.slides.find(p=>p.id===u)??i.slides[0],[u,i.slides]);return{slides:i.slides,activeSlide:m,activeSlideId:u,undoDepth:i.undoStack.length,redoDepth:i.redoStack.length,setActiveSlideId:f,commitOperation:p=>{const v=ms(i,{type:"history.commit",operation:p});s({type:"history.commit",operation:p}),l==null||l(v.slides)},runUndo:()=>{const p=ms(i,{type:"history.undo"});s({type:"history.undo"}),l==null||l(p.slides)},runRedo:()=>{const p=ms(i,{type:"history.redo"});s({type:"history.redo"}),l==null||l(p.slides)}}}const zO=["-webkit-","-moz-","-ms-"],DO=new Set(["appearance","caret-color","color-interpolation","color-rendering","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","math-depth","math-shift","print-color-adjust","ruby-align","ruby-position","speak","text-size-adjust"]);function jO(n){return zO.some(o=>n.startsWith(o))?!1:!DO.has(n)}function kO(n){const o=window.getComputedStyle(n),l=[];for(const i of Array.from(o)){if(!jO(i))continue;const s=i==="transform"&&n.style.transform?n.style.transform.trim():o.getPropertyValue(i).trim();s.length!==0&&l.push({name:i,value:s})}return l.sort((i,s)=>i.name.localeCompare(s.name))}function LO({iframeRef:n,activeSlide:o,selectedElement:l,selectedElementIds:i,scale:s,offsetX:u,offsetY:f,slideWidth:m,slideHeight:h}){const[p,v]=b.useState(null),[g,S]=b.useState(null),[w,C]=b.useState([]);return b.useEffect(()=>{const T=n.current,A=T==null?void 0:T.contentDocument;if(!T||!A||!o){v(null),S(null),C([]);return}const _=A.querySelector(o.rootSelector),z=i[0]?et(A,i[0]):_;if(!z){v(null),S(null),C([]);return}const H=kO(z);if(C(N=>HO(N,H)?N:H),!i.length||!_){v(N=>N===null?N:null),S(N=>N===null?N:null);return}const I=_.getBoundingClientRect(),Q=i.map(N=>et(A,N)).filter(N=>!!N).map(N=>Ul(N.getBoundingClientRect(),I,{scale:s,offsetX:u,offsetY:f}));if(!Q.length){v(N=>N===null?N:null),S(N=>N===null?N:null);return}const D=Q.reduce((N,j)=>{const L=Math.min(N.x,j.x),P=Math.min(N.y,j.y),J=Math.max(N.x+N.width,j.x+j.width),le=Math.max(N.y+N.height,j.y+j.height);return{x:L,y:P,width:J-L,height:le-P}});v(N=>Ov(N,D)?N:D),S(N=>Ov(N,D)?N:D)},[o,n,u,f,s,i,h,m]),{selectedStageRect:p,selectionOverlay:g,selectionLabel:(l==null?void 0:l.type)||"element",inspectedStyles:w}}function Ov(n,o){return n===o?!0:!n||!o?!1:n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function HO(n,o){return n.length!==o.length?!1:n.every((l,i)=>{const s=o[i];return(s==null?void 0:s.name)===l.name&&s.value===l.value})}function BO(n,o){if(n.match(/^[a-z]+:\/\//i))return n;if(n.match(/^\/\//))return window.location.protocol+n;if(n.match(/^[a-z]+:/i))return n;const l=document.implementation.createHTMLDocument(),i=l.createElement("base"),s=l.createElement("a");return l.head.appendChild(i),l.body.appendChild(s),o&&(i.href=o),s.href=n,s.href}const UO=(()=>{let n=0;const o=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(n+=1,`u${o()}${n}`)})();function no(n){const o=[];for(let l=0,i=n.length;l<i;l++)o.push(n[l]);return o}let Nr=null;function t1(n={}){return Nr||(n.includeStyleProperties?(Nr=n.includeStyleProperties,Nr):(Nr=no(window.getComputedStyle(document.documentElement)),Nr))}function Fs(n,o){const i=(n.ownerDocument.defaultView||window).getComputedStyle(n).getPropertyValue(o);return i?parseFloat(i.replace("px","")):0}function GO(n){const o=Fs(n,"border-left-width"),l=Fs(n,"border-right-width");return n.clientWidth+o+l}function YO(n){const o=Fs(n,"border-top-width"),l=Fs(n,"border-bottom-width");return n.clientHeight+o+l}function n1(n,o={}){const l=o.width||GO(n),i=o.height||YO(n);return{width:l,height:i}}function IO(){let n,o;try{o=process}catch{}const l=o&&o.env?o.env.devicePixelRatio:null;return l&&(n=parseInt(l,10),Number.isNaN(n)&&(n=1)),n||window.devicePixelRatio||1}const gn=16384;function VO(n){(n.width>gn||n.height>gn)&&(n.width>gn&&n.height>gn?n.width>n.height?(n.height*=gn/n.width,n.width=gn):(n.width*=gn/n.height,n.height=gn):n.width>gn?(n.height*=gn/n.width,n.width=gn):(n.width*=gn/n.height,n.height=gn))}function Zs(n){return new Promise((o,l)=>{const i=new Image;i.onload=()=>{i.decode().then(()=>{requestAnimationFrame(()=>o(i))})},i.onerror=l,i.crossOrigin="anonymous",i.decoding="async",i.src=n})}async function qO(n){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(n)).then(encodeURIComponent).then(o=>`data:image/svg+xml;charset=utf-8,${o}`)}async function XO(n,o,l){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),u=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${o}`),s.setAttribute("height",`${l}`),s.setAttribute("viewBox",`0 0 ${o} ${l}`),u.setAttribute("width","100%"),u.setAttribute("height","100%"),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("externalResourcesRequired","true"),s.appendChild(u),u.appendChild(n),qO(s)}const rn=(n,o)=>{if(n instanceof o)return!0;const l=Object.getPrototypeOf(n);return l===null?!1:l.constructor.name===o.name||rn(l,o)};function PO(n){const o=n.getPropertyValue("content");return`${n.cssText} content: '${o.replace(/'|"/g,"")}';`}function $O(n,o){return t1(o).map(l=>{const i=n.getPropertyValue(l),s=n.getPropertyPriority(l);return`${l}: ${i}${s?" !important":""};`}).join(" ")}function KO(n,o,l,i){const s=`.${n}:${o}`,u=l.cssText?PO(l):$O(l,i);return document.createTextNode(`${s}{${u}}`)}function zv(n,o,l,i){const s=window.getComputedStyle(n,l),u=s.getPropertyValue("content");if(u===""||u==="none")return;const f=UO();try{o.className=`${o.className} ${f}`}catch{return}const m=document.createElement("style");m.appendChild(KO(f,l,s,i)),o.appendChild(m)}function QO(n,o,l){zv(n,o,":before",l),zv(n,o,":after",l)}const Dv="application/font-woff",jv="image/jpeg",FO={woff:Dv,woff2:Dv,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:jv,jpeg:jv,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function ZO(n){const o=/\.([^./]*?)$/g.exec(n);return o?o[1]:""}function vm(n){const o=ZO(n).toLowerCase();return FO[o]||""}function JO(n){return n.split(/,/)[1]}function zd(n){return n.search(/^(data:)/)!==-1}function WO(n,o){return`data:${o};base64,${n}`}async function a1(n,o,l){const i=await fetch(n,o);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((u,f)=>{const m=new FileReader;m.onerror=f,m.onloadend=()=>{try{u(l({res:i,result:m.result}))}catch(h){f(h)}},m.readAsDataURL(s)})}const ed={};function e5(n,o,l){let i=n.replace(/\?.*/,"");return l&&(i=n),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),o?`[${o}]${i}`:i}async function bm(n,o,l){const i=e5(n,o,l.includeQueryParams);if(ed[i]!=null)return ed[i];l.cacheBust&&(n+=(/\?/.test(n)?"&":"?")+new Date().getTime());let s;try{const u=await a1(n,l.fetchRequestInit,({res:f,result:m})=>(o||(o=f.headers.get("Content-Type")||""),JO(m)));s=WO(u,o)}catch(u){s=l.imagePlaceholder||"";let f=`Failed to fetch resource: ${n}`;u&&(f=typeof u=="string"?u:u.message),f&&console.warn(f)}return ed[i]=s,s}async function t5(n){const o=n.toDataURL();return o==="data:,"?n.cloneNode(!1):Zs(o)}async function n5(n,o){if(n.currentSrc){const u=document.createElement("canvas"),f=u.getContext("2d");u.width=n.clientWidth,u.height=n.clientHeight,f==null||f.drawImage(n,0,0,u.width,u.height);const m=u.toDataURL();return Zs(m)}const l=n.poster,i=vm(l),s=await bm(l,i,o);return Zs(s)}async function a5(n,o){var l;try{if(!((l=n==null?void 0:n.contentDocument)===null||l===void 0)&&l.body)return await mc(n.contentDocument.body,o,!0)}catch{}return n.cloneNode(!1)}async function o5(n,o){return rn(n,HTMLCanvasElement)?t5(n):rn(n,HTMLVideoElement)?n5(n,o):rn(n,HTMLIFrameElement)?a5(n,o):n.cloneNode(o1(n))}const r5=n=>n.tagName!=null&&n.tagName.toUpperCase()==="SLOT",o1=n=>n.tagName!=null&&n.tagName.toUpperCase()==="SVG";async function l5(n,o,l){var i,s;if(o1(o))return o;let u=[];return r5(n)&&n.assignedNodes?u=no(n.assignedNodes()):rn(n,HTMLIFrameElement)&&(!((i=n.contentDocument)===null||i===void 0)&&i.body)?u=no(n.contentDocument.body.childNodes):u=no(((s=n.shadowRoot)!==null&&s!==void 0?s:n).childNodes),u.length===0||rn(n,HTMLVideoElement)||await u.reduce((f,m)=>f.then(()=>mc(m,l)).then(h=>{h&&o.appendChild(h)}),Promise.resolve()),o}function i5(n,o,l){const i=o.style;if(!i)return;const s=window.getComputedStyle(n);s.cssText?(i.cssText=s.cssText,i.transformOrigin=s.transformOrigin):t1(l).forEach(u=>{let f=s.getPropertyValue(u);u==="font-size"&&f.endsWith("px")&&(f=`${Math.floor(parseFloat(f.substring(0,f.length-2)))-.1}px`),rn(n,HTMLIFrameElement)&&u==="display"&&f==="inline"&&(f="block"),u==="d"&&o.getAttribute("d")&&(f=`path(${o.getAttribute("d")})`),i.setProperty(u,f,s.getPropertyPriority(u))})}function s5(n,o){rn(n,HTMLTextAreaElement)&&(o.innerHTML=n.value),rn(n,HTMLInputElement)&&o.setAttribute("value",n.value)}function c5(n,o){if(rn(n,HTMLSelectElement)){const i=Array.from(o.children).find(s=>n.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function u5(n,o,l){return rn(o,Element)&&(i5(n,o,l),QO(n,o,l),s5(n,o),c5(n,o)),o}async function f5(n,o){const l=n.querySelectorAll?n.querySelectorAll("use"):[];if(l.length===0)return n;const i={};for(let u=0;u<l.length;u++){const m=l[u].getAttribute("xlink:href");if(m){const h=n.querySelector(m),p=document.querySelector(m);!h&&p&&!i[m]&&(i[m]=await mc(p,o,!0))}}const s=Object.values(i);if(s.length){const u="http://www.w3.org/1999/xhtml",f=document.createElementNS(u,"svg");f.setAttribute("xmlns",u),f.style.position="absolute",f.style.width="0",f.style.height="0",f.style.overflow="hidden",f.style.display="none";const m=document.createElementNS(u,"defs");f.appendChild(m);for(let h=0;h<s.length;h++)m.appendChild(s[h]);n.appendChild(f)}return n}async function mc(n,o,l){return!l&&o.filter&&!o.filter(n)?null:Promise.resolve(n).then(i=>o5(i,o)).then(i=>l5(n,i,o)).then(i=>u5(n,i,o)).then(i=>f5(i,o))}const r1=/url\((['"]?)([^'"]+?)\1\)/g,d5=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,m5=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function h5(n){const o=n.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${o})(['"]?\\))`,"g")}function p5(n){const o=[];return n.replace(r1,(l,i,s)=>(o.push(s),l)),o.filter(l=>!zd(l))}async function g5(n,o,l,i,s){try{const u=l?BO(o,l):o,f=vm(o);let m;return s||(m=await bm(u,f,i)),n.replace(h5(o),`$1${m}$3`)}catch{}return n}function y5(n,{preferredFontFormat:o}){return o?n.replace(m5,l=>{for(;;){const[i,,s]=d5.exec(l)||[];if(!s)return"";if(s===o)return`src: ${i};`}}):n}function l1(n){return n.search(r1)!==-1}async function i1(n,o,l){if(!l1(n))return n;const i=y5(n,l);return p5(i).reduce((u,f)=>u.then(m=>g5(m,f,o,l)),Promise.resolve(i))}async function Or(n,o,l){var i;const s=(i=o.style)===null||i===void 0?void 0:i.getPropertyValue(n);if(s){const u=await i1(s,null,l);return o.style.setProperty(n,u,o.style.getPropertyPriority(n)),!0}return!1}async function v5(n,o){await Or("background",n,o)||await Or("background-image",n,o),await Or("mask",n,o)||await Or("-webkit-mask",n,o)||await Or("mask-image",n,o)||await Or("-webkit-mask-image",n,o)}async function b5(n,o){const l=rn(n,HTMLImageElement);if(!(l&&!zd(n.src))&&!(rn(n,SVGImageElement)&&!zd(n.href.baseVal)))return;const i=l?n.src:n.href.baseVal,s=await bm(i,vm(i),o);await new Promise((u,f)=>{n.onload=u,n.onerror=o.onImageErrorHandler?(...h)=>{try{u(o.onImageErrorHandler(...h))}catch(p){f(p)}}:f;const m=n;m.decode&&(m.decode=u),m.loading==="lazy"&&(m.loading="eager"),l?(n.srcset="",n.src=s):n.href.baseVal=s})}async function x5(n,o){const i=no(n.childNodes).map(s=>s1(s,o));await Promise.all(i).then(()=>n)}async function s1(n,o){rn(n,Element)&&(await v5(n,o),await b5(n,o),await x5(n,o))}function S5(n,o){const{style:l}=n;o.backgroundColor&&(l.backgroundColor=o.backgroundColor),o.width&&(l.width=`${o.width}px`),o.height&&(l.height=`${o.height}px`);const i=o.style;return i!=null&&Object.keys(i).forEach(s=>{l[s]=i[s]}),n}const kv={};async function Lv(n){let o=kv[n];if(o!=null)return o;const i=await(await fetch(n)).text();return o={url:n,cssText:i},kv[n]=o,o}async function Hv(n,o){let l=n.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,u=(l.match(/url\([^)]+\)/g)||[]).map(async f=>{let m=f.replace(i,"$1");return m.startsWith("https://")||(m=new URL(m,n.url).href),a1(m,o.fetchRequestInit,({result:h})=>(l=l.replace(f,`url(${h})`),[f,h]))});return Promise.all(u).then(()=>l)}function Bv(n){if(n==null)return[];const o=[],l=/(\/\*[\s\S]*?\*\/)/gi;let i=n.replace(l,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const h=s.exec(i);if(h===null)break;o.push(h[0])}i=i.replace(s,"");const u=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,f="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",m=new RegExp(f,"gi");for(;;){let h=u.exec(i);if(h===null){if(h=m.exec(i),h===null)break;u.lastIndex=m.lastIndex}else m.lastIndex=u.lastIndex;o.push(h[0])}return o}async function w5(n,o){const l=[],i=[];return n.forEach(s=>{if("cssRules"in s)try{no(s.cssRules||[]).forEach((u,f)=>{if(u.type===CSSRule.IMPORT_RULE){let m=f+1;const h=u.href,p=Lv(h).then(v=>Hv(v,o)).then(v=>Bv(v).forEach(g=>{try{s.insertRule(g,g.startsWith("@import")?m+=1:s.cssRules.length)}catch(S){console.error("Error inserting rule from remote css",{rule:g,error:S})}})).catch(v=>{console.error("Error loading remote css",v.toString())});i.push(p)}})}catch(u){const f=n.find(m=>m.href==null)||document.styleSheets[0];s.href!=null&&i.push(Lv(s.href).then(m=>Hv(m,o)).then(m=>Bv(m).forEach(h=>{f.insertRule(h,f.cssRules.length)})).catch(m=>{console.error("Error loading remote stylesheet",m)})),console.error("Error inlining remote css file",u)}}),Promise.all(i).then(()=>(n.forEach(s=>{if("cssRules"in s)try{no(s.cssRules||[]).forEach(u=>{l.push(u)})}catch(u){console.error(`Error while reading CSS rules from ${s.href}`,u)}}),l))}function E5(n){return n.filter(o=>o.type===CSSRule.FONT_FACE_RULE).filter(o=>l1(o.style.getPropertyValue("src")))}async function T5(n,o){if(n.ownerDocument==null)throw new Error("Provided element is not within a Document");const l=no(n.ownerDocument.styleSheets),i=await w5(l,o);return E5(i)}function c1(n){return n.trim().replace(/["']/g,"")}function C5(n){const o=new Set;function l(i){(i.style.fontFamily||getComputedStyle(i).fontFamily).split(",").forEach(u=>{o.add(c1(u))}),Array.from(i.children).forEach(u=>{u instanceof HTMLElement&&l(u)})}return l(n),o}async function A5(n,o){const l=await T5(n,o),i=C5(n);return(await Promise.all(l.filter(u=>i.has(c1(u.style.fontFamily))).map(u=>{const f=u.parentStyleSheet?u.parentStyleSheet.href:null;return i1(u.cssText,f,o)}))).join(`
|
|
353
|
+
`)}async function _5(n,o){const l=o.fontEmbedCSS!=null?o.fontEmbedCSS:o.skipFonts?null:await A5(n,o);if(l){const i=document.createElement("style"),s=document.createTextNode(l);i.appendChild(s),n.firstChild?n.insertBefore(i,n.firstChild):n.appendChild(i)}}async function M5(n,o={}){const{width:l,height:i}=n1(n,o),s=await mc(n,o,!0);return await _5(s,o),await s1(s,o),S5(s,o),await XO(s,l,i)}async function R5(n,o={}){const{width:l,height:i}=n1(n,o),s=await M5(n,o),u=await Zs(s),f=document.createElement("canvas"),m=f.getContext("2d"),h=o.pixelRatio||IO(),p=o.canvasWidth||l,v=o.canvasHeight||i;return f.width=p*h,f.height=v*h,o.skipAutoScale||VO(f),f.style.width=`${p}`,f.style.height=`${v}`,o.backgroundColor&&(m.fillStyle=o.backgroundColor,m.fillRect(0,0,f.width,f.height)),m.drawImage(u,0,0,f.width,f.height),f}async function N5(n,o={}){return(await R5(n,o)).toDataURL()}const Uv=224,O5=2;function z5(n){return new Promise(o=>{window.setTimeout(o,n)})}async function D5(n){var o;if((o=n.fonts)!=null&&o.ready)try{await n.fonts.ready}catch{}}async function j5(n){const o=document.createElement("iframe");o.setAttribute("aria-hidden","true"),o.tabIndex=-1,o.style.position="fixed",o.style.left="-10000px",o.style.top="0",o.style.width=`${n.width}px`,o.style.height=`${n.height}px`,o.style.opacity="0",o.style.pointerEvents="none",o.style.border="0",document.body.appendChild(o);try{const l=o.contentDocument;if(!l)throw new Error("Unable to access thumbnail iframe document.");l.open(),l.write(n.htmlSource),l.close(),await D5(l),await z5(50);const i=l.querySelector(n.rootSelector);if(!i)throw new Error("Slide root not found while rendering thumbnail.");const s=l.body??i;return await N5(s,{cacheBust:!0,pixelRatio:O5,canvasWidth:Uv,canvasHeight:Math.round(n.height/n.width*Uv),backgroundColor:"white",skipFonts:!1})}finally{o.remove()}}const k5=300;function L5(n){const[o,l]=b.useState({}),i=b.useRef(new Map),s=b.useMemo(()=>n.map(u=>({id:u.id,key:`${u.id}:${u.htmlSource}`})),[n]);return b.useEffect(()=>{let u=!1;const f=window.setTimeout(async()=>{const m={};for(const h of n){const p=`${h.id}:${h.htmlSource}`,v=i.current.get(p);if(v){m[h.id]=v;continue}try{const g=await j5(h);i.current.set(p,g),m[h.id]=g}catch{}if(u)return}u||l(h=>({...h,...m}))},k5);return()=>{u=!0,window.clearTimeout(f)}},[n]),b.useEffect(()=>{const u=new Set(s.map(f=>f.key));for(const f of i.current.keys())u.has(f)||i.current.delete(f)},[s]),o}function H5({stageViewportRef:n,slideWidth:o,slideHeight:l}){const[i,s]=b.useState({width:0,height:0});b.useEffect(()=>{const p=n.current;if(!p)return;const v=()=>{const S=p.getBoundingClientRect();s(w=>w.width===S.width&&w.height===S.height?w:{width:S.width,height:S.height})};v();const g=new ResizeObserver(()=>{v()});return g.observe(p),()=>{g.disconnect()}},[n]);const u=Math.min(i.width>0?i.width/o:1,i.height>0?i.height/l:1),f=Number.isFinite(u)&&u>0?u:1,m=o*f,h=l*f;return{scale:f,offsetX:Math.max((i.width-m)/2,0),offsetY:Math.max((i.height-h)/2,0)}}function B5({slides:n,deckTitle:o,isSaving:l=!1,onSlidesChange:i,onExportPdf:s}){const{slides:u,activeSlide:f,undoDepth:m,redoDepth:h,setActiveSlideId:p,commitOperation:v,runUndo:g,runRedo:S}=OO(n,{onSlidesChange:i}),w=b.useRef(null),C=b.useRef(null),T=b.useRef(null),A=L5(u),{selectedElementId:_,selectedElementIds:z,isEditingText:H,activeGroupScopeId:I,setSelectedElementId:Q,setSelectedElementIds:D,beginTextEditing:N,beginGroupEditingScope:j,clearSelection:L}=NO({activeSlide:f,iframeRef:w,onCommitOperation:v}),P=f==null?void 0:f.elements.find(ue=>ue.id===_),J=f==null?void 0:f.elements.find(ue=>ue.id===I),le=z.length>1?"multi":(P==null?void 0:P.type)??(J==null?void 0:J.type)??"block",re=f?z.map(ue=>f.elements.find(Te=>Te.id===ue)).filter(ue=>!!ue):[],ee={group:z.length>=2&&re.length===z.length,ungroup:z.length===1&&(P==null?void 0:P.type)==="group"},se=!!I&&z.length===1&&_===I,M=(o==null?void 0:o.trim())||"Untitled deck",Y=(f==null?void 0:f.width)||ko,B=(f==null?void 0:f.height)||Lo,{scale:$,offsetX:X,offsetY:R}=H5({stageViewportRef:C,slideWidth:Y,slideHeight:B}),{selectedStageRect:G,selectionOverlay:F,inspectedStyles:ne}=LO({iframeRef:w,activeSlide:f,selectedElement:P,selectedElementIds:z,scale:$,offsetX:X,offsetY:R,slideWidth:Y,slideHeight:B}),{manipulationOverlay:oe,isManipulating:ce,suppressBackgroundClear:ie,beginMove:me,beginResize:de,beginRotate:_e}=yO({activeSlide:f,selectedElement:P,selectedElementId:_,selectedElementIds:z,selectedStageRect:G,iframeRef:w,stageGeometry:{scale:$,offsetX:X,offsetY:R,slideWidth:Y,slideHeight:B},isEditingText:H,onCommitOperation:v}),Ee=(oe==null?void 0:oe.selectionBounds)??F,we=_??"slide-root",lt={locked:f?Bl(f,we,"data-editor-locked"):"",altText:f?Bl(f,we,"alt"):"",ariaLabel:f?Bl(f,we,"aria-label"):"",linkUrl:f?Bl(f,we,"data-link-url"):""};function qe(ue,Te){if(!f)return;const ye=QN({elementId:we,nextValue:Te,propertyName:ue,slide:f});ye&&v(ye)}function Yt(ue,Te){if(!f)return;const ye=FN({attributeName:ue,elementId:we,nextValue:Te,slide:f});ye&&v(ye)}function Dt(ue){if(!f||z.length===0)return;const Te=z.map(ye=>{const Oe=Rd(f,ye,"z-index"),Ue=Number.parseInt(Oe,10),Le=Number.isFinite(Ue)?Ue:0,Qe=ue==="front"?"999":ue==="back"?"0":String(Math.max(0,Le+(ue==="forward"?1:-1)));return Oe===Qe?null:{type:"style.update",slideId:f.id,elementId:ye,propertyName:"z-index",previousValue:Oe,nextValue:Qe,timestamp:Date.now()}}).filter(ye=>!!ye);vt(Te)}function vt(ue){!f||ue.length===0||v(ue.length===1?ue[0]:{type:"operation.batch",slideId:f.id,operations:ue,timestamp:Date.now()})}function Ne(ue,Te,ye){var Qe;const Oe={[Te]:ye},Le=(Qe=new DOMParser().parseFromString(`<template>${ue}</template>`,"text/html").querySelector("template"))==null?void 0:Qe.content.firstElementChild;if(!(Le instanceof HTMLElement))return Oe;for(const it of Le.querySelectorAll(`[${Me}]`)){const Ze=it.getAttribute(Me);Ze&&(Oe[Ze]=`${ye}-${Ze}`)}return Oe}function ge(){var Qe;if(!f||z.length===0)return;const ue=(Qe=w.current)==null?void 0:Qe.contentDocument,Te=ue==null?void 0:ue.querySelector(f.rootSelector),ye=Te==null?void 0:Te.getBoundingClientRect();let Oe=f.htmlSource;const Ue=[],Le=z.map(it=>{const Ze=Ls(f.htmlSource,it),mt=ks(f.htmlSource,it),tt=ue?et(ue,it):null;if(!Ze||!mt||!tt||!ye)return null;const xn=rd(Oe,`${it}-copy`),Sn=Zv(Ze,Ne(Ze,it,xn)),$t=Nd(Fx(tt.getBoundingClientRect(),ye),24,24),kn=Qx(Sn,$t);return Oe=`${Oe}
|
|
354
|
+
<!-- ${xn} reserved -->`,Ue.push(xn),{type:"element.insert",slideId:f.id,elementId:xn,...mt,html:kn,timestamp:Date.now()}}).filter(it=>!!it);vt(Le),Ue.length&&D(Ue)}function ln(){if(!f||z.length===0)return;const ue=z.map(Te=>{const ye=Ls(f.htmlSource,Te),Oe=ks(f.htmlSource,Te);return!ye||!Oe?null:{type:"element.remove",slideId:f.id,elementId:Te,...Oe,html:ye,timestamp:Date.now()}}).filter(Te=>!!Te);vt(ue),ue.length&&D([])}function sn(){if(!f||z.length<2)return;const ue=ct(),Te=rd(f.htmlSource,"group-1"),ye=v2({html:f.htmlSource,slideId:f.id,groupElementId:Te,elementRects:ue,elementIds:z});ye&&(v(ye),D([Te]))}function ct(){var Qe;const ue=(Qe=w.current)==null?void 0:Qe.contentDocument,Te=ue==null?void 0:ue.querySelector((f==null?void 0:f.rootSelector)??"");if(!ue||!Te)return{};const ye=Te.getBoundingClientRect(),Oe=f?f.width/ye.width:1,Ue=f?f.height/ye.height:1,Le={};for(const it of ue.querySelectorAll(`[data-editable][${Me}]`)){const Ze=it.getAttribute(Me);if(!Ze)continue;const mt=it.getBoundingClientRect(),tt=it.parentElement,xn=tt!=null&&tt.hasAttribute("data-editable")&&tt.getAttribute(Me)?tt.getAttribute(Me):null,Sn=xn?Le[xn]??{x:0,y:0,width:ye.width,height:ye.height}:{x:0,y:0,width:ye.width,height:ye.height};Le[Ze]={x:(mt.left-ye.left)*Oe-Sn.x,y:(mt.top-ye.top)*Ue-Sn.y,width:mt.width*Oe,height:mt.height*Ue}}return Le}function bn(){if(!f||z.length!==1||!_)return;const ue=b2({html:f.htmlSource,slideId:f.id,groupElementId:_,elementRects:ct()});ue&&(v(ue),D(ue.childElementIds))}function _t(ue){if(!f||!_||!Ee)return;const Te=Rd(f,_,"transform"),ye={x:(Ee.x-X)/$,y:(Ee.y-R)/$,width:Ee.width/$,height:Ee.height/$};let Oe=0,Ue=0;if(ue==="left"?Oe=-ye.x:ue==="hcenter"?Oe=Y/2-(ye.x+ye.width/2):ue==="right"?Oe=Y-(ye.x+ye.width):ue==="top"?Ue=-ye.y:ue==="vcenter"?Ue=B/2-(ye.y+ye.height/2):ue==="bottom"&&(Ue=B-(ye.y+ye.height)),Math.abs(Oe)<.01&&Math.abs(Ue)<.01)return;const Le=Yn(Te);qe("transform",Sa(Le.translateX+Oe,Le.translateY+Ue,Le.rotate)??"")}function jn(ue){var kn;if(!f||z.length<3)return;const Te=(kn=w.current)==null?void 0:kn.contentDocument,ye=Te==null?void 0:Te.querySelector(f.rootSelector),Oe=ye==null?void 0:ye.getBoundingClientRect();if(!Te||!Oe)return;const Ue=z.map(St=>{const Xt=et(Te,St);if(!Xt)return null;const jt=Xt.getBoundingClientRect();return{elementId:St,node:Xt,rect:{x:jt.left-Oe.left,y:jt.top-Oe.top,width:jt.width,height:jt.height}}}).filter(St=>!!St);if(Ue.length<3)return;const Le=ue==="vertical"?"y":"x",Qe=ue==="vertical"?"height":"width",it=[...Ue].sort((St,Xt)=>St.rect[Le]-Xt.rect[Le]),Ze=it[0],mt=it[it.length-1];if(!Ze||!mt)return;const tt=Ze.rect[Le]+Ze.rect[Qe]/2,Sn=(mt.rect[Le]+mt.rect[Qe]/2-tt)/(it.length-1),$t=it.map((St,Xt)=>{const jt=tt+Sn*Xt,Ae=St.rect[Le]+St.rect[Qe]/2,nt=jt-Ae;if(Math.abs(nt)<.01)return null;const ht=Gl(St.node),wt=Yn(ht.transform),qn=nd({...ht,transform:Sa(wt.translateX+(Le==="x"?nt:0),wt.translateY+(Le==="y"?nt:0),wt.rotate),transformOrigin:ht.transformOrigin||"center center"});return{type:"element.layout.update",slideId:f.id,elementId:St.elementId,previousStyle:ht,nextStyle:qn,timestamp:Date.now()}}).filter(St=>!!St);vt($t)}return CO({activeSlide:f,selectedElementIds:z,iframeRef:w,slideWidth:Y,slideHeight:B,isEditingText:H,canUndo:m>0,canRedo:h>0,onCommitOperation:v,onSelectElementIds:D,onEscapeSelection:L,onUndo:g,onRedo:S}),f?x.jsx(KN,{children:x.jsxs("div",{className:"flex h-screen flex-col overflow-hidden bg-background text-foreground",children:[x.jsx(ST,{title:M,isSaving:l,onExportPdf:ue=>{if(ue==="all"){s==null||s({mode:"all"});return}if(ue==="current"){const Oe=f.sourceFile;Oe&&(s==null||s({mode:"slide",slideFile:Oe}));return}const Te=window.prompt("Manifest slide files to export, separated by commas",f.sourceFile??""),ye=Te==null?void 0:Te.split(",").map(Oe=>Oe.trim()).filter(Boolean);ye!=null&&ye.length&&(s==null||s({mode:"slides",slideFiles:ye}))}}),x.jsxs("div",{className:"flex min-h-0 flex-auto gap-3 overflow-hidden max-[1200px]:block",children:[x.jsx(JR,{slides:u,activeSlideId:f.id,slideCount:u.length,thumbnails:A,onSelectSlide:ue=>{p(ue),Q(null)}}),x.jsx("main",{className:"flex min-h-0 min-w-0 flex-auto overflow-visible max-[1200px]:block",children:x.jsx(PN,{slideWidth:Y,slideHeight:B,offsetX:X,offsetY:R,scale:$,selectionOverlay:Ee,toolbarKey:z.length?`${f.id}:${z.join(",")}`:null,inspectedStyles:ne,selectedElementType:le,selectionCommandAvailability:ee,groupScopeOverlayPassive:se,isEditingText:H,manipulationOverlay:oe,iframeRef:w,stageViewportRef:C,selectionOverlayRef:T,isManipulating:ce,onSelectionOverlayMouseDown:ue=>{z.length&&me({clientX:ue.clientX,clientY:ue.clientY,preventDefault:()=>ue.preventDefault(),stopPropagation:()=>ue.stopPropagation()})},onResizeHandleMouseDown:(ue,Te)=>{z.length&&de(ue,{clientX:Te.clientX,clientY:Te.clientY,preventDefault:()=>Te.preventDefault(),stopPropagation:()=>Te.stopPropagation()})},onRotateHandleMouseDown:ue=>{z.length===1&&_e({clientX:ue.clientX,clientY:ue.clientY,preventDefault:()=>ue.preventDefault(),stopPropagation:()=>ue.stopPropagation()})},onSelectionOverlayDoubleClick:ue=>{var Te;if(I&&((Te=w.current)!=null&&Te.contentDocument)){const ye=w.current.getBoundingClientRect(),Ue=w.current.contentDocument.elementFromPoint(ue.clientX-ye.left,ue.clientY-ye.top),Le=Ue==null?void 0:Ue.closest(`[data-editable][${Me}]`);if((Le==null?void 0:Le.getAttribute("data-editable"))==="text"){const Qe=Le.getAttribute(Me);if(Qe){N(Qe);return}}}if(z.length===1&&(P==null?void 0:P.type)==="text"&&_){N(_);return}z.length===1&&(P==null?void 0:P.type)==="group"&&_&&j(_)},onBackgroundClick:()=>{ie||L()},onStyleChange:qe,onAttributeChange:Yt,onAlignToSlide:_t,onDistribute:jn,onGroup:sn,onLayerOrder:Dt,onUngroup:bn,onDuplicate:ge,onDelete:ln,attributeValues:lt})})]})]})}):x.jsx("div",{className:"grid min-h-screen place-items-center",children:"No slides loaded."})}const U5="/deck/manifest.json",G5="/__editor/save-generated-deck",Y5="/__editor/export-pdf",Gv=800;function I5(){const[n,o]=b.useState("Generated deck"),[l,i]=b.useState([]),[s,u]=b.useState(null),[f,m]=b.useState(!0),[h,p]=b.useState(!1),v=b.useRef(null),g=b.useRef([]),S=b.useRef(null),w=b.useRef(null),C=b.useRef(0),T=b.useRef(!1),A=b.useRef(null),_=b.useRef(Date.now());b.useEffect(()=>{let Q=!1;return x2({manifestUrl:`${U5}?v=${Date.now()}`}).then(D=>{if(!Q){if(!D){o("Generated deck"),i([]),u("No slides were found at /deck/manifest.json."),m(!1);return}v.current=D.manifest,o(D.manifest.topic||"Generated deck"),i(D.slides),g.current=D.slides,u(null),m(!1)}}).catch(()=>{Q||(o("Generated deck"),i([]),u("The app could not load the generated deck."),m(!1))}),()=>{Q=!0,w.current&&window.clearTimeout(w.current)}},[]);const z=async()=>{var P;const Q=v.current,D=S.current,N=C.current;if(!((P=Q==null?void 0:Q.slides)!=null&&P.length)||!(D!=null&&D.length))return;if(T.current){await A.current,C.current!==N&&await z();return}T.current=!0;const j=new Map(g.current.map((J,le)=>{var re,ee;return[J.id,J.sourceFile??((ee=(re=Q.slides)==null?void 0:re[le])==null?void 0:ee.file)]})),L=fetch(G5,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({clientLoadedAt:_.current,slides:D.map(J=>({file:J.sourceFile??j.get(J.id),htmlSource:J.htmlSource}))})}).then(J=>{if(!J.ok)throw new Error("The app could not write generated slides back to disk.")}).catch(J=>{throw u("The app could not write generated slides back to disk."),J}).finally(()=>{if(T.current=!1,A.current=null,C.current!==N){w.current||(w.current=window.setTimeout(()=>{w.current=null,z()},Gv));return}p(!1)});A.current=L,await L};return{deckTitle:n,slides:l,errorMessage:s,isLoading:f,isSaving:h,saveSlides:Q=>{var N;if(g.current===Q)return;const D=v.current;(N=D==null?void 0:D.slides)!=null&&N.length&&(g.current=Q,S.current=Q,C.current+=1,p(!0),w.current&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{w.current=null,z()},Gv))},exportPdf:async Q=>{w.current&&(window.clearTimeout(w.current),w.current=null),await z();const D=await fetch(Y5,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({selection:Q})});if(!D.ok)throw new Error(await D.text());const N=await D.blob(),j=URL.createObjectURL(N),L=document.createElement("a"),P=n.trim().replace(/[^a-zA-Z0-9._-]+/g,"-")||"starry-slides";L.href=j,L.download=`${P}.pdf`,document.body.appendChild(L),L.click(),L.remove(),URL.revokeObjectURL(j)}}}function Yv({title:n,body:o}){return x.jsx("main",{style:{minHeight:"100vh",display:"grid",placeItems:"center",padding:"32px",background:"#f4efe8",color:"#241d16",fontFamily:'"Avenir Next", "Segoe UI", sans-serif'},children:x.jsxs("section",{style:{maxWidth:"720px",padding:"32px",borderRadius:"24px",background:"rgba(255, 255, 255, 0.82)",boxShadow:"0 24px 80px rgba(74, 53, 31, 0.12)"},children:[x.jsx("h1",{style:{margin:"0 0 12px",fontSize:"40px",lineHeight:1.05},children:n}),x.jsx("p",{style:{margin:0,fontSize:"20px",lineHeight:1.5},children:o})]})})}function V5(){const{deckTitle:n,slides:o,errorMessage:l,isLoading:i,isSaving:s,saveSlides:u,exportPdf:f}=I5();return i?x.jsx(Yv,{title:"Loading generated deck",body:"The app is importing the latest generated slides."}):l?x.jsx(Yv,{title:"Generated deck required",body:l}):x.jsxs(x.Fragment,{children:[x.jsx(r2,{position:"top-center",richColors:!0,closeButton:!0}),x.jsx(B5,{slides:o,deckTitle:n,isSaving:s,onSlidesChange:u,onExportPdf:m=>{f(m)}})]})}const u1=document.getElementById("root");if(!u1)throw new Error("Root element #root was not found.");zw.createRoot(u1).render(x.jsx(fe.StrictMode,{children:x.jsx(V5,{})}));
|