@quintara.ai/ui 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,1575 @@
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("styled-components"),n=require("iconoir-react");const i=[320,768,980,1280,1440],o=["xs","sm","md","lg","xl"],a={maxw:"max-width",minw:"min-width",maxh:"max-height",minh:"min-height",size:"font-size",order:"order",weight:"font-weight",family:"font-family",decoration:"text-decoration",justify:"justify-content",items:"align-items",wrap:"flex-wrap",content:"align-content",direction:"flex-direction",align:"text-align",bg:"background-color",flexalign:["align-items","align-content","justify-content"],shrink:"flex-shrink",grow:"flex-grow",basis:"flex-basis",pv:["padding-top","padding-bottom"],ph:["padding-left","padding-right"],mv:["margin-top","margin-bottom"],mh:["margin-left","margin-right"],wsvg:["width","height","min-width","min-height"],dimentions:["width","height","min-width","min-height"],$height:["height","max-height"],radius:"border-radius",spacing:"letter-spacing",pl:"padding-left",pr:"padding-right",ml:"margin-left",mr:"margin-right",pt:"padding-top",pb:"padding-bottom",mt:"margin-top",mb:"margin-bottom",ttrans:"text-transform",cols:"grid-template-columns",acols:"grid-auto-columns",rows:"grid-template-rows",arows:"grid-auto-rows",colstart:"grid-column-start",colend:"grid-column-end",rowstart:"grid-row-start",rowend:"grid-row-end",col:"grid-column",row:"grid-row",ratio:"aspect-ratio",events:"pointer-events"},s={around:"space-around",between:"space-between",start:"flex-start",startSnap:"start",end:"flex-end",primary:"var(--db-primary)",secondary:"var(--db-secondary)",white:"var(--db-white)",black:"var(--db-black)",light:"var(--db-light)",info:"var(--db-info)",success:"var(--db-success)",warning:"var(--db-warning)",danger:"var(--db-danger)",upper:"uppercase",lower:"lowercase"},l={alias:a,values:s,BREAKPOINTS:i,BREAKPOINTS_PREFIX:o},c={curpRgx:/^([A-Z][AEIOUX][A-Z]{2}\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])[HM](?:AS|B[CS]|C[CLMSH]|D[FG]|G[TR]|HG|JC|M[CNS]|N[ETL]|OC|PL|Q[TR]|S[PLR]|T[CSL]|VZ|YN|ZS)[B-DF-HJ-NP-TV-Z]{3}[A-Z\d])(\d)$/,emailRgx:/^[a-zA-Z0-9_\-.]+@(?:[a-zA-Z0-9]+\.)+[A-Za-z]+$/,specialChars:/[°"'#=?¡`<>|\\´{}¿.,\-¨[];:_`^~¬]/g,onlyLetterNumbers:/^[a-zA-Z0-9]_-#\|/g,onlyNumbers:/[^0-9]_-#\|/g,onlyPhone:/[^0-9]/g,onlySlug:/[°"'!$%&/)(?¡][+*¿#=?¡`<>|´{}¿.,¨[];:_`^~¬]/g,onlyLetters:/[^a-zA-ZáéíóúÁÉÍÓÚäëïöüÄËÏÖÜàèìòùÀÈÌÒÙâêîôûÂÊÎÔÛñÑçÇ\s]/g};const u=["align-content","align-self","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","image-orientation","image-rendering","image-resolution","inline-size","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","margin-block","margin-inline","max-height","max-width","min-height","min-width","mix-blend-mode","object-fit","object-position","opacity","order","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","padding-block","padding-inline","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","quotes","resize","right","row-gap","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","shape-image-threshold","shape-margin","shape-outside","tab-size","table-layout","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","white-space","width","will-change","word-break","word-spacing","word-wrap","writing-mode","backdrop-filter","z-index"],d=["key","ref","dangerouslySetInnerHTML","style","children","className","htmlFor","id"],f=[320,768,1024,1360,1540],p=["xs","sm","md","lg","xl"];const h=new class{constructor(e){const{breakpoints:t=[],breakpointsPrefix:r=[],supportCSSProps:n=[],reservedProps:i=[],alias:o={},values:a={}}=e;this.BREAKPOINTS=t||f||[],this.CSS_PROPS=[...u,...n],this.BREAKPOINTS_PREFIX=r||p||[],this.REACT_RESERVED_PROPS=[...d,...i],this.ALIAS=o,this.VALUES=a,this.hydrate=this.hydrate.bind(this),this.hexToRGB=this.hexToRGB.bind(this),this.toKebabCase=this.toKebabCase.bind(this),this.hydrateObject=this.hydrateObject.bind(this),this.mapProperties=this.mapProperties.bind(this),this.mapDynamicProps=this.mapDynamicProps.bind(this),this.breakpointsOrder=this.breakpointsOrder.bind(this),this.addResponsiveSupport=this.addResponsiveSupport.bind(this)}cleanDollarProps(e){return e.map(([e,t])=>(e.startsWith("$")&&(e=e.substring(1)),[e,t]))}toKebabCase(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase().replace(/^-/,"")}hexToRGB(e,t){e=e.replace(/#/g,"");const r=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return t?`rgba(${r}, ${n}, ${i}, ${t})`:`rgb(${r}, ${n}, ${i})`}breakpointsOrder(e){const t=[],r={};for(let e=0;e<this.BREAKPOINTS_PREFIX.length;e++)r[this.BREAKPOINTS_PREFIX[e]]=e;for(let n=0;n<e.length;n++){const i=e[n],o=null===i?.breakpoint?-1:r[i.breakpoint];t.push({index:n,value:o})}return t.sort((e,t)=>e.value-t.value),t.map(t=>e[t.index])}mapProperties(e){const t=[],r=this.VALUES,n=this.cleanDollarProps(e);for(let i=0;i<e.length;i++){const e=n[i],o=e[0],a=e[1],s=o.substring(0,2),l=this.BREAKPOINTS_PREFIX.includes(s)?s:null,c=this.BREAKPOINTS_PREFIX.includes(s)?o.substring(2):o,u="number"==typeof a?`${a}px`:r[a]||a;this.REACT_RESERVED_PROPS.includes(c)||t.push({breakpoint:l,property:c,value:u})}return this.breakpointsOrder(t)}hydrateObject(e){const t={},r=this.ALIAS,n=Object.entries(e);return this.mapProperties(n).forEach(({breakpoint:e,property:n,value:i})=>{const o=toKebabCase(n),a=r[o]||o,s=a.replace(/-([a-z])/g,(e,t)=>t.toUpperCase());if(this.CSS_PROPS.includes(a))if(e){const r=t[s]||{};r[e]=i,t[s]=r}else t[s]=i}),t}hydrate(e){let t="";const r=this.ALIAS,n=Object.entries(e);return this.mapProperties(n).forEach(({breakpoint:e,property:n,value:i})=>{const o=this.toKebabCase(n),a=r[o]||o,s=Array.isArray(a)?[...a]:[a];t+=s.map(t=>{if(this.CSS_PROPS.includes(t)){if(!e)return`${t}: ${i};`;if(e){return`@media screen and (min-width: ${this.BREAKPOINTS[this.BREAKPOINTS_PREFIX.indexOf(e)]}px) {\n ${t}: ${i};\n }`}}}).join(" ")}),t}addResponsiveSupport(e){return""}mapDynamicProps(e){return""}}({alias:a,values:s,breakpoints:i,breakpointsPrefix:o,supportCSSProps:["backdrop-filter"]}),g=()=>"undefined"!=typeof window,v=e=>e.toString().normalize("NFKD").toLowerCase().trim().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-"),b=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),m=e=>{if("undefined"==typeof window)return"";const t=e.startsWith("--")?e:`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t).trim()},x=r.div`
2
+ width: 100%;
3
+ max-width: 100%;
4
+ margin-left: auto;
5
+ margin-right: auto;
6
+ display: block;
7
+ ${e=>h.hydrate(e)}
8
+ `;var y=t.memo(({children:t,smMaxw:r,mdMaxw:n,lgMaxw:i,...o})=>e.jsx(x,{$smMaxw:r||"90%",$mdMaxw:n||"80%",$lgMaxw:i||"1300px",...o,children:t}));const w=r.div`
9
+ display: flex;
10
+ align-items: start;
11
+ align-content: center;
12
+ justify-content: center;
13
+ overflow-x: hidden;
14
+ z-index: 99999;
15
+
16
+ padding-top: 150px;
17
+ padding-bottom: 50px;
18
+ padding-left: 20px;
19
+ padding-right: 20px;
20
+
21
+ position: fixed;
22
+ top: 0;
23
+ left: 0;
24
+ width: 100%;
25
+ height: 100%;
26
+ background-color: rgb(from var(--db-white) r g b / 95%);
27
+ transition: opacity 100ms ease;
28
+
29
+ opacity: ${({$show:e})=>e?1:0};
30
+ pointer-events: ${({$show:e})=>e?"all":"none"};
31
+ ${e=>h.hydrate(e)}
32
+ `,$=r.div`
33
+ display: block;
34
+ border-radius: 5px;
35
+ min-height: 100px;
36
+ z-index: 9999999;
37
+ background-color: var(--db-white);
38
+ color: var(--db-black);
39
+ box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.2);
40
+ ${e=>h.hydrate(e)}
41
+ `,_=r.div`
42
+ position: relative;
43
+ display: block;
44
+ padding: 40px 5% 0;
45
+ ${e=>h.hydrate(e)}
46
+ `,j=r.div`
47
+ position: relative;
48
+ display: block;
49
+ padding: 0;
50
+ ${e=>h.hydrate(e)}
51
+ `,k=r.div`
52
+ position: relative;
53
+ display: block;
54
+ padding: 40px 5%;
55
+ ${e=>h.hydrate(e)}
56
+ `,C=r.div`
57
+ display: ${({$type:e})=>"inline"===e?"inline-flex":"flex"};
58
+ width: ${({$type:e})=>"inline"===e?"auto":"100%"};
59
+
60
+ ${({$autofill:e})=>e&&r.css`
61
+ & > *:not(.ignore) {
62
+ flex: 1;
63
+ }
64
+ `}
65
+
66
+ ${e=>h.hydrate(e)}
67
+ `;var z=t.memo(({children:t,...r})=>e.jsx(C,{...r,children:t}));const S=r.css`
68
+ ${e=>h.hydrate(e)}
69
+ `,E=r.p`
70
+ ${S}
71
+ `,A=r.a`
72
+ color: inherit;
73
+ text-decoration: none;
74
+ transition: all 200ms ease;
75
+
76
+ &:hover {
77
+ color: ${({$hoverColor:e})=>e||"black"};
78
+ }
79
+
80
+ ${S}
81
+ `,R=r.strong`
82
+ color: black;
83
+ ${S}
84
+ `,O=r.span`
85
+ ${S}
86
+ `,I=r.small`
87
+ ${S}
88
+ `;var P=t.memo(({$type:t,children:r,...n})=>{switch(t){case"link":return e.jsx(A,{...n,children:r});case"strong":return e.jsx(R,{...n,children:r});case"span":return e.jsx(O,{...n,children:r});case"small":return e.jsx(I,{...n,children:r});default:return e.jsx(E,{...n,children:r})}});const L=r.css`
89
+ background-color: var(--db-primary);
90
+ color: var(--db-white);
91
+
92
+ &:hover:not(:disabled) {
93
+ background-color: var(--db-primary-darken-10);
94
+ }
95
+ `,F=r.css`
96
+ background-color: var(--db-secondary);
97
+ color: var(--db-white);
98
+
99
+ &:hover:not(:disabled) {
100
+ background-color: var(--db-secondary-darken-10);
101
+ color: var(--db-white);
102
+ }
103
+ `,N=r.css`
104
+ background-color: var(--db-tertiary);
105
+ color: var(--db-white);
106
+
107
+ &:hover:not(:disabled) {
108
+ background-color: var(--db-tertiary-darken-10);
109
+ color: var(--db-white);
110
+ }
111
+ `,W=r.css`
112
+ background-color: transparent;
113
+
114
+ ${({$loading:e})=>!e&&r.css`
115
+ border: 1px solid var(--db-primary);
116
+ color: var(--db-primary);
117
+ `}
118
+
119
+ ${({$loading:e})=>e&&r.css`
120
+ border: 1px solid var(--db-tertiary-lighten-20);
121
+ color: var(--db-tertiary-lighten-20);
122
+ `}
123
+
124
+ span {
125
+ opacity: 1;
126
+ }
127
+ `,T=r.css`
128
+ border: 1px solid var(--db-background);
129
+ background-color: var(--db-background);
130
+ color: var(--db-primary-lighten-10);
131
+
132
+ ${({$hoverless:e})=>!e&&r.css`
133
+ &:hover {
134
+ background-color: var(--db-tertiary-lighten-45);
135
+ border-color: var(--db-tertiary-lighten-45);
136
+ }
137
+ `}
138
+ `,B=r.css`
139
+ display: inline-flex;
140
+ background-color: transparent;
141
+ gap: calc(16px / 2);
142
+ align-items: center;
143
+ align-content: center;
144
+ justify-content: center;
145
+ text-align: center;
146
+ position: relative;
147
+ white-space: nowrap;
148
+ transition: all 200ms ease;
149
+ padding: 0 16px;
150
+ border: 1px solid transparent;
151
+ font-weight: 300;
152
+ overflow: hidden;
153
+ cursor: pointer;
154
+ font: inherit;
155
+ line-height: 1;
156
+
157
+ height: 50px;
158
+ border-radius: 12px;
159
+
160
+ * {
161
+ margin: 0;
162
+ padding: 0;
163
+ }
164
+
165
+ &:disabled,
166
+ &:disabled:hover {
167
+ cursor: not-allowed;
168
+ opacity: 0.2;
169
+ }
170
+
171
+ span {
172
+ display: inline-flex;
173
+ align-items: center;
174
+ justify-content: center;
175
+ font-size: inherit;
176
+ gap: 20;
177
+ }
178
+
179
+ .loader-button {
180
+ position: absolute;
181
+ transform-origin: center center;
182
+ transform: translateX(-50%);
183
+ top: ${({$w:e})=>`calc(50% - ${e?e/2:12}px)`};
184
+ left: ${({$w:e})=>`calc(50% - ${e?e/2:12}px)`};
185
+ z-index: 2;
186
+ }
187
+
188
+ ${({$loading:e})=>!!e&&r.css`
189
+ &,
190
+ span,
191
+ .loader-button {
192
+ pointer-events: none !important;
193
+ }
194
+
195
+ span {
196
+ opacity: 0.4;
197
+ }
198
+ `}
199
+
200
+ ${({$theme:e})=>"primary"===e&&L}
201
+ ${({$theme:e})=>"secondary"===e&&F}
202
+ ${({$theme:e})=>"tertiary"===e&&N}
203
+ ${({$theme:e})=>"outline"===e&&W}
204
+ ${({$theme:e})=>"light"===e&&T}
205
+ ${e=>h.hydrate(e)}
206
+ `;r.i`
207
+ height: 25px;
208
+ width: 25px;
209
+ border-radius: 40px;
210
+ background-color: var(--db-black-lighten-30);
211
+ display: inline-block;
212
+ vertical-align: middle;
213
+ text-align: center;
214
+ margin-right: 15px;
215
+ transition: background 100ms linear;
216
+ svg {
217
+ fill: var(--db-white);
218
+ transition: color 100ms linear;
219
+ }
220
+ ${e=>h.hydrate(e)}
221
+ `;const D=r.button`
222
+ ${B}
223
+ `,M=r.a`
224
+ ${B}
225
+ `,U=r.keyframes`
226
+ from {
227
+ transform: rotate(270deg);
228
+ }
229
+ to{
230
+ transform: rotate(630deg);
231
+ }
232
+ `,V=r.div`
233
+ display: inline-block;
234
+ border-radius: 100%;
235
+ border: 2px solid
236
+ ${({$whited:e,$color:t})=>e?"var(--db-white)":t?m(t):"var(--db-black)"};
237
+ border-left-color: transparent;
238
+ animation: ${U} 1s linear infinite;
239
+
240
+ width: ${({$w:e})=>e||22}px;
241
+ height: ${({$w:e})=>e||22}px;
242
+ min-width: ${({$w:e})=>e||22}px;
243
+ min-height: ${({$w:e})=>e||22}px;
244
+
245
+ ${e=>h.hydrate(e)}
246
+ `;var K=t.memo(({...t})=>e.jsx(V,{...t}));var q=t.memo(({children:r,type:n="button",forwardRef:i,mobile:o,loading:a,theme:s,name:l,$w:c=24,...u})=>{const[d,f]=t.useState(void 0),p=t.useMemo(()=>({$w:c,$theme:s,$mobile:o,$loading:d,type:n,name:l,...u}),[s,o,d,n,l,u,c]);return t.useEffect(()=>{f(a?"true":void 0)},[a]),"link"===n?e.jsxs(M,{...p,ref:i,children:[d&&e.jsx(K,{className:"loader-button",$w:c,$whited:!0}),d&&e.jsx("span",{children:r}),!d&&r]}):e.jsxs(D,{...p,ref:i,children:[d&&e.jsx(K,{className:"loader-button",$w:c,$whited:!0}),d&&e.jsx("span",{children:r}),!d&&r]})});var H=t.memo(({children:t,...r})=>e.jsx(z,{$items:"center",$justify:"center",...r,children:t}));const Z=({id:t,classes:r,type:n,wsvg:i=24,children:o,...a})=>e.jsx(H,{...a,$wsvg:i,id:`${n}-${t}`,children:o}),X=({id:r,classes:i,type:o,wsvg:a=24,containerProps:s={},component:l=null,...c})=>{const u=t.useId();switch(o){case"fingerIcon":return e.jsx(Z,{type:o,wsvg:a,classes:i,id:r||u,...s,children:e.jsx(n.Fingerprint,{...c})});case"keyIcon":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Key,{...c})});case"rollback":case"close":case"xmark":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Xmark,{...c})});case"show":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Eye,{...c})});case"facebook":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Facebook,{...c})});case"instagram":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Instagram,{...c})});case"x":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.X,{...c})});case"share":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.ShareAndroid,{...c})});case"arrowl":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.ArrowLeft,{...c})});case"arrowr":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.ArrowRight,{...c})});case"hide":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.EyeClosed,{...c})});case"messageAlert":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.MessageAlert,{...c})});case"arrowDown":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.NavArrowDown,{...c})});case"info":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.InfoCircle,{...c})});case"success":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CheckCircle,{...c})});case"warning":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.WarningTriangle,{...c})});case"danger":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.XmarkCircle,{...c})});case"checkEmpty":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Square,{...c})});case"checkFill":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CheckSquare,{...c})});case"radioEmpty":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Circle,{...c})});case"radioFill":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CheckCircleSolid,{...c})});case"navLeft":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.NavArrowLeft,{...c})});case"navRight":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.NavArrowRight,{...c})});case"menu":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.MenuScale,{...c})});case"wallet":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Wallet,{...c})});case"cash":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.HandCash,{...c})});case"home":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Home,{...c})});case"search":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Search,{...c})});case"cloudless":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CloudXmark,{...c})});case"farrowr":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.FastArrowRight,{...c})});case"link":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Link,{...c})});case"bank":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Bank,{...c})});case"creditCard":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CreditCard,{...c})});case"upload":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Upload,{...c})});case"download":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Download,{...c})});case"bell":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Bell,{...c})});case"more":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.MoreHoriz,{...c})});case"plus":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Plus,{...c})});case"calendar":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Calendar,{...c})});case"trash":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.Trash,{...c})});case"cloudUpload":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.CloudUpload,{...c})});case"refresh":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.RefreshDouble,{...c})});case"hdDisplay":return e.jsx(Z,{id:r||u,classes:i,type:o,wsvg:a,...s,children:e.jsx(n.HdDisplay,{...c})});default:return l}};var Y=t.memo(({show:r,width:n,onClose:i,children:o,icon:a,iconless:s,type:l,title:c,titleless:u,isCancel:d,className:f,unClosed:p,...h})=>{t.useEffect(()=>(document.body.style.overflow="hidden",()=>{document.body.style.overflow="initial"}));const g=a||("success"===l?"success":"warning");return e.jsx(w,{$show:r,children:r&&e.jsxs($,{$width:n,...h,children:[e.jsxs(_,{children:[!s&&e.jsx(z,{style:{justifyContent:"center",alignItems:"center",marginBottom:20},children:e.jsx(X,{type:g,wsvg:80})}),!u&&e.jsx(P,{$type:"strong",$size:24,$align:"center",children:c||"Oh no!"})]}),e.jsx(j,{children:o}),!p&&e.jsx(k,{children:e.jsxs(z,{style:{justifyContent:"center",alignItems:"center",gap:20},children:[d&&e.jsx(q,{theme:"outline",onClick:()=>null==i?void 0:i(),children:"Cancelar"}),e.jsx(q,{theme:"primary",onClick:()=>null==i?void 0:i(),children:"Aceptar"})]})})]})})});const G=r.div`
247
+ display: flex;
248
+ flex-direction: column;
249
+ align-items: center;
250
+ align-content: center;
251
+ justify-content: center;
252
+ flex-wrap: wrap;
253
+ position: fixed;
254
+ top: 0;
255
+ left: 0;
256
+ width: 100vw;
257
+ height: 100vh;
258
+ overflow: hidden;
259
+ z-index: 9999999;
260
+ background-color: rgba(255, 255, 255, 0.8);
261
+ backdrop-filter: blur(6px);
262
+ `;var J,Q=t.memo(({title:t="Wait a moment...",message:r="We are processing information"})=>e.jsxs(G,{children:[e.jsx(z,{$items:"center",$justify:"center",children:e.jsx(K,{$w:60})}),e.jsx(P,{$align:"center",$opacity:"0.8",$xsSize:18,$mdSize:22,$mt:20,children:t}),e.jsx(P,{$align:"center",$opacity:"0.5",$xsSize:14,$mdSize:16,$mb:40,children:r})]})),ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},te={exports:{}},re=te.exports;var ne=(J||(J=1,function(e,t){(function(){var r,n="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",a=32,s=128,l=256,c=1/0,u=9007199254740991,d=NaN,f=4294967295,p=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",a],["partialRight",64],["rearg",l]],h="[object Arguments]",g="[object Array]",v="[object Boolean]",b="[object Date]",m="[object Error]",x="[object Function]",y="[object GeneratorFunction]",w="[object Map]",$="[object Number]",_="[object Object]",j="[object Promise]",k="[object RegExp]",C="[object Set]",z="[object String]",S="[object Symbol]",E="[object WeakMap]",A="[object ArrayBuffer]",R="[object DataView]",O="[object Float32Array]",I="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",W="[object Uint8ClampedArray]",T="[object Uint16Array]",B="[object Uint32Array]",D=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,q=RegExp(V.source),H=RegExp(K.source),Z=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,re=RegExp(te.source),ne=/^\s+/,ie=/\s/,oe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,ue=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,be=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",je="a-z\\xdf-\\xf6\\xf8-\\xff",ke="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Se="['’]",Ee="["+we+"]",Ae="["+ze+"]",Re="["+$e+"]",Oe="\\d+",Ie="["+_e+"]",Pe="["+je+"]",Le="[^"+we+ze+Oe+_e+je+ke+"]",Fe="\\ud83c[\\udffb-\\udfff]",Ne="[^"+we+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",Be="["+ke+"]",De="\\u200d",Me="(?:"+Pe+"|"+Le+")",Ue="(?:"+Be+"|"+Le+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Re+"|"+Fe+")?",He="["+Ce+"]?",Ze=He+qe+"(?:"+De+"(?:"+[Ne,We,Te].join("|")+")"+He+qe+")*",Xe="(?:"+[Ie,We,Te].join("|")+")"+Ze,Ye="(?:"+[Ne+Re+"?",Re,We,Te,Ee].join("|")+")",Ge=RegExp(Se,"g"),Je=RegExp(Re,"g"),Qe=RegExp(Fe+"(?="+Fe+")|"+Ye+Ze,"g"),et=RegExp([Be+"?"+Pe+"+"+Ve+"(?="+[Ae,Be,"$"].join("|")+")",Ue+"+"+Ke+"(?="+[Ae,Be+Me,"$"].join("|")+")",Be+"?"+Me+"+"+Ve,Be+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Xe].join("|"),"g"),tt=RegExp("["+De+we+$e+Ce+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["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","setTimeout"],it=-1,ot={};ot[O]=ot[I]=ot[P]=ot[L]=ot[F]=ot[N]=ot[W]=ot[T]=ot[B]=!0,ot[h]=ot[g]=ot[A]=ot[v]=ot[R]=ot[b]=ot[m]=ot[x]=ot[w]=ot[$]=ot[_]=ot[k]=ot[C]=ot[z]=ot[E]=!1;var at={};at[h]=at[g]=at[A]=at[R]=at[v]=at[b]=at[O]=at[I]=at[P]=at[L]=at[F]=at[w]=at[$]=at[_]=at[k]=at[C]=at[z]=at[S]=at[N]=at[W]=at[T]=at[B]=!0,at[m]=at[x]=at[E]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ct=parseInt,ut="object"==typeof ee&&ee&&ee.Object===Object&&ee,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||dt||Function("return this")(),pt=t&&!t.nodeType&&t,ht=pt&&e&&!e.nodeType&&e,gt=ht&&ht.exports===pt,vt=gt&&ut.process,bt=function(){try{var e=ht&&ht.require&&ht.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),mt=bt&&bt.isArrayBuffer,xt=bt&&bt.isDate,yt=bt&&bt.isMap,wt=bt&&bt.isRegExp,$t=bt&&bt.isSet,_t=bt&&bt.isTypedArray;function jt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function kt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function zt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function St(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function Et(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function At(e,t){return!(null==e||!e.length)&&Bt(e,t,0)>-1}function Rt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function Ot(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function It(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function Pt(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function Lt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function Ft(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Nt=Vt("length");function Wt(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function Tt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Bt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):Tt(e,Mt,r)}function Dt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function Mt(e){return e!=e}function Ut(e,t){var r=null==e?0:e.length;return r?Ht(e,t)/r:d}function Vt(e){return function(t){return null==t?r:t[e]}}function Kt(e){return function(t){return null==e?r:e[t]}}function qt(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function Ht(e,t){for(var n,i=-1,o=e.length;++i<o;){var a=t(e[i]);a!==r&&(n=n===r?a:n+a)}return n}function Zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Xt(e){return e?e.slice(0,fr(e)+1).replace(ne,""):e}function Yt(e){return function(t){return e(t)}}function Gt(e,t){return Ot(t,function(t){return e[t]})}function Jt(e,t){return e.has(t)}function Qt(e,t){for(var r=-1,n=e.length;++r<n&&Bt(t,e[r],0)>-1;);return r}function er(e,t){for(var r=e.length;r--&&Bt(t,e[r],0)>-1;);return r}var tr=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rr=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function nr(e){return"\\"+st[e]}function ir(e){return tt.test(e)}function or(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function ar(e,t){return function(r){return e(t(r))}}function sr(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r];s!==t&&s!==o||(e[r]=o,a[i++]=r)}return a}function lr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function cr(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}function ur(e){return ir(e)?function(e){for(var t=Qe.lastIndex=0;Qe.test(e);)++t;return t}(e):Nt(e)}function dr(e){return ir(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.split("")}(e)}function fr(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var pr=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),hr=function e(t){var ee,ie=(t=null==t?ft:hr.defaults(ft.Object(),t,hr.pick(ft,nt))).Array,we=t.Date,$e=t.Error,_e=t.Function,je=t.Math,ke=t.Object,Ce=t.RegExp,ze=t.String,Se=t.TypeError,Ee=ie.prototype,Ae=_e.prototype,Re=ke.prototype,Oe=t["__core-js_shared__"],Ie=Ae.toString,Pe=Re.hasOwnProperty,Le=0,Fe=(ee=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",Ne=Re.toString,We=Ie.call(ke),Te=ft._,Be=Ce("^"+Ie.call(Pe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),De=gt?t.Buffer:r,Me=t.Symbol,Ue=t.Uint8Array,Ve=De?De.allocUnsafe:r,Ke=ar(ke.getPrototypeOf,ke),qe=ke.create,He=Re.propertyIsEnumerable,Ze=Ee.splice,Xe=Me?Me.isConcatSpreadable:r,Ye=Me?Me.iterator:r,Qe=Me?Me.toStringTag:r,tt=function(){try{var e=uo(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ut=we&&we.now!==ft.Date.now&&we.now,dt=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=je.ceil,ht=je.floor,vt=ke.getOwnPropertySymbols,bt=De?De.isBuffer:r,Nt=t.isFinite,Kt=Ee.join,gr=ar(ke.keys,ke),vr=je.max,br=je.min,mr=we.now,xr=t.parseInt,yr=je.random,wr=Ee.reverse,$r=uo(t,"DataView"),_r=uo(t,"Map"),jr=uo(t,"Promise"),kr=uo(t,"Set"),Cr=uo(t,"WeakMap"),zr=uo(ke,"create"),Sr=Cr&&new Cr,Er={},Ar=No($r),Rr=No(_r),Or=No(jr),Ir=No(kr),Pr=No(Cr),Lr=Me?Me.prototype:r,Fr=Lr?Lr.valueOf:r,Nr=Lr?Lr.toString:r;function Wr(e){if(es(e)&&!Ua(e)&&!(e instanceof Mr)){if(e instanceof Dr)return e;if(Pe.call(e,"__wrapped__"))return Wo(e)}return new Dr(e)}var Tr=function(){function e(){}return function(t){if(!Qa(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Br(){}function Dr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function Mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=f,this.__views__=[]}function Ur(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Vr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Kr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Kr;++t<r;)this.add(e[t])}function Hr(e){var t=this.__data__=new Vr(e);this.size=t.size}function Zr(e,t){var r=Ua(e),n=!r&&Ma(e),i=!r&&!n&&Ha(e),o=!r&&!n&&!i&&ls(e),a=r||n||i||o,s=a?Zt(e.length,ze):[],l=s.length;for(var c in e)!t&&!Pe.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||mo(c,l))||s.push(c);return s}function Xr(e){var t=e.length;return t?e[Hn(0,t-1)]:r}function Yr(e,t){return Po(Si(e),an(t,0,e.length))}function Gr(e){return Po(Si(e))}function Jr(e,t,n){(n!==r&&!Ta(e[t],n)||n===r&&!(t in e))&&nn(e,t,n)}function Qr(e,t,n){var i=e[t];Pe.call(e,t)&&Ta(i,n)&&(n!==r||t in e)||nn(e,t,n)}function en(e,t){for(var r=e.length;r--;)if(Ta(e[r][0],t))return r;return-1}function tn(e,t,r,n){return dn(e,function(e,i,o){t(n,e,r(e),o)}),n}function rn(e,t){return e&&Ei(t,As(t),e)}function nn(e,t,r){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function on(e,t){for(var n=-1,i=t.length,o=ie(i),a=null==e;++n<i;)o[n]=a?r:ks(e,t[n]);return o}function an(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function sn(e,t,n,i,o,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=o?n(e,i,o,a):n(e)),s!==r)return s;if(!Qa(e))return e;var d=Ua(e);if(d){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return Si(e,s)}else{var f=ho(e),p=f==x||f==y;if(Ha(e))return $i(e,l);if(f==_||f==h||p&&!o){if(s=c||p?{}:vo(e),!l)return c?function(e,t){return Ei(e,po(e),t)}(e,function(e,t){return e&&Ei(t,Rs(t),e)}(s,e)):function(e,t){return Ei(e,fo(e),t)}(e,rn(s,e))}else{if(!at[f])return o?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case A:return _i(e);case v:case b:return new i(+e);case R:return function(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case O:case I:case P:case L:case F:case N:case W:case T:case B:return ji(e,r);case w:return new i;case $:case z:return new i(e);case k:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case S:return n=e,Fr?ke(Fr.call(n)):{}}}(e,f,l)}}a||(a=new Hr);var g=a.get(e);if(g)return g;a.set(e,s),os(e)?e.forEach(function(r){s.add(sn(r,t,n,r,e,a))}):ts(e)&&e.forEach(function(r,i){s.set(i,sn(r,t,n,i,e,a))});var m=d?r:(u?c?no:ro:c?Rs:As)(e);return Ct(m||e,function(r,i){m&&(r=e[i=r]),Qr(s,i,sn(r,t,n,i,e,a))}),s}function ln(e,t,n){var i=n.length;if(null==e)return!i;for(e=ke(e);i--;){var o=n[i],a=t[o],s=e[o];if(s===r&&!(o in e)||!a(s))return!1}return!0}function cn(e,t,i){if("function"!=typeof e)throw new Se(n);return Ao(function(){e.apply(r,i)},t)}function un(e,t,r,n){var i=-1,o=At,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;r&&(t=Ot(t,Yt(r))),n?(o=Rt,a=!1):t.length>=200&&(o=Jt,a=!1,t=new qr(t));e:for(;++i<s;){var u=e[i],d=null==r?u:r(u);if(u=n||0!==u?u:0,a&&d==d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else o(t,d,n)||l.push(u)}return l}Wr.templateSettings={escape:Z,evaluate:X,interpolate:Y,variable:"",imports:{_:Wr}},Wr.prototype=Br.prototype,Wr.prototype.constructor=Wr,Dr.prototype=Tr(Br.prototype),Dr.prototype.constructor=Dr,Mr.prototype=Tr(Br.prototype),Mr.prototype.constructor=Mr,Ur.prototype.clear=function(){this.__data__=zr?zr(null):{},this.size=0},Ur.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ur.prototype.get=function(e){var t=this.__data__;if(zr){var n=t[e];return n===i?r:n}return Pe.call(t,e)?t[e]:r},Ur.prototype.has=function(e){var t=this.__data__;return zr?t[e]!==r:Pe.call(t,e)},Ur.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=zr&&t===r?i:t,this},Vr.prototype.clear=function(){this.__data__=[],this.size=0},Vr.prototype.delete=function(e){var t=this.__data__,r=en(t,e);return!(r<0||(r==t.length-1?t.pop():Ze.call(t,r,1),--this.size,0))},Vr.prototype.get=function(e){var t=this.__data__,n=en(t,e);return n<0?r:t[n][1]},Vr.prototype.has=function(e){return en(this.__data__,e)>-1},Vr.prototype.set=function(e,t){var r=this.__data__,n=en(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Kr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ur,map:new(_r||Vr),string:new Ur}},Kr.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Kr.prototype.get=function(e){return lo(this,e).get(e)},Kr.prototype.has=function(e){return lo(this,e).has(e)},Kr.prototype.set=function(e,t){var r=lo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},qr.prototype.add=qr.prototype.push=function(e){return this.__data__.set(e,i),this},qr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Hr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Hr.prototype.get=function(e){return this.__data__.get(e)},Hr.prototype.has=function(e){return this.__data__.has(e)},Hr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!_r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kr(n)}return r.set(e,t),this.size=r.size,this};var dn=Oi(xn),fn=Oi(yn,!0);function pn(e,t){var r=!0;return dn(e,function(e,n,i){return r=!!t(e,n,i)}),r}function hn(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(l===r?s==s&&!ss(s):n(s,l)))var l=s,c=a}return c}function gn(e,t){var r=[];return dn(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function vn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?vn(s,t-1,r,n,i):It(i,s):n||(i[i.length]=s)}return i}var bn=Ii(),mn=Ii(!0);function xn(e,t){return e&&bn(e,t,As)}function yn(e,t){return e&&mn(e,t,As)}function wn(e,t){return Et(t,function(t){return Ya(e[t])})}function $n(e,t){for(var n=0,i=(t=mi(t,e)).length;null!=e&&n<i;)e=e[Fo(t[n++])];return n&&n==i?e:r}function _n(e,t,r){var n=t(e);return Ua(e)?n:It(n,r(e))}function jn(e){return null==e?e===r?"[object Undefined]":"[object Null]":Qe&&Qe in ke(e)?function(e){var t=Pe.call(e,Qe),n=e[Qe];try{e[Qe]=r;var i=!0}catch(e){}var o=Ne.call(e);return i&&(t?e[Qe]=n:delete e[Qe]),o}(e):function(e){return Ne.call(e)}(e)}function kn(e,t){return e>t}function Cn(e,t){return null!=e&&Pe.call(e,t)}function zn(e,t){return null!=e&&t in ke(e)}function Sn(e,t,n){for(var i=n?Rt:At,o=e[0].length,a=e.length,s=a,l=ie(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Ot(d,Yt(t))),c=br(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new qr(s&&d):r}d=e[0];var f=-1,p=l[0];e:for(;++f<o&&u.length<c;){var h=d[f],g=t?t(h):h;if(h=n||0!==h?h:0,!(p?Jt(p,g):i(u,g,n))){for(s=a;--s;){var v=l[s];if(!(v?Jt(v,g):i(e[s],g,n)))continue e}p&&p.push(g),u.push(h)}}return u}function En(e,t,n){var i=null==(e=zo(e,t=mi(t,e)))?e:e[Fo(Xo(t))];return null==i?r:jt(i,e,n)}function An(e){return es(e)&&jn(e)==h}function Rn(e,t,n,i,o){return e===t||(null==e||null==t||!es(e)&&!es(t)?e!=e&&t!=t:function(e,t,n,i,o,a){var s=Ua(e),l=Ua(t),c=s?g:ho(e),u=l?g:ho(t),d=(c=c==h?_:c)==_,f=(u=u==h?_:u)==_,p=c==u;if(p&&Ha(e)){if(!Ha(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Hr),s||ls(e)?eo(e,t,n,i,o,a):function(e,t,r,n,i,o,a){switch(r){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case A:return!(e.byteLength!=t.byteLength||!o(new Ue(e),new Ue(t)));case v:case b:case $:return Ta(+e,+t);case m:return e.name==t.name&&e.message==t.message;case k:case z:return e==t+"";case w:var s=or;case C:var l=1&n;if(s||(s=lr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=eo(s(e),s(t),n,i,o,a);return a.delete(e),u;case S:if(Fr)return Fr.call(e)==Fr.call(t)}return!1}(e,t,c,n,i,o,a);if(!(1&n)){var x=d&&Pe.call(e,"__wrapped__"),y=f&&Pe.call(t,"__wrapped__");if(x||y){var j=x?e.value():e,E=y?t.value():t;return a||(a=new Hr),o(j,E,n,i,a)}}return!!p&&(a||(a=new Hr),function(e,t,n,i,o,a){var s=1&n,l=ro(e),c=l.length,u=ro(t),d=u.length;if(c!=d&&!s)return!1;for(var f=c;f--;){var p=l[f];if(!(s?p in t:Pe.call(t,p)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var b=s;++f<c;){var m=e[p=l[f]],x=t[p];if(i)var y=s?i(x,m,p,t,e,a):i(m,x,p,e,t,a);if(!(y===r?m===x||o(m,x,n,i,a):y)){v=!1;break}b||(b="constructor"==p)}if(v&&!b){var w=e.constructor,$=t.constructor;w==$||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof $&&$ instanceof $||(v=!1)}return a.delete(e),a.delete(t),v}(e,t,n,i,o,a))}(e,t,n,i,Rn,o))}function On(e,t,n,i){var o=n.length,a=o,s=!i;if(null==e)return!a;for(e=ke(e);o--;){var l=n[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var c=(l=n[o])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===r&&!(c in e))return!1}else{var f=new Hr;if(i)var p=i(u,d,c,e,t,f);if(!(p===r?Rn(d,u,3,i,f):p))return!1}}return!0}function In(e){return!(!Qa(e)||(t=e,Fe&&Fe in t))&&(Ya(e)?Be:ge).test(No(e));var t}function Pn(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?Ua(e)?Bn(e[0],e[1]):Tn(e):dl(e)}function Ln(e){if(!_o(e))return gr(e);var t=[];for(var r in ke(e))Pe.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Fn(e){if(!Qa(e))return function(e){var t=[];if(null!=e)for(var r in ke(e))t.push(r);return t}(e);var t=_o(e),r=[];for(var n in e)("constructor"!=n||!t&&Pe.call(e,n))&&r.push(n);return r}function Nn(e,t){return e<t}function Wn(e,t){var r=-1,n=Ka(e)?ie(e.length):[];return dn(e,function(e,i,o){n[++r]=t(e,i,o)}),n}function Tn(e){var t=co(e);return 1==t.length&&t[0][2]?ko(t[0][0],t[0][1]):function(r){return r===e||On(r,e,t)}}function Bn(e,t){return yo(e)&&jo(t)?ko(Fo(e),t):function(n){var i=ks(n,e);return i===r&&i===t?Cs(n,e):Rn(t,i,3)}}function Dn(e,t,n,i,o){e!==t&&bn(t,function(a,s){if(o||(o=new Hr),Qa(a))!function(e,t,n,i,o,a,s){var l=So(e,n),c=So(t,n),u=s.get(c);if(u)Jr(e,n,u);else{var d=a?a(l,c,n+"",e,t,s):r,f=d===r;if(f){var p=Ua(c),h=!p&&Ha(c),g=!p&&!h&&ls(c);d=c,p||h||g?Ua(l)?d=l:qa(l)?d=Si(l):h?(f=!1,d=$i(c,!0)):g?(f=!1,d=ji(c,!0)):d=[]:ns(c)||Ma(c)?(d=l,Ma(l)?d=vs(l):Qa(l)&&!Ya(l)||(d=vo(c))):f=!1}f&&(s.set(c,d),o(d,c,i,a,s),s.delete(c)),Jr(e,n,d)}}(e,t,s,n,Dn,i,o);else{var l=i?i(So(e,s),a,s+"",e,t,o):r;l===r&&(l=a),Jr(e,s,l)}},Rs)}function Mn(e,t){var n=e.length;if(n)return mo(t+=t<0?n:0,n)?e[t]:r}function Un(e,t,r){t=t.length?Ot(t,function(e){return Ua(e)?function(t){return $n(t,1===e.length?e[0]:e)}:e}):[rl];var n=-1;t=Ot(t,Yt(so()));var i=Wn(e,function(e,r,i){var o=Ot(t,function(t){return t(e)});return{criteria:o,index:++n,value:e}});return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(i,function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var l=ki(i[n],o[n]);if(l)return n>=s?l:l*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)})}function Vn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=$n(e,a);r(s,a)&&Jn(o,mi(a,e),s)}return o}function Kn(e,t,r,n){var i=n?Dt:Bt,o=-1,a=t.length,s=e;for(e===t&&(t=Si(t)),r&&(s=Ot(e,Yt(r)));++o<a;)for(var l=0,c=t[o],u=r?r(c):c;(l=i(s,u,l,n))>-1;)s!==e&&Ze.call(s,l,1),Ze.call(e,l,1);return e}function qn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;mo(i)?Ze.call(e,i,1):ui(e,i)}}return e}function Hn(e,t){return e+ht(yr()*(t-e+1))}function Zn(e,t){var r="";if(!e||t<1||t>u)return r;do{t%2&&(r+=e),(t=ht(t/2))&&(e+=e)}while(t);return r}function Xn(e,t){return Ro(Co(e,t,rl),e+"")}function Yn(e){return Xr(Ts(e))}function Gn(e,t){var r=Ts(e);return Po(r,an(t,0,r.length))}function Jn(e,t,n,i){if(!Qa(e))return e;for(var o=-1,a=(t=mi(t,e)).length,s=a-1,l=e;null!=l&&++o<a;){var c=Fo(t[o]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(o!=s){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=Qa(d)?d:mo(t[o+1])?[]:{})}Qr(l,c,u),l=l[c]}return e}var Qn=Sr?function(e,t){return Sr.set(e,t),e}:rl,ei=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:Qs(t),writable:!0})}:rl;function ti(e){return Po(Ts(e))}function ri(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=ie(i);++n<i;)o[n]=e[n+t];return o}function ni(e,t){var r;return dn(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function ii(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!ss(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return oi(e,t,rl,r)}function oi(e,t,n,i){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!=t,l=null===t,c=ss(t),u=t===r;o<a;){var d=ht((o+a)/2),f=n(e[d]),p=f!==r,h=null===f,g=f==f,v=ss(f);if(s)var b=i||g;else b=u?g&&(i||p):l?g&&p&&(i||!h):c?g&&p&&!h&&(i||!v):!h&&!v&&(i?f<=t:f<t);b?o=d+1:a=d}return br(a,4294967294)}function ai(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Ta(s,l)){var l=s;o[i++]=0===a?0:a}}return o}function si(e){return"number"==typeof e?e:ss(e)?d:+e}function li(e){if("string"==typeof e)return e;if(Ua(e))return Ot(e,li)+"";if(ss(e))return Nr?Nr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ci(e,t,r){var n=-1,i=At,o=e.length,a=!0,s=[],l=s;if(r)a=!1,i=Rt;else if(o>=200){var c=t?null:Zi(e);if(c)return lr(c);a=!1,i=Jt,l=new qr}else l=t?[]:s;e:for(;++n<o;){var u=e[n],d=t?t(u):u;if(u=r||0!==u?u:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else i(l,d,r)||(l!==s&&l.push(d),s.push(u))}return s}function ui(e,t){return null==(e=zo(e,t=mi(t,e)))||delete e[Fo(Xo(t))]}function di(e,t,r,n){return Jn(e,t,r($n(e,t)),n)}function fi(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?ri(e,n?0:o,n?o+1:i):ri(e,n?o+1:0,n?i:o)}function pi(e,t){var r=e;return r instanceof Mr&&(r=r.value()),Pt(t,function(e,t){return t.func.apply(t.thisArg,It([e],t.args))},r)}function hi(e,t,r){var n=e.length;if(n<2)return n?ci(e[0]):[];for(var i=-1,o=ie(n);++i<n;)for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=un(o[i]||a,e[s],t,r));return ci(vn(o,1),t,r)}function gi(e,t,n){for(var i=-1,o=e.length,a=t.length,s={};++i<o;){var l=i<a?t[i]:r;n(s,e[i],l)}return s}function vi(e){return qa(e)?e:[]}function bi(e){return"function"==typeof e?e:rl}function mi(e,t){return Ua(e)?e:yo(e,t)?[e]:Lo(bs(e))}var xi=Xn;function yi(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ri(e,t,n)}var wi=st||function(e){return ft.clearTimeout(e)};function $i(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function _i(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ji(e,t){var r=t?_i(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ki(e,t){if(e!==t){var n=e!==r,i=null===e,o=e==e,a=ss(e),s=t!==r,l=null===t,c=t==t,u=ss(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&e<t||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}function Ci(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,l=t.length,c=vr(o-a,0),u=ie(l+c),d=!n;++s<l;)u[s]=t[s];for(;++i<a;)(d||i<o)&&(u[r[i]]=e[i]);for(;c--;)u[s++]=e[i++];return u}function zi(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,l=-1,c=t.length,u=vr(o-s,0),d=ie(u+c),f=!n;++i<u;)d[i]=e[i];for(var p=i;++l<c;)d[p+l]=t[l];for(;++a<s;)(f||i<o)&&(d[p+r[a]]=e[i++]);return d}function Si(e,t){var r=-1,n=e.length;for(t||(t=ie(n));++r<n;)t[r]=e[r];return t}function Ei(e,t,n,i){var o=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),o?nn(n,l,c):Qr(n,l,c)}return n}function Ai(e,t){return function(r,n){var i=Ua(r)?kt:tn,o=t?t():{};return i(r,e,so(n,2),o)}}function Ri(e){return Xn(function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:r,s=o>2?n[2]:r;for(a=e.length>3&&"function"==typeof a?(o--,a):r,s&&xo(n[0],n[1],s)&&(a=o<3?r:a,o=1),t=ke(t);++i<o;){var l=n[i];l&&e(t,l,i,a)}return t})}function Oi(e,t){return function(r,n){if(null==r)return r;if(!Ka(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=ke(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function Ii(e){return function(t,r,n){for(var i=-1,o=ke(t),a=n(t),s=a.length;s--;){var l=a[e?s:++i];if(!1===r(o[l],l,o))break}return t}}function Pi(e){return function(t){var n=ir(t=bs(t))?dr(t):r,i=n?n[0]:t.charAt(0),o=n?yi(n,1).join(""):t.slice(1);return i[e]()+o}}function Li(e){return function(t){return Pt(Ys(Ms(t).replace(Ge,"")),e,"")}}function Fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Tr(e.prototype),n=e.apply(r,t);return Qa(n)?n:r}}function Ni(e){return function(t,n,i){var o=ke(t);if(!Ka(t)){var a=so(n,3);t=As(t),n=function(e){return a(o[e],e,o)}}var s=e(t,n,i);return s>-1?o[a?t[s]:s]:r}}function Wi(e){return to(function(t){var i=t.length,o=i,a=Dr.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if("function"!=typeof s)throw new Se(n);if(a&&!l&&"wrapper"==oo(s))var l=new Dr([],!0)}for(o=l?o:i;++o<i;){var c=oo(s=t[o]),u="wrapper"==c?io(s):r;l=u&&wo(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[oo(u[0])].apply(l,u[3]):1==s.length&&wo(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&Ua(r))return l.plant(r).value();for(var n=0,o=i?t[n].apply(this,e):r;++n<i;)o=t[n].call(this,o);return o}})}function Ti(e,t,n,i,o,a,l,c,u,d){var f=t&s,p=1&t,h=2&t,g=24&t,v=512&t,b=h?r:Fi(e);return function s(){for(var m=arguments.length,x=ie(m),y=m;y--;)x[y]=arguments[y];if(g)var w=ao(s),$=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(x,w);if(i&&(x=Ci(x,i,o,g)),a&&(x=zi(x,a,l,g)),m-=$,g&&m<d){var _=sr(x,w);return qi(e,t,Ti,s.placeholder,n,x,_,c,u,d-m)}var j=p?n:this,k=h?j[e]:e;return m=x.length,c?x=function(e,t){for(var n=e.length,i=br(t.length,n),o=Si(e);i--;){var a=t[i];e[i]=mo(a,n)?o[a]:r}return e}(x,c):v&&m>1&&x.reverse(),f&&u<m&&(x.length=u),this&&this!==ft&&this instanceof s&&(k=b||Fi(k)),k.apply(j,x)}}function Bi(e,t){return function(r,n){return function(e,t,r,n){return xn(e,function(e,i,o){t(n,r(e),i,o)}),n}(r,e,t(n),{})}}function Di(e,t){return function(n,i){var o;if(n===r&&i===r)return t;if(n!==r&&(o=n),i!==r){if(o===r)return i;"string"==typeof n||"string"==typeof i?(n=li(n),i=li(i)):(n=si(n),i=si(i)),o=e(n,i)}return o}}function Mi(e){return to(function(t){return t=Ot(t,Yt(so())),Xn(function(r){var n=this;return e(t,function(e){return jt(e,n,r)})})})}function Ui(e,t){var n=(t=t===r?" ":li(t)).length;if(n<2)return n?Zn(t,e):t;var i=Zn(t,pt(e/ur(t)));return ir(t)?yi(dr(i),0,e).join(""):i.slice(0,e)}function Vi(e){return function(t,n,i){return i&&"number"!=typeof i&&xo(t,n,i)&&(n=i=r),t=fs(t),n===r?(n=t,t=0):n=fs(n),function(e,t,r,n){for(var i=-1,o=vr(pt((t-e)/(r||1)),0),a=ie(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,n,i=i===r?t<n?1:-1:fs(i),e)}}function Ki(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=gs(t),r=gs(r)),e(t,r)}}function qi(e,t,n,i,o,s,l,c,u,d){var f=8&t;t|=f?a:64,4&(t&=~(f?64:a))||(t&=-4);var p=[e,t,o,f?s:r,f?l:r,f?r:s,f?r:l,c,u,d],h=n.apply(r,p);return wo(e)&&Eo(h,p),h.placeholder=i,Oo(h,e,t)}function Hi(e){var t=je[e];return function(e,r){if(e=gs(e),(r=null==r?0:br(ps(r),292))&&Nt(e)){var n=(bs(e)+"e").split("e");return+((n=(bs(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Zi=kr&&1/lr(new kr([,-0]))[1]==c?function(e){return new kr(e)}:sl;function Xi(e){return function(t){var r=ho(t);return r==w?or(t):r==C?cr(t):function(e,t){return Ot(t,function(t){return[t,e[t]]})}(t,e(t))}}function Yi(e,t,i,c,u,d,f,p){var h=2&t;if(!h&&"function"!=typeof e)throw new Se(n);var g=c?c.length:0;if(g||(t&=-97,c=u=r),f=f===r?f:vr(ps(f),0),p=p===r?p:ps(p),g-=u?u.length:0,64&t){var v=c,b=u;c=u=r}var m=h?r:io(e),x=[e,t,i,c,u,v,b,d,f,p];if(m&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,c=n==s&&8==r||n==s&&r==l&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!c)return e;1&n&&(e[2]=t[2],i|=1&r?0:4);var u=t[3];if(u){var d=e[3];e[3]=d?Ci(d,u,t[4]):u,e[4]=d?sr(e[3],o):t[4]}(u=t[5])&&(d=e[5],e[5]=d?zi(d,u,t[6]):u,e[6]=d?sr(e[5],o):t[6]),(u=t[7])&&(e[7]=u),n&s&&(e[8]=null==e[8]?t[8]:br(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(x,m),e=x[0],t=x[1],i=x[2],c=x[3],u=x[4],!(p=x[9]=x[9]===r?h?0:e.length:vr(x[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,n){var i=Fi(e);return function o(){for(var a=arguments.length,s=ie(a),l=a,c=ao(o);l--;)s[l]=arguments[l];var u=a<3&&s[0]!==c&&s[a-1]!==c?[]:sr(s,c);return(a-=u.length)<n?qi(e,t,Ti,o.placeholder,r,s,u,r,r,n-a):jt(this&&this!==ft&&this instanceof o?i:e,this,s)}}(e,t,p):t!=a&&33!=t||u.length?Ti.apply(r,x):function(e,t,r,n){var i=1&t,o=Fi(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=n.length,u=ie(c+s),d=this&&this!==ft&&this instanceof t?o:e;++l<c;)u[l]=n[l];for(;s--;)u[l++]=arguments[++a];return jt(d,i?r:this,u)}}(e,t,i,c);else var y=function(e,t,r){var n=1&t,i=Fi(e);return function t(){return(this&&this!==ft&&this instanceof t?i:e).apply(n?r:this,arguments)}}(e,t,i);return Oo((m?Qn:Eo)(y,x),e,t)}function Gi(e,t,n,i){return e===r||Ta(e,Re[n])&&!Pe.call(i,n)?t:e}function Ji(e,t,n,i,o,a){return Qa(e)&&Qa(t)&&(a.set(t,e),Dn(e,t,r,Ji,a),a.delete(t)),e}function Qi(e){return ns(e)?r:e}function eo(e,t,n,i,o,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new qr:r;for(a.set(e,t),a.set(t,e);++f<l;){var g=e[f],v=t[f];if(i)var b=s?i(v,g,f,t,e,a):i(g,v,f,e,t,a);if(b!==r){if(b)continue;p=!1;break}if(h){if(!Ft(t,function(e,t){if(!Jt(h,t)&&(g===e||o(g,e,n,i,a)))return h.push(t)})){p=!1;break}}else if(g!==v&&!o(g,v,n,i,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function to(e){return Ro(Co(e,r,Vo),e+"")}function ro(e){return _n(e,As,fo)}function no(e){return _n(e,Rs,po)}var io=Sr?function(e){return Sr.get(e)}:sl;function oo(e){for(var t=e.name+"",r=Er[t],n=Pe.call(Er,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function ao(e){return(Pe.call(Wr,"placeholder")?Wr:e).placeholder}function so(){var e=Wr.iteratee||nl;return e=e===nl?Pn:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function co(e){for(var t=As(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,jo(i)]}return t}function uo(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return In(n)?n:r}var fo=vt?function(e){return null==e?[]:(e=ke(e),Et(vt(e),function(t){return He.call(e,t)}))}:hl,po=vt?function(e){for(var t=[];e;)It(t,fo(e)),e=Ke(e);return t}:hl,ho=jn;function go(e,t,r){for(var n=-1,i=(t=mi(t,e)).length,o=!1;++n<i;){var a=Fo(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Ja(i)&&mo(a,i)&&(Ua(e)||Ma(e))}function vo(e){return"function"!=typeof e.constructor||_o(e)?{}:Tr(Ke(e))}function bo(e){return Ua(e)||Ma(e)||!!(Xe&&e&&e[Xe])}function mo(e,t){var r=typeof e;return!!(t=null==t?u:t)&&("number"==r||"symbol"!=r&&be.test(e))&&e>-1&&e%1==0&&e<t}function xo(e,t,r){if(!Qa(r))return!1;var n=typeof t;return!!("number"==n?Ka(r)&&mo(t,r.length):"string"==n&&t in r)&&Ta(r[t],e)}function yo(e,t){if(Ua(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ss(e))||J.test(e)||!G.test(e)||null!=t&&e in ke(t)}function wo(e){var t=oo(e),r=Wr[t];if("function"!=typeof r||!(t in Mr.prototype))return!1;if(e===r)return!0;var n=io(r);return!!n&&e===n[0]}($r&&ho(new $r(new ArrayBuffer(1)))!=R||_r&&ho(new _r)!=w||jr&&ho(jr.resolve())!=j||kr&&ho(new kr)!=C||Cr&&ho(new Cr)!=E)&&(ho=function(e){var t=jn(e),n=t==_?e.constructor:r,i=n?No(n):"";if(i)switch(i){case Ar:return R;case Rr:return w;case Or:return j;case Ir:return C;case Pr:return E}return t});var $o=Oe?Ya:gl;function _o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function jo(e){return e==e&&!Qa(e)}function ko(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in ke(n))}}function Co(e,t,n){return t=vr(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=vr(r.length-t,0),a=ie(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=ie(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),jt(e,this,s)}}function zo(e,t){return t.length<2?e:$n(e,ri(t,0,-1))}function So(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Eo=Io(Qn),Ao=dt||function(e,t){return ft.setTimeout(e,t)},Ro=Io(ei);function Oo(e,t,r){var n=t+"";return Ro(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(oe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(p,function(r){var n="_."+r[0];t&r[1]&&!At(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(se):[]}(n),r)))}function Io(e){var t=0,n=0;return function(){var i=mr(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Po(e,t){var n=-1,i=e.length,o=i-1;for(t=t===r?i:t;++n<t;){var a=Hn(n,o),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Lo=function(e){var t=Ia(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Q,function(e,r,n,i){t.push(n?i.replace(ue,"$1"):r||e)}),t});function Fo(e){if("string"==typeof e||ss(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function No(e){if(null!=e){try{return Ie.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Wo(e){if(e instanceof Mr)return e.clone();var t=new Dr(e.__wrapped__,e.__chain__);return t.__actions__=Si(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var To=Xn(function(e,t){return qa(e)?un(e,vn(t,1,qa,!0)):[]}),Bo=Xn(function(e,t){var n=Xo(t);return qa(n)&&(n=r),qa(e)?un(e,vn(t,1,qa,!0),so(n,2)):[]}),Do=Xn(function(e,t){var n=Xo(t);return qa(n)&&(n=r),qa(e)?un(e,vn(t,1,qa,!0),r,n):[]});function Mo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ps(r);return i<0&&(i=vr(n+i,0)),Tt(e,so(t,3),i)}function Uo(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i-1;return n!==r&&(o=ps(n),o=n<0?vr(i+o,0):br(o,i-1)),Tt(e,so(t,3),o,!0)}function Vo(e){return null!=e&&e.length?vn(e,1):[]}function Ko(e){return e&&e.length?e[0]:r}var qo=Xn(function(e){var t=Ot(e,vi);return t.length&&t[0]===e[0]?Sn(t):[]}),Ho=Xn(function(e){var t=Xo(e),n=Ot(e,vi);return t===Xo(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Sn(n,so(t,2)):[]}),Zo=Xn(function(e){var t=Xo(e),n=Ot(e,vi);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Sn(n,r,t):[]});function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Yo=Xn(Go);function Go(e,t){return e&&e.length&&t&&t.length?Kn(e,t):e}var Jo=to(function(e,t){var r=null==e?0:e.length,n=on(e,t);return qn(e,Ot(t,function(e){return mo(e,r)?+e:e}).sort(ki)),n});function Qo(e){return null==e?e:wr.call(e)}var ea=Xn(function(e){return ci(vn(e,1,qa,!0))}),ta=Xn(function(e){var t=Xo(e);return qa(t)&&(t=r),ci(vn(e,1,qa,!0),so(t,2))}),ra=Xn(function(e){var t=Xo(e);return t="function"==typeof t?t:r,ci(vn(e,1,qa,!0),r,t)});function na(e){if(!e||!e.length)return[];var t=0;return e=Et(e,function(e){if(qa(e))return t=vr(e.length,t),!0}),Zt(t,function(t){return Ot(e,Vt(t))})}function ia(e,t){if(!e||!e.length)return[];var n=na(e);return null==t?n:Ot(n,function(e){return jt(t,r,e)})}var oa=Xn(function(e,t){return qa(e)?un(e,t):[]}),aa=Xn(function(e){return hi(Et(e,qa))}),sa=Xn(function(e){var t=Xo(e);return qa(t)&&(t=r),hi(Et(e,qa),so(t,2))}),la=Xn(function(e){var t=Xo(e);return t="function"==typeof t?t:r,hi(Et(e,qa),r,t)}),ca=Xn(na),ua=Xn(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,ia(e,n)});function da(e){var t=Wr(e);return t.__chain__=!0,t}function fa(e,t){return t(e)}var pa=to(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,o=function(t){return on(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Mr&&mo(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:fa,args:[o],thisArg:r}),new Dr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(o)}),ha=Ai(function(e,t,r){Pe.call(e,r)?++e[r]:nn(e,r,1)}),ga=Ni(Mo),va=Ni(Uo);function ba(e,t){return(Ua(e)?Ct:dn)(e,so(t,3))}function ma(e,t){return(Ua(e)?zt:fn)(e,so(t,3))}var xa=Ai(function(e,t,r){Pe.call(e,r)?e[r].push(t):nn(e,r,[t])}),ya=Xn(function(e,t,r){var n=-1,i="function"==typeof t,o=Ka(e)?ie(e.length):[];return dn(e,function(e){o[++n]=i?jt(t,e,r):En(e,t,r)}),o}),wa=Ai(function(e,t,r){nn(e,r,t)});function $a(e,t){return(Ua(e)?Ot:Wn)(e,so(t,3))}var _a=Ai(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),ja=Xn(function(e,t){if(null==e)return[];var r=t.length;return r>1&&xo(e,t[0],t[1])?t=[]:r>2&&xo(t[0],t[1],t[2])&&(t=[t[0]]),Un(e,vn(t,1),[])}),ka=ut||function(){return ft.Date.now()};function Ca(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Yi(e,s,r,r,r,r,t)}function za(e,t){var i;if("function"!=typeof t)throw new Se(n);return e=ps(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=r),i}}var Sa=Xn(function(e,t,r){var n=1;if(r.length){var i=sr(r,ao(Sa));n|=a}return Yi(e,n,t,r,i)}),Ea=Xn(function(e,t,r){var n=3;if(r.length){var i=sr(r,ao(Ea));n|=a}return Yi(t,n,e,r,i)});function Aa(e,t,i){var o,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Se(n);function g(t){var n=o,i=a;return o=a=r,d=t,l=e.apply(i,n)}function v(e){var n=e-u;return u===r||n>=t||n<0||p&&e-d>=s}function b(){var e=ka();if(v(e))return m(e);c=Ao(b,function(e){var r=t-(e-u);return p?br(r,s-(e-d)):r}(e))}function m(e){return c=r,h&&o?g(e):(o=a=r,l)}function x(){var e=ka(),n=v(e);if(o=arguments,a=this,u=e,n){if(c===r)return function(e){return d=e,c=Ao(b,t),f?g(e):l}(u);if(p)return wi(c),c=Ao(b,t),g(u)}return c===r&&(c=Ao(b,t)),l}return t=gs(t)||0,Qa(i)&&(f=!!i.leading,s=(p="maxWait"in i)?vr(gs(i.maxWait)||0,t):s,h="trailing"in i?!!i.trailing:h),x.cancel=function(){c!==r&&wi(c),d=0,o=u=a=c=r},x.flush=function(){return c===r?l:m(ka())},x}var Ra=Xn(function(e,t){return cn(e,1,t)}),Oa=Xn(function(e,t,r){return cn(e,gs(t)||0,r)});function Ia(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Se(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(Ia.Cache||Kr),r}function Pa(e){if("function"!=typeof e)throw new Se(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ia.Cache=Kr;var La=xi(function(e,t){var r=(t=1==t.length&&Ua(t[0])?Ot(t[0],Yt(so())):Ot(vn(t,1),Yt(so()))).length;return Xn(function(n){for(var i=-1,o=br(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return jt(e,this,n)})}),Fa=Xn(function(e,t){var n=sr(t,ao(Fa));return Yi(e,a,r,t,n)}),Na=Xn(function(e,t){var n=sr(t,ao(Na));return Yi(e,64,r,t,n)}),Wa=to(function(e,t){return Yi(e,l,r,r,r,t)});function Ta(e,t){return e===t||e!=e&&t!=t}var Ba=Ki(kn),Da=Ki(function(e,t){return e>=t}),Ma=An(function(){return arguments}())?An:function(e){return es(e)&&Pe.call(e,"callee")&&!He.call(e,"callee")},Ua=ie.isArray,Va=mt?Yt(mt):function(e){return es(e)&&jn(e)==A};function Ka(e){return null!=e&&Ja(e.length)&&!Ya(e)}function qa(e){return es(e)&&Ka(e)}var Ha=bt||gl,Za=xt?Yt(xt):function(e){return es(e)&&jn(e)==b};function Xa(e){if(!es(e))return!1;var t=jn(e);return t==m||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ns(e)}function Ya(e){if(!Qa(e))return!1;var t=jn(e);return t==x||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ga(e){return"number"==typeof e&&e==ps(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=u}function Qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=yt?Yt(yt):function(e){return es(e)&&ho(e)==w};function rs(e){return"number"==typeof e||es(e)&&jn(e)==$}function ns(e){if(!es(e)||jn(e)!=_)return!1;var t=Ke(e);if(null===t)return!0;var r=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Ie.call(r)==We}var is=wt?Yt(wt):function(e){return es(e)&&jn(e)==k},os=$t?Yt($t):function(e){return es(e)&&ho(e)==C};function as(e){return"string"==typeof e||!Ua(e)&&es(e)&&jn(e)==z}function ss(e){return"symbol"==typeof e||es(e)&&jn(e)==S}var ls=_t?Yt(_t):function(e){return es(e)&&Ja(e.length)&&!!ot[jn(e)]},cs=Ki(Nn),us=Ki(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Ka(e))return as(e)?dr(e):Si(e);if(Ye&&e[Ye])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ye]());var t=ho(e);return(t==w?or:t==C?lr:Ts)(e)}function fs(e){return e?(e=gs(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=fs(e),r=t%1;return t==t?r?t-r:t:0}function hs(e){return e?an(ps(e),0,f):0}function gs(e){if("number"==typeof e)return e;if(ss(e))return d;if(Qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var r=he.test(e);return r||ve.test(e)?ct(e.slice(2),r?2:8):pe.test(e)?d:+e}function vs(e){return Ei(e,Rs(e))}function bs(e){return null==e?"":li(e)}var ms=Ri(function(e,t){if(_o(t)||Ka(t))Ei(t,As(t),e);else for(var r in t)Pe.call(t,r)&&Qr(e,r,t[r])}),xs=Ri(function(e,t){Ei(t,Rs(t),e)}),ys=Ri(function(e,t,r,n){Ei(t,Rs(t),e,n)}),ws=Ri(function(e,t,r,n){Ei(t,As(t),e,n)}),$s=to(on),_s=Xn(function(e,t){e=ke(e);var n=-1,i=t.length,o=i>2?t[2]:r;for(o&&xo(t[0],t[1],o)&&(i=1);++n<i;)for(var a=t[n],s=Rs(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===r||Ta(d,Re[u])&&!Pe.call(e,u))&&(e[u]=a[u])}return e}),js=Xn(function(e){return e.push(r,Ji),jt(Is,r,e)});function ks(e,t,n){var i=null==e?r:$n(e,t);return i===r?n:i}function Cs(e,t){return null!=e&&go(e,t,zn)}var zs=Bi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=r},Qs(rl)),Ss=Bi(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Pe.call(e,t)?e[t].push(r):e[t]=[r]},so),Es=Xn(En);function As(e){return Ka(e)?Zr(e):Ln(e)}function Rs(e){return Ka(e)?Zr(e,!0):Fn(e)}var Os=Ri(function(e,t,r){Dn(e,t,r)}),Is=Ri(function(e,t,r,n){Dn(e,t,r,n)}),Ps=to(function(e,t){var r={};if(null==e)return r;var n=!1;t=Ot(t,function(t){return t=mi(t,e),n||(n=t.length>1),t}),Ei(e,no(e),r),n&&(r=sn(r,7,Qi));for(var i=t.length;i--;)ui(r,t[i]);return r}),Ls=to(function(e,t){return null==e?{}:function(e,t){return Vn(e,t,function(t,r){return Cs(e,r)})}(e,t)});function Fs(e,t){if(null==e)return{};var r=Ot(no(e),function(e){return[e]});return t=so(t),Vn(e,r,function(e,r){return t(e,r[0])})}var Ns=Xi(As),Ws=Xi(Rs);function Ts(e){return null==e?[]:Gt(e,As(e))}var Bs=Li(function(e,t,r){return t=t.toLowerCase(),e+(r?Ds(t):t)});function Ds(e){return Xs(bs(e).toLowerCase())}function Ms(e){return(e=bs(e))&&e.replace(me,tr).replace(Je,"")}var Us=Li(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Vs=Li(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Ks=Pi("toLowerCase"),qs=Li(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),Hs=Li(function(e,t,r){return e+(r?" ":"")+Xs(t)}),Zs=Li(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Xs=Pi("toUpperCase");function Ys(e,t,n){return e=bs(e),(t=n?r:t)===r?function(e){return rt.test(e)}(e)?function(e){return e.match(et)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Gs=Xn(function(e,t){try{return jt(e,r,t)}catch(e){return Xa(e)?e:new $e(e)}}),Js=to(function(e,t){return Ct(t,function(t){t=Fo(t),nn(e,t,Sa(e[t],e))}),e});function Qs(e){return function(){return e}}var el=Wi(),tl=Wi(!0);function rl(e){return e}function nl(e){return Pn("function"==typeof e?e:sn(e,1))}var il=Xn(function(e,t){return function(r){return En(r,e,t)}}),ol=Xn(function(e,t){return function(r){return En(e,r,t)}});function al(e,t,r){var n=As(t),i=wn(t,n);null!=r||Qa(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=wn(t,As(t)));var o=!(Qa(r)&&"chain"in r&&!r.chain),a=Ya(e);return Ct(i,function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=Si(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})}),e}function sl(){}var ll=Mi(Ot),cl=Mi(St),ul=Mi(Ft);function dl(e){return yo(e)?Vt(Fo(e)):function(e){return function(t){return $n(t,e)}}(e)}var fl=Vi(),pl=Vi(!0);function hl(){return[]}function gl(){return!1}var vl,bl=Di(function(e,t){return e+t},0),ml=Hi("ceil"),xl=Di(function(e,t){return e/t},1),yl=Hi("floor"),wl=Di(function(e,t){return e*t},1),$l=Hi("round"),_l=Di(function(e,t){return e-t},0);return Wr.after=function(e,t){if("function"!=typeof t)throw new Se(n);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Wr.ary=Ca,Wr.assign=ms,Wr.assignIn=xs,Wr.assignInWith=ys,Wr.assignWith=ws,Wr.at=$s,Wr.before=za,Wr.bind=Sa,Wr.bindAll=Js,Wr.bindKey=Ea,Wr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ua(e)?e:[e]},Wr.chain=da,Wr.chunk=function(e,t,n){t=(n?xo(e,t,n):t===r)?1:vr(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=ie(pt(i/t));o<i;)s[a++]=ri(e,o,o+=t);return s},Wr.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Wr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ie(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return It(Ua(r)?Si(r):[r],vn(t,1))},Wr.cond=function(e){var t=null==e?0:e.length,r=so();return e=t?Ot(e,function(e){if("function"!=typeof e[1])throw new Se(n);return[r(e[0]),e[1]]}):[],Xn(function(r){for(var n=-1;++n<t;){var i=e[n];if(jt(i[0],this,r))return jt(i[1],this,r)}})},Wr.conforms=function(e){return function(e){var t=As(e);return function(r){return ln(r,e,t)}}(sn(e,1))},Wr.constant=Qs,Wr.countBy=ha,Wr.create=function(e,t){var r=Tr(e);return null==t?r:rn(r,t)},Wr.curry=function e(t,n,i){var o=Yi(t,8,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Wr.curryRight=function e(t,n,i){var o=Yi(t,16,r,r,r,r,r,n=i?r:n);return o.placeholder=e.placeholder,o},Wr.debounce=Aa,Wr.defaults=_s,Wr.defaultsDeep=js,Wr.defer=Ra,Wr.delay=Oa,Wr.difference=To,Wr.differenceBy=Bo,Wr.differenceWith=Do,Wr.drop=function(e,t,n){var i=null==e?0:e.length;return i?ri(e,(t=n||t===r?1:ps(t))<0?0:t,i):[]},Wr.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ri(e,0,(t=i-(t=n||t===r?1:ps(t)))<0?0:t):[]},Wr.dropRightWhile=function(e,t){return e&&e.length?fi(e,so(t,3),!0,!0):[]},Wr.dropWhile=function(e,t){return e&&e.length?fi(e,so(t,3),!0):[]},Wr.fill=function(e,t,n,i){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&xo(e,t,n)&&(n=0,i=o),function(e,t,n,i){var o=e.length;for((n=ps(n))<0&&(n=-n>o?0:o+n),(i=i===r||i>o?o:ps(i))<0&&(i+=o),i=n>i?0:hs(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Wr.filter=function(e,t){return(Ua(e)?Et:gn)(e,so(t,3))},Wr.flatMap=function(e,t){return vn($a(e,t),1)},Wr.flatMapDeep=function(e,t){return vn($a(e,t),c)},Wr.flatMapDepth=function(e,t,n){return n=n===r?1:ps(n),vn($a(e,t),n)},Wr.flatten=Vo,Wr.flattenDeep=function(e){return null!=e&&e.length?vn(e,c):[]},Wr.flattenDepth=function(e,t){return null!=e&&e.length?vn(e,t=t===r?1:ps(t)):[]},Wr.flip=function(e){return Yi(e,512)},Wr.flow=el,Wr.flowRight=tl,Wr.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Wr.functions=function(e){return null==e?[]:wn(e,As(e))},Wr.functionsIn=function(e){return null==e?[]:wn(e,Rs(e))},Wr.groupBy=xa,Wr.initial=function(e){return null!=e&&e.length?ri(e,0,-1):[]},Wr.intersection=qo,Wr.intersectionBy=Ho,Wr.intersectionWith=Zo,Wr.invert=zs,Wr.invertBy=Ss,Wr.invokeMap=ya,Wr.iteratee=nl,Wr.keyBy=wa,Wr.keys=As,Wr.keysIn=Rs,Wr.map=$a,Wr.mapKeys=function(e,t){var r={};return t=so(t,3),xn(e,function(e,n,i){nn(r,t(e,n,i),e)}),r},Wr.mapValues=function(e,t){var r={};return t=so(t,3),xn(e,function(e,n,i){nn(r,n,t(e,n,i))}),r},Wr.matches=function(e){return Tn(sn(e,1))},Wr.matchesProperty=function(e,t){return Bn(e,sn(t,1))},Wr.memoize=Ia,Wr.merge=Os,Wr.mergeWith=Is,Wr.method=il,Wr.methodOf=ol,Wr.mixin=al,Wr.negate=Pa,Wr.nthArg=function(e){return e=ps(e),Xn(function(t){return Mn(t,e)})},Wr.omit=Ps,Wr.omitBy=function(e,t){return Fs(e,Pa(so(t)))},Wr.once=function(e){return za(2,e)},Wr.orderBy=function(e,t,n,i){return null==e?[]:(Ua(t)||(t=null==t?[]:[t]),Ua(n=i?r:n)||(n=null==n?[]:[n]),Un(e,t,n))},Wr.over=ll,Wr.overArgs=La,Wr.overEvery=cl,Wr.overSome=ul,Wr.partial=Fa,Wr.partialRight=Na,Wr.partition=_a,Wr.pick=Ls,Wr.pickBy=Fs,Wr.property=dl,Wr.propertyOf=function(e){return function(t){return null==e?r:$n(e,t)}},Wr.pull=Yo,Wr.pullAll=Go,Wr.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Kn(e,t,so(r,2)):e},Wr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Kn(e,t,r,n):e},Wr.pullAt=Jo,Wr.range=fl,Wr.rangeRight=pl,Wr.rearg=Wa,Wr.reject=function(e,t){return(Ua(e)?Et:gn)(e,Pa(so(t,3)))},Wr.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=so(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return qn(e,i),r},Wr.rest=function(e,t){if("function"!=typeof e)throw new Se(n);return Xn(e,t=t===r?t:ps(t))},Wr.reverse=Qo,Wr.sampleSize=function(e,t,n){return t=(n?xo(e,t,n):t===r)?1:ps(t),(Ua(e)?Yr:Gn)(e,t)},Wr.set=function(e,t,r){return null==e?e:Jn(e,t,r)},Wr.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:Jn(e,t,n,i)},Wr.shuffle=function(e){return(Ua(e)?Gr:ti)(e)},Wr.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&xo(e,t,n)?(t=0,n=i):(t=null==t?0:ps(t),n=n===r?i:ps(n)),ri(e,t,n)):[]},Wr.sortBy=ja,Wr.sortedUniq=function(e){return e&&e.length?ai(e):[]},Wr.sortedUniqBy=function(e,t){return e&&e.length?ai(e,so(t,2)):[]},Wr.split=function(e,t,n){return n&&"number"!=typeof n&&xo(e,t,n)&&(t=n=r),(n=n===r?f:n>>>0)?(e=bs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=li(t))&&ir(e)?yi(dr(e),0,n):e.split(t,n):[]},Wr.spread=function(e,t){if("function"!=typeof e)throw new Se(n);return t=null==t?0:vr(ps(t),0),Xn(function(r){var n=r[t],i=yi(r,0,t);return n&&It(i,n),jt(e,this,i)})},Wr.tail=function(e){var t=null==e?0:e.length;return t?ri(e,1,t):[]},Wr.take=function(e,t,n){return e&&e.length?ri(e,0,(t=n||t===r?1:ps(t))<0?0:t):[]},Wr.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ri(e,(t=i-(t=n||t===r?1:ps(t)))<0?0:t,i):[]},Wr.takeRightWhile=function(e,t){return e&&e.length?fi(e,so(t,3),!1,!0):[]},Wr.takeWhile=function(e,t){return e&&e.length?fi(e,so(t,3)):[]},Wr.tap=function(e,t){return t(e),e},Wr.throttle=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new Se(n);return Qa(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),Aa(e,t,{leading:i,maxWait:t,trailing:o})},Wr.thru=fa,Wr.toArray=ds,Wr.toPairs=Ns,Wr.toPairsIn=Ws,Wr.toPath=function(e){return Ua(e)?Ot(e,Fo):ss(e)?[e]:Si(Lo(bs(e)))},Wr.toPlainObject=vs,Wr.transform=function(e,t,r){var n=Ua(e),i=n||Ha(e)||ls(e);if(t=so(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Qa(e)&&Ya(o)?Tr(Ke(e)):{}}return(i?Ct:xn)(e,function(e,n,i){return t(r,e,n,i)}),r},Wr.unary=function(e){return Ca(e,1)},Wr.union=ea,Wr.unionBy=ta,Wr.unionWith=ra,Wr.uniq=function(e){return e&&e.length?ci(e):[]},Wr.uniqBy=function(e,t){return e&&e.length?ci(e,so(t,2)):[]},Wr.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?ci(e,r,t):[]},Wr.unset=function(e,t){return null==e||ui(e,t)},Wr.unzip=na,Wr.unzipWith=ia,Wr.update=function(e,t,r){return null==e?e:di(e,t,bi(r))},Wr.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:di(e,t,bi(n),i)},Wr.values=Ts,Wr.valuesIn=function(e){return null==e?[]:Gt(e,Rs(e))},Wr.without=oa,Wr.words=Ys,Wr.wrap=function(e,t){return Fa(bi(t),e)},Wr.xor=aa,Wr.xorBy=sa,Wr.xorWith=la,Wr.zip=ca,Wr.zipObject=function(e,t){return gi(e||[],t||[],Qr)},Wr.zipObjectDeep=function(e,t){return gi(e||[],t||[],Jn)},Wr.zipWith=ua,Wr.entries=Ns,Wr.entriesIn=Ws,Wr.extend=xs,Wr.extendWith=ys,al(Wr,Wr),Wr.add=bl,Wr.attempt=Gs,Wr.camelCase=Bs,Wr.capitalize=Ds,Wr.ceil=ml,Wr.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=gs(n))==n?n:0),t!==r&&(t=(t=gs(t))==t?t:0),an(gs(e),t,n)},Wr.clone=function(e){return sn(e,4)},Wr.cloneDeep=function(e){return sn(e,5)},Wr.cloneDeepWith=function(e,t){return sn(e,5,t="function"==typeof t?t:r)},Wr.cloneWith=function(e,t){return sn(e,4,t="function"==typeof t?t:r)},Wr.conformsTo=function(e,t){return null==t||ln(e,t,As(t))},Wr.deburr=Ms,Wr.defaultTo=function(e,t){return null==e||e!=e?t:e},Wr.divide=xl,Wr.endsWith=function(e,t,n){e=bs(e),t=li(t);var i=e.length,o=n=n===r?i:an(ps(n),0,i);return(n-=t.length)>=0&&e.slice(n,o)==t},Wr.eq=Ta,Wr.escape=function(e){return(e=bs(e))&&H.test(e)?e.replace(K,rr):e},Wr.escapeRegExp=function(e){return(e=bs(e))&&re.test(e)?e.replace(te,"\\$&"):e},Wr.every=function(e,t,n){var i=Ua(e)?St:pn;return n&&xo(e,t,n)&&(t=r),i(e,so(t,3))},Wr.find=ga,Wr.findIndex=Mo,Wr.findKey=function(e,t){return Wt(e,so(t,3),xn)},Wr.findLast=va,Wr.findLastIndex=Uo,Wr.findLastKey=function(e,t){return Wt(e,so(t,3),yn)},Wr.floor=yl,Wr.forEach=ba,Wr.forEachRight=ma,Wr.forIn=function(e,t){return null==e?e:bn(e,so(t,3),Rs)},Wr.forInRight=function(e,t){return null==e?e:mn(e,so(t,3),Rs)},Wr.forOwn=function(e,t){return e&&xn(e,so(t,3))},Wr.forOwnRight=function(e,t){return e&&yn(e,so(t,3))},Wr.get=ks,Wr.gt=Ba,Wr.gte=Da,Wr.has=function(e,t){return null!=e&&go(e,t,Cn)},Wr.hasIn=Cs,Wr.head=Ko,Wr.identity=rl,Wr.includes=function(e,t,r,n){e=Ka(e)?e:Ts(e),r=r&&!n?ps(r):0;var i=e.length;return r<0&&(r=vr(i+r,0)),as(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&Bt(e,t,r)>-1},Wr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ps(r);return i<0&&(i=vr(n+i,0)),Bt(e,t,i)},Wr.inRange=function(e,t,n){return t=fs(t),n===r?(n=t,t=0):n=fs(n),function(e,t,r){return e>=br(t,r)&&e<vr(t,r)}(e=gs(e),t,n)},Wr.invoke=Es,Wr.isArguments=Ma,Wr.isArray=Ua,Wr.isArrayBuffer=Va,Wr.isArrayLike=Ka,Wr.isArrayLikeObject=qa,Wr.isBoolean=function(e){return!0===e||!1===e||es(e)&&jn(e)==v},Wr.isBuffer=Ha,Wr.isDate=Za,Wr.isElement=function(e){return es(e)&&1===e.nodeType&&!ns(e)},Wr.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Ua(e)||"string"==typeof e||"function"==typeof e.splice||Ha(e)||ls(e)||Ma(e)))return!e.length;var t=ho(e);if(t==w||t==C)return!e.size;if(_o(e))return!Ln(e).length;for(var r in e)if(Pe.call(e,r))return!1;return!0},Wr.isEqual=function(e,t){return Rn(e,t)},Wr.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Rn(e,t,r,n):!!i},Wr.isError=Xa,Wr.isFinite=function(e){return"number"==typeof e&&Nt(e)},Wr.isFunction=Ya,Wr.isInteger=Ga,Wr.isLength=Ja,Wr.isMap=ts,Wr.isMatch=function(e,t){return e===t||On(e,t,co(t))},Wr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,On(e,t,co(t),n)},Wr.isNaN=function(e){return rs(e)&&e!=+e},Wr.isNative=function(e){if($o(e))throw new $e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return In(e)},Wr.isNil=function(e){return null==e},Wr.isNull=function(e){return null===e},Wr.isNumber=rs,Wr.isObject=Qa,Wr.isObjectLike=es,Wr.isPlainObject=ns,Wr.isRegExp=is,Wr.isSafeInteger=function(e){return Ga(e)&&e>=-9007199254740991&&e<=u},Wr.isSet=os,Wr.isString=as,Wr.isSymbol=ss,Wr.isTypedArray=ls,Wr.isUndefined=function(e){return e===r},Wr.isWeakMap=function(e){return es(e)&&ho(e)==E},Wr.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==jn(e)},Wr.join=function(e,t){return null==e?"":Kt.call(e,t)},Wr.kebabCase=Us,Wr.last=Xo,Wr.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var o=i;return n!==r&&(o=(o=ps(n))<0?vr(i+o,0):br(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):Tt(e,Mt,o,!0)},Wr.lowerCase=Vs,Wr.lowerFirst=Ks,Wr.lt=cs,Wr.lte=us,Wr.max=function(e){return e&&e.length?hn(e,rl,kn):r},Wr.maxBy=function(e,t){return e&&e.length?hn(e,so(t,2),kn):r},Wr.mean=function(e){return Ut(e,rl)},Wr.meanBy=function(e,t){return Ut(e,so(t,2))},Wr.min=function(e){return e&&e.length?hn(e,rl,Nn):r},Wr.minBy=function(e,t){return e&&e.length?hn(e,so(t,2),Nn):r},Wr.stubArray=hl,Wr.stubFalse=gl,Wr.stubObject=function(){return{}},Wr.stubString=function(){return""},Wr.stubTrue=function(){return!0},Wr.multiply=wl,Wr.nth=function(e,t){return e&&e.length?Mn(e,ps(t)):r},Wr.noConflict=function(){return ft._===this&&(ft._=Te),this},Wr.noop=sl,Wr.now=ka,Wr.pad=function(e,t,r){e=bs(e);var n=(t=ps(t))?ur(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return Ui(ht(i),r)+e+Ui(pt(i),r)},Wr.padEnd=function(e,t,r){e=bs(e);var n=(t=ps(t))?ur(e):0;return t&&n<t?e+Ui(t-n,r):e},Wr.padStart=function(e,t,r){e=bs(e);var n=(t=ps(t))?ur(e):0;return t&&n<t?Ui(t-n,r)+e:e},Wr.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),xr(bs(e).replace(ne,""),t||0)},Wr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&xo(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=fs(e),t===r?(t=e,e=0):t=fs(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var o=yr();return br(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Hn(e,t)},Wr.reduce=function(e,t,r){var n=Ua(e)?Pt:qt,i=arguments.length<3;return n(e,so(t,4),r,i,dn)},Wr.reduceRight=function(e,t,r){var n=Ua(e)?Lt:qt,i=arguments.length<3;return n(e,so(t,4),r,i,fn)},Wr.repeat=function(e,t,n){return t=(n?xo(e,t,n):t===r)?1:ps(t),Zn(bs(e),t)},Wr.replace=function(){var e=arguments,t=bs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Wr.result=function(e,t,n){var i=-1,o=(t=mi(t,e)).length;for(o||(o=1,e=r);++i<o;){var a=null==e?r:e[Fo(t[i])];a===r&&(i=o,a=n),e=Ya(a)?a.call(e):a}return e},Wr.round=$l,Wr.runInContext=e,Wr.sample=function(e){return(Ua(e)?Xr:Yn)(e)},Wr.size=function(e){if(null==e)return 0;if(Ka(e))return as(e)?ur(e):e.length;var t=ho(e);return t==w||t==C?e.size:Ln(e).length},Wr.snakeCase=qs,Wr.some=function(e,t,n){var i=Ua(e)?Ft:ni;return n&&xo(e,t,n)&&(t=r),i(e,so(t,3))},Wr.sortedIndex=function(e,t){return ii(e,t)},Wr.sortedIndexBy=function(e,t,r){return oi(e,t,so(r,2))},Wr.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=ii(e,t);if(n<r&&Ta(e[n],t))return n}return-1},Wr.sortedLastIndex=function(e,t){return ii(e,t,!0)},Wr.sortedLastIndexBy=function(e,t,r){return oi(e,t,so(r,2),!0)},Wr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=ii(e,t,!0)-1;if(Ta(e[r],t))return r}return-1},Wr.startCase=Hs,Wr.startsWith=function(e,t,r){return e=bs(e),r=null==r?0:an(ps(r),0,e.length),t=li(t),e.slice(r,r+t.length)==t},Wr.subtract=_l,Wr.sum=function(e){return e&&e.length?Ht(e,rl):0},Wr.sumBy=function(e,t){return e&&e.length?Ht(e,so(t,2)):0},Wr.template=function(e,t,n){var i=Wr.templateSettings;n&&xo(e,t,n)&&(t=r),e=bs(e),t=ys({},t,i,Gi);var o,a,s=ys({},t.imports,i.imports,Gi),l=As(s),c=Gt(s,l),u=0,d=t.interpolate||xe,f="__p += '",p=Ce((t.escape||xe).source+"|"+d.source+"|"+(d===Y?de:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,function(t,r,n,i,s,l){return n||(n=i),f+=e.slice(u,l).replace(ye,nr),r&&(o=!0,f+="' +\n__e("+r+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=l+t.length,t}),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new $e("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(D,""):f).replace(M,"$1").replace(U,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Gs(function(){return _e(l,h+"return "+f).apply(r,c)});if(v.source=f,Xa(v))throw v;return v},Wr.times=function(e,t){if((e=ps(e))<1||e>u)return[];var r=f,n=br(e,f);t=so(t),e-=f;for(var i=Zt(n,t);++r<e;)t(r);return i},Wr.toFinite=fs,Wr.toInteger=ps,Wr.toLength=hs,Wr.toLower=function(e){return bs(e).toLowerCase()},Wr.toNumber=gs,Wr.toSafeInteger=function(e){return e?an(ps(e),-9007199254740991,u):0===e?e:0},Wr.toString=bs,Wr.toUpper=function(e){return bs(e).toUpperCase()},Wr.trim=function(e,t,n){if((e=bs(e))&&(n||t===r))return Xt(e);if(!e||!(t=li(t)))return e;var i=dr(e),o=dr(t);return yi(i,Qt(i,o),er(i,o)+1).join("")},Wr.trimEnd=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.slice(0,fr(e)+1);if(!e||!(t=li(t)))return e;var i=dr(e);return yi(i,0,er(i,dr(t))+1).join("")},Wr.trimStart=function(e,t,n){if((e=bs(e))&&(n||t===r))return e.replace(ne,"");if(!e||!(t=li(t)))return e;var i=dr(e);return yi(i,Qt(i,dr(t))).join("")},Wr.truncate=function(e,t){var n=30,i="...";if(Qa(t)){var o="separator"in t?t.separator:o;n="length"in t?ps(t.length):n,i="omission"in t?li(t.omission):i}var a=(e=bs(e)).length;if(ir(e)){var s=dr(e);a=s.length}if(n>=a)return e;var l=n-ur(i);if(l<1)return i;var c=s?yi(s,0,l).join(""):e.slice(0,l);if(o===r)return c+i;if(s&&(l+=c.length-l),is(o)){if(e.slice(l).search(o)){var u,d=c;for(o.global||(o=Ce(o.source,bs(fe.exec(o))+"g")),o.lastIndex=0;u=o.exec(d);)var f=u.index;c=c.slice(0,f===r?l:f)}}else if(e.indexOf(li(o),l)!=l){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+i},Wr.unescape=function(e){return(e=bs(e))&&q.test(e)?e.replace(V,pr):e},Wr.uniqueId=function(e){var t=++Le;return bs(e)+t},Wr.upperCase=Zs,Wr.upperFirst=Xs,Wr.each=ba,Wr.eachRight=ma,Wr.first=Ko,al(Wr,(vl={},xn(Wr,function(e,t){Pe.call(Wr.prototype,t)||(vl[t]=e)}),vl),{chain:!1}),Wr.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Wr[e].placeholder=Wr}),Ct(["drop","take"],function(e,t){Mr.prototype[e]=function(n){n=n===r?1:vr(ps(n),0);var i=this.__filtered__&&!t?new Mr(this):this.clone();return i.__filtered__?i.__takeCount__=br(n,i.__takeCount__):i.__views__.push({size:br(n,f),type:e+(i.__dir__<0?"Right":"")}),i},Mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ct(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;Mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:so(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Ct(["head","last"],function(e,t){var r="take"+(t?"Right":"");Mr.prototype[e]=function(){return this[r](1).value()[0]}}),Ct(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");Mr.prototype[e]=function(){return this.__filtered__?new Mr(this):this[r](1)}}),Mr.prototype.compact=function(){return this.filter(rl)},Mr.prototype.find=function(e){return this.filter(e).head()},Mr.prototype.findLast=function(e){return this.reverse().find(e)},Mr.prototype.invokeMap=Xn(function(e,t){return"function"==typeof e?new Mr(this):this.map(function(r){return En(r,e,t)})}),Mr.prototype.reject=function(e){return this.filter(Pa(so(e)))},Mr.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Mr.prototype.toArray=function(){return this.take(f)},xn(Mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=Wr[i?"take"+("last"==t?"Right":""):t],a=i||/^find/.test(t);o&&(Wr.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof Mr,c=s[0],u=l||Ua(t),d=function(e){var t=o.apply(Wr,It([e],s));return i&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,g=l&&!p;if(!a&&u){t=g?t:new Mr(this);var v=e.apply(t,s);return v.__actions__.push({func:fa,args:[d],thisArg:r}),new Dr(v,f)}return h&&g?e.apply(this,s):(v=this.thru(d),h?i?v.value()[0]:v.value():v)})}),Ct(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ee[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Wr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Ua(i)?i:[],e)}return this[r](function(r){return t.apply(Ua(r)?r:[],e)})}}),xn(Mr.prototype,function(e,t){var r=Wr[t];if(r){var n=r.name+"";Pe.call(Er,n)||(Er[n]=[]),Er[n].push({name:t,func:r})}}),Er[Ti(r,2).name]=[{name:"wrapper",func:r}],Mr.prototype.clone=function(){var e=new Mr(this.__wrapped__);return e.__actions__=Si(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Si(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Si(this.__views__),e},Mr.prototype.reverse=function(){if(this.__filtered__){var e=new Mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Ua(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=br(t,e+a);break;case"takeRight":e=vr(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,l=s-a,c=n?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=br(l,this.__takeCount__);if(!r||!n&&i==l&&p==l)return pi(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var g=-1,v=e[c+=t];++g<d;){var b=u[g],m=b.iteratee,x=b.type,y=m(v);if(2==x)v=y;else if(!y){if(1==x)continue e;break e}}h[f++]=v}return h},Wr.prototype.at=pa,Wr.prototype.chain=function(){return da(this)},Wr.prototype.commit=function(){return new Dr(this.value(),this.__chain__)},Wr.prototype.next=function(){this.__values__===r&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Wr.prototype.plant=function(e){for(var t,n=this;n instanceof Br;){var i=Wo(n);i.__index__=0,i.__values__=r,t?o.__wrapped__=i:t=i;var o=i;n=n.__wrapped__}return o.__wrapped__=e,t},Wr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Mr){var t=e;return this.__actions__.length&&(t=new Mr(this)),(t=t.reverse()).__actions__.push({func:fa,args:[Qo],thisArg:r}),new Dr(t,this.__chain__)}return this.thru(Qo)},Wr.prototype.toJSON=Wr.prototype.valueOf=Wr.prototype.value=function(){return pi(this.__wrapped__,this.__actions__)},Wr.prototype.first=Wr.prototype.head,Ye&&(Wr.prototype[Ye]=function(){return this}),Wr}();ht?((ht.exports=hr)._=hr,pt._=hr):ft._=hr}).call(re)}(te,te.exports)),te.exports);const ie=r.div`
263
+ position: relative;
264
+ display: flex;
265
+ flex-wrap: nowrap;
266
+ align-items: flex-start;
267
+ justify-content: space-between;
268
+ border-radius: 12px;
269
+
270
+ font-size: inherit;
271
+ font-family: inherit;
272
+ border: 1px solid transparent;
273
+ background-color: ${({$disabled:e})=>e?"var(--db-background)":"transparent"};
274
+
275
+ ${({$role:e,$height:t})=>"textarea"===e?r.css`
276
+ height: auto;
277
+ min-height: 80px;
278
+ `:r.css`
279
+ height: ${t}px;
280
+ `}
281
+
282
+ border-color: ${({$hasError:e,$hasWarning:t,$hasFocus:r,$disabled:n,readOnly:i})=>t?"var(--db-warning)":e?"var(--db-danger)":r?"var(--db-primary)":n||i?"var(--db-background)":"var(--db-tertiary-lighten-10)"};
283
+
284
+ ${({$hasError:e,$hasWarning:t})=>t?r.css`
285
+ box-shadow: 0 0 0 3px
286
+ color-mix(in srgb, var(--db-warning-lighten-20), transparent);
287
+ `:e?r.css`
288
+ box-shadow: 0 0 0 3px
289
+ color-mix(in srgb, var(--db-danger-lighten-20), transparent);
290
+ `:void 0}
291
+
292
+ ${({readOnly:e})=>e&&r.css`
293
+ opacity: 0.7;
294
+
295
+ * {
296
+ cursor: not-allowed;
297
+ }
298
+ `}
299
+
300
+ ${e=>h.hydrate(e)}
301
+ `,oe=r.input`
302
+ flex: 1;
303
+ border: none;
304
+ outline: none;
305
+ background: transparent;
306
+ font-size: inherit;
307
+ font-weight: 300;
308
+ color: var(--db-primary);
309
+
310
+ /* Padding dinámico basado en altura */
311
+ ${({height:e,role:t})=>{if("textarea"===t)return r.css`
312
+ padding: 16px;
313
+ height: auto;
314
+ min-height: 80px;
315
+ resize: vertical;
316
+ `;if(e&&Number(e)<50){const t=Math.max(8,(Number(e)-16)/2);return r.css`
317
+ padding: ${t}px 40px ${t}px 16px;
318
+ height: 100%;
319
+ `}return r.css`
320
+ padding: 16px 40px 8px 16px;
321
+ height: 100%;
322
+ `}}
323
+
324
+ text-align: ${({$align:e})=>e||"left"};
325
+ cursor: ${({disabled:e,readOnly:t})=>e||t?"not-allowed":"initial"};
326
+ &::-webkit-outer-spin-button,
327
+ &::-webkit-inner-spin-button {
328
+ -webkit-appearance: none;
329
+ margin: 0;
330
+ }
331
+
332
+ &::-webkit-calendar-picker-indicator {
333
+ display: none;
334
+ -webkit-appearance: none;
335
+ margin: 0;
336
+ }
337
+
338
+ &:disabled {
339
+ & ~ .actionButton {
340
+ display: none;
341
+ }
342
+ }
343
+
344
+ ${e=>h.hydrate(e)}
345
+ `,ae=r.label`
346
+ color: var(--db-tertiary-lighten-10);
347
+ font-weight: 300;
348
+ font-size: ${({$hasFocus:e,$role:t})=>e||"calendar"===t?"70%":"14px"};
349
+ padding: 0;
350
+ line-height: 1;
351
+ background: transparent;
352
+ position: absolute;
353
+ top: ${({$hasFocus:e,$role:t})=>e||"calendar"===t?"4px":"16px"};
354
+ bottom: 0;
355
+ left: 14px;
356
+ width: auto;
357
+ max-width: 80%;
358
+ text-align: ${({$right:e})=>e?"right":"left"};
359
+ pointer-events: none;
360
+ transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
361
+ border-color 150ms ease-in-out, top 100ms ease-in-out;
362
+
363
+ ${e=>h.hydrate(e)}
364
+ `,se=r.span`
365
+ color: var(--db-tertiary-lighten-10);
366
+ font-weight: 300;
367
+ font-size: ${({$hasFocus:e})=>e?"70%":"inherit"};
368
+ padding: 0;
369
+ line-height: 1;
370
+ background: transparent;
371
+ position: absolute;
372
+ top: ${({$hasFocus:e})=>e?"4px":"16px"};
373
+ bottom: 0;
374
+ right: 14px;
375
+ width: auto;
376
+ max-width: 300px;
377
+ text-align: ${({$right:e})=>e?"right":"left"};
378
+ pointer-events: none;
379
+ transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
380
+ border-color 150ms ease-in-out, top 100ms ease-in-out;
381
+
382
+ ${e=>h.hydrate(e)}
383
+ `,le=r.span`
384
+ color: var(--db-danger);
385
+ font-size: 10px;
386
+ position: absolute;
387
+ left: 0;
388
+ bottom: -18px;
389
+
390
+ ${e=>h.hydrate(e)}
391
+ `,ce=r.span`
392
+ color: var(--db-background-darken-5);
393
+ font-size: 10px;
394
+ position: absolute;
395
+ right: 0;
396
+ bottom: -18px;
397
+
398
+ ${e=>h.hydrate(e)}
399
+ `,ue=r.span`
400
+ min-width: 30px;
401
+ width: 30px;
402
+
403
+ height: 100%;
404
+ max-height: 50px;
405
+
406
+ display: flex;
407
+ align-items: center;
408
+ justify-content: center;
409
+ cursor: pointer;
410
+ ${e=>h.hydrate(e)}
411
+ `,de=r.div`
412
+ pointer-events: none;
413
+ display: inline-flex;
414
+ align-items: center;
415
+ justify-content: center;
416
+ min-width: 30px;
417
+ height: 100%;
418
+ padding: 0 12px;
419
+ `,{emailRgx:fe,curpRgx:pe,specialChars:he,onlyLetterNumbers:ge,onlySlug:ve,onlyPhone:be,onlyLetters:me}=c,xe=t.memo(({isSlug:r,placeholder:n="",type:i="text",getValue:o,role:a="input",value:s="",forwardRef:l,onKeyDown:c,onKeyUp:u,onChange:d,onBlur:f,onFocus:p,onCopy:h,onPaste:g,error:m="",warning:x="",disabled:y=!1,maxLength:w,isNumber:$=!1,scapeCharacters:_=!1,onlyCharaters:j=!1,onlyAlpha:k=!1,normalizer:C=!1,isCurp:z=!1,onlyNL:S=!1,onlyLetters:E=!1,onlyPositiveNumbers:A=!1,readOnly:R=!1,capitalize:O=!1,showCalendar:I=!1,hasRequired:P="",autoComplete:L=!1,align:F="left",styles:N={},height:W=50,suffix:T,...B})=>{const D=t.useRef(null),M=t.useId(),[U,V]=t.useState(!1),[K,q]=t.useState(""),[H,Z]=t.useState(!1),[Y,G]=t.useState(s),J=t.useRef(!1),Q=t.useMemo(()=>v(n)+M,[n,M]),ee=t.useMemo(()=>ne.debounce(e=>{null==o||o(e),J.current=!1},300),[o]);t.useEffect(()=>{J.current||s!==Y&&G(s)},[s]),t.useEffect(()=>{const e=setTimeout(()=>{if(D.current){const e=D.current.value;e&&!s&&(G(e),null==o||o(e))}},200);return()=>clearTimeout(e)},[]);const te=t.useCallback(e=>{let{value:t}=e.target;const n={onlyAlpha:()=>t.replace(/[0-9$&\\+:·,.;=¬?´@¿¡ç#|'"/`|°¨<>_^*()%![\]}+~{-]/g,""),scapeCharacters:()=>t.replace(he,""),onlyCharaters:()=>t.replace(/[$&\\+:·,;=¬?´@¿¡ç|'"/`|°¨<>_^*()%![\]}+~{]/g,""),onlyNL:()=>t.replace(ge,""),onlyLetters:()=>t.replace(me,""),onlyPhone:()=>t.replace(be,"").replace(/e/g,""),isSlug:()=>t.replace(ve,"").replace(/ /g,"-"),onlyPositiveNumbers:()=>/^[1-9]$|^[1-9][0-9]$|^(100)$/.test(t)?t:t.slice(0,-1),isCurp:()=>{const e=pe.test(t);return q(e||0===t.length?"":"Curp no válido"),t},email:()=>{const e=fe.test(t);return q(e||0===t.length?"":"Email no válido"),t},capitalize:()=>t.toLowerCase().replace(/\w/,e=>e.toUpperCase()),normalizer:()=>b(t),maxLength:()=>void 0!==w&&!isNaN(w)&&w>0&&t.length>w?t.slice(0,w):t};Object.entries({onlyAlpha:k,scapeCharacters:_,onlyCharaters:j,onlyNL:S,isSlug:r,onlyPositiveNumbers:A,onlyLetters:E,onlyPhone:"tel"===i,isCurp:"curp"===i,email:"email"===i,capitalize:O,normalizer:C,maxLength:w}).forEach(([e,r])=>{var i,o;r&&(t=null!==(o=null===(i=n[e])||void 0===i?void 0:i.call(n))&&void 0!==o?o:t)}),J.current=!0,G(t),null==d||d(t),ee(t)},[k,_,j,S,r,A,i,O,C,d,ee,E,w]),re=t.useCallback(e=>{if(D.current){const e=D.current.value;e!==Y&&G(e),null==o||o(e)}V(!1),null==f||f()},[Y,o,f]),xe=t.useCallback(e=>{D.current=e,l&&"function"==typeof l?l(e):l&&(l.current=e)},[l]),ye=t.useCallback(()=>{V(!0),null==p||p()},[p]),we=t.useCallback(()=>Z(e=>!e),[]),$e=t.useCallback(()=>{G(""),null==o||o("")},[o]),_e=t.useCallback(()=>{"calendar"===i&&D.current.showPicker()},[i]),je=t.useMemo(()=>m||K,[m,K]),ke=t.useMemo(()=>x,[x]);return e.jsxs(ie,{$hasFocus:U,$hasError:!!je,$hasWarning:!je&&!!ke,$disabled:y,$height:W,$role:a,...B,...N,children:[e.jsx(oe,{as:a,role:a,height:W,readOnly:R,onFocus:ye,onBlur:re,value:Y,ref:xe,onChange:te,onInput:te,onKeyDown:c,onKeyUp:u,onPaste:g?e=>e.preventDefault():void 0,onCopy:h?e=>e.preventDefault():void 0,disabled:y,maxLength:w,$align:F,type:$?"number":"password"===i?H?"text":"password":"calendar"===i?"date":i,min:$?"0":void 0,max:$?"9":void 0,autoComplete:Q,id:Q,name:Q}),T&&e.jsx(de,{onClick:_e,children:T}),!!Y&&!R&&e.jsx(ue,{className:"actionButton",style:{right:["password","calendar"].includes(i)?"2rem":"0rem"},children:e.jsx(X,{type:"rollback",onClick:$e,wsvg:22,color:"var(--db-tertiary-lighten-10)"})}),"password"===i&&!!Y.length&&e.jsx(ue,{className:"actionButton",children:e.jsx(X,{wsvg:22,type:H?"hide":"show",color:"var(--db-tertiary-lighten-10)",onClick:we})}),e.jsx(ae,{$role:i,$height:W,htmlFor:Q,disabled:y,$hasFocus:U||!!Y,children:n||"Missing placeholder"}),P&&!!Y.length&&e.jsx(se,{$hasFocus:!0,disabled:y,$right:!0,children:P}),!!je&&!!Y.length&&e.jsx(le,{children:je}),!!ke&&!!Y.length&&e.jsx(ce,{children:ke})]})},function(e,t){if(e.suffix||t.suffix)return!1;return["value","error","warning","disabled","readOnly","hasRequired","isSlug","type","isNumber","maxLength","align"].every(r=>ne.isEqual(e[r],t[r]))&&e.styles===t.styles});var ye=t.memo(xe);const we=r.div`
420
+ ${e=>h.hydrate(e)}
421
+ `;var $e=t.memo(({children:t,...r})=>e.jsx(we,{...r,children:t}));const _e=r.span`
422
+ display: inline-flex;
423
+ align-items: center;
424
+ justify-content: center;
425
+ position: relative;
426
+ cursor: pointer;
427
+
428
+ &:hover .content {
429
+ visibility: visible;
430
+ opacity: 1;
431
+ }
432
+
433
+ ${e=>h.hydrate(e)}
434
+ `,je=r.span`
435
+ display: inline-block;
436
+ padding: 6px 10px;
437
+ color: var(--db-white);
438
+ font-size: 16px;
439
+ line-height: 1;
440
+ font-weight: 500;
441
+ min-width: ${({$w:e})=>e}px;
442
+ position: absolute;
443
+ background-color: var(--db-${({$theme:e})=>e||"black"});
444
+ z-index: 5;
445
+ cursor: initial;
446
+ text-align: left;
447
+ border-radius: 8px;
448
+ visibility: hidden;
449
+ transition: opacity ${({$delay:e})=>e}ms linear;
450
+ pointer-events: none;
451
+ opacity: 0;
452
+
453
+ box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
454
+
455
+ &:before {
456
+ content: "";
457
+ display: inline-block;
458
+ width: 0;
459
+ height: 0;
460
+ border: 6px solid transparent;
461
+ position: absolute;
462
+ pointer-events: none;
463
+ }
464
+
465
+ ${({$direction:e})=>"top"===e?ke:"left"===e?ze:"bottom"===e?Ce:"right"===e?Se:""}
466
+
467
+ ${e=>h.hydrate(e)}
468
+ `,ke=r.css`
469
+ bottom: calc(100% + 10px);
470
+
471
+ &:before {
472
+ top: 100%;
473
+ left: calc(50% - 6px);
474
+ border-top-color: var(--db-${({$theme:e})=>e||"black"});
475
+ }
476
+
477
+ ${e=>h.hydrate(e)}
478
+ `,Ce=r.css`
479
+ top: calc(100% + 10px);
480
+
481
+ &:before {
482
+ bottom: 100%;
483
+ left: calc(50% - 6px);
484
+ border-bottom-color: var(--db-${({$theme:e})=>e||"black"});
485
+ }
486
+
487
+ ${e=>h.hydrate(e)}
488
+ `,ze=r.css`
489
+ right: calc(100% + 10px);
490
+
491
+ &:before {
492
+ left: 100%;
493
+ top: calc(50% - 6px);
494
+ border-left-color: var(--db-${({$theme:e})=>e||"black"});
495
+ }
496
+
497
+ ${e=>h.hydrate(e)}
498
+ `,Se=r.css`
499
+ left: calc(100% + 10px);
500
+
501
+ &:before {
502
+ right: 100%;
503
+ top: calc(50% - 6px);
504
+ border-right-color: var(--db-${({$theme:e})=>e||"black"});
505
+ }
506
+
507
+ ${e=>h.hydrate(e)}
508
+ `,Ee={info:"info"},Ae=({w:t,icon:r,direction:n,delay:i=150,widthIcon:o=20,theme:a,iconStyle:s={},element:l,children:c})=>e.jsxs(_e,{children:[l&&l,r&&e.jsx(X,{type:Ee[r],wsvg:o,...s}),c&&e.jsx(je,{$w:t||200,$delay:i,className:"content",$direction:n||"top",$theme:a,children:e.jsx("small",{style:{fontWeight:300},children:c})})]});var Re=t.memo(({children:t,tooltip:r,...n})=>e.jsxs(z,{className:"mt:15",...n,children:[e.jsx($e,{$xsWidth:"100%",$mdWidth:"75%",children:t}),e.jsx($e,{$xsWidth:"100%",$mdWidth:"10%",className:"ph:05",children:e.jsx(Ae,{icon:"info",w:250,direction:"right",children:r})})]}));const Oe=r.div`
509
+ font-family: inherit;
510
+ font-size: inherit;
511
+ height: ${({$small:e})=>e?"44px":"54px"};
512
+ width: 100%;
513
+ background-color: var(--db-white);
514
+ border: 1px solid transparent;
515
+
516
+ ${({$hasFocus:e})=>e&&"border-width: 2px;"}
517
+
518
+ border-color: ${({$hasError:e,$hasWarning:t,$hasFocus:r,disabled:n})=>t?"var(--db-warning)":e?"var(--db-danger)":r?"var(--db-tertiary)":n?"rgba(83,86,90,0.4)":"var(--db-smoke-darken-10)"};
519
+
520
+ ${({$hasError:e,$hasWarning:t})=>t?"box-shadow: 0 0 0 4px rgba(228,141,0,0.2);":e?"box-shadow: 0 0 0 4px rgba(232,42,77,0.2);":void 0}
521
+
522
+ position: relative;
523
+ border-radius: 8px;
524
+ `,Ie=r.select`
525
+ border: none;
526
+ outline: none;
527
+ padding: 22px 40px 8px 16px;
528
+ background: transparent;
529
+ position: absolute;
530
+ top: 0;
531
+ bottom: 0;
532
+ left: 0;
533
+ right: 0;
534
+ width: 100%;
535
+ height: 100%;
536
+ z-index: 2;
537
+ font-size: inherit;
538
+ color: var(--db-black-lighten-40);
539
+ font-weight: 300;
540
+ text-align: ${({$align:e})=>e||"left"};
541
+ cursor: ${({disabled:e})=>e?"not-allowed":"initial"};
542
+ &::-webkit-outer-spin-button,
543
+ &::-webkit-inner-spin-button {
544
+ -webkit-appearance: none;
545
+ display: none;
546
+ margin: 0;
547
+ }
548
+
549
+ &:disabled {
550
+ & ~ .actionButton {
551
+ display: none;
552
+ }
553
+ }
554
+
555
+ appearance: none;
556
+ `,Pe=r.span`
557
+ color: var(--db-tertiary-lighten-30);
558
+ font-weight: 300;
559
+ font-size: ${({$hasFocus:e})=>e?"70%":"inherit"};
560
+ padding: 0;
561
+ line-height: 1;
562
+ background: transparent;
563
+ position: absolute;
564
+ top: ${({$hasFocus:e})=>e?"4px":"16px"};
565
+ bottom: 0;
566
+ left: 14px;
567
+ right: 0;
568
+ width: auto;
569
+ text-align: ${({$right:e})=>e?"right":"left"};
570
+ pointer-events: none;
571
+ z-index: 1;
572
+ transition: font-size 150ms ease-in-out, border-width 150ms ease-in-out,
573
+ border-color 150ms ease-in-out, top 100ms ease-in-out;
574
+ `,Le=r.em`
575
+ color: var(--db-danger);
576
+ font-size: 12px;
577
+ position: absolute;
578
+ right: 0;
579
+ bottom: -20px;
580
+ `,Fe=r.em`
581
+ color: var(--db-warning);
582
+ font-size: 12px;
583
+ position: absolute;
584
+ right: 0;
585
+ bottom: -20px;
586
+ `,Ne=r.span`
587
+ min-width: ${({$small:e})=>e?"44px":"54px"};
588
+ min-height: ${({$small:e})=>e?"44px":"54px"};
589
+ width: ${({$small:e})=>e?"44px":"54px"};
590
+ height: ${({$small:e})=>e?"44px":"54px"};
591
+
592
+ display: flex;
593
+ align-items: center;
594
+ justify-content: center;
595
+ position: absolute;
596
+ right: 0;
597
+ top: 0;
598
+ opacity: 0.7;
599
+ pointer-events: none;
600
+ z-index: 2;
601
+ `,We=({key:t,name:r,value:n,disabled:i,exclusion:o=!1})=>(console.log("exclusion: ",o),o?null:e.jsxs("option",{value:n,disabled:i,children:[r,i?" (disabled)":""]},t)),Te=r.keyframes`
602
+ from {
603
+ opacity: 0;
604
+ transform: translateX(-12px);
605
+ }
606
+ to {
607
+ opacity: 1;
608
+ transform: translateX(0);
609
+ }
610
+ `,Be=r.css`
611
+ border-color: var(--db-background);
612
+ background: var(--db-background);
613
+ color: var(--db-tertiary);
614
+ `,De=r.css`
615
+ border-color: var(--db-tertiary-lighten-30);
616
+ background: var(--db-white);
617
+ `,Me=r.css`
618
+ border-color: var(--db-primary);
619
+ background: var(--db-primary);
620
+ `,Ue=r.div`
621
+ position: relative;
622
+ display: ${({block:e})=>e?"flex":"inline-flex"};
623
+ width: ${({block:e})=>e?"100%":"auto"};
624
+
625
+ ${e=>h.hydrate(e)}
626
+ `,Ve=r.div`
627
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
628
+ opacity: ${({$disabled:e})=>e?.5:1};
629
+ user-select: none;
630
+ width: ${({block:e})=>e?"100%":"auto"};
631
+
632
+ ${e=>h.hydrate(e)}
633
+ `,Ke=r.div`
634
+ position: absolute;
635
+ z-index: 100;
636
+ ${({$verticalPosition:e})=>"top"===e?"bottom: calc(100% + 8px);":"top: calc(100% + 8px);"}
637
+ ${({$position:e})=>"left"===e?"left: 0;":"right: 0;"}
638
+
639
+ display: flex;
640
+ flex-direction: column;
641
+ align-items: stretch;
642
+ gap: 2px;
643
+ min-width: ${({$minWidth:e})=>e||160}px;
644
+ max-height: ${({$maxHeight:e})=>e?`${e}px`:"none"};
645
+ overflow-y: ${({$maxHeight:e})=>e?"auto":"visible"};
646
+
647
+ background: var(--db-white);
648
+ padding-block: 8px;
649
+ border-radius: ${({$position:e,$verticalPosition:t})=>"top"===t?"left"===e?"16px 16px 16px 6px":"16px 16px 6px 16px":"left"===e?"6px 16px 16px 16px":"16px 6px 16px 16px"};
650
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
651
+ transform-origin: ${({$position:e,$verticalPosition:t})=>`${"top"===t?"bottom":"top"} ${"left"===e?"left":"right"}`};
652
+
653
+ /* Scrollbar estilizado */
654
+ &::-webkit-scrollbar {
655
+ width: 6px;
656
+ }
657
+ &::-webkit-scrollbar-track {
658
+ background: transparent;
659
+ }
660
+ &::-webkit-scrollbar-thumb {
661
+ background: var(--db-tertiary-lighten-30);
662
+ border-radius: 3px;
663
+ }
664
+ &::-webkit-scrollbar-thumb:hover {
665
+ background: var(--db-tertiary);
666
+ }
667
+
668
+ /* Estado cerrado */
669
+ opacity: 0;
670
+ pointer-events: none;
671
+ visibility: hidden;
672
+ transform: ${({$verticalPosition:e})=>"top"===e?"translateY(8px) scale(0.95)":"translateY(-8px) scale(0.95)"};
673
+ transition: opacity 200ms ease-out, transform 200ms ease-out,
674
+ visibility 0ms 200ms;
675
+
676
+ /* Estado abierto */
677
+ ${({$isOpen:e})=>e&&r.css`
678
+ opacity: 1;
679
+ pointer-events: all;
680
+ visibility: visible;
681
+ transform: translateY(0) scale(1);
682
+ transition: opacity 250ms cubic-bezier(0.34, 1.56, 0.64, 1),
683
+ transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0ms 0ms;
684
+ `}
685
+
686
+ ${e=>h.hydrate(e)}
687
+ `,qe=r.div`
688
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
689
+ transition: background-color 150ms ease;
690
+ background-color: ${({$selected:e})=>e?"var(--db-background)":"transparent"};
691
+ opacity: 0;
692
+ padding: 10px 16px;
693
+
694
+ ${({$disabled:e})=>e&&r.css`
695
+ opacity: 0.5;
696
+ pointer-events: none;
697
+ `}
698
+
699
+ &:hover {
700
+ background-color: var(--db-background);
701
+ }
702
+
703
+ * {
704
+ pointer-events: none;
705
+ user-select: none;
706
+ }
707
+
708
+ /* Animación de entrada escalonada */
709
+ ${({$isOpen:e,$delay:t})=>e&&r.css`
710
+ animation: ${Te} 300ms ease-out ${t}ms forwards;
711
+ `}
712
+
713
+ ${e=>h.hydrate(e)}
714
+ `,He=r.div`
715
+ height: 1px;
716
+ background-color: var(--db-tertiary-lighten-45);
717
+ margin: 4px 12px;
718
+
719
+ ${e=>h.hydrate(e)}
720
+ `,Ze=r.div`
721
+ display: flex;
722
+ align-items: center;
723
+ gap: 8px;
724
+ padding: 10px 12px;
725
+ border-radius: 12px;
726
+ border: 1px solid transparent;
727
+ background: transparent;
728
+ min-width: 120px;
729
+ transition: border-color 200ms ease, box-shadow 200ms ease;
730
+
731
+ &:hover {
732
+ border-color: var(--db-tertiary);
733
+ }
734
+
735
+ ${({$theme:e})=>"fill"===e&&Me}
736
+ ${({$theme:e})=>"light"===e&&Be}
737
+ ${({$theme:e})=>"outline"===e&&De}
738
+
739
+ ${({$isOpen:e})=>e&&r.css`
740
+ border-color: var(--db-primary);
741
+ box-shadow: 0 0 0 2px var(--db-primary-lighten-45);
742
+ `}
743
+
744
+ svg {
745
+ transition: transform 200ms ease;
746
+ transform: ${({$isOpen:e})=>e?"rotate(180deg)":"rotate(0)"};
747
+ }
748
+
749
+ ${e=>h.hydrate(e)}
750
+ `;const Xe=r.input`
751
+ display: block;
752
+ height: 0px;
753
+ margin: 0;
754
+ opacity: 0;
755
+ width: 0px;
756
+
757
+ &:checked ~ #checked {
758
+ display: inline-flex;
759
+ }
760
+ &:checked ~ #empty {
761
+ display: none;
762
+ }
763
+
764
+ &:not(:checked) ~ #checked {
765
+ display: none;
766
+ }
767
+
768
+ &:not(:checked) ~ #empty {
769
+ display: inline-flex;
770
+ }
771
+ ${e=>h.hydrate(e)}
772
+ `,Ye=r.span`
773
+ display: flex;
774
+ justify-content: start;
775
+ align-items: center;
776
+ width: 100%;
777
+
778
+ label {
779
+ text-decoration: ${({disabled:e})=>e?"line-through":"none"};
780
+ cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
781
+ color: ${({disabled:e})=>e?"var(--db-black-lighten-40)":"var(--db-black)"};
782
+ }
783
+ ${e=>h.hydrate(e)}
784
+ `,Ge=r.label`
785
+ cursor: pointer;
786
+ display: inline-flex;
787
+ align-items: center;
788
+ font-size: 14px;
789
+ ${e=>h.hydrate(e)}
790
+ `;var Je=t.memo(({children:r,name:n,id:i,getValue:o,value:a,disabled:s,selected:l=null,...c})=>{const[u,d]=t.useState(null);t.useEffect(()=>{null!==l&&d(l)},[l]);const f=t.useCallback(e=>{d(e),o&&o({checked:e,value:a})},[o,a]);return e.jsx(Ye,{disabled:s,...c,children:e.jsxs(Ge,{htmlFor:i,children:[e.jsx(Xe,{type:"checkbox",id:i,name:n,disabled:s,onChange:({target:e})=>f(e.checked),value:a,checked:u}),e.jsx(X,{id:"checked",type:"checkFill",wsvg:24,containerProps:{style:{marginRight:10}}}),e.jsx(X,{id:"empty",type:"checkEmpty",wsvg:24,containerProps:{style:{marginRight:10}}}),r]})})});const Qe=r.input`
791
+ display: block;
792
+ height: 0px;
793
+ margin: 0;
794
+ opacity: 0;
795
+ width: 0px;
796
+
797
+ &:checked ~ #checked {
798
+ display: inline-flex;
799
+ }
800
+ &:checked ~ #empty {
801
+ display: none;
802
+ }
803
+
804
+ &:not(:checked) ~ #checked {
805
+ display: none;
806
+ }
807
+ &:not(:checked) ~ #empty {
808
+ display: inline-flex;
809
+ }
810
+ `,et=r.span`
811
+ display: flex;
812
+ justify-content: start;
813
+ align-items: center;
814
+ `,tt=r.label`
815
+ cursor: pointer;
816
+ display: inline-flex;
817
+ align-items: center;
818
+ font-size: 14px;
819
+ `;var rt=t.memo(({children:r,name:n,id:i,getValue:o,value:a,selected:s=!1})=>{const l=t.useCallback(e=>{o&&o({checked:e,value:a})},[o,a]);return e.jsx(et,{children:e.jsxs(tt,{htmlFor:i,children:[e.jsx(Qe,{checked:s,type:"radio",id:i,name:n,onChange:({target:e})=>l(e.checked),value:a}),e.jsx(X,{id:"checked",type:"radioFill",wsvg:24,containerProps:{style:{marginRight:10}}}),e.jsx(X,{id:"empty",type:"radioEmpty",wsvg:24,containerProps:{style:{marginRight:10}}}),r]})})});const nt=r.css`
820
+ color: var(--db-tertiary);
821
+
822
+ &:hover {
823
+ background-color: var(--db-background);
824
+ }
825
+ `,it=r.css`
826
+ background-color: transparent;
827
+ color: var(--db-black);
828
+
829
+ &:hover {
830
+ color: #000;
831
+ background-color: var(--db-smoke);
832
+ }
833
+ `,ot=r.css`
834
+ background-color: rgba(255, 255, 255, 0.2);
835
+
836
+ &:hover {
837
+ background-color: var(--db-white);
838
+ }
839
+ `,at=r.css`
840
+ background-color: var(--db-primary);
841
+ color: var(--db-white);
842
+
843
+ &:hover {
844
+ background-color: var(--db-primary-darken-10);
845
+ }
846
+ `,st=r.css`
847
+ background-color: var(--db-black);
848
+ color: #fff;
849
+ `,lt=r.css`
850
+ background-color: transparent;
851
+ box-shadow: 0 0 0 1px rgb(from var(--db-black) r g b / 40%);
852
+ transition: all 100ms linear;
853
+ color: #000;
854
+
855
+ &:hover {
856
+ box-shadow: 0 0 0 1px var(--db-black);
857
+ background-color: transparent;
858
+ }
859
+ `,ct=r.button`
860
+ display: inline-flex;
861
+ align-items: center;
862
+ align-content: center;
863
+ justify-content: center;
864
+ background-color: transparent;
865
+ border-radius: ${({$square:e,$circle:t})=>e?0:t?50:10}px;
866
+ border: 2px solid transparent;
867
+ cursor: pointer;
868
+ font-family: "Poppins";
869
+ font-size: 14px;
870
+ width: ${({$w:e,$small:t})=>e||(t?30:40)}px;
871
+ height: ${({$w:e,$small:t})=>e||(t?30:40)}px;
872
+ min-width: ${({$w:e,$small:t})=>e||(t?30:40)}px;
873
+ min-height: ${({$w:e,$small:t})=>e||(t?30:40)}px;
874
+ text-align: center;
875
+ transition: background 200ms ease-in-out;
876
+
877
+ &:disabled,
878
+ &:disabled:hover {
879
+ box-shadow: none;
880
+ background: transparent;
881
+ border: 2px solid var(--db-smoke-darken-10);
882
+ color: var(--db-smoke-darken-10);
883
+ cursor: not-allowed;
884
+ }
885
+
886
+ ${({$nohover:e})=>!e&&r.css`
887
+ &:hover,
888
+ &:focus,
889
+ &:active {
890
+ background-color: var(--db-smoke);
891
+ border: 2px solid transparent;
892
+ color: white;
893
+ }
894
+ `}
895
+
896
+ ${({$theme:e})=>"primary"===e&&at}
897
+ ${({$theme:e})=>"secondary"===e&&st}
898
+ ${({$theme:e})=>"outline"===e&&lt}
899
+ ${({$theme:e})=>"link"===e&&it}
900
+ ${({$theme:e})=>"over"===e&&ot}
901
+ ${({$theme:e})=>"light"===e&&nt}
902
+
903
+ ${e=>h.hydrate(e)}
904
+ `;var ut=t.memo(({children:t,mobile:r,loading:n,direction:i,theme:o,widthTooltip:a,themeTooltip:s,tooltip:l,small:c,name:u,width:d,nohover:f,...p})=>l?e.jsx(Ae,{direction:i,w:a,theme:s,element:e.jsxs(ct,{$nohover:f,$w:d,$small:c,$theme:o,name:u,"aria-label":u,type:"button",...p,children:[n&&e.jsx(K,{$w:20}),t]}),children:e.jsx(P,{$size:12,$weight:"500",$align:"center",$color:"background"===s?"var(--db-primary)":"var(--db-white)",children:l})}):e.jsxs(ct,{$nohover:f,$w:d,name:u,$theme:o,"aria-label":u,type:"button",...p,children:[n&&e.jsx(K,{$w:20}),t]}));const dt=r.div`
905
+ display: flex;
906
+ align-items: ${({$align:e})=>null!=e?e:"stretch"};
907
+ align-content: ${({$align:e})=>null!=e?e:"stretch"};
908
+ flex-direction: ${({$reverse:e})=>e?"row-reverse":"row"};
909
+ flex-wrap: nowrap;
910
+ width: ${({$block:e})=>e?"100%":"auto"};
911
+ min-width: 200px;
912
+ max-width: ${({$mw:e})=>null!=e?e:"400px"};
913
+ padding: 0.5rem;
914
+ border-radius: ${({$rounded:e})=>e?200:10}px;
915
+ background-color: white;
916
+
917
+ ${({$inline:e,$borderColor:t})=>e?`border: 1px solid ${null!=t?t:"rgba(0, 0, 0, 0.1)"};`:"box-shadow: 0 2px 10px -5px rgba(0, 0, 0, 0.2);"}
918
+ ${e=>h.hydrate(e)}
919
+ `,ft=r.div`
920
+ flex: 1;
921
+ padding-left: 1rem;
922
+ padding-right: 1rem;
923
+ ${e=>h.hydrate(e)}
924
+ `,pt=r.span`
925
+ display: inline-flex;
926
+ border-radius: ${({$rounded:e})=>e?200:8}px;
927
+ align-items: center;
928
+ align-content: center;
929
+ justify-content: center;
930
+ width: 40px;
931
+ min-width: 40px;
932
+ height: 40px;
933
+ min-height: 40px;
934
+ ${e=>h.hydrate(e)}
935
+ `,ht=r.span`
936
+ display: inline-flex;
937
+ align-items: center;
938
+ align-content: center;
939
+ justify-content: center;
940
+ width: 100%;
941
+ height: 100%;
942
+ border-radius: ${({$rounded:e})=>e?200:8}px;
943
+ ${({$type:e})=>(e=>{if(!e)return;return{info:r.css`
944
+ background-color: color-mix(in srgb, var(--db-tertiary) 20%, transparent);
945
+ `,success:r.css`
946
+ background-color: color-mix(in srgb, var(--db-success) 20%, transparent);
947
+ `,warning:r.css`
948
+ background-color: color-mix(in srgb, var(--db-warning) 20%, transparent);
949
+ `,danger:r.css`
950
+ background-color: color-mix(in srgb, var(--db-danger) 20%, transparent);
951
+ `}[e]})(e)}
952
+ ${e=>h.hydrate(e)}
953
+ `,gt={info:"info",success:"success",warning:"warning",danger:"danger"};var vt=t.memo(({children:t,type:r,align:n,noClose:i,className:o,onClose:a,...s})=>e.jsxs(dt,{$type:r,$align:n,className:o,...s,children:[e.jsx(pt,{children:e.jsx(ht,{$type:r,children:e.jsx(X,{type:gt[r],wsvg:28,color:`var(--db-${r})`})})}),e.jsx(ft,{$color:`var(--db-${r}-darken-10)`,children:t}),!i&&e.jsx(X,{type:"close",wsvg:28,style:{cursor:"pointer"},color:"var(--db-tertiary-lighten-30)",onClick:()=>null==a?void 0:a()})]}));const bt=r.i`
954
+ display: inline-flex;
955
+ position: relative;
956
+ background-image: url(${({$icon:e})=>e});
957
+ background-repeat: no-repeat;
958
+ background-position: center;
959
+ background-size: contain;
960
+ transition: all 200ms linear;
961
+ object-fit: contain;
962
+ ${e=>h.hydrate(e)}
963
+ `;var mt=t.memo(({children:t,...r})=>e.jsx(bt,{...r,children:t}));const xt=r.div`
964
+ position: relative;
965
+ width: 100%;
966
+ height: 100%;
967
+ overflow: hidden;
968
+ background-color: var(--db-black);
969
+
970
+ &.loading {
971
+ animation: pulse 1.5s infinite ease-in-out;
972
+ }
973
+
974
+ &.loaded {
975
+ animation: none;
976
+ }
977
+
978
+ @keyframes pulse {
979
+ 0% {
980
+ opacity: 0.6;
981
+ }
982
+ 50% {
983
+ opacity: 0.8;
984
+ }
985
+ 100% {
986
+ opacity: 0.6;
987
+ }
988
+ }
989
+
990
+ video {
991
+ max-width: 100%;
992
+ }
993
+
994
+ ${e=>h.hydrate(e)}
995
+ `,yt=r.video`
996
+ width: 100%;
997
+ height: 100%;
998
+ ${e=>h.hydrate(e)}
999
+ `,wt=r.div`
1000
+ position: absolute;
1001
+ top: 50%;
1002
+ left: 50%;
1003
+ transform: translate(-50%, -50%);
1004
+ color: var(--db-white);
1005
+ z-index: 1;
1006
+ ${e=>h.hydrate(e)}
1007
+ `,$t=r.div`
1008
+ width: 100%;
1009
+ height: 100%;
1010
+ background-color: var(--db-black-lighten-10);
1011
+ ${e=>h.hydrate(e)}
1012
+ `;var _t=t.memo(({src:r,title:n,type:i="video/mp4",controls:o=!0,autoPlay:a=!1,muted:s=!1,loop:l=!1,className:c="",containerStyles:u={},videoStyles:d={},fit:f="contain",poster:p="",id:h="",name:g="",persistAutoplay:v=!1,...b})=>{const m=t.useRef(null),x=t.useRef(null),[y,w]=t.useState(!1),[$,_]=t.useState(!1);return t.useEffect(()=>{(b.fetchpriority||b.preload)&&_(!0)},[b.fetchpriority,b.preload]),t.useEffect(()=>{x.current&&v&&x.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)})},[v]),t.useEffect(()=>{if("undefined"==typeof IntersectionObserver)return console.log("IntersectionObserver not supported, loading video directly"),void _(!0);const e=m.current,t=new IntersectionObserver(e=>{const[t]=e;t.isIntersecting?(console.log("Video in viewport"),_(!0),a&&x.current&&x.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)}),x.current&&v&&x.current.play().catch(e=>{console.warn("Video autoplay blocked:",e)})):(console.log("Video out of viewport, pausing"),x.current&&x.current.pause())},{root:null,rootMargin:"0px",threshold:.1});return e&&t.observe(e),()=>{e&&t.disconnect()}},[a,v]),e.jsxs(xt,{ref:m,className:`video-component ${c} ${y?"loaded":"loading"}`,style:u,"data-testid":h,"data-name":g,children:[!y&&$&&e.jsx(wt,{children:"Cargando..."}),$?e.jsxs(yt,{ref:x,poster:p,title:n,controls:o,autoPlay:a,muted:s,loop:l,onLoadedData:()=>{w(!0)},preload:"metadata",playsInline:!0,$objectFit:f,style:d,...b,children:[e.jsx("source",{src:r,type:i}),"Tu navegador no soporta videos HTML5."]}):e.jsx($t,{})]})});const jt=r.picture`
1013
+ overflow: hidden;
1014
+ position: relative;
1015
+ display: block;
1016
+ border: none;
1017
+ outline: 0;
1018
+
1019
+ width: 100%;
1020
+ height: 100%;
1021
+
1022
+ img {
1023
+ width: 100%;
1024
+ height: 100%;
1025
+ opacity: 0;
1026
+
1027
+ transition: opacity 400ms ease-out;
1028
+ &.load {
1029
+ opacity: 1;
1030
+ }
1031
+ }
1032
+
1033
+ ${e=>h.hydrate(e)}
1034
+ `;var kt=t.memo(({url:r,name:n,fit:i="contain",imagePosition:o,children:a,blur:s="",ratio:l,radius:c,...u})=>{const d=t.useRef(null),f=t.useMemo(()=>({objectFit:i,objectPosition:o||"center",aspectRatio:l,borderRadius:c}),[i,o,l,c]),p=t.useCallback(()=>r?g()?`${r}?v=${Date.now()}`:r:"",[r]);return t.useEffect(()=>{if(!d.current)return;const e=new IntersectionObserver(t=>{const r=t[0];if(r.isIntersecting){const t=r.target;t.src=p(),t.classList.add("load"),e.unobserve(t)}},{threshold:.1});e.observe(d.current)},[d,r]),e.jsxs(jt,{...u,$backdropFilter:s,children:[a,e.jsx("img",{ref:d,className:"lazy",loading:"lazy",width:1,height:1,"data-src":r,alt:n||"image",style:f})]})});const Ct=r.div`
1035
+ width: 100%;
1036
+ display: ${({$type:e})=>"inline"===e?"inline-grid":"grid"};
1037
+ ${e=>h.hydrate(e)}
1038
+ `;var zt=t.memo(({children:t,type:r=null,...n})=>e.jsx(Ct,{$type:r,...n,children:t}));const St=r.div`
1039
+ display: flex;
1040
+ flex-direction: column;
1041
+ align-items: center;
1042
+ align-content: center;
1043
+ justify-content: center;
1044
+ overflow-x: hidden;
1045
+ z-index: 999999;
1046
+ position: fixed;
1047
+ top: 0;
1048
+ left: 0;
1049
+ width: 100dvw;
1050
+ height: 100dvh;
1051
+ background-color: ${({$theme:e})=>"dark"!==e?"rgba(255, 255, 255, 0.9)":"rgba(0, 0, 0, 0.9)"};
1052
+ backdrop-filter: blur(8px);
1053
+ transition: opacity 100ms ease;
1054
+ opacity: ${({$show:e})=>e?1:0};
1055
+ pointer-events: ${({$show:e})=>e?"all":"none"};
1056
+
1057
+ .grid {
1058
+ @media (max-height: 640px) {
1059
+ grid-template-rows: 1fr !important;
1060
+ }
1061
+ }
1062
+
1063
+ #slide {
1064
+ transition: margin-left 500ms ease-in-out;
1065
+ }
1066
+
1067
+ .slide_thumbnails {
1068
+ @media (max-height: 640px) {
1069
+ display: none !important;
1070
+ pointer-events: none !important;
1071
+ }
1072
+ }
1073
+
1074
+ .slide_item {
1075
+ transition: all 0.2s;
1076
+ }
1077
+
1078
+ ${e=>h.hydrate(e)}
1079
+ `,Et=r.div`
1080
+ display: grid;
1081
+ grid-template-columns: 1fr;
1082
+ grid-template-rows: auto 1fr;
1083
+ align-items: center;
1084
+ align-content: center;
1085
+ justify-content: center;
1086
+ justify-items: center;
1087
+ width: 100%;
1088
+ height: 100%;
1089
+ ${e=>h.hydrate(e)}
1090
+ `,At=r.div`
1091
+ width: 100%;
1092
+ z-index: 200;
1093
+ padding: 1rem;
1094
+ ${e=>h.hydrate(e)}
1095
+ `,Rt=r.div`
1096
+ display: flex;
1097
+ flex-direction: column;
1098
+ align-items: center;
1099
+ align-content: center;
1100
+ justify-content: center;
1101
+ justify-items: center;
1102
+ position: relative;
1103
+ overflow: hidden;
1104
+ width: 100%;
1105
+ height: 100%;
1106
+ padding: 1rem;
1107
+ ${e=>h.hydrate(e)}
1108
+ `,Ot=r.div`
1109
+ position: absolute;
1110
+ transform: translateY(-50%);
1111
+ top: calc(50% - 20px);
1112
+ transition: opacity 100ms ease;
1113
+ background: var(--db-white);
1114
+ display: flex;
1115
+ justify-content: center;
1116
+ align-items: center;
1117
+ height: 40px;
1118
+ width: 40px;
1119
+ padding: 0.6em;
1120
+ border-radius: 100%;
1121
+ box-shadow:
1122
+ 20px 20px 60px var(--db-smoke-darken-20),
1123
+ -20px -20px 60px var(--db-white);
1124
+ cursor: pointer;
1125
+ z-index: 500;
1126
+
1127
+ &:hover {
1128
+ opacity: 1;
1129
+ }
1130
+
1131
+ @media (max-width: 768px) {
1132
+ top: 106%;
1133
+ }
1134
+
1135
+ @media (max-width: 425px) {
1136
+ top: 115%;
1137
+ }
1138
+
1139
+ ${e=>h.hydrate(e)}
1140
+ `,It=r.div`
1141
+ position: relative;
1142
+ width: 100%;
1143
+ max-height: 700px;
1144
+ height: 100%;
1145
+ display: flex;
1146
+ align-items: center;
1147
+ justify-content: center;
1148
+ ${e=>h.hydrate(e)}
1149
+ `,Pt=r.div`
1150
+ left: 50%;
1151
+ position: absolute;
1152
+ transform: translateX(-50%);
1153
+ background: rgba(0, 0, 0, 0.3);
1154
+ backdrop-filter: blur(8px);
1155
+ color: var(--db-white);
1156
+ padding: 8px 12px;
1157
+ border-radius: 2rem;
1158
+ font-style: italic;
1159
+ text-align: center;
1160
+ justify-content: center;
1161
+ align-items: center;
1162
+ width: 90%;
1163
+
1164
+ @media (max-width: 960px) {
1165
+ top: 0;
1166
+ }
1167
+
1168
+ @media (min-width: 960px) {
1169
+ bottom: 2%;
1170
+ }
1171
+
1172
+ @media (min-width: 1024px) {
1173
+ bottom: 2%;
1174
+ }
1175
+
1176
+ ${e=>h.hydrate(e)}
1177
+ `,Lt=r.css`
1178
+ background-color: var(--db-primary);
1179
+ color: var(--db-white);
1180
+ `,Ft=r.css`
1181
+ background-color: var(--db-secondary);
1182
+ color: var(--db-white);
1183
+ `,Nt=r.css`
1184
+ background-color: var(--db-tertiary);
1185
+ color: var(--db-white);
1186
+ `,Wt=r.css`
1187
+ background-color: var(--db-background);
1188
+ `,Tt=r.css`
1189
+ color: var(--db-primary);
1190
+ background-color: var(--db-background);
1191
+ `,Bt=r.css`
1192
+ background-color: var(--db-black);
1193
+ color: var(--db-white);
1194
+ `,Dt=r.span`
1195
+ display: inline-flex;
1196
+ align-items: center;
1197
+ align-content: center;
1198
+ justify-content: center;
1199
+ gap: 6px;
1200
+ line-height: 10px;
1201
+ min-width: 24px;
1202
+ padding: 6px 8px;
1203
+ border-radius: 30px;
1204
+ font-weight: bold;
1205
+ text-transform: uppercase;
1206
+ white-space: nowrap;
1207
+ font-size: 10px;
1208
+
1209
+ ${({$theme:e})=>"primary"===e&&Lt}
1210
+ ${({$theme:e})=>"secondary"===e&&Ft}
1211
+ ${({$theme:e})=>"tertiary"===e&&Nt}
1212
+ ${({$theme:e})=>"action"===e&&Bt}
1213
+ ${({$theme:e})=>"light"===e&&Wt}
1214
+ ${({$theme:e})=>"pill"===e&&Tt}
1215
+ ${e=>h.hydrate(e)}
1216
+ `,Mt=r.span`
1217
+ display: inline-flex;
1218
+ align-items: center;
1219
+ cursor: pointer;
1220
+ margin-left: 2px;
1221
+ opacity: 0.8;
1222
+ transition: opacity 150ms ease;
1223
+
1224
+ &:hover {
1225
+ opacity: 1;
1226
+ }
1227
+ `;var Ut=t.memo(({children:t,$closable:r,onClose:n,...i})=>e.jsxs(Dt,{...i,children:[t,r&&n&&e.jsx(Mt,{onClick:e=>{e.stopPropagation(),null==n||n()},children:e.jsx(X,{type:"xmark",wsvg:14})})]}));const Vt=r.div`
1228
+ width: 100%;
1229
+ display: block;
1230
+ border: 1px solid transparent;
1231
+
1232
+ ${({$inline:e})=>e?"border-color: var(--db-smoke-darken-10);":"box-shadow: 0 2px 10px -5px rgba(0, 0, 0, 0.1);"}
1233
+
1234
+ border-radius: 10px;
1235
+ ${e=>h.hydrate(e)}
1236
+ `;var Kt=t.memo(({children:t,...r})=>e.jsx(Vt,{...r,children:t}));const qt=r.h1`
1237
+ ${e=>h.hydrate(e)}
1238
+ `,Ht=r.h2`
1239
+ ${e=>h.hydrate(e)}
1240
+ `,Zt=r.h3`
1241
+ ${e=>h.hydrate(e)}
1242
+ `,Xt=r.h4`
1243
+ ${e=>h.hydrate(e)}
1244
+ `,Yt=r.h5`
1245
+ ${e=>h.hydrate(e)}
1246
+ `,Gt=r.h6`
1247
+ ${e=>h.hydrate(e)}
1248
+ `;var Jt=t.memo(({$type:t,children:r,...n})=>{switch(t){case"h2":return e.jsx(Ht,{...n,children:r});case"h3":return e.jsx(Zt,{...n,children:r});case"h4":return e.jsx(Xt,{...n,children:r});case"h5":return e.jsx(Yt,{...n,children:r});case"h6":return e.jsx(Gt,{...n,children:r});default:return e.jsx(qt,{...n,children:r})}});const Qt=r.div`
1249
+ display: inline-flex;
1250
+ position: relative;
1251
+
1252
+ .whiteColor {
1253
+ display: inline;
1254
+ text-align: center;
1255
+ position: absolute;
1256
+ top: calc(50% - 11px);
1257
+ left: calc(50% - 11px);
1258
+ font-size: 22px;
1259
+ z-index: 2;
1260
+ opacity: 0.2;
1261
+ pointer-events: none;
1262
+ }
1263
+ ${e=>h.hydrate(e)}
1264
+ `,er=r.button`
1265
+ display: inline-flex;
1266
+ width: 40px;
1267
+ min-width: 40px;
1268
+ height: 40px;
1269
+ min-height: 40px;
1270
+ cursor: pointer;
1271
+ border: none;
1272
+
1273
+ border-radius: 14px;
1274
+ background-color: ${({$color:e})=>e||"var(--db-white)"};
1275
+ box-shadow: 0 0 0 2px var(--db-white), 0 0 0 6px var(--db-background);
1276
+
1277
+ transition: box-shadow 200ms ease;
1278
+
1279
+ &.active,
1280
+ &:hover {
1281
+ box-shadow: 0 0 0 2px var(--db-white), 0 0 0 6px var(--db-primary);
1282
+ }
1283
+ ${e=>h.hydrate(e)}
1284
+ `;var tr=t.memo(({getValue:t,color:r,value:n,...i})=>e.jsxs(Qt,{children:[e.jsx(er,{$color:r,onClick:()=>t&&t(n),...i}),"white"===r&&e.jsx("span",{className:"whiteColor",children:"W"})]}));const rr=r.div`
1285
+ width: 100%;
1286
+ height: 100%;
1287
+ overflow: ${({$noOverflow:e})=>e?"visible":"hidden"};
1288
+ position: relative;
1289
+ ${e=>h.hydrate(e)}
1290
+ `,nr=r.div`
1291
+ display: flex;
1292
+ height: 100%;
1293
+ transition: transform 0.5s ease-in-out;
1294
+ ${({$activeIndex:e})=>r.css`
1295
+ transform: translateX(-${100*e}%);
1296
+ `}
1297
+ ${e=>h.hydrate(e)}
1298
+ `,ir=r.div`
1299
+ min-width: 100%;
1300
+ ${e=>h.hydrate(e)}
1301
+ `,or=r.div`
1302
+ min-width: 100%;
1303
+ height: ${({height:e})=>isNaN(e)?e:`${e}px`};
1304
+ position: relative;
1305
+ overflow: hidden;
1306
+
1307
+ img,
1308
+ video {
1309
+ width: 100%;
1310
+ height: 100%;
1311
+ object-fit: cover;
1312
+ }
1313
+
1314
+ ${e=>h.hydrate(e)}
1315
+ `,ar=r.button`
1316
+ position: absolute;
1317
+ top: 50%;
1318
+ transform: translateY(-50%);
1319
+ background: rgb(from black r g b / 50%);
1320
+ backdrop-filter: blur(4px);
1321
+ opacity: 0.4;
1322
+ border: none;
1323
+ border-radius: 6px;
1324
+ padding: 10px;
1325
+ cursor: pointer;
1326
+ z-index: 1;
1327
+
1328
+ transition: all 200ms ease;
1329
+
1330
+ &:hover {
1331
+ opacity: 1;
1332
+ }
1333
+
1334
+ ${({left:e})=>e&&r.css`
1335
+ left: 1rem;
1336
+ `}
1337
+
1338
+ ${({right:e})=>e&&r.css`
1339
+ right: 1rem;
1340
+ `}
1341
+ ${e=>h.hydrate(e)}
1342
+ `,sr=r.div`
1343
+ position: absolute;
1344
+ width: 100%;
1345
+ display: flex;
1346
+ justify-content: center;
1347
+ bottom: 30px;
1348
+
1349
+ @media (max-width: 768px) {
1350
+ bottom: 25px;
1351
+ }
1352
+ ${e=>h.hydrate(e)}
1353
+ `,lr=r.button`
1354
+ border: none;
1355
+ padding: 2px 16px;
1356
+ margin: 0 5px;
1357
+ border-radius: 6px;
1358
+ cursor: pointer;
1359
+ margin-bottom: 1.5rem;
1360
+ background: ${({$active:e})=>e?"var(--db-white)":"rgb(from var(--db-white) r g b / 30%)"};
1361
+ transition: background-color 0.2s ease;
1362
+ ${e=>h.hydrate(e)}
1363
+ `,cr=r.p`
1364
+ position: absolute;
1365
+ bottom: 8px;
1366
+ width: 98%;
1367
+ left: 0;
1368
+ right: 0;
1369
+ margin: 0 auto;
1370
+ text-align: center;
1371
+ color: var(--db-white);
1372
+ font-size: 0.7rem;
1373
+ font-weight: 400;
1374
+ padding: 0.4rem 2rem;
1375
+ z-index: 1;
1376
+ background: rgba(0, 0, 0, 0.05);
1377
+ backdrop-filter: blur(8px);
1378
+ border-radius: 1rem;
1379
+ max-width: max-content;
1380
+ ${e=>h.hydrate(e)}
1381
+ `;var ur=t.memo(({children:r,height:n=500,autoPlay:i=!0,autoPlayTime:o=3e3,hideControls:a=!0,indicators:s=!0,noOverflow:l=!1,caption:c,...u})=>{const[d,f]=t.useState(0),p=t.Children.count(r),h=t.useRef(null),g=t.useCallback(()=>{f(e=>(e+1)%p)},[p]),v=t.useCallback(()=>{f(e=>(e-1+p)%p)},[p]),b=t.useCallback(e=>{f(e)},[]),m=t.useCallback(e=>{const t=e.touches[0].clientX;e.target.ontouchmove=e=>{const r=e.touches[0].clientX;t-r>50&&g(),t-r<-50&&v()},e.target.ontouchend=()=>{e.target.ontouchmove=null}},[g,v]);return t.useEffect(()=>{if(i)return h.current=setTimeout(g,o),()=>clearTimeout(h.current)},[d,i,o,g]),e.jsxs(rr,{$noOverflow:l,...u,children:[e.jsx(nr,{$activeIndex:d,children:t.Children.map(r,(t,r)=>e.jsx(ir,{onTouchStart:m,children:e.jsxs(or,{height:n,children:[t,c&&e.jsx(cr,{children:c})]})},r))}),!a&&e.jsxs(e.Fragment,{children:[e.jsx(ar,{left:!0,onClick:v,children:e.jsx(X,{type:"navLeft",wsvg:26})}),e.jsx(ar,{right:!0,onClick:g,children:e.jsx(X,{type:"navRight",wsvg:26})})]}),s&&e.jsx(sr,{children:Array.from({length:p}).map((t,r)=>e.jsx(lr,{$active:r===d,onClick:()=>b(r)},r))})]})});const dr=r.css`
1382
+ transition: transform 400ms ease-in;
1383
+
1384
+ &,
1385
+ * {
1386
+ pointer-events: all;
1387
+ }
1388
+ `,fr=r.css`
1389
+ transition: transform 400ms ease-out;
1390
+
1391
+ opacity: 1;
1392
+ transform: translateY(0px);
1393
+
1394
+ &,
1395
+ * {
1396
+ pointer-events: all;
1397
+ }
1398
+ `,pr=r.div`
1399
+ display: block;
1400
+ pointer-events: none;
1401
+ position: fixed;
1402
+ top: 0;
1403
+ left: 0;
1404
+ width: 100%;
1405
+ height: 100%;
1406
+ z-index: 9999;
1407
+
1408
+ background-color: rgb(from var(--db-black) r g b / 0.4);
1409
+ backdrop-filter: blur(10px);
1410
+ transition: opacity 200ms linear;
1411
+ opacity: ${({$show:e})=>e?1:0};
1412
+ ${e=>h.hydrate(e)}
1413
+ `,hr=r.div`
1414
+ position: fixed;
1415
+ top: 0;
1416
+ left: 0;
1417
+ z-index: 99999;
1418
+ padding-top: 2rem;
1419
+ overflow-x: hidden;
1420
+
1421
+ display: flex;
1422
+ width: 100%;
1423
+ height: 100%;
1424
+
1425
+ align-items: flex-start;
1426
+ justify-content: center;
1427
+ transform: translateY(-100%);
1428
+ opacity: 0;
1429
+
1430
+ transition-delay: 600ms;
1431
+ transition: transform 400ms linear;
1432
+
1433
+ @media screen and (min-width: 768px) {
1434
+ padding-block: 40px;
1435
+ }
1436
+
1437
+ ${({$position:e})=>(e=>{switch(e){case"top":return r.css`
1438
+ transform: translateY(-100%);
1439
+ `;case"bottom":return r.css`
1440
+ transform: translateY(100%);
1441
+ align-items: flex-end;
1442
+ `;case"center":return r.css`
1443
+ transform: translateY(40%);
1444
+ align-items: center;
1445
+ `;default:return r.css``}})(e)}
1446
+ ${({$show:e})=>e?fr:dr}
1447
+ ${e=>h.hydrate(e)}
1448
+ `,gr=r.div`
1449
+ display: flex;
1450
+ flex-direction: column;
1451
+ gap: 10px;
1452
+
1453
+ align-items: center;
1454
+ justify-content: center;
1455
+ align-content: center;
1456
+ width: 100%;
1457
+ max-width: 90%;
1458
+ padding-block: 20px;
1459
+ padding-inline: 20px;
1460
+ position: relative;
1461
+
1462
+ background-color: var(--db-white);
1463
+ border-radius: 20px 20px 0 0;
1464
+
1465
+ @media screen and (min-width: 460px) {
1466
+ max-width: 400px;
1467
+ }
1468
+ @media screen and (min-width: 768px) {
1469
+ border-radius: 20px;
1470
+ padding-inline: 40px;
1471
+ max-width: 440px;
1472
+ }
1473
+
1474
+ ${e=>h.hydrate(e)}
1475
+ `;var vr=t.memo(({show:r=!1,position:n="top",children:i,$overlay:o={},$wrapper:a={},$content:s={}})=>{const[l,c]=t.useState(void 0);return t.useEffect(()=>{c(r?"true":void 0),g()&&(document.body.style.overflowY=r?"hidden":"auto")},[r]),e.jsxs(e.Fragment,{children:[e.jsx(pr,{$show:l,...o}),e.jsx(hr,{$position:n,$show:l,...a,children:e.jsx(gr,{$show:l,...s,children:i})})]})});const br=r.div`
1476
+ display: flex;
1477
+ flex-direction: column;
1478
+ gap: 8px;
1479
+ width: 100%;
1480
+
1481
+ ${e=>h.hydrate(e)}
1482
+ `,mr=r.div`
1483
+ display: flex;
1484
+ flex-direction: column;
1485
+ align-items: center;
1486
+ justify-content: center;
1487
+ gap: 8px;
1488
+ border: 2px dashed var(--db-tertiary-lighten-40);
1489
+ border-radius: 8px;
1490
+ cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
1491
+ opacity: ${({$disabled:e})=>e?.5:1};
1492
+ transition: all 200ms ease;
1493
+
1494
+ ${({$theme:e})=>"default"===e&&r.css`
1495
+ padding: 2rem;
1496
+ min-height: 120px;
1497
+ `}
1498
+
1499
+ ${({$theme:e})=>"compact"===e&&r.css`
1500
+ padding: 1rem;
1501
+ min-height: 80px;
1502
+ `}
1503
+
1504
+ ${({$theme:e})=>"minimal"===e&&r.css`
1505
+ padding: 0.75rem;
1506
+ min-height: 60px;
1507
+ border-style: solid;
1508
+ border-width: 1px;
1509
+ `}
1510
+
1511
+ ${({$isDragging:e})=>e&&r.css`
1512
+ border-color: var(--db-primary);
1513
+ background-color: var(--db-primary-lighten-50);
1514
+ `}
1515
+
1516
+ &:hover {
1517
+ border-color: ${({$disabled:e})=>e?"var(--db-tertiary-lighten-40)":"var(--db-primary)"};
1518
+ }
1519
+
1520
+ ${e=>h.hydrate(e)}
1521
+ `,xr=r.div`
1522
+ display: flex;
1523
+ flex-direction: column;
1524
+ gap: 8px;
1525
+
1526
+ ${e=>h.hydrate(e)}
1527
+ `,yr=r.div`
1528
+ display: flex;
1529
+ align-items: center;
1530
+ justify-content: space-between;
1531
+ padding: 0.75rem 1rem;
1532
+ background: var(--db-tertiary-lighten-50);
1533
+ border-radius: 8px;
1534
+ gap: 12px;
1535
+
1536
+ ${e=>h.hydrate(e)}
1537
+ `,wr=r.div`
1538
+ display: flex;
1539
+ align-items: center;
1540
+ gap: 12px;
1541
+ flex: 1;
1542
+ min-width: 0;
1543
+
1544
+ ${e=>h.hydrate(e)}
1545
+ `,$r=r.span`
1546
+ font-size: 14px;
1547
+ color: var(--db-tertiary);
1548
+ white-space: nowrap;
1549
+ overflow: hidden;
1550
+ text-overflow: ellipsis;
1551
+ `,_r=r.span`
1552
+ font-size: 12px;
1553
+ color: var(--db-tertiary-lighten-20);
1554
+ white-space: nowrap;
1555
+ `,jr=r.button`
1556
+ display: flex;
1557
+ align-items: center;
1558
+ justify-content: center;
1559
+ padding: 4px;
1560
+ border: none;
1561
+ background: transparent;
1562
+ cursor: pointer;
1563
+ border-radius: 4px;
1564
+ transition: background-color 150ms ease;
1565
+
1566
+ &:hover {
1567
+ background-color: var(--db-tertiary-lighten-40);
1568
+ }
1569
+ `,kr=r.span`
1570
+ font-size: 12px;
1571
+ color: var(--db-danger);
1572
+ `,Cr=r.input`
1573
+ display: none;
1574
+ `,zr={pdf:["application/pdf","application/x-pdf"],jpg:["image/jpeg","image/pjpeg"],jpeg:["image/jpeg","image/pjpeg"],png:["image/png"],webp:["image/webp"],"*":["*/*"]},Sr=e=>{if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["Bytes","KB","MB","GB"][t]},Er=e=>{var t;const r=e.split(".");return r.length>1&&(null===(t=r.pop())||void 0===t?void 0:t.toLowerCase())||""},Ar=(e,t,r)=>{const n=Er(e.name),i=((e,t)=>{if(t.includes("*"))return!0;const r=Er(e.name),n=(e.type||"").toLowerCase();return!!t.includes(r)||t.some(e=>{var t;const r=zr[e];return null!==(t=null==r?void 0:r.some(e=>"*/*"===e||n===e))&&void 0!==t&&t})})(e,t),o=e.size<=r,a=i&&o;let s;i?o||(s=`El archivo excede el tamaño máximo de ${Sr(r)}`):s=`Formato no permitido. Formatos aceptados: ${t.join(", ")}`;const l=e.type.startsWith("image/");return{file:e,id:`file_${Date.now()}_${Math.random().toString(36).substring(2,9)}`,name:e.name,size:e.size,sizeFormatted:Sr(e.size),type:e.type,extension:n,previewUrl:l?URL.createObjectURL(e):void 0,lastModified:new Date(e.lastModified),isValid:a,errorMessage:s}};exports.Alert=vt,exports.BREAKPOINTS=i,exports.BREAKPOINTS_PREFIX=o,exports.Badge=Ut,exports.Box=Kt,exports.Button=q,exports.ButtonIcon=ut,exports.Center=H,exports.CheckBox=Je,exports.Col=$e,exports.Color=tr,exports.Container=y,exports.Dialog=vr,exports.Dropdown=function({options:r,placeholder:n="Seleccionar",value:i,onSelect:o,block:a=!1,theme:s="outline",position:l="left",minWidth:c=160,maxHeight:u=280,disabled:d=!1,renderTrigger:f,renderOption:p,closeOnSelect:h=!0,trigger:g,panel:v,...b}){const[m,x]=t.useState(!1),[y,w]=t.useState("bottom"),[$,_]=t.useState(u),j=t.useRef(null),k=r.find(e=>e.id===i),C=t.useCallback(()=>{if(!j.current)return;const e=j.current.getBoundingClientRect(),t=window.innerHeight-e.bottom-16,r=e.top-16;t>=u?(w("bottom"),_(u)):r>t?(w("top"),_(Math.min(u,r))):(w("bottom"),_(Math.min(u,t)))},[u]),S=t.useCallback(()=>{d||x(e=>(e||C(),!e))},[d,C]),E=t.useCallback(e=>{e.disabled||(null==o||o(e),h&&x(!1))},[o,h]);return t.useEffect(()=>{const e=e=>{j.current&&!j.current.contains(e.target)&&x(!1)};return m&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[m]),t.useEffect(()=>{const e=e=>{"Escape"===e.key&&x(!1)};return m&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[m]),t.useEffect(()=>{if(!m)return;const e=()=>C();return window.addEventListener("resize",e),window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,!0)}},[m,C]),e.jsxs(Ue,{block:a?"true":void 0,ref:j,...b,children:[e.jsx(Ve,{$disabled:d,onClick:S,block:a?"true":void 0,...g,children:f?f({isOpen:m,selectedOption:k,toggle:S}):e.jsxs(Ze,{$isOpen:m,$theme:s,...g,children:[e.jsx(P,{$color:k?"var(--db-primary)":"var(--db-tertiary-lighten-20)",$size:14,$flex:"1",children:(null==k?void 0:k.name)||n}),e.jsx(X,{type:"arrowDown",wsvg:18,color:"var(--db-tertiary)"})]})}),e.jsx(Ke,{$isOpen:m,$position:l,$verticalPosition:y,$minWidth:c,$maxHeight:$,...v,children:r.map((t,r)=>{if(t.divider)return e.jsx(He,{},`divider-${r}`);const n=t.id===i,o=50+30*r;return p?e.jsx(qe,{$isOpen:m,$delay:o,$disabled:t.disabled,$selected:n,onClick:()=>E(t),children:p(t,r)},t.id):e.jsxs(qe,{$isOpen:m,$delay:o,$disabled:t.disabled,$selected:n,onClick:()=>E(t),children:[t.icon&&e.jsx(X,{type:t.icon,wsvg:18,color:n?"var(--db-primary)":"var(--db-tertiary)"}),e.jsxs(z,{$direction:"column",children:[e.jsx(P,{$color:n?"var(--db-primary)":t.disabled?"var(--db-tertiary-lighten-30)":"var(--db-tertiary)",$size:14,$lineHeight:14,children:t.name}),t.tooltip&&e.jsx(P,{$size:10,$weight:"500",$type:"small",$lineHeight:10,$color:"var(--db-tertiary-lighten-20)",children:t.tooltip})]})]},t.id)})})]})},exports.FileUpload=function({accept:r=["*"],multiple:n=!1,maxSize:i=10485760,maxFiles:o=10,files:a,onChange:s,onError:l,placeholder:c="Arrastra archivos aquí o haz clic para seleccionar",placeholderSecondary:u,disabled:d=!1,showFileList:f=!0,theme:p="default",...h}){const[g,v]=t.useState([]),[b,m]=t.useState(!1),x=t.useRef(null),y=null!=a?a:g,w=r.includes("*")?"*/*":r.map(e=>{const t=zr[e];return t?t.join(","):`.${e}`}).join(","),$=`Formatos: ${r.join(", ").toUpperCase()} | Máx: ${Sr(i)}`;t.useEffect(()=>()=>{y.forEach(e=>{e.previewUrl&&URL.revokeObjectURL(e.previewUrl)})},[]);const _=t.useCallback(e=>{if(!e||0===e.length)return;const t=[],c=y.length,u=n?o-c:1;if(u<=0)return void(null==l||l(`Máximo ${o} archivos permitidos`));const d=Array.from(e).slice(0,u);for(const e of d){const n=Ar(e,r,i);t.push(n),!n.isValid&&n.errorMessage&&(null==l||l(n.errorMessage))}const f=n?[...y,...t]:t;void 0===a&&v(f),null==s||s(f)},[y,n,o,r,i,s,l,a]),j=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),d||m(!0)},[d]),k=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),m(!1)},[]),C=t.useCallback(e=>{e.preventDefault(),e.stopPropagation()},[]),z=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),m(!1),d||_(e.dataTransfer.files)},[d,_]),S=t.useCallback(()=>{var e;d||null===(e=x.current)||void 0===e||e.click()},[d]),E=t.useCallback(e=>{_(e.target.files),x.current&&(x.current.value="")},[_]),A=t.useCallback(e=>{const t=y.find(t=>t.id===e);(null==t?void 0:t.previewUrl)&&URL.revokeObjectURL(t.previewUrl);const r=y.filter(t=>t.id!==e);void 0===a&&v(r),null==s||s(r)},[y,s,a]);return e.jsxs(br,{...h,children:[e.jsx(Cr,{ref:x,type:"file",accept:w,multiple:n,onChange:E,disabled:d}),e.jsxs(mr,{$isDragging:b,$disabled:d,$theme:p,onClick:S,onDragEnter:j,onDragLeave:k,onDragOver:C,onDrop:z,children:[e.jsx(X,{type:"cloudUpload",wsvg:"minimal"===p?24:32,color:b?"var(--db-primary)":"var(--db-tertiary-lighten-20)"}),e.jsx(P,{$size:14,$color:"var(--db-tertiary-lighten-10)",$textAlign:"center",children:c}),"minimal"!==p&&e.jsx(P,{$size:12,$color:"var(--db-tertiary-lighten-30)",$textAlign:"center",children:u||$})]}),f&&y.length>0&&e.jsx(xr,{children:y.map(t=>e.jsxs(yr,{children:[e.jsxs(wr,{children:[e.jsx(X,{type:"cloudUpload",wsvg:20,color:t.isValid?"var(--db-primary)":"var(--db-danger)"}),e.jsxs("div",{style:{minWidth:0,flex:1,display:"inline-flex",gap:6},children:[e.jsx($r,{children:t.name}),e.jsx(_r,{children:t.sizeFormatted}),!t.isValid&&t.errorMessage&&e.jsx(kr,{children:t.errorMessage})]})]}),e.jsx(jr,{type:"button",onClick:e=>{e.stopPropagation(),A(t.id)},children:e.jsx(X,{type:"close",wsvg:18,color:"var(--db-tertiary)"})})]},t.id))})]})},exports.Flex=z,exports.Grid=zt,exports.IconWrapper=Z,exports.Icons=X,exports.Image=kt,exports.Input=ye,exports.InputHelper=Re,exports.Loader=K,exports.Loading=Q,exports.Modal=Y,exports.REGEX=c,exports.Radio=rt,exports.Select=({options:r,id:n,defaultValue:i,otherLess:o,excludes:a,exclusion:s="default",placeholder:l,type:c,getValue:u,value:d,onChange:f,onBlur:p,onFocus:h,error:g="",warning:v="",disabled:b,hasRequired:m,...x})=>{const[y,w]=t.useState([]),[$,_]=t.useState(!1);t.useEffect(()=>{if(a){let e=[];e=a.map(e=>null==e?void 0:e.id).filter(Boolean),(null==e?void 0:e.length)&&w(e),console.log("exclusions ids :: ",e)}},[a]);const j=t.useCallback(()=>{h&&h(),_(!0)},[h]);return e.jsxs(Oe,{...x,$hasFocus:$,$small:!l,$hasError:g.length,$hasWarning:v.length,disabled:b,children:[e.jsxs(Ie,{id:n,value:d,name:n||"select",disabled:b,required:m,onFocus:()=>j(),$right:!!m,onChange:e=>null==u?void 0:u((e=>e.target.value)(e)),onBlur:()=>_(!1),defaultValue:i||"",title:l||"Seleccionar opción","aria-label":l||"Seleccionar opción",children:[e.jsx(We,{value:"",name:"",selected:!1,exclusion:!1},0),r&&r.map(t=>e.jsx(We,{value:t.id,name:t.name,selected:!!t.selected,exclusion:"invert"===s&&!y.includes(t.id),disabled:"invert"===s?!y.includes(t.id):y.includes(t.id)},t.id)),!o&&"invert"!==s&&e.jsx("option",{value:"9999",children:"Other"})]}),e.jsx(Ne,{children:e.jsx(X,{type:"arrowDown",wsvg:20})}),l&&e.jsx(Pe,{htmlFor:n,$hasFocus:$||!!d,disabled:b,children:l}),m&&e.jsx(Pe,{htmlFor:n,$hasFocus:!0,disabled:b,$right:!0,children:"Required"}),g&&e.jsx(Le,{children:g}),v&&e.jsx(Fe,{children:v})]})},exports.Slide=ur,exports.SuperCSS=h,exports.Svg=mt,exports.Text=P,exports.Title=Jt,exports.Tooltip=Ae,exports.Video=_t,exports.Viewer=({id:r="viewer",show:n=!1,files:i=[],currentImg:o=0,onClose:a=null,hideInfo:s=!1,title:l="",caption:c="",theme:u="light"})=>{const[d,f]=t.useState(0),[p,h]=t.useState(0),v=t.useMemo(()=>["jpeg","jpg","png","webp"],[]),b=t.useMemo(()=>["mp4","webm","avi"],[]),m=t.useCallback(()=>{const e=d+1;f(e<p?e:p)},[d,p]),x=t.useCallback(()=>{f(d-1>0?d-1:0)},[d]),w=t.useCallback(()=>{f(0),null==a||a()},[a,f]);return t.useEffect(()=>{console.log("Viewer files",i),h(i.length-1)},[i]),t.useEffect(()=>{f(o)},[o]),t.useEffect(()=>{if(g())return n&&(document.body.style.overflowY="hidden"),()=>{document.body.style.overflowY="auto"}},[n]),e.jsx(St,{$show:n,$current:d,$theme:u,id:r,children:e.jsxs(Et,{children:[e.jsx(At,{$xsPb:0,$mdPb:20,children:e.jsx(y,{children:e.jsxs(z,{$items:"center",$justify:s?"end":"between",$xsDirection:"column",$mdDirection:"row",children:[!s&&e.jsx(P,{$xsSize:18,$mdSize:22,$weight:"500",children:l}),e.jsxs(q,{$theme:"light",$padding:"10px 20px",$bg:"white",onClick:w,$boxShadow:"0 6px 30px -10px rgba(0, 0, 0, 0.05)",children:[e.jsx(X,{name:"rollback",size:24,color:"black"}),e.jsx(P,{$size:16,$weight:"500",children:"Cerrar"})]})]})})}),e.jsxs(Rt,{children:[e.jsx(Ot,{onClick:x,$xsLeft:"35%",$smLeft:"10%",$mdLeft:"16%",$pointerEvents:d>0?"all":"none",$opacity:d>0?1:0,children:e.jsx(X,{name:"arrowl",size:24,color:"black"})}),e.jsxs(zt,{$cols:"1fr",$rows:"1fr 100px",$minw:"50%",$xsWidth:"90%",$mdWidth:"70%",$xsHeight:"90%",$mdHeight:"100%",className:"grid",children:[e.jsx(z,{$align:"center",$items:"center",$content:"center",$overflow:"hidden",children:e.jsx(z,{id:"slide",$maxw:"100%",$ml:`-${d}00%`,$width:`${i.length}00%`,$height:"100%",children:!!i.length&&i.map(({url:t,format:r,alt:n,fit:i="contain",persistAutoplay:o=!1},a)=>e.jsxs(z,{$justify:"center",$align:"center",className:"slide_item",$direction:"column",style:{minWidth:"100%",opacity:d===a?1:.5,transform:d===a?"scale(1)":"scale(0.7)"},children:[e.jsxs(It,{children:[b.includes(r)&&e.jsx(_t,{src:t,alt:n,title:n,type:`video/${r}`,preload:"metadata",fetchpriority:"auto",persistAutoplay:o,style:{objectFit:i}}),v.includes(r)&&e.jsx(kt,{alt:n,url:t,fit:i,loading:"lazy"})]}),e.jsx(Pt,{$xsSize:8,$smSize:10,$xlSize:12,$mdWidth:"70%",$xlWidth:"60%",$display:c?"inline-flex":"none",children:c})]},a))})}),e.jsx(z,{$mt:20,$gap:10,$xsJustify:"start",$mdJustify:"center",$xsFlexWrap:"nowrap",$mdFlexWrap:"wrap",$xsOverflowX:"auto",className:"slide_thumbnails",children:i.map(({url:t,format:r,alt:n,fit:i},o)=>{const a=b.includes(r);return e.jsx(z,{$xsWsvg:50,$smWsvg:60,$xlWsvg:80,$radius:10,$overflow:"hidden",$cursor:"pointer",$opacity:d===o?1:.7,$transition:"all 0.2s ease-in-out",$boxShadow:"inset 0 0 0 3px var(--db-white)",$border:"3px solid transparent",$borderColor:d===o?"var(--db-primary)":"transparent",onClick:()=>f(o),children:a?e.jsxs(z,{$width:"100%",$height:"100%",$align:"center",$conten:"center",$justify:"center",$direction:"column",$bg:"rgba(255, 255, 255, 0.6)",$backdropFilter:"blur(4px)",children:[e.jsx(H,{children:e.jsx(X,{name:"hdDisplay",size:24,color:"black"})}),e.jsx(P,{$size:10,$weight:"600",$align:"center",children:"Video"})]}):e.jsx(kt,{alt:n,url:t,fit:i,loading:"lazy"})},o)})})]}),e.jsx(Ot,{onClick:m,$xsRight:"35%",$smRight:"10%",$mdRight:"16%",$pointerEvents:d!==p?"all":"none",$opacity:d!==p?1:0,children:e.jsx(X,{name:"arrowr",size:24,color:"black"})})]})]})})},exports.alias=a,exports.cssVar=m,exports.cssVars=e=>e.reduce((e,t)=>(e[t.startsWith("--")?t.slice(2):t]=m(t),e),{}),exports.hasWindow=g,exports.normalize=b,exports.packageName="@quintarai/react",exports.randomKey=function(e){const t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";let r="";for(let n=0;n<e;n++){r+=t[Math.floor(62*Math.random())]}return r},exports.reactive=l,exports.sanitize=e=>e.replace(/ {2}/g," ").trim(),exports.setCssVar=(e,t)=>{if("undefined"==typeof window)return;const r=e.startsWith("--")?e:`--${e}`;document.documentElement.style.setProperty(r,t)},exports.slugify=v,exports.values=s,exports.version="1.0.0";
1575
+ //# sourceMappingURL=index.js.map