Presupuestador_web/dist/client/assets/index-B09LVASt.js

324 lines
1.7 MiB
JavaScript
Raw Normal View History

2026-09-25 11:19:08 +00:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DoA1j409.js","assets/index-DtTssDoC.css"])))=>i.map(i=>d[i]);
var vle=Object.defineProperty;var Sj=t=>{throw TypeError(t)};var yle=(t,e,n)=>e in t?vle(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var He=(t,e,n)=>yle(t,typeof e!="symbol"?e+"":e,n),_P=(t,e,n)=>e.has(t)||Sj("Cannot "+n);var C=(t,e,n)=>(_P(t,e,"read from private field"),n?n.call(t):e.get(t)),z=(t,e,n)=>e.has(t)?Sj("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),$=(t,e,n,r)=>(_P(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),B=(t,e,n)=>(_P(t,e,"access private method"),n);var vs=(t,e,n,r)=>({set _(s){$(t,e,s,n)},get _(){return C(t,e,r)}});function l5(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ble(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var c5={exports:{}},g1={},u5={exports:{}},Mt={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var qw=Symbol.for("react.element"),wle=Symbol.for("react.portal"),_le=Symbol.for("react.fragment"),xle=Symbol.for("react.strict_mode"),Sle=Symbol.for("react.profiler"),Ele=Symbol.for("react.provider"),Cle=Symbol.for("react.context"),Ale=Symbol.for("react.forward_ref"),Rle=Symbol.for("react.suspense"),Ple=Symbol.for("react.memo"),Tle=Symbol.for("react.lazy"),Ej=Symbol.iterator;function kle(t){return t===null||typeof t!="object"?null:(t=Ej&&t[Ej]||t["@@iterator"],typeof t=="function"?t:null)}var d5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f5=Object.assign,h5={};function mv(t,e,n){this.props=t,this.context=e,this.refs=h5,this.updater=n||d5}mv.prototype.isReactComponent={};mv.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};mv.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function p5(){}p5.prototype=mv.prototype;function iM(t,e,n){this.props=t,this.context=e,this.refs=h5,this.updater=n||d5}var oM=iM.prototype=new p5;oM.constructor=iM;f5(oM,mv.prototype);oM.isPureReactComponent=!0;var Cj=Array.isArray,m5=Object.prototype.hasOwnProperty,aM={current:null},g5={key:!0,ref:!0,__self:!0,__source:!0};function v5(t,e,n){var r,s={},i=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)m5.call(e,r)&&!g5.hasOwnProperty(r)&&(s[r]=e[r]);var o=arguments.length-2;if(o===1)s.children=n;else if(1<o){for(var c=Array(o),u=0;u<o;u++)c[u]=arguments[u+2];s.children=c}if(t&&t.defaultProps)for(r in o=t.defaultProps,o)s[r]===void 0&&(s[r]=o[r]);return{$$typeof:qw,type:t,key:i,ref:a,props:s,_owner:aM.current}}function Dle(t,e){return{$$typeof:qw,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function lM(t){return typeof t=="object"&&t!==null&&t.$$typeof===qw}function Nle(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Aj=/\/+/g;function xP(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Nle(""+t.key):e.toString(36)}function RS(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case qw:case wle:a=!0}}if(a)return a=t,s=s(a),t=r===""?"."+xP(a,0):r,Cj(s)?(n="",t!=null&&(n=t.replace(Aj,"$&/")+"/"),RS(s,e,n,"",function(u){return u})):s!=null&&(lM(s)&&(s=Dle(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(Aj,"$&/")+"/")+t)),e.push(s)),1;if(a=0,r=r===""?".":r+":",Cj(t))for(var o=0;o<t.length;o++){i=t[o];var c=r+xP(i,o);a+=RS(i,e,n,c,s)}else if(c=kle(t),typeof c=="function")for(t=c.call(t),o=0;!(i=t.next()).done;)i=i.value,c=r+xP(i,o++),a+=RS(i,e,n,c,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Dx(t,e,n){if(t==null)return t;var r=[],s=0;return RS(t,r,"","",function(i){return e.call(n,i,s++)}),r}function Ole(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Qs={current:null},PS={transition:null},Mle={ReactCurrentDispatcher:Qs,ReactCurrentBatchConfig:PS,ReactCurrentOwner:aM};function y5(){throw Error("act(...) is not supported in production builds of React.")}Mt.Children={map:Dx,forEach:function(t,e,n){Dx(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Dx(t,function(){e++}),e},toArray:function(t){return Dx(t,function(e){return e})||[]},only:function(t){if(!lM(t))throw Error("React.Children.only expect
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Lle=_,Ile=Symbol.for("react.element"),$le=Symbol.for("react.fragment"),Fle=Object.prototype.hasOwnProperty,jle=Lle.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zle={key:!0,ref:!0,__self:!0,__source:!0};function b5(t,e,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)Fle.call(e,r)&&!zle.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:Ile,type:t,key:i,ref:a,props:s,_owner:jle.current}}g1.Fragment=$le;g1.jsx=b5;g1.jsxs=b5;c5.exports=g1;var P=c5.exports,xk={},w5={exports:{}},ao={},_5={exports:{}},x5={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(t){function e(H,ee){var re=H.length;H.push(ee);e:for(;0<re;){var X=re-1>>>1,q=H[X];if(0<s(q,ee))H[X]=ee,H[re]=q,re=X;else break e}}function n(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var ee=H[0],re=H.pop();if(re!==ee){H[0]=re;e:for(var X=0,q=H.length,K=q>>>1;X<K;){var Z=2*(X+1)-1,ue=H[Z],de=Z+1,ie=H[de];if(0>s(ue,re))de<q&&0>s(ie,ue)?(H[X]=ie,H[de]=re,X=de):(H[X]=ue,H[Z]=re,X=Z);else if(de<q&&0>s(ie,re))H[X]=ie,H[de]=re,X=de;else break e}}return ee}function s(H,ee){var re=H.sortIndex-ee.sortIndex;return re!==0?re:H.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,o=a.now();t.unstable_now=function(){return a.now()-o}}var c=[],u=[],f=1,l=null,d=3,m=!1,p=!1,h=!1,y=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(H){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=H)r(u),ee.sortIndex=ee.expirationTime,e(c,ee);else break;ee=n(u)}}function x(H){if(h=!1,w(H),!p)if(n(c)!==null)p=!0,Y(A);else{var ee=n(u);ee!==null&&V(x,ee.startTime-H)}}function A(H,ee){p=!1,h&&(h=!1,g(E),E=-1),m=!0;var re=d;try{for(w(ee),l=n(c);l!==null&&(!(l.expirationTime>ee)||H&&!O());){var X=l.callback;if(typeof X=="function"){l.callback=null,d=l.priorityLevel;var q=X(l.expirationTime<=ee);ee=t.unstable_now(),typeof q=="function"?l.callback=q:l===n(c)&&r(c),w(ee)}else r(c);l=n(c)}if(l!==null)var K=!0;else{var Z=n(u);Z!==null&&V(x,Z.startTime-ee),K=!1}return K}finally{l=null,d=re,m=!1}}var k=!1,R=null,E=-1,T=5,D=-1;function O(){return!(t.unstable_now()-D<T)}function L(){if(R!==null){var H=t.unstable_now();D=H;var ee=!0;try{ee=R(!0,H)}finally{ee?I():(k=!1,R=null)}}else k=!1}var I;if(typeof v=="function")I=function(){v(L)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,U=F.port2;F.port1.onmessage=L,I=function(){U.postMessage(null)}}else I=function(){y(L,0)};function Y(H){R=H,k||(k=!0,I())}function V(H,ee){E=y(function(){H(t.unstable_now())},ee)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_continueExecution=function(){p||m||(p=!0,Y(A))},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(H){switch(d){case 1:case 2:case 3:var ee=3;break;default:ee=d}var re=d;d=ee;try{return H()}finally{d=re}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(H,ee){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var re=d;d=H;try{return ee()}finally{d=re}},t.unstable_scheduleCallback=function(H,ee,re){var X=t.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?X+re:X):re=X,H){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=re+q,H={id:f++,callback:ee,priorityLevel:H,startTime:re,expirationTime:q,sortIndex:-1},re>X?(H.sortIndex=re,e(u,H),n(c)===null&&H===n(u)&&(h?(g(E),E=-1):h=!0,V(x,re-X))):(H.sortIndex=q,e(c,H),p||m||(p=!0,Y(A))),H},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(H){var ee=d;return function(){var re=d;d=ee;try{return H.apply(this,arguments)}finally{d=re}}}})(x5);_5.exports=x5;var Ble=_5.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ule=_,io=Ble;function ke(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var S5=new Set,Cb={};function ap(t,e){Zg(t,e),Zg(t+"Capture",e)}function Zg(t,e){for(Cb[t]=e,t=0;t<e.length;t++)S5.add(e[t])}var $c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sk=Object.prototype.hasOwnProperty,Hle=/^[: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]*$/,Rj={},Pj={};function Vle(t){return Sk.call(Pj,t)?!0:Sk.call(Rj,t)?!1:Hle.test(t)?Pj[t]=!0:(Rj[t]=!0,!1)}function Wle(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Gle(t,e,n,r){if(e===null||typeof e>"u"||Wle(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Zs(t,e,n,r,s,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var ds={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){ds[t]=new Zs(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];ds[e]=new Zs(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){ds[t]=new Zs(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){ds[t]=new Zs(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){ds[t]=new Zs(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){ds[t]=new Zs(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){ds[t]=new Zs(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){ds[t]=new Zs(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){ds[t]=new Zs(t,5,!1,t.toLowerCase(),null,!1,!1)});var cM=/[\-:]([a-z])/g;function uM(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y ver
`+SP+t}var EP=!1;function CP(t,e){if(!t||EP)return"";EP=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(`
`),i=r.stack.split(`
`),a=s.length-1,o=i.length-1;1<=a&&0<=o&&s[a]!==i[o];)o--;for(;1<=a&&0<=o;a--,o--)if(s[a]!==i[o]){if(a!==1||o!==1)do if(a--,o--,0>o||s[a]!==i[o]){var c=`
`+s[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=o);break}}}finally{EP=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Ny(t):""}function qle(t){switch(t.tag){case 5:return Ny(t.type);case 16:return Ny("Lazy");case 13:return Ny("Suspense");case 19:return Ny("SuspenseList");case 0:case 2:case 15:return t=CP(t.type,!1),t;case 11:return t=CP(t.type.render,!1),t;case 1:return t=CP(t.type,!0),t;default:return""}}function Rk(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case lm:return"Fragment";case am:return"Portal";case Ek:return"Profiler";case fM:return"StrictMode";case Ck:return"Suspense";case Ak:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case C5:return(t.displayName||"Context")+".Consumer";case E5:return(t._context.displayName||"Context")+".Provider";case hM:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case pM:return e=t.displayName||null,e!==null?e:Rk(t.type)||"Memo";case Su:e=t._payload,t=t._init;try{return Rk(t(e))}catch{}}return null}function Kle(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Rk(e);case 8:return e===fM?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function _d(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function R5(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Yle(t){var e=R5(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ox(t){t._valueTracker||(t._valueTracker=Yle(t))}function P5(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=R5(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function CE(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Pk(t,e){var n=e.checked;return rr({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function kj(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=_d(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function T5(t,e){e=e.checked,e!=null&&dM(t,"checked",e,!1)}function Tk(t,e){T5(t,e);var n=_d(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?kk(t,e.type,n):e.hasOwnProperty("defaultValue")&&kk(t,e.type,_d(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Dj(t,e,n){if(e.hasOwnProperty(
`).replace(iue,"")}function Bx(t,e,n){if(e=e3(e),e3(t)!==e&&n)throw Error(ke(425))}function OE(){}var Vk=null,Wk=null;function Gk(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var qk=typeof setTimeout=="function"?setTimeout:void 0,oue=typeof clearTimeout=="function"?clearTimeout:void 0,t3=typeof Promise=="function"?Promise:void 0,aue=typeof queueMicrotask=="function"?queueMicrotask:typeof t3<"u"?function(t){return t3.resolve(null).then(t).catch(lue)}:qk;function lue(t){setTimeout(function(){throw t})}function FP(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),kb(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);kb(e)}function pd(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function n3(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var vv=Math.random().toString(36).slice(2),ll="__reactFiber$"+vv,Lb="__reactProps$"+vv,Fc="__reactContainer$"+vv,Kk="__reactEvents$"+vv,cue="__reactListeners$"+vv,uue="__reactHandles$"+vv;function bf(t){var e=t[ll];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Fc]||n[ll]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=n3(t);t!==null;){if(n=t[ll])return n;t=n3(t)}return e}t=n,n=t.parentNode}return null}function Qw(t){return t=t[ll]||t[Fc],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function fm(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(ke(33))}function _1(t){return t[Lb]||null}var Yk=[],hm=-1;function Od(t){return{current:t}}function Bn(t){0>hm||(t.current=Yk[hm],Yk[hm]=null,hm--)}function On(t,e){hm++,Yk[hm]=t.current,t.current=e}var xd={},Ns=Od(xd),wi=Od(!1),Lh=xd;function Jg(t,e){var n=t.type.contextTypes;if(!n)return xd;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function _i(t){return t=t.childContextTypes,t!=null}function ME(){Bn(wi),Bn(Ns)}function r3(t,e,n){if(Ns.current!==xd)throw Error(ke(168));On(Ns,e),On(wi,n)}function vH(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(ke(108,Kle(t)||"Unknown",s));return rr({},n,r)}function LE(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||xd,Lh=Ns.current,On(Ns,t),On(wi,wi.current),!0}function s3(t,e,n){var r=t.stateNode;if(!r)throw Error(ke(169));n?(t=vH(t,e,Lh),r.__reactInternalMemoizedMergedChildContext=t,Bn(wi),Bn(Ns),On(Ns,t)):Bn(wi),On(wi,n)}var Ql=null,x1=!1,jP=!1;function yH(t){Ql===null?Ql=[t]:Ql.push(t)}function due(t){x1=!0,yH(t)}function Md(){if(!jP&&Ql!==null){jP=!0;var t=0,e=pn;try{var n=Ql;for(pn=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Ql=null,x1=!1}catch(s){throw Ql!==null&&(Ql=Ql.slice(t+1)),H5(gM,Md),s}finally{pn=e,jP=!1}}return null}var pm=[],mm=0,IE=null,$E=0,Po=[],To=0,Ih=null,Rc=1,Pc="";function lf(t,e){pm[mm++]=$E,pm[mm++]=IE,IE=t,$E=e}function bH(t,e,n){Po[To++]=Rc,Po[To++]=Pc,Po[To++]=Ih,Ih=t;var r=Rc;t=Pc;var s=32-ya(r)-1;r&=~(1<<s),n+=1;var i=32-ya(e)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,Rc=1<<32-ya(e)+s|n<<s|r,Pc=i+t}else Rc=1<<i|n<<s|r,Pc=t}function CM(t){t.return!==null&&(lf(t,1),bH(t,1,0))}function AM(t){for(;t===IE;)IE=pm[--mm],pm[mm]=null,$E=pm[--mm],pm[mm]=null;for(;t===Ih;)Ih=Po[--To],Po[To]=null,Pc=Po[--To],Po[To]=null,Rc=Po[--To],Po[To]=null}var to=null,eo=null,qn=!1,ma=null;function wH(t,e){var n=Oo(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return
Error generating stack: `+i.message+`
`+i.stack}return{value:t,source:e,stack:s,digest:null}}function VP(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function tD(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var wue=typeof WeakMap=="function"?WeakMap:Map;function qH(t,e,n){n=Tc(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){WE||(WE=!0,dD=r),tD(t,e)},n}function KH(t,e,n){n=Tc(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){tD(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){tD(t,e),typeof r!="function"&&(gd===null?gd=new Set([this]):gd.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function p3(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new wue;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=Mue.bind(null,t,e,n),e.then(t,t))}function m3(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function g3(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Tc(-1,1),e.tag=2,md(n,e,1))),n.lanes|=1),t)}var _ue=Gc.ReactCurrentOwner,mi=!1;function Hs(t,e,n,r){e.child=t===null?SH(e,null,n,r):tv(e,t.child,n,r)}function v3(t,e,n,r,s){n=n.render;var i=e.ref;return Pm(e,s),r=$M(t,e,n,r,i,s),n=FM(),t!==null&&!mi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,zc(t,e,s)):(qn&&n&&CM(e),e.flags|=1,Hs(t,e,r,s),e.child)}function y3(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!KM(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,YH(t,e,i,r,s)):(t=FS(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Nb,n(a,r)&&t.ref===e.ref)return zc(t,e,s)}return e.flags|=1,t=yd(i,r),t.ref=e.ref,t.return=e,e.child=t}function YH(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(Nb(i,r)&&t.ref===e.ref)if(mi=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(mi=!0);else return e.lanes=t.lanes,zc(t,e,s)}return nD(t,e,n,r,s)}function XH(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},On(ym,Ki),Ki|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,On(ym,Ki),Ki|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,On(ym,Ki),Ki|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,On(ym,Ki),Ki|=r;return Hs(t,e,s,n),e.child}function QH(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function nD(t,e,n,r,s){var i=_i(n)?Lh:Ns.current;return i=Jg(e,i),Pm(e,s),n=$M(t,e,n,r,i,s),r=FM(),t!==null&&!mi?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,zc(t,e,s)):(qn&&r&&CM(e),e.flags|=1,Hs(t,e,n,s),e.child)}function b3(t,e,n,r,s){if(_i(n)){var i=!0;LE(e)}else i=!1;if(Pm(e,s),e.stateNode===null)LS(t,e),GH(e,n,r),eD(e,n,r,s),r=!0;else if(t===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Io(u):(u=_i(n)?Lh:Ns.current,u=Jg(e,u));var f=n.getDerivedStateFromProps,l=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";l||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||c!==u)&&h3(e,a,r,u),Eu=!1;var d=e.memoizedState;a.state=d,zE(e,r,a,s),c=e.memoizedState,o!==r||d!==c||wi.current||Eu?(typeof f=="function"&&(Jk(e,n,f,r),c=e.memoizedState),(o=Eu||f3(e,n,o,r,d,c,u))?(l||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeo
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gfe=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r6=(...t)=>t.filter((e,n,r)=>!!e&&r.indexOf(e)===n).join(" ");/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var vfe={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"};/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yfe=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...o},c)=>_.createElement("svg",{ref:c,...vfe,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:r6("lucide",s),...o},[...a.map(([u,f])=>_.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zr=(t,e)=>{const n=_.forwardRef(({className:r,...s},i)=>_.createElement(yfe,{ref:i,iconNode:e,className:r6(`lucide-${gfe(t)}`,r),...s}));return n.displayName=`${t}`,n};/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bfe=Zr("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t_=Zr("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M1=Zr("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dL=Zr("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n_=Zr("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wfe=Zr("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _fe=Zr("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xfe=Zr("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const L1=Zr("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sfe=Zr("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Efe=Zr("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cfe=Zr("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Afe=Zr("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Rfe=Zr("Package2",[["path",{d:"M3 9h18v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z",key:"1ront0"}],["path",{d:"m3 9 2.45-4.9A2 2 0 0 1 7.24 3h9.52a2 2 0 0 1 1.8 1.1L21 9",key:"19h2x1"}],["path",{d:"M12 3v6",key:"1holv5"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pfe=Zr("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Tfe=Zr("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kfe=Zr("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.427.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fL=Zr("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function s6(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(n=s6(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function cp(){for(var t,e,n=0,r="",s=arguments.length;n<s;n++)(t=arguments[n])&&(e=s6(t))&&(r&&(r+=" "),r+=e);return r}const hL="-",Dfe=t=>{const e=Ofe(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{const o=a.split(hL);return o[0]===""&&o.length!==1&&o.shift(),i6(o,e)||Nfe(a)},getConflictingClassGroupIds:(a,o)=>{const c=n[a]||[];return o&&r[a]?[...c,...r[a]]:c}}},i6=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),s=r?i6(t.slice(1),r):void 0;if(s)return s;if(e.validators.length===0)return;const i=t.join(hL);return(a=e.validators.find(({validator:o})=>o(i)))==null?void 0:a.classGroupId},U3=/^\[(.+)\]$/,Nfe=t=>{if(U3.test(t)){const e=U3.exec(t)[1],n=e==null?void 0:e.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},Ofe=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return Lfe(Object.entries(t.classGroups),n).forEach(([i,a])=>{DD(a,r,i,e)}),r},DD=(t,e,n,r)=>{t.forEach(s=>{if(typeof s=="string"){const i=s===""?e:H3(e,s);i.classGroupId=n;return}if(typeof s=="function"){if(Mfe(s)){DD(s(r),e,n,r);return}e.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{DD(a,H3(e,i),n,r)})})},H3=(t,e)=>{let n=t;return e.split(hL).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Mfe=t=>t.isThemeGetter,Lfe=(t,e)=>e?t.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,o])=>[e+a,o])):i);return[n,s]}):t,Ife=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),e++,e>t&&(e=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},o6="!",$fe=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,s=e[0],i=e.length,a=o=>{const c=[];let u=0,f=0,l;for(let y=0;y<o.length;y++){let g=o[y];if(u===0){if(g===s&&(r||o.slice(y,y+i)===e)){c.push(o.slice(f,y)),f=y+i;continue}if(g==="/"){l=y;continue}}g==="["?u++:g==="]"&&u--}const d=c.length===0?o:o.substring(f),m=d.startsWith(o6),p=m?d.substring(1):d,h=l&&l>f?l-f:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:p,maybePostfixModifierPosition:h}};return n?o=>n({className:o,parseClassName:a}):a},Ffe=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},jfe=t=>({cache:Ife(t.cacheSize),parseClassName:$fe(t),...Dfe(t)}),zfe=/\s+/,Bfe=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=e,i=[],a=t.trim().split(zfe);let o="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:m}=n(u);let p=!!m,h=r(p?d.substring(0,m):d);if(!h){if(!p){o=u+(o.length>0?" "+o:o);continue}if(h=r(d),!h){o=u+(o.length>0?" "+o:o);continue}p=!1}const y=Ffe(f).join(":"),g=l?y+o6:y,v=g+h;if(i.includes(v))continue;i.push(v);const w=s(h,p);for(let x=0;x<w.length;++x){const A=w[x];i.push(g+A)}o=u+(o.length>0?" "+o:o)}return o};function Ufe(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=a6(e))&&(r&&(r+=" "),r+=n);return r}const a6=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=a6(t[r]))&&(n&&(n+=" "),n+=e);return n};function Hfe(t,...e){let n,r,s,i=a;function a(c){const u=e.reduce((f,l)=>l(f),t());return n=jfe(u),r=n.cache.get,s=n.cache.set,i=o,o(c)}function o(c){const u=r(c);if(u)return u;const f=Bfe(c,n);return s(c,f),f}return function(){return i(Ufe.apply(null,arguments))}}const $n=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},l6=/^\[(?:([
.`.concat(Nhe,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(o,"px ").concat(r,`;
}
body[`).concat(Mm,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(s,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(o,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Nm,` {
right: `).concat(o,"px ").concat(r,`;
}
.`).concat(Om,` {
margin-right: `).concat(o,"px ").concat(r,`;
}
.`).concat(Nm," .").concat(Nm,` {
right: 0 `).concat(r,`;
}
.`).concat(Om," .").concat(Om,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Mm,`] {
`).concat(Ohe,": ").concat(o,`px;
}
`)},ez=function(){var t=parseInt(document.body.getAttribute(Mm)||"0",10);return isFinite(t)?t:0},Yhe=function(){_.useEffect(function(){return document.body.setAttribute(Mm,(ez()+1).toString()),function(){var t=ez()-1;t<=0?document.body.removeAttribute(Mm):document.body.setAttribute(Mm,t.toString())}},[])},yL=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,s=r===void 0?"margin":r;Yhe();var i=_.useMemo(function(){return Ghe(s)},[s]);return _.createElement(qhe,{styles:Khe(i,!e,s,n?"":"!important")})},OD=!1;if(typeof window<"u")try{var Xx=Object.defineProperty({},"passive",{get:function(){return OD=!0,!0}});window.addEventListener("test",Xx,Xx),window.removeEventListener("test",Xx,Xx)}catch{OD=!1}var Op=OD?{passive:!1}:!1,Xhe=function(t){return t.tagName==="TEXTAREA"},v6=function(t,e){var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!Xhe(t)&&n[e]==="visible")},Qhe=function(t){return v6(t,"overflowY")},Zhe=function(t){return v6(t,"overflowX")},tz=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=y6(t,r);if(s){var i=b6(t,r),a=i[1],o=i[2];if(a>o)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Jhe=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},epe=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},y6=function(t,e){return t==="v"?Qhe(e):Zhe(e)},b6=function(t,e){return t==="v"?Jhe(e):epe(e)},tpe=function(t,e){return t==="h"&&e==="rtl"?-1:1},npe=function(t,e,n,r,s){var i=tpe(t,window.getComputedStyle(e).direction),a=i*r,o=n.target,c=e.contains(o),u=!1,f=a>0,l=0,d=0;do{var m=b6(t,o),p=m[0],h=m[1],y=m[2],g=h-y-i*p;(p||g)&&y6(t,o)&&(l+=g,d+=p),o instanceof ShadowRoot?o=o.host:o=o.parentNode}while(!c&&o!==document.body||c&&(e.contains(o)||e===o));return(f&&Math.abs(l)<1||!f&&Math.abs(d)<1)&&(u=!0),u},Qx=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},nz=function(t){return[t.deltaX,t.deltaY]},rz=function(t){return t&&"current"in t?t.current:t},rpe=function(t,e){return t[0]===e[0]&&t[1]===e[1]},spe=function(t){return`
.block-interactivity-`.concat(t,` {pointer-events: none;}
.allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},ipe=0,Mp=[];function ope(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(ipe++)[0],i=_.useState(j1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=pL([t.lockRef.current],(t.shards||[]).map(rz),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2)return!a.current.allowPinchZoom;var g=Qx(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,k=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&k.type==="range")return!1;var E=tz(R,k);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=tz(R,k)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var T=r.current||A;return npe(T,y,h,T==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!Mp.length||Mp[Mp.length-1]!==i)){var g="deltaY"in y?nz(y):Qx(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&rpe(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(rz).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:ape(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=Qx(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,nz(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,Qx(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return Mp.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Op),document.addEventListener("touchmove",c,Op),document.addEventListener("touchstart",f,Op),function(){Mp=Mp.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Op),document.removeEventListener("touchmove",c,Op),document.removeEventListener("touchstart",f,Op)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:spe(s)}):null,m?_.createElement(yL,{gapMode:t.gapMode}):null)}function ape(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const lpe=vL(g6,ope);var s_=_.forwardRef(function(t,e){return _.createElement(F1,fr({},t,{ref:e,sideCar:lpe}))});s_.classNames=F1.classNames;var cpe=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Lp=new WeakMap,Zx=new WeakMap,Jx={},nT=0,w6=function(t){return t&&(t.host||w6(t.parentNode))},upe=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=w6(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},dpe=function(t,e,n,r){var s=upe(e,Array.isArray(t)?t:[t]);Jx[n]||(Jx[n]=new WeakMap);var i=Jx[n],a=[],o=new Set,c=new Set(s),u=function(l){!l||o.has(l)||(o.add(l),u(l.parentNode))};s.forEach(u);var f=function(l){!l||c.has(l)||Array.prototype.forEach.call(l.children,function(d){if(o.has(d))f(d);else try{var m=d.getAttribute(r),p=m!==null&&m!=="false",h=(Lp.get(d)||0)+1,y=(i.get(d)||0)+1;Lp.set(d,h),i.set(d,y),a.push(d),h===1&&p&&Zx.set(d,!0),y===1&&d.setAttribute(n,"true"),p||d.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",d,g)}})};return f(e),o.clear(),nT++,function(){a.forEach(function(l){var d=Lp.get(l)-1,m=i.get(l)-1;Lp.set(l,d),i.set(l,m),d||(Zx.has(l)||l.removeAttribute(r),Zx.delete(l)),m||l.removeAttribute(n)
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},bpe="DialogDescriptionWarning",wpe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$6(bpe).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},SL=S6,EL=C6,CL=R6,i_=P6,o_=T6,a_=D6,l_=O6,c_=L6,F6="AlertDialog",[_pe,M4e]=Pn(F6,[x6]),Xc=x6(),j6=t=>{const{__scopeAlertDialog:e,...n}=t,r=Xc(e);return P.jsx(SL,{...r,...n,modal:!0})};j6.displayName=F6;var xpe="AlertDialogTrigger",z6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Xc(n);return P.jsx(EL,{...s,...r,ref:e})});z6.displayName=xpe;var Spe="AlertDialogPortal",B6=t=>{const{__scopeAlertDialog:e,...n}=t,r=Xc(e);return P.jsx(CL,{...r,...n})};B6.displayName=Spe;var Epe="AlertDialogOverlay",U6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Xc(n);return P.jsx(i_,{...s,...r,ref:e})});U6.displayName=Epe;var Lm="AlertDialogContent",[Cpe,Ape]=_pe(Lm),H6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,children:r,...s}=t,i=Xc(n),a=_.useRef(null),o=tt(e,a),c=_.useRef(null);return P.jsx(vpe,{contentName:Lm,titleName:V6,docsSlug:"alert-dialog",children:P.jsx(Cpe,{scope:n,cancelRef:c,children:P.jsxs(o_,{role:"alertdialog",...i,...s,ref:o,onOpenAutoFocus:me(s.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[P.jsx(rL,{children:r}),P.jsx(Ppe,{contentRef:a})]})})})});H6.displayName=Lm;var V6="AlertDialogTitle",W6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Xc(n);return P.jsx(a_,{...s,...r,ref:e})});W6.displayName=V6;var G6="AlertDialogDescription",q6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Xc(n);return P.jsx(l_,{...s,...r,ref:e})});q6.displayName=G6;var Rpe="AlertDialogAction",K6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,s=Xc(n);return P.jsx(c_,{...s,...r,ref:e})});K6.displayName=Rpe;var Y6="AlertDialogCancel",X6=_.forwardRef((t,e)=>{const{__scopeAlertDialog:n,...r}=t,{cancelRef:s}=Ape(Y6,n),i=Xc(n),a=tt(e,s);return P.jsx(c_,{...i,...r,ref:a})});X6.displayName=Y6;var Ppe=({contentRef:t})=>{const e=`\`${Lm}\` requires a description for the component to be accessible for screen reader users.
You can add a description to the \`${Lm}\` by passing a \`${G6}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Lm}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{var r;document.getElementById((r=t.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(e)},[e,t]),null},Tpe=j6,kpe=z6,Dpe=B6,Q6=U6,Z6=H6,J6=K6,eW=X6,tW=W6,nW=q6;const Vb=jo("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),no=_.forwardRef(({className:t,variant:e,size:n,asChild:r=!1,...s},i)=>{const a=r?Sa:"button";return P.jsx(a,{className:ce(Vb({variant:e,size:n,className:t})),ref:i,...s})});no.displayName="Button";const rW=Tpe,L4e=kpe,Npe=Dpe,sW=_.forwardRef(({className:t,...e},n)=>P.jsx(Q6,{className:ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:n}));sW.displayName=Q6.displayName;const AL=_.forwardRef(({className:t,...e},n)=>P.jsxs(Npe,{children:[P.jsx(sW,{}),P.jsx(Z6,{ref:n,className:ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t),...e})]}));AL.displayName=Z6.displayName;const RL=({className:t,...e})=>P.jsx("div",{className:ce("flex flex-col space-y-2 text-center sm:text-left",t),...e});RL.displayName="AlertDialogHeader";const PL=({className:t,...e})=>P.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});PL.displayName="AlertDialogFooter";const TL=_.forwardRef(({className:t,...e},n)=>P.jsx(tW,{ref:n,className:ce("text-lg font-semibold",t),...e}));TL.displayName=tW.displayName;const kL=_.forwardRef(({className:t,...e},n)=>P.jsx(nW,{ref:n,className:ce("text-sm text-muted-foreground",t),...e}));kL.displayName=nW.displayName;const DL=_.forwardRef(({className:t,...e},n)=>P.jsx(J6,{ref:n,className:ce(Vb(),t),...e}));DL.displayName=J6.displayName;const NL=_.forwardRef(({className:t,...e},n)=>P.jsx(eW,{ref:n,className:ce(Vb({variant:"outline"}),"mt-2 sm:mt-0",t),...e}));NL.displayName=eW.displayName;const Ope=({textAreaRef:t,triggerAutoSize:e,maxHeight:n=Number.MAX_SAFE_INTEGER,minHeight:r=0})=>{const[s,i]=_.useState(!0);_.useEffect(()=>{if(t){s&&(t.style.minHeight=`${r+2}px`,n>r&&(t.style.maxHeight=`${n}px`),i(!1)),t.style.height=`${r+2}px`;const o=t.scrollHeight;o>n?t.style.height=`${n}px`:t.style.height=`${o+2}px`}},[t,e,s,n,r])},iW=_.forwardRef(({maxHeight:t=Number.MAX_SAFE_INTEGER,minHeight:e=52,className:n,onChange:r,value:s,...i},a)=>{const o=_.useRef(null),[c,u]=_.useState("");return Ope({textAreaRef:o.current,triggerAutoSize:c,maxHeight:t,minHeight:e}),_.useImperativeHandle(a,()=>({textArea:o.current,focus:()=>{var f;return(f=o.current)==null?void 0:f.focus()},maxHeight:t,minHeight:e})),_.useEffect(()=>{(s||i!=null&&i.defaultValue)&&u(s)},[s||(i==null?void 0:i.defaultValue)]),P.jsx("textarea",{...i,value:s,ref:o,className:ce("flex w-full rounded-md border
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var YL=Symbol.for("react.element"),XL=Symbol.for("react.portal"),W1=Symbol.for("react.fragment"),G1=Symbol.for("react.strict_mode"),q1=Symbol.for("react.profiler"),K1=Symbol.for("react.provider"),Y1=Symbol.for("react.context"),M0e=Symbol.for("react.server_context"),X1=Symbol.for("react.forward_ref"),Q1=Symbol.for("react.suspense"),Z1=Symbol.for("react.suspense_list"),J1=Symbol.for("react.memo"),eA=Symbol.for("react.lazy"),L0e=Symbol.for("react.offscreen"),WW;WW=Symbol.for("react.module.reference");function zo(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case YL:switch(t=t.type,t){case W1:case q1:case G1:case Q1:case Z1:return t;default:switch(t=t&&t.$$typeof,t){case M0e:case Y1:case X1:case eA:case J1:case K1:return t;default:return e}}case XL:return e}}}xn.ContextConsumer=Y1;xn.ContextProvider=K1;xn.Element=YL;xn.ForwardRef=X1;xn.Fragment=W1;xn.Lazy=eA;xn.Memo=J1;xn.Portal=XL;xn.Profiler=q1;xn.StrictMode=G1;xn.Suspense=Q1;xn.SuspenseList=Z1;xn.isAsyncMode=function(){return!1};xn.isConcurrentMode=function(){return!1};xn.isContextConsumer=function(t){return zo(t)===Y1};xn.isContextProvider=function(t){return zo(t)===K1};xn.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===YL};xn.isForwardRef=function(t){return zo(t)===X1};xn.isFragment=function(t){return zo(t)===W1};xn.isLazy=function(t){return zo(t)===eA};xn.isMemo=function(t){return zo(t)===J1};xn.isPortal=function(t){return zo(t)===XL};xn.isProfiler=function(t){return zo(t)===q1};xn.isStrictMode=function(t){return zo(t)===G1};xn.isSuspense=function(t){return zo(t)===Q1};xn.isSuspenseList=function(t){return zo(t)===Z1};xn.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===W1||t===q1||t===G1||t===Q1||t===Z1||t===L0e||typeof t=="object"&&t!==null&&(t.$$typeof===eA||t.$$typeof===J1||t.$$typeof===K1||t.$$typeof===Y1||t.$$typeof===X1||t.$$typeof===WW||t.getModuleId!==void 0)};xn.typeOf=zo;var eS=function(e){return O0e(e)&&e.indexOf("%")===e.length-1},I0e=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},dT=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i]},$0e=B1,F0e=function(){return $0e.Date.now()},j0e=F0e,z0e=/\s/;function B0e(t){for(var e=t.length;e--&&z0e.test(t.charAt(e)););return e}var U0e=B0e,H0e=U0e,V0e=/^\s+/;function W0e(t){return t&&t.slice(0,H0e(t)+1).replace(V0e,"")}var G0e=W0e,q0e=G0e,_z=p_,K0e=oye,xz=NaN,Y0e=/^[-+]0x[0-9a-f]+$/i,X0e=/^0b[01]+$/i,Q0e=/^0o[0-7]+$/i,Z0e=parseInt;function J0e(t){if(typeof t=="number")return t;if(K0e(t))return xz;if(_z(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=_z(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=q0e(t);var n=X0e.test(t);return n||Q0e.test(t)?Z0e(t.slice(2),n?2:8):Y0e.test(t)?xz:+t}var ewe=J0e,twe=p_,fT=j0e,Sz=ewe,nwe="Expected a function",rwe=Math.max,swe=Math.min;function iwe(t,e,n){var r,s,i,a,o,c,u=0,f=!1,l=!1,d=!0;if(typeof t!="function")throw new TypeError(nwe);e=Sz(e)||0,twe(n)&&(f=!!n.leading,l="maxWait"in n,i=l?rwe(Sz(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function m(k){var R=r,E=s;return r=s=void 0,u=k,a=t.apply(E,R),a}function p(k){return u=k,o=setTimeout(g,e),f?m(k):a}function h(k){var R=k-c,E=k-u,T=e-R;return l?swe(T,i-E):T}function y(k){var R=k-c,E=k-u;return c===void 0||R>=e||R<0||l&&E>=i}function g(){var k=fT();if(y(k))return v(k);o=setTimeout(g,h(k))}function v(k){return o=void 0,d&&r?m(k):(r=s=void 0,a)}function w(){o!==void 0&&clearTimeout(o),u=0,r=c=s=o=void 0}function x(){return o===void 0?a:v(fT())}function A(){var k=fT(),R=y(k);if(r=arguments,s=this,c=k,R){if(o===void 0)return p(c);if(l)return clearTimeout(o),o=setTimeout(g,e),m(c)}return o===void 0&&(o=setTimeout(g,e)),a}return A.cancel=w,A.flush=x,A}var owe=iwe,awe=owe,lwe=p_,cwe="Expected a function";function uwe(t,e,n){var r=!0,s=!0;if(typeof t!="function")throw new TypeError(cwe);return lwe(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),awe(t,e,{leading:r,maxWait:e,trailing:s})}var dwe=uwe;const fwe=Dd(dwe);function Gb(t){"@babel/helpers
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ywe(t,e){if(t){if(typeof t=="string")return Cz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cz(t,e)}}function Cz(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,i,a,o=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(f){u=!0,s=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw s}}return o}}function wwe(t){if(Array.isArray(t))return t}var _we=_.forwardRef(function(t,e){var n=t.aspect,r=t.initialDimension,s=r===void 0?{width:-1,height:-1}:r,i=t.width,a=i===void 0?"100%":i,o=t.height,c=o===void 0?"100%":o,u=t.minWidth,f=u===void 0?0:u,l=t.minHeight,d=t.maxHeight,m=t.children,p=t.debounce,h=p===void 0?0:p,y=t.id,g=t.className,v=t.onResize,w=t.style,x=w===void 0?{}:w,A=_.useRef(null),k=_.useRef();k.current=v,_.useImperativeHandle(e,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var R=_.useState({containerWidth:s.width,containerHeight:s.height}),E=gwe(R,2),T=E[0],D=E[1],O=_.useCallback(function(I,F){D(function(U){var Y=Math.round(I),V=Math.round(F);return U.containerWidth===Y&&U.containerHeight===V?U:{containerWidth:Y,containerHeight:V}})},[]);_.useEffect(function(){var I=function(ee){var re,X=ee[0].contentRect,q=X.width,K=X.height;O(q,K),(re=k.current)===null||re===void 0||re.call(k,q,K)};h>0&&(I=fwe(I,h,{trailing:!0,leading:!1}));var F=new ResizeObserver(I),U=A.current.getBoundingClientRect(),Y=U.width,V=U.height;return O(Y,V),F.observe(A.current),function(){F.disconnect()}},[O,h]);var L=_.useMemo(function(){var I=T.containerWidth,F=T.containerHeight;if(I<0||F<0)return null;dT(eS(a)||eS(c),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,a,c),dT(!n||n>0,"The aspect(%s) must be greater than zero.",n);var U=eS(a)?I:a,Y=eS(c)?F:c;n&&n>0&&(U?Y=U/n:Y&&(U=Y*n),d&&Y>d&&(Y=d)),dT(U>0||Y>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,U,Y,a,c,f,l,n);var V=!Array.isArray(m)&&I0e(m.type).endsWith("Chart");return se.Children.map(m,function(H){return se.isValidElement(H)?_.cloneElement(H,tS({width:U,height:Y},V?{style:tS({height:"100%",width:"100%",maxHeight:Y,maxWidth:U},H.props.style)}:{})):H})},[n,m,c,d,l,f,T,a]);return se.createElement("div",{id:y?"".concat(y):void 0,className:cp("recharts-responsive-container",g),style:tS(tS({},x),{},{width:a,height:c,minWidth:f,minHeight:l,maxHeight:d}),ref:A},L)}),xwe="Invariant failed";function An(t,e){if(!t)throw new Error(xwe)}const Swe={light:"",dark:".dark"},GW=_.createContext(null);function qW(){const t=_.useContext(GW);if(!t)throw new Error("useChart must be used within a <ChartContainer />");return t}const Ewe=_.forwardRef(({id:t,className:e,children:n,config:r,...s},i)=>{const a=_.useId(),o=`chart-${t||a.replace(/:/g,"")}`;return P.jsx(GW.Provider,{value:{config:r},children:P.jsxs("div",{"data-chart":o,ref:i,className:ce("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",e),...s,children:[P.jsx(Cwe,{id:o,config:r}),P.jsx(_we,{children:n})]})})});Ewe.displayName="Chart";const Cwe=({id:t,config:e})=>{const n=Object.entries(e).filter(([r,s])=>s.theme||s.color);return n.length?P.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Swe).map(([r,s])=>`
${s} [data-chart=${t}] {
${n.map(([i,a])=>{var c;const o=((c=a.theme)==null?void 0:c[r])||a.color;return o?` --color-${i}: ${o};`:null}).join(`
`)}
}
`).join(`
`)}}):null},Awe=_.forwardRef(({active:t,payload:e,className:n,indicator:r="dot",hideLabel:s=!1,hideIndicator:i=!1,label:a,labelFormatter:o,labelClassName:c,formatter:u,color:f,nameKey:l,labelKey:d},m)=>{const{config:p}=qW(),h=_.useMemo(()=>{var A;if(s||!(e!=null&&e.length))return null;const[g]=e,v=`${d||g.dataKey||g.name||"value"}`,w=ID(p,g,v),x=!d&&typeof a=="string"?((A=p[a])==null?void 0:A.label)||a:w==null?void 0:w.label;return o?P.jsx("div",{className:ce("font-medium",c),children:o(x,e)}):x?P.jsx("div",{className:ce("font-medium",c),children:x}):null},[a,o,e,s,c,p,d]);if(!t||!(e!=null&&e.length))return null;const y=e.length===1&&r!=="dot";return P.jsxs("div",{ref:m,className:ce("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",n),children:[y?null:h,P.jsx("div",{className:"grid gap-1.5",children:e.map((g,v)=>{const w=`${l||g.name||g.dataKey||"value"}`,x=ID(p,g,w),A=f||g.payload.fill||g.color;return P.jsx("div",{className:ce("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",r==="dot"&&"items-center"),children:u&&(g==null?void 0:g.value)!==void 0&&g.name?u(g.value,g.name,g,v,g.payload):P.jsxs(P.Fragment,{children:[x!=null&&x.icon?P.jsx(x.icon,{}):!i&&P.jsx("div",{className:ce("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":y&&r==="dashed"}),style:{"--color-bg":A,"--color-border":A}}),P.jsxs("div",{className:ce("flex flex-1 justify-between leading-none",y?"items-end":"items-center"),children:[P.jsxs("div",{className:"grid gap-1.5",children:[y?h:null,P.jsx("span",{className:"text-muted-foreground",children:(x==null?void 0:x.label)||g.name})]}),g.value&&P.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:g.value.toLocaleString()})]})]})},g.dataKey)})})]})});Awe.displayName="ChartTooltip";const Rwe=_.forwardRef(({className:t,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:s},i)=>{const{config:a}=qW();return n!=null&&n.length?P.jsx("div",{ref:i,className:ce("flex items-center justify-center gap-4",r==="top"?"pb-3":"pt-3",t),children:n.map(o=>{const c=`${s||o.dataKey||"value"}`,u=ID(a,o,c);return P.jsxs("div",{className:ce("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[u!=null&&u.icon&&!e?P.jsx(u.icon,{}):P.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:o.color}}),u==null?void 0:u.label]},o.value)})}):null});Rwe.displayName="ChartLegend";function ID(t,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let s=n;return n in e&&typeof e[n]=="string"?s=e[n]:r&&n in r&&typeof r[n]=="string"&&(s=r[n]),s in t?t[s]:t[n]}function Cv(t){const e=_.useRef({value:t,previous:t});return _.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}function m_(t){const[e,n]=_.useState(void 0);return Mn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,o;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,o=u.blockSize}else a=t.offsetWidth,o=t.offsetHeight;n({width:a,height:o})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var QL="Checkbox",[Pwe,$4e]=Pn(QL),[Twe,kwe]=Pwe(QL),KW=_.forwardRef((t,e)=>{const{__scopeCheckbox:n,name:r,checked:s,defaultChecked:i,required:a,disabled:o,value:c="on",onCheckedChange:u,...f}=t,[l,d]=_.useState(null),m=tt(e,w=>d(w)),p=_.useRef(!1),h=l?!!l.closest("form"):!0,[y=!1,g]=sr({prop:s,defaultProp:i,onChange:u}),v=_.useRef(y);return _.useEffect(()=>{const w=l==null?void 0:l.form;if(w){const x=()=>g(v.current);return w.addEventListener("reset",x),()=>w.removeEventListener("reset",x)}},[l,g]),P.jsxs(Twe,{scope:n,state:y,disabled:o,children:[P.jsx(De.bu
.block-interactivity-`.concat(t,` {pointer-events: none;}
.allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},D_e=0,Fp=[];function N_e(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(D_e++)[0],i=_.useState(j1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=pL([t.lockRef.current],(t.shards||[]).map(Fz),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var g=sS(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,k=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&k.type==="range")return!1;var E=Iz(R,k);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=Iz(R,k)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var T=r.current||A;return P_e(T,y,h,T==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!Fp.length||Fp[Fp.length-1]!==i)){var g="deltaY"in y?$z(y):sS(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&T_e(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(Fz).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:O_e(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=sS(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,$z(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,sS(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return Fp.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,$p),document.addEventListener("touchmove",c,$p),document.addEventListener("touchstart",f,$p),function(){Fp=Fp.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,$p),document.removeEventListener("touchmove",c,$p),document.removeEventListener("touchstart",f,$p)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:k_e(s)}):null,m?_.createElement(yL,{gapMode:t.gapMode}):null)}function O_e(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const M_e=vL(o8,N_e);var u8=_.forwardRef(function(t,e){return _.createElement(nA,fr({},t,{ref:e,sideCar:M_e}))});u8.classNames=nA.classNames;var JL="Dialog",[d8,F4e]=Vwe(JL),[L_e,Da]=d8(JL),f8=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=t,o=_.useRef(null),c=_.useRef(null),[u=!1,f]=Kwe({prop:r,defaultProp:s,onChange:i});return P.jsx(L_e,{scope:e,triggerRef:o,contentRef:c,contentId:kc(),titleId:kc(),descriptionId:kc(),open:u,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(l=>!l),[f]),modal:a,children:n})};f8.displayName=JL;var h8="DialogTrigger",I_e=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Da(h8,n),i=dp(e,s.triggerRef);return P.jsx(fs.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":nI(s.open),...r,ref:i,onClick:bd(t.onClick,s.onOpenToggle)})});I_e.displayName=h8;var eI="DialogPortal",[$_e,p8]=d8(eI,{forceMount:void 0}),m8=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,i=Da(eI,e);return P.jsx($_e,{scope:e,forceMount:n,children:_.Children.map(r,a=>P.jsx(tA,{present:n||i.open,children:P.jsx(i8,{asChild:!0,container:s,children:a})}))})};m8.displayName=eI;var nC="DialogOverlay",g8=_.forwardRef((t,e)=>{const n=p8(nC,t.__scopeDialog),{forceMount:r=n.forceMount
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},W_e="DialogDescriptionWarning",G_e=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${x8(W_e).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},q_e=f8,K_e=m8,Y_e=g8,X_e=v8,vy='[cmdk-group=""]',bT='[cmdk-group-items=""]',Q_e='[cmdk-group-heading=""]',S8='[cmdk-item=""]',jz=`${S8}:not([aria-disabled="true"])`,BD="cmdk-item-select",Qp="data-value",Z_e=(t,e,n)=>Uwe(t,e,n),E8=_.createContext(void 0),g_=()=>_.useContext(E8),C8=_.createContext(void 0),rI=()=>_.useContext(C8),A8=_.createContext(void 0),R8=_.forwardRef((t,e)=>{let n=Zp(()=>{var q,K;return{search:"",value:(K=(q=t.value)!=null?q:t.defaultValue)!=null?K:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=Zp(()=>new Set),s=Zp(()=>new Map),i=Zp(()=>new Map),a=Zp(()=>new Set),o=P8(t),{label:c,children:u,value:f,onValueChange:l,filter:d,shouldFilter:m,loop:p,disablePointerSelection:h=!1,vimBindings:y=!0,...g}=t,v=kc(),w=kc(),x=kc(),A=_.useRef(null),k=cxe();qh(()=>{if(f!==void 0){let q=f.trim();n.current.value=q,R.emit()}},[f]),qh(()=>{k(6,I)},[]);let R=_.useMemo(()=>({subscribe:q=>(a.current.add(q),()=>a.current.delete(q)),snapshot:()=>n.current,setState:(q,K,Z)=>{var ue,de,ie,be;if(!Object.is(n.current[q],K)){if(n.current[q]=K,q==="search")L(),D(),k(1,O);else if(q==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ae=document.getElementById(x);Ae?Ae.focus():(ue=document.getElementById(v))==null||ue.focus()}if(k(7,()=>{var Ae;n.current.selectedItemId=(Ae=F())==null?void 0:Ae.id,R.emit()}),Z||k(5,I),((de=o.current)==null?void 0:de.value)!==void 0){let Ae=K??"";(be=(ie=o.current).onValueChange)==null||be.call(ie,Ae);return}}R.emit()}},emit:()=>{a.current.forEach(q=>q())}}),[]),E=_.useMemo(()=>({value:(q,K,Z)=>{var ue;K!==((ue=i.current.get(q))==null?void 0:ue.value)&&(i.current.set(q,{value:K,keywords:Z}),n.current.filtered.items.set(q,T(K,Z)),k(2,()=>{D(),R.emit()}))},item:(q,K)=>(r.current.add(q),K&&(s.current.has(K)?s.current.get(K).add(q):s.current.set(K,new Set([q]))),k(3,()=>{L(),D(),n.current.value||O(),R.emit()}),()=>{i.current.delete(q),r.current.delete(q),n.current.filtered.items.delete(q);let Z=F();k(4,()=>{L(),(Z==null?void 0:Z.getAttribute("id"))===q&&O(),R.emit()})}),group:q=>(s.current.has(q)||s.current.set(q,new Set),()=>{i.current.delete(q),s.current.delete(q)}),filter:()=>o.current.shouldFilter,label:c||t["aria-label"],getDisablePointerSelection:()=>o.current.disablePointerSelection,listId:v,inputId:x,labelId:w,listInnerRef:A}),[]);function T(q,K){var Z,ue;let de=(ue=(Z=o.current)==null?void 0:Z.filter)!=null?ue:Z_e;return q?de(q,n.current.search,K):0}function D(){if(!n.current.search||o.current.shouldFilter===!1)return;let q=n.current.filtered.items,K=[];n.current.filtered.groups.forEach(ue=>{let de=s.current.get(ue),ie=0;de.forEach(be=>{let Ae=q.get(be);ie=Math.max(Ae,ie)}),K.push([ue,ie])});let Z=A.current;U().sort((ue,de)=>{var ie,be;let Ae=ue.getAttribute("id"),_e=de.getAttribute("id");return((ie=q.get(_e))!=null?ie:0)-((be=q.get(Ae))!=null?be:0)}).forEach(ue=>{let de=ue.closest(bT);de?de.appendChild(ue.parentElement===de?ue:ue.closest(`${bT} > *`)):Z.appendChild(ue.parentElement===Z?ue:ue.closest(`${bT} > *`))}),K.sort((ue,de)=>de[1]-ue[1]).forEach(ue=>{var de;let ie=(de=A.current)==null?void 0:de.querySelector(`${vy}[${Qp}="${encodeURIComponent(ue[0])}"]`);ie==null||ie.parentElement.appendChild(ie)})}function O(){let q=U().find(Z=>Z.getAttribute("aria-disabled")!=="true"),K=q==null?void 0:q.getAttribute(Qp);R.setState("value",K||void 0)}function L(){var q,K,Z,ue;if(!n.current.search||o.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.grou
.block-interactivity-`.concat(t,` {pointer-events: none;}
.allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},wCe=0,zp=[];function _Ce(t){var e=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),s=_.useState(wCe++)[0],i=_.useState(j1)[0],a=_.useRef(t);_.useEffect(function(){a.current=t},[t]),_.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var h=pL([t.lockRef.current],(t.shards||[]).map(oB),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var o=_.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!a.current.allowPinchZoom;var g=cS(h),v=n.current,w="deltaX"in h?h.deltaX:v[0]-g[0],x="deltaY"in h?h.deltaY:v[1]-g[1],A,k=h.target,R=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in h&&R==="h"&&k.type==="range")return!1;var E=sB(R,k);if(!E)return!0;if(E?A=R:(A=R==="v"?"h":"v",E=sB(R,k)),!E)return!1;if(!r.current&&"changedTouches"in h&&(w||x)&&(r.current=A),!A)return!0;var T=r.current||A;return vCe(T,y,h,T==="h"?w:x)},[]),c=_.useCallback(function(h){var y=h;if(!(!zp.length||zp[zp.length-1]!==i)){var g="deltaY"in y?iB(y):cS(y),v=e.current.filter(function(A){return A.name===y.type&&(A.target===y.target||y.target===A.shadowParent)&&yCe(A.delta,g)})[0];if(v&&v.should){y.cancelable&&y.preventDefault();return}if(!v){var w=(a.current.shards||[]).map(oB).filter(Boolean).filter(function(A){return A.contains(y.target)}),x=w.length>0?o(y,w[0]):!a.current.noIsolation;x&&y.cancelable&&y.preventDefault()}}},[]),u=_.useCallback(function(h,y,g,v){var w={name:h,delta:y,target:g,should:v,shadowParent:xCe(g)};e.current.push(w),setTimeout(function(){e.current=e.current.filter(function(x){return x!==w})},1)},[]),f=_.useCallback(function(h){n.current=cS(h),r.current=void 0},[]),l=_.useCallback(function(h){u(h.type,iB(h),h.target,o(h,t.lockRef.current))},[]),d=_.useCallback(function(h){u(h.type,cS(h),h.target,o(h,t.lockRef.current))},[]);_.useEffect(function(){return zp.push(i),t.setCallbacks({onScrollCapture:l,onWheelCapture:l,onTouchMoveCapture:d}),document.addEventListener("wheel",c,jp),document.addEventListener("touchmove",c,jp),document.addEventListener("touchstart",f,jp),function(){zp=zp.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,jp),document.removeEventListener("touchmove",c,jp),document.removeEventListener("touchstart",f,jp)}},[]);var m=t.removeScrollBar,p=t.inert;return _.createElement(_.Fragment,null,p?_.createElement(i,{styles:bCe(s)}):null,m?_.createElement(yL,{gapMode:t.gapMode}):null)}function xCe(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const SCe=vL(sq,_Ce);var lq=_.forwardRef(function(t,e){return _.createElement(dA,fr({},t,{ref:e,sideCar:SCe}))});lq.classNames=dA.classNames;var MI="Dialog",[cq,V4e]=FEe(MI),[ECe,Na]=cq(MI),uq=t=>{const{__scopeDialog:e,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=t,o=_.useRef(null),c=_.useRef(null),[u=!1,f]=sr({prop:r,defaultProp:s,onChange:i});return P.jsx(ECe,{scope:e,triggerRef:o,contentRef:c,contentId:Hr(),titleId:Hr(),descriptionId:Hr(),open:u,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(l=>!l),[f]),modal:a,children:n})};uq.displayName=MI;var dq="DialogTrigger",CCe=_.forwardRef((t,e)=>{const{__scopeDialog:n,...r}=t,s=Na(dq,n),i=pp(e,s.triggerRef);return P.jsx(Zc.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":$I(s.open),...r,ref:i,onClick:wd(t.onClick,s.onOpenToggle)})});CCe.displayName=dq;var LI="DialogPortal",[ACe,fq]=cq(LI,{forceMount:void 0}),hq=t=>{const{__scopeDialog:e,forceMount:n,children:r,container:s}=t,i=Na(LI,e);return P.jsx(ACe,{scope:e,forceMount:n,children:_.Children.map(r,a=>P.jsx(uA,{present:n||i.open,children:P.jsx(rq,{asChild:!0,container:s,children:a})}))})};hq.displayName=LI;var cC="DialogOverlay",pq=_.forwardRef((t,e)=>{const n=fq(cC,t.__scopeDialog),{forceMount:r=n.forceMount,
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return _.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},DCe="DialogDescriptionWarning",NCe=({contentRef:t,descriptionId:e})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Sq(DCe).contentName}}.`;return _.useEffect(()=>{var i;const s=(i=t.current)==null?void 0:i.getAttribute("aria-describedby");e&&s&&(document.getElementById(e)||console.warn(r))},[r,t,e]),null},OCe=uq,MCe=hq,LCe=pq,ICe=mq,$Ce=vq,FCe=bq,jCe=_q;function zCe(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const Eq=se.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:"bottom",shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),C_=()=>{const t=se.useContext(Eq);if(!t)throw new Error("useDrawerContext must be used within a Drawer.Root");return t};zCe(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opaci
[data-state=closed]
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,100%,0)}}@keyframes slideFromTop{from{transform:translate3d(0,-100%,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,-100%,0)}}@keyframes slideFromLeft{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(-100%,0,0)}}@keyframes slideFromRight{from{transform:translate3d(100%,0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(100%,0,0)}}`);const BCe=24,UCe=typeof window<"u"?_.useLayoutEffect:_.useEffect;function aB(...t){return(...e)=>{for(let n of t)typeof n=="function"&&n(...e)}}function HCe(){return FI(/^Mac/)}function VCe(){return FI(/^iPhone/)}function lB(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function WCe(){return FI(/^iPad/)||HCe()&&navigator.maxTouchPoints>1}function Cq(){return VCe()||WCe()}function FI(t){return typeof window<"u"&&window.navigator!=null?t.test(window.navigator.platform):void 0}const AT=typeof document<"u"&&window.visualViewport;function cB(t){let e=window.getComputedStyle(t);return/(auto|scroll)/.test(e.overflow+e.overflowX+e.overflowY)}function Aq(t){for(cB(t)&&(t=t.parentElement);t&&!cB(t);)t=t.parentElement;return t||document.scrollingElement||document.documentElement}const GCe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let uS=0,RT;function qCe(t={}){let{isDisabled:e}=t;UCe(()=>{if(!e)return uS++,uS===1&&Cq()&&(RT=KCe()),()=>{uS--,uS===0&&(RT==null||RT())}},[e])}function KCe(){let t,e=0,n=l=>{t=Aq(l.target),!(t===document.documentElement&&t===document.body)&&(e=l.changedTouches[0].pageY)},r=l=>{if(!t||t===document.documentElement||t===document.body){l.preventDefault();return}let d=l.changedTouches[0].pageY,m=t.scrollTop,p=t.scrollHeight-t.clientHeight;p!==0&&((m<=0&&d>e||m>=p&&d<e)&&l.preventDefault(),e=d)},s=l=>{let d=l.target;YD(d)&&d!==document.activeElement&&(l.preventDefault(),d.style.transform="translateY(-2000px)",d.focus(),requestAnimationFrame(()=>{d.style.transform=""}))},i=l=>{let d=l.target;YD(d)&&(d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",AT&&(AT.height<window.innerHeight?requestAnimationFrame(()=>{uB(d)}):AT.addEventListener("resize",()=>uB(d),{once:!0}))}))},a=()=>{window.scrollTo(0,0)},o=window.pageXOffset,c=window.pageYOffset,u=aB(YCe(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let f=aB(yy(document,"touchstart",n,{passive:!1,capture:!0}),yy(document,"touchmove",r,{passive:!1,capture:!0}),yy(document,"touchend",s,{passive:!1,capture:!0}),yy(document,"focus",i,!0),yy(window,"scroll",a));return()=>{u(),f(),window.scrollTo(o,c)}}function YCe(t,e,n){let r=t.style[e];return t.style[e]=n,()=>{t.style[e]=r}}function yy(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}function uB(t){let e=document.scrollingElement||document.documentElement;for(;t&&t!==e;){let n=Aq(t);if(n!==document.documentElement&&n!==document.body&&n!==t){let r=n.getBoundingClientRect().top,s=t.getBoundingClientRect().top,i=t.getBoundingClientRect().bottom;const a=n.getBoundingClientRect().bottom+BCe;i>a&&(n.scrollTo
- a positive number
- less than the value passed to \`max\` (or ${n$} if no \`max\` prop is set)
- \`null\` or \`undefined\` if the progress is indeterminate.
Defaulting to \`null\`.`}var J7=Y7,lPe=Q7;const cPe=_.forwardRef(({className:t,value:e,...n},r)=>P.jsx(J7,{ref:r,className:ce("relative h-4 w-full overflow-hidden rounded-full bg-secondary",t),...n,children:P.jsx(lPe,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(e||0)}%)`}})}));cPe.displayName=J7.displayName;var r$="Radio",[uPe,e9]=Pn(r$),[dPe,fPe]=uPe(r$),t9=_.forwardRef((t,e)=>{const{__scopeRadio:n,name:r,checked:s=!1,required:i,disabled:a,value:o="on",onCheck:c,...u}=t,[f,l]=_.useState(null),d=tt(e,h=>l(h)),m=_.useRef(!1),p=f?!!f.closest("form"):!0;return P.jsxs(dPe,{scope:n,checked:s,disabled:a,children:[P.jsx(De.button,{type:"button",role:"radio","aria-checked":s,"data-state":s9(s),"data-disabled":a?"":void 0,disabled:a,value:o,...u,ref:d,onClick:me(t.onClick,h=>{s||c==null||c(),p&&(m.current=h.isPropagationStopped(),m.current||h.stopPropagation())})}),p&&P.jsx(hPe,{control:f,bubbles:!m.current,name:r,value:o,checked:s,required:i,disabled:a,style:{transform:"translateX(-100%)"}})]})});t9.displayName=r$;var n9="RadioIndicator",r9=_.forwardRef((t,e)=>{const{__scopeRadio:n,forceMount:r,...s}=t,i=fPe(n9,n);return P.jsx(Un,{present:r||i.checked,children:P.jsx(De.span,{"data-state":s9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});r9.displayName=n9;var hPe=t=>{const{control:e,checked:n,bubbles:r=!0,...s}=t,i=_.useRef(null),a=Cv(n),o=m_(e);return _.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&l){const d=new Event("click",{bubbles:r});l.call(c,n),c.dispatchEvent(d)}},[a,n,r]),P.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...s,tabIndex:-1,ref:i,style:{...t.style,...o,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function s9(t){return t?"checked":"unchecked"}var pPe=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],s$="RadioGroup",[mPe,rUe]=Pn(s$,[El,e9]),i9=El(),o9=e9(),[gPe,vPe]=mPe(s$),a9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,name:r,defaultValue:s,value:i,required:a=!1,disabled:o=!1,orientation:c,dir:u,loop:f=!0,onValueChange:l,...d}=t,m=i9(n),p=Ta(u),[h,y]=sr({prop:i,defaultProp:s,onChange:l});return P.jsx(gPe,{scope:n,name:r,required:a,disabled:o,value:h,onValueChange:y,children:P.jsx(w_,{asChild:!0,...m,orientation:c,dir:p,loop:f,children:P.jsx(De.div,{role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":o?"":void 0,dir:p,...d,ref:e})})})});a9.displayName=s$;var l9="RadioGroupItem",c9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,disabled:r,...s}=t,i=vPe(l9,n),a=i.disabled||r,o=i9(n),c=o9(n),u=_.useRef(null),f=tt(e,u),l=i.value===s.value,d=_.useRef(!1);return _.useEffect(()=>{const m=h=>{pPe.includes(h.key)&&(d.current=!0)},p=()=>d.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",p)}},[]),P.jsx(__,{asChild:!0,...o,focusable:!a,active:l,children:P.jsx(t9,{disabled:a,required:i.required,checked:l,...c,...s,name:i.name,ref:f,onCheck:()=>i.onValueChange(s.value),onKeyDown:me(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:me(s.onFocus,()=>{var m;d.current&&((m=u.current)==null||m.click())})})})});c9.displayName=l9;var yPe="RadioGroupIndicator",u9=_.forwardRef((t,e)=>{const{__scopeRadioGroup:n,...r}=t,s=o9(n);return P.jsx(r9,{...s,...r,ref:e})});u9.displayName=yPe;var d9=a9,f9=c9,bPe=u9;const wPe=_.forwardRef(({className:t,...e},n)=>P.jsx(d9,{className:ce("grid gap-2",t),...e,ref:n}));wPe.displayName=d9.displayName;const _Pe=_.forwardRef(({className:t,...e},n)=>P.jsx(f9,{ref:n,className:ce("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:P.jsx(bPe,{className:"flex items-center justify-center",children:P.jsx(L1,{className:"h-2.5 w-2.5 fill-current text-current"})})}));_Pe.displayName=
* @remix-run/router v1.23.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gn.apply(this,arguments)}var Er;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Er||(Er={}));const BB="popstate";function $De(t){t===void 0&&(t={});function e(r,s){let{pathname:i,search:a,hash:o}=r.location;return t0("",{pathname:i,search:a,hash:o},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Zh(s)}return jDe(e,n,null,t)}function Dt(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function fv(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function FDe(){return Math.random().toString(36).substr(2,8)}function UB(t,e){return{usr:t.state,key:t.key,idx:e}}function t0(t,e,n,r){return n===void 0&&(n=null),Gn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?zd(e):e,{state:n,key:e&&e.key||r||FDe()})}function Zh(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function zd(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function jDe(t,e,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,o=Er.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(Gn({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function l(){o=Er.Pop;let y=f(),g=y==null?null:y-u;u=y,c&&c({action:o,location:h.location,delta:g})}function d(y,g){o=Er.Push;let v=t0(h.location,y,g);u=f()+1;let w=UB(v,u),x=h.createHref(v);try{a.pushState(w,"",x)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;s.location.assign(x)}i&&c&&c({action:o,location:h.location,delta:1})}function m(y,g){o=Er.Replace;let v=t0(h.location,y,g);u=f();let w=UB(v,u),x=h.createHref(v);a.replaceState(w,"",x),i&&c&&c({action:o,location:h.location,delta:0})}function p(y){let g=s.location.origin!=="null"?s.location.origin:s.location.href,v=typeof y=="string"?y:Zh(y);return v=v.replace(/ $/,"%20"),Dt(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let h={get action(){return o},get location(){return t(s,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(BB,l),c=y,()=>{s.removeEventListener(BB,l),c=null}},createHref(y){return e(s,y)},createURL:p,encodeLocation(y){let g=p(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:m,go(y){return a.go(y)}};return h}var fn;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(fn||(fn={}));const zDe=new Set(["lazy","caseSensitive","path","id","index","children"]);function BDe(t){return t.index===!0}function EC(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((s,i)=>{let a=[...n,String(i)],o=typeof s.id=="string"?s.id:a.join("-");if(Dt(s.index!==!0||!s.children,"Cannot specify children on an index route"),Dt(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),BDe(s)){let c=Gn({},s,e(s),{id:o});return r[o]=c,c}else{let c=Gn({},s,e(s),{id:o,children:void 0});return r[o]=c,s.children&&(c.children=EC(s.children,e,a,r)),c}})}function pf(t,e,n){return n===void 0&&(n="/"),GS(t,e,n,!1)}function GS(t,e,n,r){let s=typeof e=="string"?zd(e):e,i=Rd(s.pathname||"/",n);if(i==null)return null;let a=nQ(t);HDe(a);let o=null;for(let c=0;o==null&&c<a.length;++c){let u=eNe(i);o=ZDe(a[c],u,r)}return o}function UDe(t,e){let{route:n,pathname:r,params:s}=t;return{id:n.id,pathname:r,params:s,data:e[n.id],handle:n.handle}}function nQ(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,o)=>{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("
`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!pa(a))return s();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:o,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return s()}}}Dt(typeof FormData=="function","FormData is not available in this environment");let c,u;if(r.formData)c=RN(r.formData),u=r.formData;else if(r.body instanceof FormData)c=RN(r.body),u=r.body;else if(r.body instanceof URLSearchParams)c=r.body,u=QB(c);else if(r.body==null)c=new URLSearchParams,u=new FormData;else try{c=new URLSearchParams(r.body),u=QB(c)}catch{return s()}let f={formMethod:a,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(pa(f.formMethod))return{path:n,submission:f};let l=zd(n);return e&&l.search&&A$(l.search)&&c.append("index",""),l.search="?"+c,{path:Zh(l),submission:f}}function GB(t,e,n){n===void 0&&(n=!1);let r=t.findIndex(s=>s.route.id===e);return r>=0?t.slice(0,n?r+1:r):t}function qB(t,e,n,r,s,i,a,o,c,u,f,l,d,m,p,h){let y=h?Qi(h[1])?h[1].error:h[1].data:void 0,g=t.createURL(e.location),v=t.createURL(s),w=n;i&&e.errors?w=GB(n,Object.keys(e.errors)[0],!0):h&&Qi(h[1])&&(w=GB(n,h[0]));let x=h?h[1].statusCode:void 0,A=a&&x&&x>=400,k=w.filter((E,T)=>{let{route:D}=E;if(D.lazy)return!0;if(D.loader==null)return!1;if(i)return AN(D,e.loaderData,e.errors);if(mNe(e.loaderData,e.matches[T],E)||c.some(I=>I===E.route.id))return!0;let O=e.matches[T],L=E;return KB(E,Gn({currentUrl:g,currentParams:O.params,nextUrl:v,nextParams:L.params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:A?!1:o||g.pathname+g.search===v.pathname+v.search||g.search!==v.search||aQ(O,L)}))}),R=[];return l.forEach((E,T)=>{if(i||!n.some(F=>F.route.id===E.routeId)||f.has(T))return;let D=pf(m,E.path,p);if(!D){R.push({key:T,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let O=e.fetchers.get(T),L=By(D,E.path),I=!1;d.has(T)?I=!1:u.has(T)?(u.delete(T),I=!0):O&&O.state!=="idle"&&O.data===void 0?I=o:I=KB(L,Gn({currentUrl:g,currentParams:e.matches[e.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:y,actionStatus:x,defaultShouldRevalidate:A?!1:o})),I&&R.push({key:T,routeId:E.routeId,path:E.path,matches:D,match:L,controller:new AbortController})}),[k,R]}function AN(t,e,n){if(t.lazy)return!0;if(!t.loader)return!1;let r=e!=null&&e[t.id]!==void 0,s=n!=null&&n[t.id]!==void 0;return!r&&s?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!r&&!s}function mNe(t,e,n){let r=!e||n.route.id!==e.route.id,s=t[n.route.id]===void 0;return r||s}function aQ(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function KB(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}function YB(t,e,n,r,s){var i;let a;if(t){let u=r[t];Dt(u,"No route found to patch children into: routeId = "+t),u.children||(u.children=[]),a=u.children}else a=n;let o=e.filter(u=>!a.some(f=>lQ(u,f))),c=EC(o,s,[t||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...c)}function lQ(t,e){return"id"in t&&"id"in e&&t.id===e.id?!0:t.index===e.index&&t.path===e.path&&t.caseSensitive===e.caseSensitive?(!t.children||t.children.length===0)&&(!e.children||e.children.length===0)?!0:t.children.every((n,r)=>{var s;return(s=e.children)==null?void 0:s.some(i=>lQ(n,i))}):!1}async function gNe(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let s=n[t.id];Dt(s,"No route found in manifest");let i={};for(let a in r){let c=s[a]!==void 0&&a!=="hasErrorBoundary";fv(!c,'Route "'+s.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!c&&!zDe.has(a)&&(i[a]=r[a])}Object.assign(s,i),Object.assign(s,Gn({},e(s),{lazy:
* React Router v6.30.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function hv(){return hv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hv.apply(this,arguments)}const MA=_.createContext(null),dQ=_.createContext(null),Bd=_.createContext(null),R$=_.createContext(null),Rl=_.createContext({outlet:null,matches:[],isDataRoute:!1}),fQ=_.createContext(null);function ONe(t,e){let{relative:n}=e===void 0?{}:e;Mv()||Dt(!1);let{basename:r,navigator:s}=_.useContext(Bd),{hash:i,pathname:a,search:o}=pQ(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Dc([r,a])),s.createHref({pathname:c,search:o,hash:i})}function Mv(){return _.useContext(R$)!=null}function Ud(){return Mv()||Dt(!1),_.useContext(R$).location}function hQ(t){_.useContext(Bd).static||_.useLayoutEffect(t)}function Lv(){let{isDataRoute:t}=_.useContext(Rl);return t?GNe():MNe()}function MNe(){Mv()||Dt(!1);let t=_.useContext(MA),{basename:e,future:n,navigator:r}=_.useContext(Bd),{matches:s}=_.useContext(Rl),{pathname:i}=Ud(),a=JSON.stringify(NA(s,n.v7_relativeSplatPath)),o=_.useRef(!1);return hQ(()=>{o.current=!0}),_.useCallback(function(u,f){if(f===void 0&&(f={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let l=OA(u,JSON.parse(a),i,f.relative==="path");t==null&&e!=="/"&&(l.pathname=l.pathname==="/"?e:Dc([e,l.pathname])),(f.replace?r.replace:r.push)(l,f.state,f)},[e,r,a,i,t])}const LNe=_.createContext(null);function INe(t){let e=_.useContext(Rl).outlet;return e&&_.createElement(LNe.Provider,{value:t},e)}function yUe(){let{matches:t}=_.useContext(Rl),e=t[t.length-1];return e?e.params:{}}function pQ(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=_.useContext(Bd),{matches:s}=_.useContext(Rl),{pathname:i}=Ud(),a=JSON.stringify(NA(s,r.v7_relativeSplatPath));return _.useMemo(()=>OA(t,JSON.parse(a),i,n==="path"),[t,a,i,n])}function $Ne(t,e,n,r){Mv()||Dt(!1);let{navigator:s,static:i}=_.useContext(Bd),{matches:a}=_.useContext(Rl),o=a[a.length-1],c=o?o.params:{};o&&o.pathname;let u=o?o.pathnameBase:"/";o&&o.route;let f=Ud(),l;l=f;let d=l.pathname||"/",m=d;if(u!=="/"){let y=u.replace(/^\//,"").split("/");m="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=!i&&n&&n.matches&&n.matches.length>0?n.matches:pf(t,{pathname:m});return UNe(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:Dc([u,s.encodeLocation?s.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?u:Dc([u,s.encodeLocation?s.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,n,r)}function FNe(){let t=VNe(),e=n0(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return _.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},e),n?_.createElement("pre",{style:s},n):null,null)}const jNe=_.createElement(FNe,null);class zNe extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?_.createElement(Rl.Provider,{value:this.props.routeContext},_.createElement(fQ.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function BNe(t){let{routeContext:e,match:n,children:r}=t,s=_.useContext(MA);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),_.createElement(Rl.Provider,{value:e},r)}function UNe(t,e,n,r){var s;if(e===void 0&&(
* React Router DOM v6.30.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function r0(){return r0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r0.apply(this,arguments)}function QNe(t,e){if(t==null)return{};var n={},r=Object.keys(t),s,i;for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function ZNe(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function JNe(t,e){return t.button===0&&(!e||e==="_self")&&!ZNe(t)}function PN(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function eOe(t,e){let n=PN(t);return e&&e.forEach((r,s)=>{n.has(s)||e.getAll(s).forEach(i=>{n.append(s,i)})}),n}const tOe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],nOe="6";try{window.__reactRouterVersion=nOe}catch{}function rOe(t,e){return hNe({basename:e==null?void 0:e.basename,future:r0({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:$De({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||sOe(),routes:t,mapRouteProperties:XNe,dataStrategy:e==null?void 0:e.dataStrategy,patchRoutesOnNavigation:e==null?void 0:e.patchRoutesOnNavigation,window:e==null?void 0:e.window}).initialize()}function sOe(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=r0({},e,{errors:iOe(e.errors)})),e}function iOe(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,s]of e)if(s&&s.__type==="RouteErrorResponse")n[r]=new CC(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let i=window[s.__subType];if(typeof i=="function")try{let a=new i(s.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(s.message);i.stack="",n[r]=i}}else n[r]=s;return n}const oOe=_.createContext({isTransitioning:!1}),aOe=_.createContext(new Map),lOe="startTransition",i4=Kw[lOe],cOe="flushSync",o4=Wue[cOe];function uOe(t){i4?i4(t):t()}function Ey(t){o4?o4(t):t()}class dOe{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function fOe(t){let{fallbackElement:e,router:n,future:r}=t,[s,i]=_.useState(n.state),[a,o]=_.useState(),[c,u]=_.useState({isTransitioning:!1}),[f,l]=_.useState(),[d,m]=_.useState(),[p,h]=_.useState(),y=_.useRef(new Map),{v7_startTransition:g}=r||{},v=_.useCallback(E=>{g?uOe(E):E()},[g]),w=_.useCallback((E,T)=>{let{deletedFetchers:D,flushSync:O,viewTransitionOpts:L}=T;E.fetchers.forEach((F,U)=>{F.data!==void 0&&y.current.set(U,F.data)}),D.forEach(F=>y.current.delete(F));let I=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!L||I){O?Ey(()=>i(E)):v(()=>i(E));return}if(O){Ey(()=>{d&&(f&&f.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:L.currentLocation,nextLocation:L.nextLocation})});let F=n.window.document.startViewTransition(()=>{Ey(()=>i(E))});F.finished.finally(()=>{Ey(()=>{l(void 0),m(void 0),o(void 0),u({isTransitioning:!1})})}),Ey(()=>m(F));return}d?(f&&f.resolve(),d.skipTransition(),h({state:E,currentLocation:L.currentLocation,nextLocation:L.nextLocation})):(o(E),u({isTransitioning:!0,flushSync:!1,currentLocation:L.currentLocation,nextLocation:L.nextLocation}))},[n.window,d,f,y,v]);_.useLayoutEffect(()=>n.subscribe(w),[n,w]),_.useEffect(()=>{c.isTransitioning&&!c.flushSync&&l(new dOe)},[c]),_.useEffect(()=>{if(f&&a&&n.window){let E=a,T=f.promise,D=n.window.document.startViewTransition(async()=>{v(()=>i(E)),await T});D.finished.finally(()=>{l(void 0),m(void 0),o(void 0),u({isTransitioning:!1})}),m(D)}},[v,a,f,n.window]),_.useEffect(()=>{f&&a&&s.location.key===a.location.key&&f.resolve()},[f,d,s.location,a]),_.useEffect(()=>{!c.isTransitioning&&p&&(o(p.state),u({isTransit
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ZOe={normalizePrecision:function(e){var n=e.reduce(function(r,s){return Math.max(r.getPrecision(),s.getPrecision())});return e.map(function(r){return r.getPrecision()!==n?r.convertPrecision(n):r})},minimum:function(e){var n=w4(e),r=n[0],s=n.slice(1),i=r;return s.forEach(function(a){i=i.lessThan(a)?i:a}),i},maximum:function(e){var n=w4(e),r=n[0],s=n.slice(1),i=r;return s.forEach(function(a){i=i.greaterThan(a)?i:a}),i}};function PQ(t){return!isNaN(parseInt(t))&&isFinite(t)}function JOe(t){return PQ(t)&&t<=100&&t>=0}function eMe(t){return t.length>0&&t.every(function(e){return e>=0})&&t.some(function(e){return e>0})}function x4(t){return t%2===0}function S4(t){return PQ(t)&&!Number.isInteger(t)}function tMe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=t.toString();if(e.indexOf("e-")>0)return parseInt(e.split("e-")[1]);var n=e.split(".")[1];return n?n.length:0}function Ay(t){return Math.abs(t)%1===.5}function nMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(n,r){var s=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){s.readyState===4&&(s.status>=200&&s.status<400?n(JSON.parse(s.responseText)):r(new Error(s.statusText)))},onerror:function(){r(new Error("Network error"))}});s.open("GET",t,!0),rMe(s,e.headers),s.send()})}function rMe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var n in e)t.setRequestHeader(n,e[n]);return t}function Uy(t){return typeof t>"u"}function TQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".",n={};return Object.entries(t).forEach(function(r){if(vb(r[1])==="object"){var s=TQ(r[1]);Object.entries(s).forEach(function(i){n[r[0]+e+i[0]]=i[1]})}else n[r[0]]=r[1]}),n}function sMe(t){return!!t&&(vb(t)==="object"||typeof t=="function")&&typeof t.then=="function"}function kQ(){var t=function(r,s){var i=function(c){return Math.pow(10,tMe(c))},a=Math.max(i(r),i(s));return Math.round(r*a)*Math.round(s*a)/(a*a)},e={HALF_ODD:function(r){var s=Math.round(r);return Ay(r)&&x4(s)?s-1:s},HALF_EVEN:function(r){var s=Math.round(r);return Ay(r)?x4(s)?s:s-1:s},HALF_UP:function(r){return Math.round(r)},HALF_DOWN:function(r){return Ay(r)?Math.floor(r):Math.round(r)},HALF_TOWARDS_ZERO:function(r){return Ay(r)?Math.sign(r)*Math.floor(Math.abs(r)):Math.round(r)},HALF_AWAY_FROM_ZERO:function(r){return Ay(r)?Math.sign(r)*Math.ceil(Math.abs(r)):Math.round(r)},DOWN:function(r){return Math.floor(r)}};return{add:function(r,s){return r+s},subtract:function(r,s){return r-s},multiply:function(r,s){return S4(r)||S4(s)?t(r,s):r*s},divide:function(r,s){return r/s},modulo:function(r,s){return r%s},round:function(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"HALF_EVEN";return e[s](r)}}}var iMe=kQ();function oMe(t){var e=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(t);return{getMatches:function(){return e!==null?e.slice(1).filter(function(r){return!Uy(r)}):[]},getMinimumFractionDigits:function(){var r=function(i){return i==="."};return Uy(this.getMatches().find(r))?0:this.getMatches()[iMe.add(this.getMatches().findIndex(r),1)].split("").length},getCurrencyDisplay:function(){var r={USD:"code",dollar:"name",$:"symbol"};return r[this.getMatches().find(function(s){return s==="USD"||s==="dollar"||s==="$"})]},getStyle:function(){return Uy(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!Uy(this.getMatches().find(function(r){return r===","}))}}}function aMe(t){var e=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;for(var a in i)s=s.replace("{{".concat(a,"}}"),i[a]);return s},n=function(s,i){return nMe(e(t.endpoint,{from:s,to:i}),{headers:t.headers})};return{getExchangeRate:function(s,i){return(sMe(t.endpoint)?t.endpoint:n(s,i)).then(function(a){return TQ(a)[e(t.propertyPath,{from:s,to:i})]})}}}function o0(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/DC.exports;(function(t,e){(function(){var n,r="4.17.21",s=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",l=1,d=2,m=4,p=1,h=2,y=1,g=2,v=4,w=8,x=16,A=32,k=64,R=128,E=256,T=512,D=30,O="...",L=800,I=16,F=1,U=2,Y=3,V=1/0,H=9007199254740991,ee=17976931348623157e292,re=NaN,X=4294967295,q=X-1,K=X>>>1,Z=[["ary",R],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",T],["partial",A],["partialRight",k],["rearg",E]],ue="[object Arguments]",de="[object Array]",ie="[object AsyncFunction]",be="[object Boolean]",Ae="[object Date]",_e="[object DOMException]",Me="[object Error]",Ne="[object Function]",ye="[object GeneratorFunction]",$e="[object Map]",ut="[object Number]",Qe="[object Null]",vt="[object Object]",Sn="[object Promise]",Yt="[object Proxy]",mn="[object RegExp]",Xt="[object Set]",J="[object String]",fe="[object Symbol]",ge="[object Undefined]",Pe="[object WeakMap]",Oe="[object WeakSet]",xe="[object ArrayBuffer]",Te="[object DataView]",Ye="[object Float32Array]",Rt="[object Float64Array]",bt="[object Int8Array]",Os="[object Int16Array]",Kn="[object Int32Array]",ps="[object Uint8Array]",Ut="[object Uint8ClampedArray]",on="[object Uint16Array]",gn="[object Uint32Array]",Be=/\b__p \+= '';/g,it=/\b(__p \+=) '' \+/g,ot=/(__e\(.*?\)|\b__t\)) \+\n'';/g,St=/&(?:amp|lt|gt|quot|#39);/g,nt=/[&<>"']/g,Ht=RegExp(St.source),Ct=RegExp(nt.source),vn=/<%-([\s\S]+?)%>/g,an=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hr=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(te.source),he=/^\s+/,Ce=/\s/,Le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qe=/\{\n\/\* \[wrapped with (.+)\] \*/,st=/,? & /,Ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Xe=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,mt=/\w*$/,Lt=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,yn=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,Hn=/^(?:0|[1-9]\d*)$/,Jc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ma=/($^)/,Ho=/['\n\r\u2028\u2029\\]/g,Ms="\\ud800-\\udfff",Bv="\\u0300-\\u036f",Wd="\\ufe20-\\ufe2f",Pl="\\u20d0-\\u20ff",Gd=Bv+Wd+Pl,qd="\\u2700-\\u27bf",$t="a-z\\xdf-\\xf6\\xf8-\\xff",Vn="\\xac\\xb1\\xd7\\xf7",eu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Kd="\\u2000-\\u206f",ir=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tl="A-Z\\xc0-\\xd6\\xd8-\\xde",Uv="\\ufe0e\\ufe0f",V_=Vn+eu+Kd+ir,dR="['’]",vte="["+Ms+"]",s2="["+V_+"]",W_="["+Gd+"]",i2="\\d+",yte="["+qd+"]",o2="["+$t+"]",a2="[^"+Ms+V_+i2+qd+$t+Tl+"]",fR="\\ud83c[\\udffb-\\udfff]",bte="(?:"+W_+"|"+fR+")",l2="[^"+Ms+"]",hR="(?:\\ud83c[\\udde6-\\uddff]){2}",pR="[\\ud800-\\udbff][\\udc00-\\udfff]",yp="["+Tl+"]",c2="\\u200d",u2="(?:"+o2+"|"+a2+")",wte="(?:"+yp+"|"+a2+")",d2="(?:"+dR+"(?:d|ll|m|re|s|t|ve))?",f2="(?:"+dR+"(?:D|LL|M|RE|S|T|VE))?",h2=bte+"?",p2="["+Uv+"]?",_te="(?:"+c2+"(?:"+[l2,hR,pR].join("|")+")"+p2+h2+")*",xte="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ste="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",m2=p2+h2+_te,Ete="(?:"+[yte,hR,pR].join("|")+")"+m2,Cte="(?:"+[l2+W_+"?",W_,hR,pR,vte].join("|")+")",Ate=RegExp(dR,"g"),Rte=RegExp(W_,"g"),mR=RegExp(fR+"(?="+fR+")|"+Cte+m2,"g"),Pte=RegExp([yp+"?"+o2+"+"+d2+"(?="+[s2,yp,"$"].join("|")+")",wte+"+"+f2+"(?="+[s2,yp+u2,"$"].join("|")+")",yp+"?"+u2+"+"+d2,yp+"+"+f2,Ste,xte,i2,Ete].join("|"),"g"),Tte=RegExp("["+c2+Ms+Gd+Uv+"]"),kte=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Dte=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","se
/* [wrapped with `+S+`] */
`)}function Yre(b){return yt(b)||rf(b)||!!(F2&&b&&b[F2])}function Ll(b,S){var N=typeof b;return S=S??H,!!S&&(N=="number"||N!="symbol"&&Hn.test(b))&&b>-1&&b%1==0&&b<S}function Is(b,S,N){if(!Yn(N))return!1;var M=typeof S;return(M=="number"?ni(N)&&Ll(S,N.length):M=="string"&&S in N)?Go(N[S],b):!1}function nP(b,S){if(yt(b))return!1;var N=typeof b;return N=="number"||N=="symbol"||N=="boolean"||b==null||Ni(b)?!0:hr.test(b)||!Tn.test(b)||S!=null&&b in En(S)}function Xre(b){var S=typeof b;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?b!=="__proto__":b===null}function rP(b){var S=wx(b),N=W[S];if(typeof N!="function"||!(S in It.prototype))return!1;if(b===N)return!0;var M=JR(N);return!!M&&b===M[0]}function Qre(b){return!!M2&&M2 in b}var Zre=X_?Il:wP;function ty(b){var S=b&&b.constructor,N=typeof S=="function"&&S.prototype||Sp;return b===N}function MF(b){return b===b&&!Yn(b)}function LF(b,S){return function(N){return N==null?!1:N[b]===S&&(S!==n||b in En(N))}}function Jre(b){var S=Ax(b,function(M){return N.size===u&&N.clear(),M}),N=S.cache;return S}function ese(b,S){var N=b[1],M=S[1],j=N|M,G=j<(y|g|R),Q=M==R&&N==w||M==R&&N==E&&b[7].length<=S[8]||M==(R|E)&&S[7].length<=S[8]&&N==w;if(!(G||Q))return b;M&y&&(b[2]=S[2],j|=N&y?0:v);var ne=S[3];if(ne){var le=b[3];b[3]=le?vF(le,ne,S[4]):ne,b[4]=le?ru(b[3],f):S[4]}return ne=S[5],ne&&(le=b[5],b[5]=le?yF(le,ne,S[6]):ne,b[6]=le?ru(b[5],f):S[6]),ne=S[7],ne&&(b[7]=ne),M&R&&(b[8]=b[8]==null?S[8]:ms(b[8],S[8])),b[9]==null&&(b[9]=S[9]),b[0]=S[0],b[1]=j,b}function tse(b){var S=[];if(b!=null)for(var N in En(b))S.push(N);return S}function nse(b){return Z_.call(b)}function IF(b,S,N){return S=Tr(S===n?b.length-1:S,0),function(){for(var M=arguments,j=-1,G=Tr(M.length-S,0),Q=pe(G);++j<G;)Q[j]=M[S+j];j=-1;for(var ne=pe(S+1);++j<S;)ne[j]=M[j];return ne[S]=N(Q),Ti(b,this,ne)}}function $F(b,S){return S.length<2?b:ef(b,mo(S,0,-1))}function rse(b,S){for(var N=b.length,M=ms(S.length,N),j=ti(b);M--;){var G=S[M];b[M]=Ll(G,N)?j[G]:n}return b}function sP(b,S){if(!(S==="constructor"&&typeof b[S]=="function")&&S!="__proto__")return b[S]}var FF=zF(aF),ny=yne||function(b,S){return Jr.setTimeout(b,S)},iP=zF(Are);function jF(b,S,N){var M=S+"";return iP(b,Kre(M,sse(Wre(M),N)))}function zF(b){var S=0,N=0;return function(){var M=xne(),j=I-(M-N);if(N=M,j>0){if(++S>=L)return arguments[0]}else S=0;return b.apply(n,arguments)}}function xx(b,S){var N=-1,M=b.length,j=M-1;for(S=S===n?M:S;++N<S;){var G=BR(N,j),Q=b[G];b[G]=b[N],b[N]=Q}return b.length=S,b}var BF=Jre(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(kn,function(N,M,j,G){S.push(j?G.replace(We,"$1"):M||N)}),S});function $a(b){if(typeof b=="string"||Ni(b))return b;var S=b+"";return S=="0"&&1/b==-1/0?"-0":S}function nf(b){if(b!=null){try{return Q_.call(b)}catch{}try{return b+""}catch{}}return""}function sse(b,S){return uo(Z,function(N){var M="_."+N[0];S&N[1]&&!G_(b,M)&&b.push(M)}),b.sort()}function UF(b){if(b instanceof It)return b.clone();var S=new ho(b.__wrapped__,b.__chain__);return S.__actions__=ti(b.__actions__),S.__index__=b.__index__,S.__values__=b.__values__,S}function ise(b,S,N){(N?Is(b,S,N):S===n)?S=1:S=Tr(_t(S),0);var M=b==null?0:b.length;if(!M||S<1)return[];for(var j=0,G=0,Q=pe(sx(M/S));j<M;)Q[G++]=mo(b,j,j+=S);return Q}function ose(b){for(var S=-1,N=b==null?0:b.length,M=0,j=[];++S<N;){var G=b[S];G&&(j[M++]=G)}return j}function ase(){var b=arguments.length;if(!b)return[];for(var S=pe(b-1),N=arguments[0],M=b;M--;)S[M-1]=arguments[M];return nu(yt(N)?ti(N):[N],es(S,1))}var lse=At(function(b,S){return pr(b)?Xv(b,es(S,1,pr,!0)):[]}),cse=At(function(b,S){var N=go(S);return pr(N)&&(N=n),pr(b)?Xv(b,es(S,1,pr,!0),at(N,2)):[]}),use=At(function(b,S){var N=go(S);return pr(N)&&(N=n),pr(b)?Xv(b,es(S,1,pr,!0),n,N):[]});function dse(b,S,N){var M=b==null?0:b.length;return M?(S=N||S===n?1:_t(S),mo(b,S<0?0:S,M)):[]}function fse(b,S,N){var M=b==null?0:b.length;return M?(S=N||S===n?1:_t(S),S=M-S,mo(b,0,S<0?0:S)):[]}function hse(b,S){return b&&b.length?px(b,at(S,3),!0,!0):[]}function pse(b,S){return b&&b.length?px(b,at(S,3),!0):[]}function mse(b,S,N,
`;b.replace(Fe,function(ct,kt,Ft,Oi,$s,Mi){return Ft||(Ft=Oi),Re+=b.slice(Se,Mi).replace(Ho,Zte),kt&&(ne=!0,Re+=`' +
__e(`+kt+`) +
'`),$s&&(le=!0,Re+=`';
`+$s+`;
__p += '`),Ft&&(Re+=`' +
((__t = (`+Ft+`)) == null ? '' : __t) +
'`),Se=Mi+ct.length,ct}),Re+=`';
`;var lt=cn.call(S,"variable")&&S.variable;if(!lt)Re=`with (obj) {
`+Re+`
}
`;else if(Xe.test(lt))throw new gt(o);Re=(le?Re.replace(Be,""):Re).replace(it,"$1").replace(ot,"$1;"),Re="function("+(lt||"obj")+`) {
`+(lt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(ne?", __e = _.escape":"")+(le?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Re+`return __p
}`;var Et=wj(function(){return en(G,Ze+"return "+Re).apply(n,Q)});if(Et.source=Re,uP(Et))throw Et;return Et}function Eae(b){return rn(b).toLowerCase()}function Cae(b){return rn(b).toUpperCase()}function Aae(b,S,N){if(b=rn(b),b&&(N||S===n))return T2(b);if(!b||!(S=Di(S)))return b;var M=Vo(b),j=Vo(S),G=k2(M,j),Q=D2(M,j)+1;return lu(M,G,Q).join("")}function Rae(b,S,N){if(b=rn(b),b&&(N||S===n))return b.slice(0,O2(b)+1);if(!b||!(S=Di(S)))return b;var M=Vo(b),j=D2(M,Vo(S))+1;return lu(M,0,j).join("")}function Pae(b,S,N){if(b=rn(b),b&&(N||S===n))return b.replace(he,"");if(!b||!(S=Di(S)))return b;var M=Vo(b),j=k2(M,Vo(S));return lu(M,j).join("")}function Tae(b,S){var N=D,M=O;if(Yn(S)){var j="separator"in S?S.separator:j;N="length"in S?_t(S.length):N,M="omission"in S?Di(S.omission):M}b=rn(b);var G=b.length;if(wp(b)){var Q=Vo(b);G=Q.length}if(N>=G)return b;var ne=N-_p(M);if(ne<1)return M;var le=Q?lu(Q,0,ne).join(""):b.slice(0,ne);if(j===n)return le+M;if(Q&&(ne+=le.length-ne),dP(j)){if(b.slice(ne).search(j)){var Se,Ee=le;for(j.global||(j=RR(j.source,rn(mt.exec(j))+"g")),j.lastIndex=0;Se=j.exec(Ee);)var Re=Se.index;le=le.slice(0,Re===n?ne:Re)}}else if(b.indexOf(Di(j),ne)!=ne){var Fe=le.lastIndexOf(j);Fe>-1&&(le=le.slice(0,Fe))}return le+M}function kae(b){return b=rn(b),b&&Ht.test(b)?b.replace(St,ine):b}var Dae=Pp(function(b,S,N){return b+(N?" ":"")+S.toUpperCase()}),pP=_F("toUpperCase");function bj(b,S,N){return b=rn(b),S=N?n:S,S===n?ene(b)?lne(b):Wte(b):b.match(S)||[]}var wj=At(function(b,S){try{return Ti(b,n,S)}catch(N){return uP(N)?N:new gt(N)}}),Nae=Ml(function(b,S){return uo(S,function(N){N=$a(N),Nl(b,N,lP(b[N],b))}),b});function Oae(b){var S=b==null?0:b.length,N=at();return b=S?Wn(b,function(M){if(typeof M[1]!="function")throw new fo(a);return[N(M[0]),M[1]]}):[],At(function(M){for(var j=-1;++j<S;){var G=b[j];if(Ti(G[0],this,M))return Ti(G[1],this,M)}})}function Mae(b){return ire(po(b,l))}function mP(b){return function(){return b}}function Lae(b,S){return b==null||b!==b?S:b}var Iae=SF(),$ae=SF(!0);function si(b){return b}function gP(b){return J2(typeof b=="function"?b:po(b,l))}function Fae(b){return tF(po(b,l))}function jae(b,S){return nF(b,po(S,l))}var zae=At(function(b,S){return function(N){return Qv(N,b,S)}}),Bae=At(function(b,S){return function(N){return Qv(b,N,S)}});function vP(b,S,N){var M=Vr(S),j=dx(S,M);N==null&&!(Yn(S)&&(j.length||!M.length))&&(N=S,S=b,b=this,j=dx(S,Vr(S)));var G=!(Yn(N)&&"chain"in N)||!!N.chain,Q=Il(b);return uo(j,function(ne){var le=S[ne];b[ne]=le,Q&&(b.prototype[ne]=function(){var Se=this.__chain__;if(G||Se){var Ee=b(this.__wrapped__),Re=Ee.__actions__=ti(this.__actions__);return Re.push({func:le,args:arguments,thisArg:b}),Ee.__chain__=Se,Ee}return le.apply(b,nu([this.value()],arguments))})}),b}function Uae(){return Jr._===this&&(Jr._=pne),this}function yP(){}function Hae(b){return b=_t(b),At(function(S){return rF(S,b)})}var Vae=YR(Wn),Wae=YR(E2),Gae=YR(wR);function _j(b){return nP(b)?_R($a(b)):xre(b)}function qae(b){return function(S){return b==null?n:ef(b,S)}}var Kae=CF(),Yae=CF(!0);function bP(){return[]}function wP(){return!1}function Xae(){return{}}function Qae(){return""}function Zae(){return!0}function Jae(b,S){if(b=_t(b),b<1||b>H)return[];var N=X,M=ms(b,X);S=at(S),b-=X;for(var j=ER(M,S);++N<b;)S(N);return j}function ele(b){return yt(b)?Wn(b,$a):Ni(b)?[b]:ti(BF(rn(b)))}function tle(b){var S=++fne;return rn(b)+S}var nle=vx(function(b,S){return b+S},0),rle=XR("ceil"),sle=vx(function(b,S){return b/S},1),ile=XR("floor");function ole(b){return b&&b.length?ux(b,si,LR):n}function ale(b,S){return b&&b.length?ux(b,at(S,2),LR):n}function lle(b){return R2(b,si)}function cle(b,S){return R2(b,at(S,2))}function ule(b){return b&&b.length?ux(b,si,jR):n}function dle(b,S){return b&&b.length?ux(b,at(S,2),jR):n}var fle=vx(function(b,S){return b*S},1),hle=XR("round"),ple=vx(function(b,S){return b-S},0);function mle(b){return b&&b.length?SR(b,si):0}function gle(b,S){return b&&b.length?SR(b,at(S,2)):0}return W.after=Fie,W.ary=ZF,W.assign=Coe,W.assignIn=fj,W.assignInWith=kx,W.assignWith=Aoe,W.at=Roe,W.before=JF,W.bi
To pick up a draggable item, press the space bar.
While dragging, use the arrow keys to move the item.
Press space again to drop the item in its new position, or press escape to cancel.
`},IMe={onDragStart(t){let{active:e}=t;return"Picked up draggable item "+e.id+"."},onDragOver(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was moved over droppable area "+n.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(t){let{active:e,over:n}=t;return n?"Draggable item "+e.id+" was dropped over droppable area "+n.id:"Draggable item "+e.id+" was dropped."},onDragCancel(t){let{active:e}=t;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function $Me(t){let{announcements:e=IMe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:s=LMe}=t;const{announce:i,announcement:a}=NMe(),o=O_("DndLiveRegion"),[c,u]=_.useState(!1);if(_.useEffect(()=>{u(!0)},[]),OMe(_.useMemo(()=>({onDragStart(l){let{active:d}=l;i(e.onDragStart({active:d}))},onDragMove(l){let{active:d,over:m}=l;e.onDragMove&&i(e.onDragMove({active:d,over:m}))},onDragOver(l){let{active:d,over:m}=l;i(e.onDragOver({active:d,over:m}))},onDragEnd(l){let{active:d,over:m}=l;i(e.onDragEnd({active:d,over:m}))},onDragCancel(l){let{active:d,over:m}=l;i(e.onDragCancel({active:d,over:m}))}}),[i,e])),!c)return null;const f=se.createElement(se.Fragment,null,se.createElement(kMe,{id:r,value:s.draggable}),se.createElement(DMe,{id:o,announcement:a}));return n?ks.createPortal(f,n):f}var jr;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(jr||(jr={}));function $C(){}function OUe(t,e){return _.useMemo(()=>({sensor:t,options:e??{}}),[t,e])}function MUe(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Pa=Object.freeze({x:0,y:0});function FMe(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function jMe(t,e){const n=IC(t);if(!n)return"0 0";const r={x:(n.x-e.left)/e.width*100,y:(n.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function zMe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return n-r}function BMe(t,e){let{data:{value:n}}=t,{data:{value:r}}=e;return r-n}function UMe(t,e){if(!t||t.length===0)return null;const[n]=t;return n[e]}function C4(t,e,n){return e===void 0&&(e=t.left),n===void 0&&(n=t.top),{x:e+t.width*.5,y:n+t.height*.5}}const LUe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=C4(e,e.left,e.top),i=[];for(const a of r){const{id:o}=a,c=n.get(o);if(c){const u=FMe(C4(c),s);i.push({id:o,data:{droppableContainer:a,value:u}})}}return i.sort(zMe)};function HMe(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),s=Math.min(e.left+e.width,t.left+t.width),i=Math.min(e.top+e.height,t.top+t.height),a=s-r,o=i-n;if(r<s&&n<i){const c=e.width*e.height,u=t.width*t.height,f=a*o,l=f/(c+u-f);return Number(l.toFixed(4))}return 0}const VMe=t=>{let{collisionRect:e,droppableRects:n,droppableContainers:r}=t;const s=[];for(const i of r){const{id:a}=i,o=n.get(a);if(o){const c=HMe(o,e);c>0&&s.push({id:a,data:{droppableContainer:i,value:c}})}}return s.sort(BMe)};function WMe(t,e,n){return{...t,scaleX:e&&n?e.width/n.width:1,scaleY:e&&n?e.height/n.height:1}}function FQ(t,e){return t&&e?{x:t.left-e.left,y:t.top-e.top}:Pa}function GMe(t){return function(n){for(var r=arguments.length,s=new Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return s.reduce((a,o)=>({...a,top:a.top+t*o.y,bottom:a.bottom+t*o.y,left:a.left+t*o.x,right:a.right+t*o.x}),{...n})}}const qMe=GMe(1);function jQ(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function KMe(t,e,n){const r=jQ(e);if(!r)return t;const{scaleX:s,scaleY:i,x:a,y:o}=r,c=t.left-a-(1-s)*parseFloat(n),u=t.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=s?t.width/s:t.width,l=i?t.height/i:t.height;return{width:f,height:l,top:u,right:c+f,bottom:u+l,left:c
`);return e.join("")}}function Gy(t,e){try{const{protocol:n}=e?new URL(t,e):new URL(t);return n==="http:"||n==="https:"}catch{return!1}}function Ei(t){t.preventDefault()}function PZ(t){console.log("Deprecated API usage: "+t)}let Y4;class TZ{static toDateObject(e){if(!e||typeof e!="string")return null;Y4||(Y4=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const n=Y4.exec(e);if(!n)return null;const r=parseInt(n[1],10);let s=parseInt(n[2],10);s=s>=1&&s<=12?s-1:0;let i=parseInt(n[3],10);i=i>=1&&i<=31?i:1;let a=parseInt(n[4],10);a=a>=0&&a<=23?a:0;let o=parseInt(n[5],10);o=o>=0&&o<=59?o:0;let c=parseInt(n[6],10);c=c>=0&&c<=59?c:0;const u=n[7]||"Z";let f=parseInt(n[8],10);f=f>=0&&f<=23?f:0;let l=parseInt(n[9],10)||0;return l=l>=0&&l<=59?l:0,u==="-"?(a+=f,o+=l):u==="+"&&(a-=f,o-=l),new Date(Date.UTC(r,s,i,a,o,c))}}function $$e(t,{scale:e=1,rotation:n=0}){const{width:r,height:s}=t.attributes.style,i=[0,0,parseInt(r),parseInt(s)];return new L_({viewBox:i,scale:e,rotation:n})}function V$(t){if(t.startsWith("#")){const e=parseInt(t.slice(1),16);return[(e&16711680)>>16,(e&65280)>>8,e&255]}return t.startsWith("rgb(")?t.slice(4,-1).split(",").map(e=>parseInt(e)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):(Tt(`Not a valid color format: "${t}"`),[0,0,0])}function F$e(t){const e=document.createElement("span");e.style.visibility="hidden",document.body.append(e);for(const n of t.keys()){e.style.color=n;const r=window.getComputedStyle(e).color;t.set(n,V$(r))}e.remove()}function Qn(t){const{a:e,b:n,c:r,d:s,e:i,f:a}=t.getTransform();return[e,n,r,s,i,a]}function Hl(t){const{a:e,b:n,c:r,d:s,e:i,f:a}=t.getTransform().invertSelf();return[e,n,r,s,i,a]}function ep(t,e,n=!1,r=!0){if(e instanceof L_){const{pageWidth:s,pageHeight:i}=e.rawDims,{style:a}=t,o=yi.isCSSRoundSupported,c=`var(--scale-factor) * ${s}px`,u=`var(--scale-factor) * ${i}px`,f=o?`round(${c}, 1px)`:`calc(${c})`,l=o?`round(${u}, 1px)`:`calc(${u})`;!n||e.rotation%180===0?(a.width=f,a.height=l):(a.width=l,a.height=f)}r&&t.setAttribute("data-main-rotation",e.rotation)}var If,$f,zi,Ff,ZC,kZ,Ys,DZ,NZ,ZS,OZ,HN;const JC=class JC{constructor(e){z(this,Ys);z(this,If,null);z(this,$f,null);z(this,zi);z(this,Ff,null);$(this,zi,e)}render(){const e=$(this,If,document.createElement("div"));e.className="editToolbar",e.setAttribute("role","toolbar");const n=C(this,zi)._uiManager._signal;e.addEventListener("contextmenu",Ei,{signal:n}),e.addEventListener("pointerdown",B(JC,ZC,kZ),{signal:n});const r=$(this,Ff,document.createElement("div"));r.className="buttons",e.append(r);const s=C(this,zi).toolbarPosition;if(s){const{style:i}=e,a=C(this,zi)._uiManager.direction==="ltr"?1-s[0]:s[0];i.insetInlineEnd=`${100*a}%`,i.top=`calc(${100*s[1]}% + var(--editor-toolbar-vert-offset))`}return B(this,Ys,OZ).call(this),e}hide(){var e;C(this,If).classList.add("hidden"),(e=C(this,$f))==null||e.hideDropdown()}show(){C(this,If).classList.remove("hidden")}addAltTextButton(e){B(this,Ys,ZS).call(this,e),C(this,Ff).prepend(e,C(this,Ys,HN))}addColorPicker(e){$(this,$f,e);const n=e.renderButton();B(this,Ys,ZS).call(this,n),C(this,Ff).prepend(n,C(this,Ys,HN))}remove(){var e;C(this,If).remove(),(e=C(this,$f))==null||e.destroy(),$(this,$f,null)}};If=new WeakMap,$f=new WeakMap,zi=new WeakMap,Ff=new WeakMap,ZC=new WeakSet,kZ=function(e){e.stopPropagation()},Ys=new WeakSet,DZ=function(e){C(this,zi)._focusEventsAllowed=!1,e.preventDefault(),e.stopPropagation()},NZ=function(e){C(this,zi)._focusEventsAllowed=!0,e.preventDefault(),e.stopPropagation()},ZS=function(e){const n=C(this,zi)._uiManager._signal;e.addEventListener("focusin",B(this,Ys,DZ).bind(this),{capture:!0,signal:n}),e.addEventListener("focusout",B(this,Ys,NZ).bind(this),{capture:!0,signal:n}),e.addEventListener("contextmenu",Ei,{signal:n})},OZ=function(){const e=document.createElement("button");e.className="delete",e.tabIndex=0,e.setAttribute("data-l10n-id",`pdfjs-editor-remove-${C(this,zi).editorType}-button`),B(this,Ys,ZS).call(this,e),e.addEventListener("click",n=>{C(this,zi)._uiMa
`))||null;u&&this.data.comb&&(u=u.replaceAll(/\s+/g,""));const f={userValue:o,formattedValue:u,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(r=document.createElement("textarea"),r.textContent=u??o,this.data.doNotScroll&&(r.style.overflowY="hidden")):(r=document.createElement("input"),r.type="text",r.setAttribute("value",u??o),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),np.add(r),r.setAttribute("data-element-id",n),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=F_,this._setRequired(r,this.data.required),c&&(r.maxLength=c),r.addEventListener("input",d=>{e.setValue(n,{value:d.target.value}),this.setPropertyOnSiblings(r,"value",d.target.value,"value"),f.formattedValue=null}),r.addEventListener("resetform",d=>{const m=this.data.defaultFieldValue??"";r.value=f.userValue=m,f.formattedValue=null});let l=d=>{const{formattedValue:m}=f;m!=null&&(d.target.value=m),d.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",m=>{var h;if(f.focused)return;const{target:p}=m;f.userValue&&(p.value=f.userValue),f.lastCommittedValue=p.value,f.commitKey=1,(h=this.data.actions)!=null&&h.Focus||(f.focused=!0)}),r.addEventListener("updatefromsandbox",m=>{this.showElementAndHideCanvas(m.target);const p={value(h){f.userValue=h.detail.value??"",e.setValue(n,{value:f.userValue.toString()}),h.target.value=f.userValue},formattedValue(h){const{formattedValue:y}=h.detail;f.formattedValue=y,y!=null&&h.target!==document.activeElement&&(h.target.value=y),e.setValue(n,{formattedValue:y})},selRange(h){h.target.setSelectionRange(...h.detail.selRange)},charLimit:h=>{var w;const{charLimit:y}=h.detail,{target:g}=h;if(y===0){g.removeAttribute("maxLength");return}g.setAttribute("maxLength",y);let v=f.userValue;!v||v.length<=y||(v=v.slice(0,y),g.value=f.userValue=v,e.setValue(n,{value:v}),(w=this.linkService.eventBus)==null||w.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:v,willCommit:!0,commitKey:1,selStart:g.selectionStart,selEnd:g.selectionEnd}}))}};this._dispatchEventFromSandbox(p,m)}),r.addEventListener("keydown",m=>{var y;f.commitKey=1;let p=-1;if(m.key==="Escape"?p=0:m.key==="Enter"&&!this.data.multiLine?p=2:m.key==="Tab"&&(f.commitKey=3),p===-1)return;const{value:h}=m.target;f.lastCommittedValue!==h&&(f.lastCommittedValue=h,f.userValue=h,(y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:h,willCommit:!0,commitKey:p,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}}))});const d=l;l=null,r.addEventListener("blur",m=>{var h,y;if(!f.focused||!m.relatedTarget)return;(h=this.data.actions)!=null&&h.Blur||(f.focused=!1);const{value:p}=m.target;f.userValue=p,f.lastCommittedValue!==p&&((y=this.linkService.eventBus)==null||y.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:p,willCommit:!0,commitKey:f.commitKey,selStart:m.target.selectionStart,selEnd:m.target.selectionEnd}})),d(m)}),(i=this.data.actions)!=null&&i.Keystroke&&r.addEventListener("beforeinput",m=>{var A;f.lastCommittedValue=null;const{data:p,target:h}=m,{value:y,selectionStart:g,selectionEnd:v}=h;let w=g,x=v;switch(m.inputType){case"deleteWordBackward":{const k=y.substring(0,g).match(/\w*[^\w]*$/);k&&(w-=k[0].length);break}case"deleteWordForward":{const k=y.substring(g).match(/^[^\w]*\w*/);k&&(x+=k[0].length);break}case"deleteContentBackward":g===v&&(w-=1);break;case"deleteContentForward":g===v&&(x+=1);break}m.preventDefault(),(A=this.linkService.eventBus)==null||A.dispatch("dispatcheventinsandbox",{source:this,detail:{id:n,name:"Keystroke",value:y,change:p||"",willCommit:!1,selStart:w,selEnd:x}})}),this._setEventListeners(r,f,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],m=>m.target.value)}if(l&&r.addEventListener("blur",l),this.data.comb){const m=(this.data.rect[2]-this.data.rect[0])/c;r.classList.add("comb"),r.style.letterSpacing=`
`))n.push({name:"span",value:i,attributes:s});return r},AJ=function(e){e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||(e.key==="Enter"||e.key==="Escape"&&C(this,pc))&&B(this,_n,aE).call(this)},RJ=function(){if(C(this,mc)!==null)return;const{page:{view:e},viewport:{rawDims:{pageWidth:n,pageHeight:r,pageX:s,pageY:i}}}=C(this,aw);let a=!!C(this,Ng),o=a?C(this,Ng):C(this,lw);for(const p of C(this,ow))if(!o||et.intersect(p.data.rect,o)!==null){o=p.data.rect,a=!0;break}const c=et.normalizeRect([o[0],e[3]-o[1]+e[1],o[2],e[3]-o[3]+e[1]]),f=a?o[2]-o[0]+5:0,l=c[0]+f,d=c[1];$(this,mc,[100*(l-s)/n,100*(d-i)/r]);const{style:m}=C(this,cr);m.left=`${C(this,mc)[0]}%`,m.top=`${C(this,mc)[1]}%`},aE=function(){$(this,pc,!C(this,pc)),C(this,pc)?(B(this,_n,lE).call(this),C(this,cr).addEventListener("click",C(this,Dg)),C(this,cr).addEventListener("keydown",C(this,kg))):(B(this,_n,wO).call(this),C(this,cr).removeEventListener("click",C(this,Dg)),C(this,cr).removeEventListener("keydown",C(this,kg)))},lE=function(){C(this,oa)||this.render(),this.isVisible?C(this,pc)&&C(this,cr).classList.add("focused"):(B(this,_n,RJ).call(this),C(this,cr).hidden=!1,C(this,cr).style.zIndex=parseInt(C(this,cr).style.zIndex)+1e3)},wO=function(){C(this,cr).classList.remove("focused"),!(C(this,pc)||!this.isVisible)&&(C(this,cr).hidden=!0,C(this,cr).style.zIndex=parseInt(C(this,cr).style.zIndex)-1e3)};class PJ extends wr{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!0}),this.textContent=e.data.textContent,this.textPosition=e.data.textPosition,this.annotationEditorType=Vt.FREETEXT}render(){if(this.container.classList.add("freeTextAnnotation"),this.textContent){const e=document.createElement("div");e.classList.add("annotationTextContent"),e.setAttribute("role","comment");for(const n of this.textContent){const r=document.createElement("span");r.textContent=n,e.append(r)}this.container.append(e)}return!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this._editOnDoubleClick(),this.container}get _isEditable(){return this.data.hasOwnCanvas}}var uw;class iFe extends wr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});z(this,uw,null)}render(){this.container.classList.add("lineAnnotation");const n=this.data,{width:r,height:s}=Oc(n.rect),i=this.svgFactory.create(r,s,!0),a=$(this,uw,this.svgFactory.createElement("svg:line"));return a.setAttribute("x1",n.rect[2]-n.lineCoordinates[0]),a.setAttribute("y1",n.rect[3]-n.lineCoordinates[1]),a.setAttribute("x2",n.rect[2]-n.lineCoordinates[2]),a.setAttribute("y2",n.rect[3]-n.lineCoordinates[3]),a.setAttribute("stroke-width",n.borderStyle.width||1),a.setAttribute("stroke","transparent"),a.setAttribute("fill","transparent"),i.append(a),this.container.append(i),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return C(this,uw)}addHighlightArea(){this.container.classList.add("highlightArea")}}uw=new WeakMap;var dw;class oFe extends wr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});z(this,dw,null)}render(){this.container.classList.add("squareAnnotation");const n=this.data,{width:r,height:s}=Oc(n.rect),i=this.svgFactory.create(r,s,!0),a=n.borderStyle.width,o=$(this,dw,this.svgFactory.createElement("svg:rect"));return o.setAttribute("x",a/2),o.setAttribute("y",a/2),o.setAttribute("width",r-a),o.setAttribute("height",s-a),o.setAttribute("stroke-width",a||1),o.setAttribute("stroke","transparent"),o.setAttribute("fill","transparent"),i.append(o),this.container.append(i),!n.popupRef&&this.hasPopupData&&this._createPopup(),this.container}getElementsToTriggerPopup(){return C(this,dw)}addHighlightArea(){this.container.classList.add("highlightArea")}}dw=new WeakMap;var fw;class aFe extends wr{constructor(n){super(n,{isRenderable:!0,ignoreBorder:!0});z(this,fw,null)}render(){this.container.classList.add("circleAnnotation");const n=this.data,{width:r,height:s}=Oc(n.rect),i=this.svgFactory.create(r,s,!0),a=n.borderStyle.width,o=$(this,fw,this.svgFactory.createElement("svg:ellipse"));return o.setAttribute("cx",r/2),o.setAttribute("cy",s/2),o.setAttribute("rx",r/2-a/2),o.setAt
`);if(!i)return;const a=window.getSelection();if(!a.rangeCount)return;this.editorDiv.normalize(),a.deleteFromDocument();const o=a.getRangeAt(0);if(!i.includes(`
`)){o.insertNode(document.createTextNode(i)),this.editorDiv.normalize(),a.collapseToStart();return}const{startContainer:c,startOffset:u}=o,f=[],l=[];if(c.nodeType===Node.TEXT_NODE){const g=c.parentElement;if(l.push(c.nodeValue.slice(u).replaceAll(CS,"")),g!==this.editorDiv){let v=f;for(const w of this.editorDiv.childNodes){if(w===g){v=l;continue}v.push(B(h=Nn,Ic,uE).call(h,w))}}f.push(c.nodeValue.slice(0,u).replaceAll(CS,""))}else if(c===this.editorDiv){let g=f,v=0;for(const w of this.editorDiv.childNodes)v++===u&&(g=l),g.push(B(y=Nn,Ic,uE).call(y,w))}$(this,Hi,`${f.join(`
`)}${i}${l.join(`
`)}`),B(this,Ar,dE).call(this);const d=new Range;let m=f.reduce((g,v)=>g+v.length,0);for(const{firstChild:g}of this.editorDiv.childNodes)if(g.nodeType===Node.TEXT_NODE){const v=g.nodeValue.length;if(m<=v){d.setStart(g,m),d.setEnd(g,m);break}m-=v}a.removeAllRanges(),a.addRange(d)}get contentDiv(){return this.editorDiv}static deserialize(n,r,s){var o;let i=null;if(n instanceof PJ){const{data:{defaultAppearanceData:{fontSize:c,fontColor:u},rect:f,rotation:l,id:d},textContent:m,textPosition:p,parent:{page:{pageNumber:h}}}=n;if(!m||m.length===0)return null;i=n={annotationType:Vt.FREETEXT,color:Array.from(u),fontSize:c,value:m.join(`
`),position:p,pageIndex:h-1,rect:f.slice(0),rotation:l,id:d,deleted:!1}}const a=super.deserialize(n,r,s);return $(a,Vi,n.fontSize),$(a,aa,et.makeHexColor(...n.color)),$(a,Hi,B(o=Nn,Ic,EO).call(o,n.value)),a.annotationElementId=n.id||null,$(a,Mg,i),a}serialize(n=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const r=Nn._internalPadding*this.parentScale,s=this.getRect(r,r),i=hn._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:C(this,aa)),a={annotationType:Vt.FREETEXT,color:i,fontSize:C(this,Vi),value:B(this,Ar,IJ).call(this),pageIndex:this.pageIndex,rect:s,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return n?a:this.annotationElementId&&!B(this,Ar,$J).call(this,a)?null:(a.id=this.annotationElementId,a)}renderAnnotationElement(n){const r=super.renderAnnotationElement(n);if(this.deleted)return r;const{style:s}=r;s.fontSize=`calc(${C(this,Vi)}px * var(--scale-factor))`,s.color=C(this,aa),r.replaceChildren();for(const a of C(this,Hi).split(`
`)){const o=document.createElement("div");o.append(a?document.createTextNode(a):document.createElement("br")),r.append(o)}const i=Nn._internalPadding*this.parentScale;return n.updateEdited({rect:this.getRect(i,i),popupContent:C(this,Hi)}),r}resetAnnotationElement(n){super.resetAnnotationElement(n),n.resetEdited()}};yw=new WeakMap,bw=new WeakMap,ww=new WeakMap,_w=new WeakMap,xw=new WeakMap,aa=new WeakMap,Hi=new WeakMap,Sw=new WeakMap,Vi=new WeakMap,Mg=new WeakMap,Ar=new WeakSet,OJ=function(n){const r=i=>{this.editorDiv.style.fontSize=`calc(${i}px * var(--scale-factor))`,this.translate(0,-(i-C(this,Vi))*this.parentScale),$(this,Vi,i),B(this,Ar,cE).call(this)},s=C(this,Vi);this.addCommands({cmd:r.bind(this,n),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ht.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})},MJ=function(n){const r=i=>{$(this,aa,this.editorDiv.style.color=i)},s=C(this,aa);this.addCommands({cmd:r.bind(this,n),undo:r.bind(this,s),post:this._uiManager.updateUI.bind(this._uiManager,this),mustExec:!0,type:ht.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})},LJ=function(){var r;const n=[];this.editorDiv.normalize();for(const s of this.editorDiv.childNodes)n.push(B(r=Nn,Ic,uE).call(r,s));return n.join(`
`)},cE=function(){const[n,r]=this.parentDimensions;let s;if(this.isAttachedToDOM)s=this.div.getBoundingClientRect();else{const{currentLayer:i,div:a}=this,o=a.style.display,c=a.classList.contains("hidden");a.classList.remove("hidden"),a.style.display="hidden",i.div.append(this.div),s=a.getBoundingClientRect(),a.remove(),a.style.display=o,a.classList.toggle("hidden",c)}this.rotation%180===this.parentRotation%180?(this.width=s.width/n,this.height=s.height/r):(this.width=s.height/n,this.height=s.width/r),this.fixAndSetPosition()},Ic=new WeakSet,uE=function(n){return(n.nodeType===Node.TEXT_NODE?n.nodeValue:n.innerText).replaceAll(CS,"")},dE=function(){if(this.editorDiv.replaceChildren(),!!C(this,Hi))for(const n of C(this,Hi).split(`
`)){const r=document.createElement("div");r.append(n?document.createTextNode(n):document.createElement("br")),this.editorDiv.append(r)}},IJ=function(){return C(this,Hi).replaceAll(" "," ")},EO=function(n){return n.replaceAll(" "," ")},$J=function(n){const{value:r,fontSize:s,color:i,pageIndex:a}=C(this,Mg);return this._hasBeenMoved||n.value!==r||n.fontSize!==s||n.color.some((o,c)=>o!==i[c])||n.pageIndex!==a},z(Nn,Ic),He(Nn,"_freeTextDefaultContent",""),He(Nn,"_internalPadding",0),He(Nn,"_defaultColor",null),He(Nn,"_defaultFontSize",10),He(Nn,"_type","freetext"),He(Nn,"_editorType",Vt.FREETEXT);let SO=Nn;var Ew,Ju,la,Xs,FJ,fE,jJ,zJ,AO;class CO{constructor(e,n=0,r=0,s=!0){z(this,Xs);z(this,Ew);z(this,Ju,[]);z(this,la,[]);let i=1/0,a=-1/0,o=1/0,c=-1/0;const u=10**-4;for(const{x:y,y:g,width:v,height:w}of e){const x=Math.floor((y-n)/u)*u,A=Math.ceil((y+v+n)/u)*u,k=Math.floor((g-n)/u)*u,R=Math.ceil((g+w+n)/u)*u,E=[x,k,R,!0],T=[A,k,R,!1];C(this,Ju).push(E,T),i=Math.min(i,x),a=Math.max(a,A),o=Math.min(o,k),c=Math.max(c,R)}const f=a-i+2*r,l=c-o+2*r,d=i-r,m=o-r,p=C(this,Ju).at(s?-1:-2),h=[p[0],p[2]];for(const y of C(this,Ju)){const[g,v,w]=y;y[0]=(g-d)/f,y[1]=(v-m)/l,y[2]=(w-m)/l}$(this,Ew,{x:d,y:m,width:f,height:l,lastPoint:h})}getOutlines(){C(this,Ju).sort((n,r)=>n[0]-r[0]||n[1]-r[1]||n[2]-r[2]);const e=[];for(const n of C(this,Ju))n[3]?(e.push(...B(this,Xs,AO).call(this,n)),B(this,Xs,jJ).call(this,n)):(B(this,Xs,zJ).call(this,n),e.push(...B(this,Xs,AO).call(this,n)));return B(this,Xs,FJ).call(this,e)}}Ew=new WeakMap,Ju=new WeakMap,la=new WeakMap,Xs=new WeakSet,FJ=function(e){const n=[],r=new Set;for(const a of e){const[o,c,u]=a;n.push([o,c,a],[o,u,a])}n.sort((a,o)=>a[1]-o[1]||a[0]-o[0]);for(let a=0,o=n.length;a<o;a+=2){const c=n[a][2],u=n[a+1][2];c.push(u),u.push(c),r.add(c),r.add(u)}const s=[];let i;for(;r.size>0;){const a=r.values().next().value;let[o,c,u,f,l]=a;r.delete(a);let d=o,m=c;for(i=[o,u],s.push(i);;){let p;if(r.has(f))p=f;else if(r.has(l))p=l;else break;r.delete(p),[o,c,u,f,l]=p,d!==o&&(i.push(d,m,o,m===c?c:u),d=o),m=m===c?u:c}i.push(d,m)}return new gFe(s,C(this,Ew))},fE=function(e){const n=C(this,la);let r=0,s=n.length-1;for(;r<=s;){const i=r+s>>1,a=n[i][0];if(a===e)return i;a<e?r=i+1:s=i-1}return s+1},jJ=function([,e,n]){const r=B(this,Xs,fE).call(this,e);C(this,la).splice(r,0,[e,n])},zJ=function([,e,n]){const r=B(this,Xs,fE).call(this,e);for(let s=r;s<C(this,la).length;s++){const[i,a]=C(this,la)[s];if(i!==e)break;if(i===e&&a===n){C(this,la).splice(s,1);return}}for(let s=r-1;s>=0;s--){const[i,a]=C(this,la)[s];if(i!==e)break;if(i===e&&a===n){C(this,la).splice(s,1);return}}},AO=function(e){const[n,r,s]=e,i=[[n,r,s]],a=B(this,Xs,fE).call(this,s);for(let o=0;o<a;o++){const[c,u]=C(this,la)[o];for(let f=0,l=i.length;f<l;f++){const[,d,m]=i[f];if(!(u<=d||m<=c)){if(d>=c){if(m>u)i[f][1]=u;else{if(l===1)return[];i.splice(f,1),f--,l--}continue}i[f][2]=c,m>u&&i.push([n,u,m])}}}return i};class BJ{toSVGPath(){throw new Error("Abstract method `toSVGPath` must be implemented.")}get box(){throw new Error("Abstract getter `box` must be implemented.")}serialize(e,n){throw new Error("Abstract method `serialize` must be implemented.")}get free(){return this instanceof PO}}var Cw,Lg;class gFe extends BJ{constructor(n,r){super();z(this,Cw);z(this,Lg);$(this,Lg,n),$(this,Cw,r)}toSVGPath(){const n=[];for(const r of C(this,Lg)){let[s,i]=r;n.push(`M${s} ${i}`);for(let a=2;a<r.length;a+=2){const o=r[a],c=r[a+1];o===s?(n.push(`V${c}`),i=c):c===i&&(n.push(`H${o}`),s=o)}n.push("Z")}return n.join(" ")}serialize([n,r,s,i],a){const o=[],c=s-n,u=i-r;for(const f of C(this,Lg)){const l=new Array(f.length);for(let d=0;d<f.length;d+=2)l[d]=n+f[d]*c,l[d+1]=i-f[d+1]*u;o.push(l)}return o}get box(){return C(this,Cw)}}Cw=new WeakMap,Lg=new WeakMap;var el,vc,Ig,$g,tl,zt,hh,ph,Aw,Rw,Fg,jg,ed,Pw,h1,p1,Tw,RO;const Yl=class Yl{constructor({x:e,y:n},r,s,i,a,o=0){z(this,Tw);z(this,el);z(this,vc,[]);z(this,Ig);z(this,$g);z(this,tl,[]);z(this,zt,new Float64Array(18));z(this,hh);z(this,ph);z(this,Aw);z(this,Rw);z(this,Fg);z(this,jg);z(this,ed,[]);$(this,el,r),$(this,
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H3e(t,e){if(t){if(typeof t=="string")return kU(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kU(t,e)}}function kU(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function V3e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,a,o;try{for(n=n.call(t);!(s=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));s=!0);}catch(c){i=!0,o=c}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function W3e(t){if(Array.isArray(t))return t}var DU=(0,j3e.getSecurePrefix)(),G3e=function(){var e={};if(typeof window<"u")for(var n=new F3e.default,r=0,s=Object.entries(localStorage);r<s.length;r++){var i=B3e(s[r],2),a=i[0],o=i[1];if(a.startsWith(DU)){var c=a.replace(DU,"")[0],u=a.replace(/[.][bjns][.]/,"."),f=n.decrypt(o),l=null;if(f!=null)switch(c){case"b":l=f==="true";break;case"j":try{l=JSON.parse(f)}catch{l=null}break;case"n":try{l=Number(f)}catch{l=null}break;default:l=f}e[u]=l}}return e},q3e=G3e;sR.default=q3e;Object.defineProperty(Y$,"__esModule",{value:!0});var Ao=Y$.default=void 0,K3e=jee(z_),Y3e=jee(sR),X3e=ml;function jee(t){return t&&t.__esModule?t:{default:t}}function Q3e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Z3e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J3e(t,e,n){return e&&Z3e(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function eze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qC(t){"@babel/helpers - typeof";return qC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qC(t)}var _E=(0,X3e.getSecurePrefix)(),tze=function(e){return qC(e)==="object"?"j":typeof e=="boolean"?"b":typeof e=="number"?"n":"s"},NU=function(e,n){var r=tze(n);return _E+"".concat(r,".")+e},nze=function(){function t(){Q3e(this,t),eze(this,"_localStorageItems",{}),this._localStorageItems=(0,Y3e.default)()}return J3e(t,[{key:"setItem",value:function(n,r){if(r==null)this.removeItem(n);else{var s=qC(r)==="object"?JSON.stringify(r):r+"",i=NU(n,r),a=_E+n;n!=null&&(this._localStorageItems[a]=r);var o=new K3e.default;localStorage.setItem(i,o.encrypt(s))}}},{key:"getItem",value:function(n){var r,s=_E+n;return(r=this._localStorageItems[s])!==null&&r!==void 0?r:null}},{key:"removeItem",value:function(n){var r=_E+n,s=this._localStorageItems[r],i=NU(n,s);this._localStorageItems[r]!==void 0&&delete this._localStorageItems[r],localStorage.removeItem(i)}},{key:"clear",value:function(){this._localStorageItems={},localStorage.clear()}}]),t}(),rze=new nze,sze=rze;Ao=Y$.default=sze;const ize={theme:"system",setTheme:()=>null},oze=_.createContext(ize);function aze({children:t,defaultTheme:e="system",storageKey:n="vite-ui-theme",...r}){const[s,i]=_.useState(()=>Ao.getItem(n)||e);_.useEffect(()=>{const o=window.document.documentElement;if(o.classList.remove("light","dark"),s==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";o.classList.add(c);return}o.classList.add(s)},[s]);const a={theme:s,setTheme:o=>{Ao.setItem(n,o),i(o)}};return P.jsx(oze.Provider,{...r,value:a,children:t})}const lze=_.createContext(null),zee=({children:t})=>{const[e,n]=_.useState(null),[r,s]=_.useState(!1),i=_.useCallback(u=>{n(u),s(!0)},[s,n]),a=()=>{var u;(u=e==null?void 0:e.onConfirm)==null||u.call(e),s(!1)},o=()=>{var u;(u=e==null?void 0:e.onCancel)==null||u.call(e),s(!1)},c=_.useMemo(()=>({show:i}),[i]);return P.jsxs(lze.Provider,{value:c,ch
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&EBe[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},$U=Symbol("internals");function Dy(t){return t&&String(t).trim().toLowerCase()}function SE(t){return t===!1||t==null?t:ve.isArray(t)?t.map(SE):String(t)}function ABe(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const RBe=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function bk(t,e,n,r,s){if(ve.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!ve.isString(e)){if(ve.isString(r))return e.indexOf(r)!==-1;if(ve.isRegExp(r))return r.test(e)}}function PBe(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function TBe(t,e){const n=ve.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,a){return this[r].call(this,e,s,i,a)},configurable:!0})})}let Ci=class{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(o,c,u){const f=Dy(c);if(!f)throw new Error("header name must be a non-empty string");const l=ve.findKey(s,f);(!l||s[l]===void 0||u===!0||u===void 0&&s[l]!==!1)&&(s[l||c]=SE(o))}const a=(o,c)=>ve.forEach(o,(u,f)=>i(u,f,c));if(ve.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(ve.isString(e)&&(e=e.trim())&&!RBe(e))a(CBe(e),n);else if(ve.isHeaders(e))for(const[o,c]of e.entries())i(c,o,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=Dy(e),e){const r=ve.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return ABe(s);if(ve.isFunction(n))return n.call(this,s,r);if(ve.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Dy(e),e){const r=ve.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||bk(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(a){if(a=Dy(a),a){const o=ve.findKey(r,a);o&&(!n||bk(r,r[o],o,n))&&(delete r[o],s=!0)}}return ve.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||bk(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return ve.forEach(this,(s,i)=>{const a=ve.findKey(r,i);if(a){n[a]=SE(s),delete n[i];return}const o=e?PBe(i):String(i).trim();o!==i&&delete n[i],n[o]=SE(s),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return ve.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[$U]=this[$U]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=Dy(a);r[o]||(TBe(s,a),r[o]=!0)}return ve.isArray(e)?e.forEach(i):i(e),this}};Ci.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Ci.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});ve.freezeMethods(Ci);function wk(t,e){const n=this||H_,r=e||n,s=Ci.from(r.headers);let i=r.data;return ve.forEach(t,function(o){i=o.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function tte(t){return!!(t&&t.__CANCEL__)}function zv(t,e,n){wt.call(this,t??"canceled",wt.ERR_CANCELED,e,n),this.name="CanceledError"}ve.inherits(zv,wt,{__CANCEL__:!0});function nte(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new wt("Request failed with status code "+n.status,[wt.ERR_BAD_REQUEST,wt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kBe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function DBe(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[i];a||(a=u),n[s]=c,r[s]=u;let l=i,d=0;for(;l!==s;)d+=n[l++],l=l%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-a<e)return;const m=f&&u-f;return m?Math.round(d*1e3/m):void 0}}function NBe(t,e){let n=0,r=1e3/e,s,i;const a=(u,f=Date.now())=>{n=f,s=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),l=f-n;l>=r?a(u,f):(s=u,i||(i=setTimeout(()=>{i=null,a(s)},r-l)))},()=>s&&a(s)]}const KC=(t,e,n=3)=>{let r=0;const s=DBe(50,250);return NBe(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,c=a-r,u=s(c),f=a<=o;r=a;const l={loaded:a,total:o,progress:o?a/o:void 0,bytes:c,rate:u||void 0,estimated:u&&o&&f?(o-a)/u:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(l)},n)},FU=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},jU=t=>(...e)=>ve.asap(()=>t(...e)),OBe=Ts.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,Ts.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(Ts.origin),Ts.navigator&&/(msie|trident)/i.test(Ts.navigator.userAgent)):()=>!0,MBe=Ts.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const a=[t+"="+encodeURIComponent(e)];ve.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ve.isString(r)&&a.push("path="+r),ve.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function LBe(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function IBe(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function rte(t,e,n){let r=!LBe(e);return t&&(r||n==!1)?IBe(t,e):e}const zU=t=>t instanceof Ci?{...t}:t;function sp(t,e){e=e||{};const n={};function r(u,f,l,d){return ve.isPlainObject(u)&&ve.isPlainObject(f)?ve.merge.call({caseless:d},u,f):ve.isPlainObject(f)?ve.merge({},f):ve.isArray(f)?f.slice():f}function s(u,f,l,d){if(ve.isUndefined(f)){if(!ve.isUndefined(u))return r(void 0,u,l,d)}else return r(u,f,l,d)}function i(u,f){if(!ve.isUndefined(f))return r(void 0,f)}function a(u,f){if(ve.isUndefined(f)){if(!ve.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function o(u,f,l){if(l in e)return r(u,f);if(l in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPa
`+i.map(HU).join(`
`):" "+HU(i[0]):"as no adapter specified";throw new wt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:rM};function _k(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zv(null,t)}function VU(t){return _k(t),t.headers=Ci.from(t.headers),t.data=wk.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ate.getAdapter(t.adapter||H_.adapter)(t).then(function(r){return _k(t),r.data=wk.call(t,t.transformResponse,r),r.headers=Ci.from(r.headers),r},function(r){return tte(r)||(_k(t),r&&r.response&&(r.response.data=wk.call(t,t.transformResponse,r.response),r.response.headers=Ci.from(r.response.headers))),Promise.reject(r)})}const lte="1.8.4",uR={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{uR[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const WU={};uR.transitional=function(e,n,r){function s(i,a){return"[Axios v"+lte+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,o)=>{if(e===!1)throw new wt(s(a," has been removed"+(n?" in "+n:"")),wt.ERR_DEPRECATED);return n&&!WU[a]&&(WU[a]=!0,console.warn(s(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,a,o):!0}};uR.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function YBe(t,e,n){if(typeof t!="object")throw new wt("options must be an object",wt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let s=r.length;for(;s-- >0;){const i=r[s],a=e[i];if(a){const o=t[i],c=o===void 0||a(o,i,t);if(c!==!0)throw new wt("option "+i+" must be "+c,wt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wt("Unknown option "+i,wt.ERR_BAD_OPTION)}}const EE={assertOptions:YBe,validators:uR},za=EE.validators;let Mh=class{constructor(e){this.defaults=e,this.interceptors={request:new IU,response:new IU}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const i=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=sp(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:i}=n;r!==void 0&&EE.assertOptions(r,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1),s!=null&&(ve.isFunction(s)?n.paramsSerializer={serialize:s}:EE.assertOptions(s,{encode:za.function,serialize:za.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),EE.assertOptions(n,{baseUrl:za.spelling("baseURL"),withXsrfToken:za.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&ve.merge(i.common,i[n.method]);i&&ve.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=Ci.concat(a,i);const o=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let f,l=0,d;if(!c){const p=[VU.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),d=p.length,f=Promise.resolve(n);l<d;)f=f.then(p[l++],p[l++]);return f}d=o.length;let m=n;for(l=0;l<d;){const p=o[l++],h=o[l++];try{m=p(m)}catch(y){h.call(this,y);break}}try{f=VU.call(this,m)}catch(p){return Promise.reject(p)}for(l=0,d=u.length;l<d;)f=f.then(u[l++],u[l++]);return f}getUri(e){e=sp(this.defaults,e);const n=rte(e.baseURL,e.url,e.allowAbsoluteUrls);return Zee(n,e.params,e.paramsSerializer)}};ve.forEach(["delete","get","head","options"],function(e){Mh.prototype[e]=function(n,r){return this.request(sp(r||{},{method:e,url:n,data:(r||{}).data}))}});ve.forEach(["post","put","patch"],function(e){function n(r){return function(i,a,o){return this.request(sp(o||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Mh.prototype[e]=n(),Mh.prototype[e+"Form"]=n(!0)});let XBe=class cte{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(s=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](s);r._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{r.subscribe(o),i=o}).then(s);return a.cancel=function(){r.unsubscribe(i)},a},e(function(i,a,o){r.reason||(r.reason=new zv(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new cte(function(s){e=s}),cancel:e}}};function QBe(t){return function(n){return t.apply(null,n)}}function ZBe(t){return ve.isObject(t)&&t.isAxiosError===!0}const sM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHe
If you continue, you will lose the changes.`,confirm_text:"Continue",cancel_text:"Cancel"}},main_menu:{home:"Home",settings:"Settings",dealers:"Dealers",catalog:"Catalog",quotes:"Quotes",orders:"Orders",search_placeholder:"Type here for search quotes and articles",user:{user_menu:"User menu",my_account:"My account",profile:"Profile",settings:"Settings",support:"Support",logout:"Logout"},logout_dialog:{title:"Confirm",description:"Are you sure you want to log out?",confirm_label:"Log out",cancel_label:"Cancel"}},login_page:{title:"Partner intranet",description:"Enter your email address and password to login",email_label:"Email",email_placeholder:"myemail@sample.com",password_label:"Password",forgotten_password:"Forgot your password?",become_dealer:"Do you want to become a Uecko partner?",contact_us:"Contact us",login:"Log in"},dashboard:{welcome:"Welcome"},catalog:{list:{title:"Catalog of articles",columns:{description:"Description",points:"Points",retail_price:"Retail price",quantity:"quantity"}}},quotes:{list:{title:"Quotes",subtitle:"",tabs_title:"Status",tabs:{all:"All",draft:"Draft",ready:"Ready",delivered:"Delivered",accepted:"Accepted",rejected:"Rejected",archived:"Archived"},columns:{date:"Date",date_sent:"Sent to Uecko",reference:"Reference",status:"Status",customer_reference:"Customer Ref.",customer_information:"Customer",total_price:"Imp. total",actions:{edit:"Edit quote",sent_to:"Send to Uecko"}},resume:{title:"Quote",download_quote:"Download quote",tabs:{resume:"Resume",preview:"Preview"},quote_information:"Quote Information",customer_information:"Customer Information",payment_information:"Payment Information",price_information:"Quote totals"}},create:{title:"New quote",tabs:{general:"General data",items:"Quote items",preview:"Quote preview",documents:"Documents",history:"History"},form_groups:{general:{title:"General Data",desc:"General data and quote customer"},status:{title:"Status",desc:"Quote status"},items:{title:"Quote Items",desc:"Quote detail lines. Use the catalog to make it easier to fill in the content."},documents:{title:"Attached Documents",desc:"Attach documents such as photos, drawings, sketches, etc. to your quotation."},history:{title:"History",desc:"Quote history"}},edit:{title:"Quote"}},edit:{title:"Quote",buttons:{save_quote:"Save quote"}},duplicate_action:{toast_success:"Quote duplicated"},downloading_dialog:{title:"Downloading quote",description:"Please wait while your quotation is generated and downloaded in PDF format...",progress:{label:"Download is in {{status}}",status_in_progress:"in progress",status_stopped:"stopped",value_label:"Elapsed time in seconds {{elapsed}}"},cancel_button:"Cancel the download",toast_success:"Quote downloaded"},catalog_picker_dialog:{title:"Select catalog items",description:"To complete your quote, you can add items from the catalog.",toast_article_added:"Catalog item added:"},blocks_picker_dialog:{title:"Select a text block",description:"To complete your quote, you can default text blocks.",toast_article_added:"Text block added:"},quote_status_editor:{trigger_button:"Change quote status",title:"Change quote status",status:{draft:{title:"Draft",description:"The quote is in the initial stages of creation."},ready:{title:"Ready",description:"The quote is completed and ready to be delivered to the customer."},delivered:{title:"Delivered",description:"The quote has been sent to the client and a response is awaited."},accepted:{title:"Accepted",description:"The customer has approved the quote."},rejected:{title:"Rejected",description:"The customer has not accepted the quotation."},archived:{title:"Archived",description:"The quote is archived."}},submit_button:"Change status",toast_status_changed:"Quote status changed to: {{newStatus}}"},status:{draft:"Draft",ready:"Ready",delivered:"Delivered",accepted:"Accepted",rejected:"Rejected",archived:"Archived"},form_fields:{date:{label:"Date",desc:"Quote's date",placeholder:""},reference:{label:"Reference",desc:"Quote reference",placeholder:""},status:{label:"Status",desc:"Quote status",placeholder:""},lang_code:{lab
Street and number
zip code and city or state...`},payment_method:{label:"Payment method",placeholder:"",desc:"Method of payment for this quote"},notes:{label:"Notes",placeholder:"",desc:"Quote's notes"},validity:{label:"Validity time",placeholder:"",desc:"Quote's validity time"},subtotal_price:{label:"Subtotal",placeholder:"",desc:"Quote subtotal"},discount:{label:"Discount (%)",placeholder:"",desc:"Percentage discount"},discount_value:{label:"Discount ({{value}}%)",placeholder:"",desc:"Percentage discount"},discount_price:{label:"Discount price",placeholder:"",desc:"Percentage discount price"},before_tax_price:{label:"Before tax price",placeholder:"",desc:"Before tax price"},tax:{label:"Tax (%)",placeholder:"",desc:"Percentage Tax"},tax_value:{label:"Tax ({{value}}%)",placeholder:"",desc:"Percentage Tax"},tax_price:{label:"Tax price",placeholder:"",desc:"Percentage tax price"},total_price:{label:"Total price",placeholder:"",desc:"Quote total price"},items:{quantity:{label:"Quantity",placeholder:"",desc:""},description:{label:"Description",placeholder:"",desc:""},unit_price:{label:"Unit price",placeholder:"",desc:"Item unit price"},subtotal_price:{label:"Subtotal",placeholder:"",desc:""},discount:{label:"Dto (%)",placeholder:"",desc:"Percentage discount"},total_price:{label:"Total price",placeholder:"",desc:"Total price with percentage discount"}}}},settings:{edit:{title:"Settings",subtitle:"",tabs:{profile:"Profile settings",quotes:"Quote settings",legal:"Legal settings"}},form_fields:{image:{label:"Logotype",placeholder:"",desc:""},contact_information:{label:"Your contact information",placeholder:"",desc:"Your contact information as a dealer that will appear on the quotes given to your customers."},default_tax:{label:"Default tax (%)",placeholder:"",desc:"Default tax rate for your quotes"},default_legal_terms:{label:"Legal terms",placeholder:"",desc:"Legal information to be included at the end of your quotes"},default_payment_method:{label:"Payment method",placeholder:"",desc:"Default payment method to be used for new quotes"},default_notes:{label:"Notes",placeholder:"",desc:"Default notes to be used for new quotes"},default_quote_validity:{label:"Quote validity",placeholder:"",desc:"Default validity time to be used for new quotes"}}}},A4e={translation:C4e},R4e={common:{loading:"Cargando...",required:"obligatorio",cancel:"Cancelar",no:"No",yes:"Sí",save:"Guardar",save_close:"Guardar y Cerrar",accept:"Aceptar",discard:"Descartar",hide:"Ocultar",back:"Volver",upload:"Cargar",continue:"Continuar",close:"Cerrar",more:"More",add:"Añadir",sort_asc:"Asc",sort_asc_description:"En order ascendente. Click para ordenar descendentemente.",sort_desc:"Desc",sort_desc_description:"En orden descendente. Click para ordenar ascendentemente.",sort_none_description:"Sin orden. Click para ordenar ascendentemente.",rows_selected:"{{count}} fila(s) seleccionadas.",rows_selected_of_total:"{{count}} de {{total}} fila(s) seleccionadas.",rows_per_page:"Filas por página",num_page_of_total:"Página {{count}} de {{total}}",go_to_first_page:"Ir a la primera página",go_to_prev_page:"Ir a la página anterior",go_to_next_page:"Ir a la página siguiente",go_to_last_page:"Ir a la última página",error:"Error",actions:"Acciones",open_menu:"Abrir el menú",duplicate_row:"Duplicar",duplicate_selected_rows:"Duplicar",duplicate_selected_rows_tooltip:"Duplica las fila(s) seleccionadas(s)",append_empty_row:"Añadir fila",append_empty_row_tooltip:"Añadir una fila vacía",append_article:"Añadir artículo",append_article_tooltip:"Elegir un artículo del catálogo y añadirlo",append_block:"Añadir bloque de texto",append_block_tooltip:"Elegir un bloque de texto y añadirlo",move_row:"Mover fila",remove_row:"Eliminar",remove_selected_rows:"Eliminar",remove_selected_rows_tooltip:"Elimina las fila(s) seleccionadas(s)",reset_selected_rows:"Quitar selection",reset_selected_rows_tooltip:"Dejar de seleccionar la(s) fila(s)",insert_row_above:"Insertar fila encima",insert_row_below:"Insertar fila debajo",pick_date:"Elige una fecha",required_field:"Este campo es obligatorio",unsaved_
Si continúa, perderá los cambios.`,confirm_text:"Continuar",cancel_text:"No continuar"}},main_menu:{home:"Inicio",settings:"Ajustes",dealers:"Distribuidores",catalog:"Catálogo",quotes:"Cotizaciones",orders:"Pedidos",search_placeholder:"Buscar productos, cotizaciones, etc...",user:{user_menu:"Menú del usuario",my_account:"Mi cuenta",profile:"Perfil",settings:"Ajustes",support:"Soporte",logout:"Salir"},logout_dialog:{title:"Salir de la cuenta",description:"¿Desea salir de su cuenta?",confirm_label:"Salir",cancel_label:"Cancelar"}},login_page:{title:"Presupuestador para distribuidores",description:"Introduzca su dirección de correo electrónico y contraseña para acceder",email_label:"Email",email_placeholder:"micorreo@ejemplo.com",password_label:"Contraseña",forgotten_password:"¿Has olvidado tu contraseña?",become_dealer:"¿Quieres ser distribuidor de Uecko?",contact_us:"Contacta con nosotros",login:"Entrar"},dashboard:{welcome:"Bienvenido"},catalog:{list:{title:"Catálogo de artículos",columns:{description:"Descripción",points:"Puntos",retail_price:"PVP",quantity:"Cantidad"}}},quotes:{list:{title:"Cotizaciones",subtitle:"",tabs_title:"Estados",tabs:{all:"Todas",draft:"Borradores",ready:"Preparados",delivered:"Entregado",accepted:"Aceptados",rejected:"Rechazados",archived:"Archivados"},columns:{date:"Fecha",date_sent:"Enviado a Uecko",reference:"Referencia",status:"Estado",customer_reference:"Ref. cliente",customer_information:"Cliente",total_price:"Imp. total",actions:{edit:"Editar",sent_to:"Enviar a Uecko"}},resume:{title:"Cotización",download_quote:"Descargar",tabs:{resume:"Resumen",preview:"Previsualización"},quote_information:"Información",customer_information:"Cliente",payment_information:"Pago",price_information:"Importes"}},create:{title:"Nueva cotización",tabs:{general:"Datos generales",items:"Contenido",preview:"Vista previa",documents:"Documentos",history:"Historial"},form_groups:{general:{title:"Datos generales",desc:"Datos generales y cliente al que va la cotización"},status:{title:"Estado",desc:"Estado de la cotización"},items:{title:"Contenido de la cotización",desc:"Líneas de detalle de la cotización. Ayúdese del catálogo para rellenar más fácilmente el contenido."},documents:{title:"Documentos",desc:"Añada adjuntar con su cotización documentos como fotos, planos, croquis, etc."},history:{title:"Historial",desc:"Historial de la cotización"}},edit:{title:"Cotización"}},edit:{title:"Cotización",buttons:{save_quote:"Guardar cotización"}},duplicate_action:{toast_success:"Cotización duplicada"},downloading_dialog:{title:"Descargando cotización",description:"Espere mientras se genera la cotización y se descarga en formato PDF...",progress:{label:"La descarga está {{status}}",status_in_progress:"en marcha",status_stopped:"parada",value_label:"Elapsed time in seconds {{elapsed}}"},cancel_button:"Cancelar la descarga",toast_success:"Cotización descargada"},catalog_picker_dialog:{title:"Seleccionar artículos del catálogo",description:"Para rellenar su cotización, puede añadir artículos del catálogo.",toast_article_added:"Artículo del catálogo añadido:"},blocks_picker_dialog:{title:"Selecctionar bloques de texto",description:"Para ayudar a rellenar la cotización, puede añadir bloques de texto predefinidos de esta lista.",toast_article_added:"Bloque de texto añadido:"},quote_sent_to_editor:{trigger_button:"Enviar a Uecko",title:"Enviar la cotización a Uecko",description:"¿Desea enviar esta cotización a Uecko? Esta acción no se puede deshacer.",submit_button:"Enviar",toast_status_changed:"Cotización enviada a Uecko"},quote_status_editor:{trigger_button:"Cambiar el estado",title:"Cambiar el estado de la cotización",status:{draft:{title:"Borrador",description:"La cotización está en fase inicial de creación."},ready:{title:"Preparado",description:"La cotización está completo y listo para ser entregado al cliente."},delivered:{title:"Entregado",description:"La cotización ha sido enviado al cliente y se espera su respuesta."},accepted:{title:"Aceptado",description:"
Calle y número
Código postal y ciudad...`},payment_method:{label:"Forma de pago",placeholder:"placeholder",desc:"Forma de pago que se utilizará en esta cotización"},notes:{label:"Notas",placeholder:"",desc:"Notas a incluir en la cotización"},validity:{label:"Validez de la cotización",placeholder:"",desc:"Validez de la cotización"},subtotal_price:{label:"Importe neto",placeholder:"",desc:""},discount:{label:"Descuento (%)",placeholder:"",desc:"Porcentaje de descuento"},discount_value:{label:"Descuento ({{value}}%)",placeholder:"",desc:"Porcentaje de descuento"},discount_price:{label:"Imp. descuento",placeholder:"",desc:"Importe del descuento"},before_tax_price:{label:"Base imponible",placeholder:"",desc:""},tax:{label:"IVA (%)",placeholder:"",desc:"Porcentaje de IVA"},tax_value:{label:"IVA ({{value}}%)",placeholder:"",desc:"Porcentaje de IVA"},tax_price:{label:"Imp. IVA",placeholder:"",desc:"Importe del IVA"},total_price:{label:"Total price",placeholder:"",desc:"Quote total price"},items:{quantity:{label:"Cantidad",placeholder:"",desc:""},description:{label:"Descripción",placeholder:"",desc:""},unit_price:{label:"Imp. unitario",placeholder:"",desc:"Importe unitario del artículo"},subtotal_price:{label:"Subtotal",placeholder:"",desc:""},discount:{label:"Dto (%)",placeholder:"",desc:"Porcentaje de descuento"},total_price:{label:"Imp. total",placeholder:"",desc:"Importe total con el descuento ya aplicado"}}}},settings:{edit:{title:"Ajustes",subtitle:"",tabs:{profile:"Ajustes de perfil",quotes:"Ajustes legales",legal:"Ajustes para cotizaciones"}},form_fields:{logo:{label:"Logotipo",placeholder:"",desc:"Este logotipo aparecerá en las propuestas exportadas en PDF",requirements:"Se permiten ficheros JPG o PNG. Las dimensiones del logotipo deben ser 200x100 píxeles o proporcionales.",upload:"Subir logotipo",invalid_format:"Sólo se permiten ficheros JPG o PNG",invalid_dimensions:"Las dimensiones del logotipo deben ser 200x100 píxeles o proporcionales."},contact_information:{label:"Información de contacto",placeholder:"",desc:"Esta información de contacto aparecerá en las cotizaciones que entregue a sus clientes."},default_tax:{label:"IVA por defecto (%)",placeholder:"",desc:"Porcentaje de IVA por defecto en las cotizaciones"},default_legal_terms:{label:"Cláusulas legales",placeholder:"",desc:"Texto de texto legal que desee incluir en todas las cotizaciones nuevas"},default_payment_method:{label:"Forma de pago",placeholder:"",desc:"Texto para la forma de pago que se utilizará en las cotizaciones nuevas"},default_notes:{label:"Notas",placeholder:"",desc:"Notas a incluir en todas las cotizaciones nuevas"},default_quote_validity:{label:"Validez por defecto",placeholder:"",desc:"Texto para indicar el tiempo de validez de la cotización"}}},support:{modal:{title:"Enviar una incidencia",subtitle:"Utiliza este formulario para informar sobre cualquier problema que hayas encontrado mientras usabas la aplicación. Nuestro equipo de desarrollo revisará tu incidencia y tratará de resolverla."},form_fields:{}}},P4e={translation:R4e};hs.use(gte).use(s$e).init({detection:{order:["navigator"]},debug:!1,fallbackLng:"es",interpolation:{escapeValue:!1},resources:{ca:E4e,en:A4e,es:P4e}});function T4e(){const t=new lde({defaultOptions:{queries:{retry:!1,staleTime:1e4}}});return P.jsx(i$e,{i18n:hs,children:P.jsx(hde,{client:t,children:P.jsx(hMe,{dataSource:i4e("https://presupuestos.uecko.com:13001/api/v1"),children:P.jsx(Gue,{authActions:s4e("https://presupuestos.uecko.com:13001/api/v1"),children:P.jsxs(aze,{defaultTheme:"light",storageKey:"vite-ui-theme",children:[P.jsx(LDe,{delayDuration:0,children:P.jsx(zee,{children:P.jsx(_.Suspense,{fallback:P.jsx(xs,{}),children:P.jsx(Sze,{})})})}),P.jsx(IX,{}),P.jsx(Qje,{}),!1]})})})})})}xk.createRoot(document.getElementById("uecko")).render(P.jsx(se.StrictMode,{children:P.jsx(T4e,{})}));export{jRe as $,aK as A,no as B,_fe as C,i0 as D,QD as E,ZD as F,oUe as G,BTe as H,aUe as I,dr as J,UTe as K,DUe as L,NC as M,WOe as N,VTe as O,PPe as P,yb as Q,Zl as R,pTe as S,dL as T,n_ as U,RQ as V,LW as W,IW as