@agilys-system/design-system 1.1.0 → 1.1.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.
@@ -1,13 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),b=require("react"),vn=require("react-dom");function Qr(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Qr(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Kr(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Qr(e))&&(s&&(s+=" "),s+=t);return s}const Lr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Fr=Kr,Pe=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return Fr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(u=>{const m=r==null?void 0:r[u],y=a==null?void 0:a[u];if(m===null)return null;const g=Lr(m)||Lr(y);return n[u][g]}),o=r&&Object.entries(r).reduce((u,m)=>{let[y,g]=m;return g===void 0||(u[y]=g),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,m)=>{let{class:y,className:g,...A}=m;return Object.entries(A).every(W=>{let[D,x]=W;return Array.isArray(x)?x.includes({...a,...o}[D]):{...a,...o}[D]===x})?[...u,y,g]:u},[]);return Fr(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},or="-",wn=e=>{const t=kn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const o=i.split(or);return o[0]===""&&o.length!==1&&o.shift(),Xr(o,t)||_n(i)},getConflictingClassGroupIds:(i,o)=>{const d=r[i]||[];return o&&s[i]?[...d,...s[i]]:d}}},Xr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?Xr(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(or);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},zr=/^\[(.+)\]$/,_n=e=>{if(zr.test(e)){const t=zr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kn=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return Mn(Object.entries(e.classGroups),r).forEach(([a,i])=>{Kt(i,s,a,t)}),s},Kt=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Er(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Sn(n)){Kt(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Kt(i,Er(t,a),r,s)})})},Er=(e,t)=>{let r=e;return t.split(or).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},Sn=e=>e.isThemeGetter,Mn=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,o])=>[t+i,o])):a);return[r,n]}):e,Dn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},es="!",Nn=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=o=>{const d=[];let u=0,m=0,y;for(let x=0;x<o.length;x++){let T=o[x];if(u===0){if(T===n&&(s||o.slice(x,x+a)===t)){d.push(o.slice(m,x)),m=x+a;continue}if(T==="/"){y=x;continue}}T==="["?u++:T==="]"&&u--}const g=d.length===0?o:o.substring(m),A=g.startsWith(es),W=A?g.substring(1):g,D=y&&y>m?y-m:void 0;return{modifiers:d,hasImportantModifier:A,baseClassName:W,maybePostfixModifierPosition:D}};return r?o=>r({className:o,parseClassName:i}):i},On=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},Yn=e=>({cache:Dn(e.cacheSize),parseClassName:Nn(e),...wn(e)}),jn=/\s+/,Tn=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(jn);let o="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:A}=r(u);let W=!!A,D=s(W?g.substring(0,A):g);if(!D){if(!W){o=u+(o.length>0?" "+o:o);continue}if(D=s(g),!D){o=u+(o.length>0?" "+o:o);continue}W=!1}const x=On(m).join(":"),T=y?x+es:x,z=T+D;if(a.includes(z))continue;a.push(z);const q=n(D,W);for(let O=0;O<q.length;++O){const B=q[O];a.push(T+B)}o=u+(o.length>0?" "+o:o)}return o};function Cn(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ts(t))&&(s&&(s+=" "),s+=r);return s}const ts=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=ts(e[s]))&&(r&&(r+=" "),r+=t);return r};function Pn(e,...t){let r,s,n,a=i;function i(d){const u=t.reduce((m,y)=>y(m),e());return r=Yn(u),s=r.cache.get,n=r.cache.set,a=o,o(d)}function o(d){const u=s(d);if(u)return u;const m=Tn(d,r);return n(d,m),m}return function(){return a(Cn.apply(null,arguments))}}const I=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rn=/^\d+\/\d+$/,Wn=new Set(["px","full","screen"]),In=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ln=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Fn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,En=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=e=>He(e)||Wn.has(e)||Rn.test(e),Oe=e=>Ze(e,"length",Zn),He=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>Ze(e,"number",He),tt=e=>!!e&&Number.isInteger(Number(e)),An=e=>e.endsWith("%")&&He(e.slice(0,-1)),v=e=>rs.test(e),Ye=e=>In.test(e),Vn=new Set(["length","size","percentage"]),Un=e=>Ze(e,Vn,ss),Hn=e=>Ze(e,"position",ss),Gn=new Set(["image","url"]),$n=e=>Ze(e,Gn,Jn),Bn=e=>Ze(e,"",qn),rt=()=>!0,Ze=(e,t,r)=>{const s=rs.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Zn=e=>Ln.test(e)&&!Fn.test(e),ss=()=>!1,qn=e=>zn.test(e),Jn=e=>En.test(e),Qn=()=>{const e=I("colors"),t=I("spacing"),r=I("blur"),s=I("brightness"),n=I("borderColor"),a=I("borderRadius"),i=I("borderSpacing"),o=I("borderWidth"),d=I("contrast"),u=I("grayscale"),m=I("hueRotate"),y=I("invert"),g=I("gap"),A=I("gradientColorStops"),W=I("gradientColorStopPositions"),D=I("inset"),x=I("margin"),T=I("opacity"),z=I("padding"),q=I("saturate"),O=I("scale"),B=I("sepia"),U=I("skew"),S=I("space"),V=I("translate"),Z=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",v,t],C=()=>[v,t],Ke=()=>["",pe,Oe],Re=()=>["auto",He,v],pt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ze=()=>["solid","dashed","dotted","double","none"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",v],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[He,v];return{cacheSize:500,separator:":",theme:{colors:[rt],spacing:[pe,Oe],blur:["none","",Ye,v],brightness:X(),borderColor:[e],borderRadius:["none","","full",Ye,v],borderSpacing:C(),borderWidth:Ke(),contrast:X(),grayscale:H(),hueRotate:X(),invert:H(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[An,Oe],inset:ae(),margin:ae(),opacity:X(),padding:C(),saturate:X(),scale:X(),sepia:H(),skew:X(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[Ye]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...pt(),v]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tt,v]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",tt,v]}],"grid-cols":[{"grid-cols":[rt]}],"col-start-end":[{col:["auto",{span:["full",tt,v]},v]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[rt]}],"row-start-end":[{row:["auto",{span:[tt,v]},v]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[Ye]},Ye]}],h:[{h:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ye,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bt]}],"font-family":[{font:[rt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",v]}],"line-clamp":[{"line-clamp":["none",He,Bt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ze(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,Oe]}],"underline-offset":[{"underline-offset":["auto",pe,v]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pt(),Hn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Un]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$n]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[W]}],"gradient-via-pos":[{via:[W]}],"gradient-to-pos":[{to:[W]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...ze(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:ze()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ze()]}],"outline-offset":[{"outline-offset":[pe,v]}],"outline-w":[{outline:[pe,Oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[pe,Oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,Bn]}],"shadow-color":[{shadow:[rt]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ye,v]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[q]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[tt,v]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,Oe,Bt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Kn=Pn(Qn);function _(...e){return Kn(Kr(e))}const ns=Pe("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),Xn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},R=b.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const o=s??Xn[t??"body"];return b.createElement(o,{ref:i,className:_(ns({variant:t,weight:r}),e),...a},n)});R.displayName="Text";const as=Pe("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),ea={sm:"bodySm",md:"body",lg:"body",icon:"body"},is=b.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:o,...d},u)=>{const m=r==="icon",y=ea[r??"md"];return l.jsxs("button",{ref:u,className:_(as({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&l.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!n&&a&&l.jsx("span",{className:"inline-flex shrink-0 text-white","aria-hidden":"true",children:a}),m?l.jsx("span",{className:"inline-flex shrink-0 text-white",children:o}):l.jsx(R,{as:"span",variant:y,className:"text-inherit",children:o})]})});is.displayName="Button";const os=Pe("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),ta={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},ls=b.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,...n},a)=>l.jsxs("span",{ref:a,className:_(os({variant:t,status:r}),e),...n,children:[t==="dot"&&l.jsx("span",{className:_("size-2 shrink-0 rounded-full",ta[r??"default"]),"aria-hidden":"true"}),l.jsx(R,{as:"span",variant:"body",className:"text-inherit",children:s})]}));ls.displayName="Badge";const ds=Pe("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),ra={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function sa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function na(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function aa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function ia(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function oa(){return l.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const la={success:l.jsx(na,{}),warning:l.jsx(aa,{}),error:l.jsx(ia,{}),info:l.jsx(sa,{})},lr=b.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:o,...d},u)=>{const m=t??"default",y=r===void 0?la[m]:r,g=ra[m];return l.jsxs("div",{ref:u,className:_(ds({variant:t}),e),...d,children:[y&&l.jsx("span",{className:_("size-6 shrink-0",g),"aria-hidden":"true",children:y}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:g,children:s}),n&&l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:n}),o]}),a&&l.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&l.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:_("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",g),children:l.jsx(oa,{})})]})});lr.displayName="Card";var cs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ar=b.createContext&&b.createContext(cs),da=["attr","size","title"];function ca(e,t){if(e==null)return{};var r,s,n=ua(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ua(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},St.apply(null,arguments)}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(s){fa(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function fa(e,t,r){return(t=ha(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ha(e){var t=ma(e,"string");return typeof t=="symbol"?t:t+""}function ma(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function us(e){return e&&e.map((t,r)=>b.createElement(t.tag,Mt({key:r},t.attr),us(t.child)))}function Pt(e){return t=>b.createElement(pa,St({attr:Mt({},e.attr)},t),us(e.child))}function pa(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ca(e,da),o=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),b.createElement("svg",St({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Mt(Mt({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&b.createElement("title",null,a),e.children)};return Ar!==void 0?b.createElement(Ar.Consumer,null,r=>t(r)):t(cs)}function ya(e){return Pt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function ga(e){return Pt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function ba(e){return Pt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function xa(e){return Pt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),b=require("react"),vn=require("react-dom");function Qr(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Qr(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Kr(){for(var e,t,r=0,s="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Qr(e))&&(s&&(s+=" "),s+=t);return s}const Lr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,zr=Kr,Pe=(e,t)=>r=>{var s;if((t==null?void 0:t.variants)==null)return zr(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:n,defaultVariants:a}=t,i=Object.keys(n).map(u=>{const m=r==null?void 0:r[u],y=a==null?void 0:a[u];if(m===null)return null;const g=Lr(m)||Lr(y);return n[u][g]}),o=r&&Object.entries(r).reduce((u,m)=>{let[y,g]=m;return g===void 0||(u[y]=g),u},{}),d=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,m)=>{let{class:y,className:g,...A}=m;return Object.entries(A).every(W=>{let[D,x]=W;return Array.isArray(x)?x.includes({...a,...o}[D]):{...a,...o}[D]===x})?[...u,y,g]:u},[]);return zr(e,i,d,r==null?void 0:r.class,r==null?void 0:r.className)},or="-",wn=e=>{const t=kn(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const o=i.split(or);return o[0]===""&&o.length!==1&&o.shift(),Xr(o,t)||_n(i)},getConflictingClassGroupIds:(i,o)=>{const d=r[i]||[];return o&&s[i]?[...d,...s[i]]:d}}},Xr=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],s=t.nextPart.get(r),n=s?Xr(e.slice(1),s):void 0;if(n)return n;if(t.validators.length===0)return;const a=e.join(or);return(i=t.validators.find(({validator:o})=>o(a)))==null?void 0:i.classGroupId},Fr=/^\[(.+)\]$/,_n=e=>{if(Fr.test(e)){const t=Fr.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},kn=e=>{const{theme:t,prefix:r}=e,s={nextPart:new Map,validators:[]};return Mn(Object.entries(e.classGroups),r).forEach(([a,i])=>{Kt(i,s,a,t)}),s},Kt=(e,t,r,s)=>{e.forEach(n=>{if(typeof n=="string"){const a=n===""?t:Er(t,n);a.classGroupId=r;return}if(typeof n=="function"){if(Sn(n)){Kt(n(s),t,r,s);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([a,i])=>{Kt(i,Er(t,a),r,s)})})},Er=(e,t)=>{let r=e;return t.split(or).forEach(s=>{r.nextPart.has(s)||r.nextPart.set(s,{nextPart:new Map,validators:[]}),r=r.nextPart.get(s)}),r},Sn=e=>e.isThemeGetter,Mn=(e,t)=>t?e.map(([r,s])=>{const n=s.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,o])=>[t+i,o])):a);return[r,n]}):e,Dn=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,s=new Map;const n=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,s=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=s.get(a))!==void 0)return n(a,i),i},set(a,i){r.has(a)?r.set(a,i):n(a,i)}}},es="!",Nn=e=>{const{separator:t,experimentalParseClassName:r}=e,s=t.length===1,n=t[0],a=t.length,i=o=>{const d=[];let u=0,m=0,y;for(let x=0;x<o.length;x++){let T=o[x];if(u===0){if(T===n&&(s||o.slice(x,x+a)===t)){d.push(o.slice(m,x)),m=x+a;continue}if(T==="/"){y=x;continue}}T==="["?u++:T==="]"&&u--}const g=d.length===0?o:o.substring(m),A=g.startsWith(es),W=A?g.substring(1):g,D=y&&y>m?y-m:void 0;return{modifiers:d,hasImportantModifier:A,baseClassName:W,maybePostfixModifierPosition:D}};return r?o=>r({className:o,parseClassName:i}):i},On=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(s=>{s[0]==="["?(t.push(...r.sort(),s),r=[]):r.push(s)}),t.push(...r.sort()),t},Yn=e=>({cache:Dn(e.cacheSize),parseClassName:Nn(e),...wn(e)}),jn=/\s+/,Tn=(e,t)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:n}=t,a=[],i=e.trim().split(jn);let o="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:A}=r(u);let W=!!A,D=s(W?g.substring(0,A):g);if(!D){if(!W){o=u+(o.length>0?" "+o:o);continue}if(D=s(g),!D){o=u+(o.length>0?" "+o:o);continue}W=!1}const x=On(m).join(":"),T=y?x+es:x,F=T+D;if(a.includes(F))continue;a.push(F);const q=n(D,W);for(let O=0;O<q.length;++O){const B=q[O];a.push(T+B)}o=u+(o.length>0?" "+o:o)}return o};function Cn(){let e=0,t,r,s="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ts(t))&&(s&&(s+=" "),s+=r);return s}const ts=e=>{if(typeof e=="string")return e;let t,r="";for(let s=0;s<e.length;s++)e[s]&&(t=ts(e[s]))&&(r&&(r+=" "),r+=t);return r};function Pn(e,...t){let r,s,n,a=i;function i(d){const u=t.reduce((m,y)=>y(m),e());return r=Yn(u),s=r.cache.get,n=r.cache.set,a=o,o(d)}function o(d){const u=s(d);if(u)return u;const m=Tn(d,r);return n(d,m),m}return function(){return a(Cn.apply(null,arguments))}}const I=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rs=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rn=/^\d+\/\d+$/,Wn=new Set(["px","full","screen"]),In=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ln=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Fn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,En=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=e=>He(e)||Wn.has(e)||Rn.test(e),Oe=e=>Ze(e,"length",Zn),He=e=>!!e&&!Number.isNaN(Number(e)),Bt=e=>Ze(e,"number",He),tt=e=>!!e&&Number.isInteger(Number(e)),An=e=>e.endsWith("%")&&He(e.slice(0,-1)),v=e=>rs.test(e),Ye=e=>In.test(e),Vn=new Set(["length","size","percentage"]),Un=e=>Ze(e,Vn,ss),Hn=e=>Ze(e,"position",ss),Gn=new Set(["image","url"]),$n=e=>Ze(e,Gn,Jn),Bn=e=>Ze(e,"",qn),rt=()=>!0,Ze=(e,t,r)=>{const s=rs.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):r(s[2]):!1},Zn=e=>Ln.test(e)&&!zn.test(e),ss=()=>!1,qn=e=>Fn.test(e),Jn=e=>En.test(e),Qn=()=>{const e=I("colors"),t=I("spacing"),r=I("blur"),s=I("brightness"),n=I("borderColor"),a=I("borderRadius"),i=I("borderSpacing"),o=I("borderWidth"),d=I("contrast"),u=I("grayscale"),m=I("hueRotate"),y=I("invert"),g=I("gap"),A=I("gradientColorStops"),W=I("gradientColorStopPositions"),D=I("inset"),x=I("margin"),T=I("opacity"),F=I("padding"),q=I("saturate"),O=I("scale"),B=I("sepia"),U=I("skew"),S=I("space"),V=I("translate"),Z=()=>["auto","contain","none"],J=()=>["auto","hidden","clip","visible","scroll"],ae=()=>["auto",v,t],C=()=>[v,t],Ke=()=>["",pe,Oe],Re=()=>["auto",He,v],yt=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Fe=()=>["solid","dashed","dotted","double","none"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],me=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",v],De=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[He,v];return{cacheSize:500,separator:":",theme:{colors:[rt],spacing:[pe,Oe],blur:["none","",Ye,v],brightness:X(),borderColor:[e],borderRadius:["none","","full",Ye,v],borderSpacing:C(),borderWidth:Ke(),contrast:X(),grayscale:H(),hueRotate:X(),invert:H(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[An,Oe],inset:ae(),margin:ae(),opacity:X(),padding:C(),saturate:X(),scale:X(),sepia:H(),skew:X(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",v]}],container:["container"],columns:[{columns:[Ye]}],"break-after":[{"break-after":De()}],"break-before":[{"break-before":De()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...yt(),v]}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",tt,v]}],basis:[{basis:ae()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",v]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",tt,v]}],"grid-cols":[{"grid-cols":[rt]}],"col-start-end":[{col:["auto",{span:["full",tt,v]},v]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[rt]}],"row-start-end":[{row:["auto",{span:[tt,v]},v]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",v]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",v]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...me()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...me(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...me(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[F]}],px:[{px:[F]}],py:[{py:[F]}],ps:[{ps:[F]}],pe:[{pe:[F]}],pt:[{pt:[F]}],pr:[{pr:[F]}],pb:[{pb:[F]}],pl:[{pl:[F]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[S]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[S]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",v,t]}],"min-w":[{"min-w":[v,t,"min","max","fit"]}],"max-w":[{"max-w":[v,t,"none","full","min","max","fit","prose",{screen:[Ye]},Ye]}],h:[{h:[v,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[v,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[v,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ye,Oe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Bt]}],"font-family":[{font:[rt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",v]}],"line-clamp":[{"line-clamp":["none",He,Bt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,v]}],"list-image":[{"list-image":["none",v]}],"list-style-type":[{list:["none","disc","decimal",v]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[T]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[T]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Fe(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,Oe]}],"underline-offset":[{"underline-offset":["auto",pe,v]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",v]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",v]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[T]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...yt(),Hn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Un]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$n]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[W]}],"gradient-via-pos":[{via:[W]}],"gradient-to-pos":[{to:[W]}],"gradient-from":[{from:[A]}],"gradient-via":[{via:[A]}],"gradient-to":[{to:[A]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[T]}],"border-style":[{border:[...Fe(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[T]}],"divide-style":[{divide:Fe()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...Fe()]}],"outline-offset":[{"outline-offset":[pe,v]}],"outline-w":[{outline:[pe,Oe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Ke()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[T]}],"ring-offset-w":[{"ring-offset":[pe,Oe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ye,Bn]}],"shadow-color":[{shadow:[rt]}],opacity:[{opacity:[T]}],"mix-blend":[{"mix-blend":[...Me(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Me()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[s]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Ye,v]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[q]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[T]}],"backdrop-saturate":[{"backdrop-saturate":[q]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",v]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",v]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",v]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[O]}],"scale-x":[{"scale-x":[O]}],"scale-y":[{"scale-y":[O]}],rotate:[{rotate:[tt,v]}],"translate-x":[{"translate-x":[V]}],"translate-y":[{"translate-y":[V]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",v]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",v]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",v]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[pe,Oe,Bt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Kn=Pn(Qn);function _(...e){return Kn(Kr(e))}const ns=Pe("font-sans text-gray-900",{variants:{variant:{h1:"text-3xl leading-tight font-bold",h2:"text-2xl leading-tight font-bold",h3:"text-xl leading-snug font-semibold",h4:"text-lg leading-snug font-semibold",h5:"text-base leading-snug font-medium",h6:"text-sm leading-snug font-medium",body:"text-sm leading-relaxed font-normal",bodySm:"text-xs leading-relaxed font-normal",caption:"text-[11px] leading-normal font-normal"},weight:{regular:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"}},defaultVariants:{variant:"body"}}),Xn={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body:"p",bodySm:"p",caption:"span"},R=b.forwardRef(({className:e,variant:t="body",weight:r,as:s,children:n,...a},i)=>{const o=s??Xn[t??"body"];return b.createElement(o,{ref:i,className:_(ns({variant:t,weight:r}),e),...a},n)});R.displayName="Text";const as=Pe("inline-flex items-center justify-center gap-2 rounded-lg transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-agilys-primary disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{primary:"bg-agilys-primary text-white shadow-[0px_2px_6px_0px_rgba(71,71,245,0.16),inset_0px_0px_10px_0px_rgba(255,255,255,0.3)] hover:bg-agilys-primary/90",secondary:"bg-white text-neutral-secondary shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)] hover:bg-gray-50",destructive:"bg-danger-light text-danger-dark shadow-[0px_2px_6px_0px_rgba(243,22,22,0.16)] hover:bg-danger-light/80"},size:{sm:"h-9 px-3",md:"h-10 px-4",lg:"h-11 px-6",icon:"size-10 p-0 shrink-0"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary",size:"md"}}),ea={sm:"bodySm",md:"body",lg:"body",icon:"body"},is=b.forwardRef(({className:e,variant:t,size:r,fullWidth:s,isLoading:n=!1,leftIcon:a,disabled:i,children:o,...d},u)=>{const m=r==="icon",y=ea[r??"md"];return l.jsxs("button",{ref:u,className:_(as({variant:t,size:r,fullWidth:s}),e),disabled:i||n,"aria-busy":n,...d,children:[n&&l.jsxs("svg",{className:"size-[18px] animate-spin",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}),!n&&a&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:a}),m?l.jsx("span",{className:"inline-flex shrink-0",children:o}):l.jsx(R,{as:"span",variant:y,className:"text-inherit",children:o})]})});is.displayName="Button";const os=Pe("inline-flex items-center justify-center h-6 whitespace-nowrap",{variants:{variant:{filled:"rounded-lg px-3",dot:"rounded bg-white gap-1.5 px-2"},status:{default:"",success:"",alert:"",error:""}},compoundVariants:[{variant:"filled",status:"default",class:"bg-agilys-primary text-white"},{variant:"filled",status:"success",class:"bg-success-10 text-success-60"},{variant:"filled",status:"alert",class:"bg-warning-light text-warning-accent"},{variant:"filled",status:"error",class:"bg-danger-10 text-danger-60"},{variant:"dot",status:"default",class:"text-agilys-primary"},{variant:"dot",status:"success",class:"text-success-60"},{variant:"dot",status:"alert",class:"text-warning-dark"},{variant:"dot",status:"error",class:"text-danger-60"}],defaultVariants:{variant:"filled",status:"default"}}),ta={default:"bg-agilys-primary",success:"bg-success-60",alert:"bg-warning-accent",error:"bg-danger-60"},ls=b.forwardRef(({className:e,variant:t="filled",status:r="default",children:s,backgroundColor:n,textColor:a,style:i,...o},d)=>l.jsxs("span",{ref:d,className:_(os({variant:t,status:r}),e),style:{...n?{backgroundColor:n}:void 0,...a?{color:a}:void 0,...i},...o,children:[t==="dot"&&l.jsx("span",{className:_("size-2 shrink-0 rounded-full",ta[r??"default"]),style:n?{backgroundColor:n}:void 0,"aria-hidden":"true"}),s&&(typeof s=="string"?l.jsx(R,{as:"span",variant:"body",className:"text-inherit",children:s}):s)]}));ls.displayName="Badge";const ds=Pe("flex items-start gap-2 rounded-lg p-5 font-sans",{variants:{variant:{default:"border border-neutral-divider-secondary bg-white shadow-[0px_0px_1px_0px_rgba(66,74,98,0.09),0px_2px_2px_0px_rgba(66,74,98,0.04)]",success:"border border-transparent bg-success-10",warning:"border border-transparent bg-warning-light",error:"border border-transparent bg-danger-10",info:"border border-transparent bg-primary-50"}},defaultVariants:{variant:"default"}}),ra={default:"text-neutral-text-primary",success:"text-success-60",warning:"text-warning-dark",error:"text-danger-dark",info:"text-primary-700"};function sa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M12 11v5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"8",r:"1",fill:"currentColor"})]})}function na(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M8.5 12.5l2.5 2.5 4.5-5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function aa(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("path",{d:"M12 3.5L21 20H3L12 3.5z",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),l.jsx("path",{d:"M12 10v4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),l.jsx("circle",{cx:"12",cy:"17",r:"1",fill:"currentColor"})]})}function ia(){return l.jsxs("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[l.jsx("circle",{cx:"12",cy:"12",r:"9",stroke:"currentColor",strokeWidth:"2"}),l.jsx("path",{d:"M9.5 9.5l5 5m0-5l-5 5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]})}function oa(){return l.jsx("svg",{className:"size-full",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const la={success:l.jsx(na,{}),warning:l.jsx(aa,{}),error:l.jsx(ia,{}),info:l.jsx(sa,{})},lr=b.forwardRef(({className:e,variant:t="default",icon:r,title:s,description:n,action:a,onClose:i,children:o,...d},u)=>{const m=t??"default",y=r===void 0?la[m]:r,g=ra[m];return l.jsxs("div",{ref:u,className:_(ds({variant:t}),e),...d,children:[y&&l.jsx("span",{className:_("size-6 shrink-0",g),"aria-hidden":"true",children:y}),l.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[s&&l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:g,children:s}),n&&l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:n}),o]}),a&&l.jsx("div",{className:"flex shrink-0 items-center",children:a}),i&&l.jsx("button",{type:"button",onClick:i,"aria-label":"Fechar",className:_("flex size-5 shrink-0 items-center justify-center rounded-md transition-colors hover:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",g),children:l.jsx(oa,{})})]})});lr.displayName="Card";var cs={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ar=b.createContext&&b.createContext(cs),da=["attr","size","title"];function ca(e,t){if(e==null)return{};var r,s,n=ua(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)r=a[s],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ua(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},Mt.apply(null,arguments)}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,s)}return r}function Dt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(s){fa(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function fa(e,t,r){return(t=ha(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ha(e){var t=ma(e,"string");return typeof t=="symbol"?t:t+""}function ma(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var s=r.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function us(e){return e&&e.map((t,r)=>b.createElement(t.tag,Dt({key:r},t.attr),us(t.child)))}function ut(e){return t=>b.createElement(pa,Mt({attr:Dt({},e.attr)},t),us(e.child))}function pa(e){var t=r=>{var s=e.attr,n=e.size,a=e.title,i=ca(e,da),o=n||r.size||"1em",d;return r.className&&(d=r.className),e.className&&(d=(d?d+" ":"")+e.className),b.createElement("svg",Mt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,i,{className:d,style:Dt(Dt({color:e.color||r.color},r.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),a&&b.createElement("title",null,a),e.children)};return Ar!==void 0?b.createElement(Ar.Consumer,null,r=>t(r)):t(cs)}function ya(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function ga(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"m112 184 144 144 144-144"},child:[]}]})(e)}function ba(e){return ut({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M80 152v256a40.12 40.12 0 0 0 40 40h272a40.12 40.12 0 0 0 40-40V152"},child:[]},{tag:"rect",attr:{width:"416",height:"80",x:"48",y:"64",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"28",ry:"28"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m320 304-64 64-64-64m64 41.89V224"},child:[]}]})(e)}function xa(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"},child:[]}]})(e)}function va(e){return ut({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9zm-1.5-6h-5l-1 1H5v2h14V4h-3.5zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2z"},child:[]}]})(e)}//! moment.js
2
2
  //! version : 2.30.1
3
3
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
4
4
  //! license : MIT
5
5
  //! momentjs.com
6
- var fs;function f(){return fs.apply(null,arguments)}function va(e){fs=e}function oe(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Le(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Y(e,t))return!1;return!0}function ee(e){return e===void 0}function _e(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ut(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function hs(e,t){var r=[],s,n=e.length;for(s=0;s<n;++s)r.push(t(e[s],s));return r}function je(e,t){for(var r in t)Y(t,r)&&(e[r]=t[r]);return Y(t,"toString")&&(e.toString=t.toString),Y(t,"valueOf")&&(e.valueOf=t.valueOf),e}function fe(e,t,r,s){return Is(e,t,r,s,!0).utc()}function wa(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function w(e){return e._pf==null&&(e._pf=wa()),e._pf}var Xt;Array.prototype.some?Xt=Array.prototype.some:Xt=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function cr(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=w(e),r=Xt.call(t.parsedDateParts,function(n){return n!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Rt(e){var t=fe(NaN);return e!=null?je(w(t),e):w(t).userInvalidated=!0,t}var Ur=f.momentProperties=[],Zt=!1;function ur(e,t){var r,s,n,a=Ur.length;if(ee(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ee(t._i)||(e._i=t._i),ee(t._f)||(e._f=t._f),ee(t._l)||(e._l=t._l),ee(t._strict)||(e._strict=t._strict),ee(t._tzm)||(e._tzm=t._tzm),ee(t._isUTC)||(e._isUTC=t._isUTC),ee(t._offset)||(e._offset=t._offset),ee(t._pf)||(e._pf=w(t)),ee(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)s=Ur[r],n=t[s],ee(n)||(e[s]=n);return e}function ft(e){ur(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Zt===!1&&(Zt=!0,f.updateOffset(this),Zt=!1)}function le(e){return e instanceof ft||e!=null&&e._isAMomentObject!=null}function ms(e){f.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function se(e,t){var r=!0;return je(function(){if(f.deprecationHandler!=null&&f.deprecationHandler(null,e),r){var s=[],n,a,i,o=arguments.length;for(a=0;a<o;a++){if(n="",typeof arguments[a]=="object"){n+=`
6
+ var fs;function f(){return fs.apply(null,arguments)}function wa(e){fs=e}function oe(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Le(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dr(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Y(e,t))return!1;return!0}function ee(e){return e===void 0}function _e(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ft(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function hs(e,t){var r=[],s,n=e.length;for(s=0;s<n;++s)r.push(t(e[s],s));return r}function je(e,t){for(var r in t)Y(t,r)&&(e[r]=t[r]);return Y(t,"toString")&&(e.toString=t.toString),Y(t,"valueOf")&&(e.valueOf=t.valueOf),e}function fe(e,t,r,s){return Is(e,t,r,s,!0).utc()}function _a(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function w(e){return e._pf==null&&(e._pf=_a()),e._pf}var Xt;Array.prototype.some?Xt=Array.prototype.some:Xt=function(e){var t=Object(this),r=t.length>>>0,s;for(s=0;s<r;s++)if(s in t&&e.call(this,t[s],s,t))return!0;return!1};function cr(e){var t=null,r=!1,s=e._d&&!isNaN(e._d.getTime());if(s&&(t=w(e),r=Xt.call(t.parsedDateParts,function(n){return n!=null}),s=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(s=s&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=s;else return s;return e._isValid}function Rt(e){var t=fe(NaN);return e!=null?je(w(t),e):w(t).userInvalidated=!0,t}var Ur=f.momentProperties=[],Zt=!1;function ur(e,t){var r,s,n,a=Ur.length;if(ee(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),ee(t._i)||(e._i=t._i),ee(t._f)||(e._f=t._f),ee(t._l)||(e._l=t._l),ee(t._strict)||(e._strict=t._strict),ee(t._tzm)||(e._tzm=t._tzm),ee(t._isUTC)||(e._isUTC=t._isUTC),ee(t._offset)||(e._offset=t._offset),ee(t._pf)||(e._pf=w(t)),ee(t._locale)||(e._locale=t._locale),a>0)for(r=0;r<a;r++)s=Ur[r],n=t[s],ee(n)||(e[s]=n);return e}function ht(e){ur(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Zt===!1&&(Zt=!0,f.updateOffset(this),Zt=!1)}function le(e){return e instanceof ht||e!=null&&e._isAMomentObject!=null}function ms(e){f.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function se(e,t){var r=!0;return je(function(){if(f.deprecationHandler!=null&&f.deprecationHandler(null,e),r){var s=[],n,a,i,o=arguments.length;for(a=0;a<o;a++){if(n="",typeof arguments[a]=="object"){n+=`
7
7
  [`+a+"] ";for(i in arguments[0])Y(arguments[0],i)&&(n+=i+": "+arguments[0][i]+", ");n=n.slice(0,-2)}else n=arguments[a];s.push(n)}ms(e+`
8
8
  Arguments: `+Array.prototype.slice.call(s).join("")+`
9
- `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Hr={};function ps(e,t){f.deprecationHandler!=null&&f.deprecationHandler(e,t),Hr[e]||(ms(t),Hr[e]=!0)}f.suppressDeprecationWarnings=!1;f.deprecationHandler=null;function he(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function _a(e){var t,r;for(r in e)Y(e,r)&&(t=e[r],he(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function er(e,t){var r=je({},e),s;for(s in t)Y(t,s)&&(Le(e[s])&&Le(t[s])?(r[s]={},je(r[s],e[s]),je(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)Y(e,s)&&!Y(t,s)&&Le(e[s])&&(r[s]=je({},r[s]));return r}function fr(e){e!=null&&this.set(e)}var tr;Object.keys?tr=Object.keys:tr=function(e){var t,r=[];for(t in e)Y(e,t)&&r.push(t);return r};var ka={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Sa(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return he(s)?s.call(t,r):s}function ue(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var hr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qt={},Ge={};function p(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(Ge[e]=n),t&&(Ge[t[0]]=function(){return ue(n.apply(this,arguments),t[1],t[2])}),r&&(Ge[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Ma(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Da(e){var t=e.match(hr),r,s;for(r=0,s=t.length;r<s;r++)Ge[t[r]]?t[r]=Ge[t[r]]:t[r]=Ma(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=he(t[i])?t[i].call(n,e):t[i];return a}}function wt(e,t){return e.isValid()?(t=ys(t,e.localeData()),qt[t]=qt[t]||Da(t),qt[t](e)):e.localeData().invalidDate()}function ys(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(bt.lastIndex=0;r>=0&&bt.test(e);)e=e.replace(bt,s),bt.lastIndex=0,r-=1;return e}var Na={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Oa(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(hr).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var Ya="Invalid date";function ja(){return this._invalidDate}var Ta="%d",Ca=/\d{1,2}/;function Pa(e){return this._ordinal.replace("%d",e)}var Ra={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Wa(e,t,r,s){var n=this._relativeTime[r];return he(n)?n(e,t,r,s):n.replace(/%d/i,e)}function Ia(e,t){var r=this._relativeTime[e>0?"future":"past"];return he(r)?r(t):r.replace(/%s/i,t)}var Gr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return typeof e=="string"?Gr[e]||Gr[e.toLowerCase()]:void 0}function mr(e){var t={},r,s;for(s in e)Y(e,s)&&(r=ne(s),r&&(t[r]=e[s]));return t}var La={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Fa(e){var t=[],r;for(r in e)Y(e,r)&&t.push({unit:r,priority:La[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var gs=/\d/,te=/\d\d/,bs=/\d{3}/,pr=/\d{4}/,Wt=/[+-]?\d{6}/,F=/\d\d?/,xs=/\d\d\d\d?/,vs=/\d\d\d\d\d\d?/,It=/\d{1,3}/,yr=/\d{1,4}/,Lt=/[+-]?\d{1,6}/,qe=/\d+/,Ft=/[+-]?\d+/,za=/Z|[+-]\d\d:?\d\d/gi,zt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ea=/[+-]?\d+(\.\d{1,3})?/,ht=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Je=/^[1-9]\d?/,gr=/^([1-9]\d|\d)/,Dt;Dt={};function h(e,t,r){Dt[e]=he(t)?t:function(s,n){return s&&r?r:t}}function Aa(e,t){return Y(Dt,e)?Dt[e](t._strict,t._locale):new RegExp(Va(e))}function Va(e){return ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=re(t)),r}var rr={};function P(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),_e(t)&&(s=function(a,i){i[t]=k(a)}),n=e.length,r=0;r<n;r++)rr[e[r]]=s}function mt(e,t){P(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function Ua(e,t,r){t!=null&&Y(rr,e)&&rr[e](t,r._a,r,e)}function Et(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,be=1,ce=2,$=3,ie=4,xe=5,Ie=6,Ha=7,Ga=8;p("Y",0,0,function(){var e=this.year();return e<=9999?ue(e,4):"+"+e});p(0,["YY",2],0,function(){return this.year()%100});p(0,["YYYY",4],0,"year");p(0,["YYYYY",5],0,"year");p(0,["YYYYYY",6,!0],0,"year");h("Y",Ft);h("YY",F,te);h("YYYY",yr,pr);h("YYYYY",Lt,Wt);h("YYYYYY",Lt,Wt);P(["YYYYY","YYYYYY"],Q);P("YYYY",function(e,t){t[Q]=e.length===2?f.parseTwoDigitYear(e):k(e)});P("YY",function(e,t){t[Q]=f.parseTwoDigitYear(e)});P("Y",function(e,t){t[Q]=parseInt(e,10)});function it(e){return Et(e)?366:365}f.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var ws=Qe("FullYear",!0);function $a(){return Et(this.year())}function Qe(e,t){return function(r){return r!=null?(_s(this,e,r),f.updateOffset(this,t),this):ot(this,e)}}function ot(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function _s(e,t,r){var s,n,a,i,o;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),o=e.date(),o=o===29&&i===1&&!Et(a)?28:o,n?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Ba(e){return e=ne(e),he(this[e])?this[e]():this}function Za(e,t){if(typeof e=="object"){e=mr(e);var r=Fa(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=ne(e),he(this[e]))return this[e](t);return this}function qa(e,t){return(e%t+t)%t}var G;Array.prototype.indexOf?G=Array.prototype.indexOf:G=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function br(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=qa(t,12);return e+=(t-r)/12,r===1?Et(e)?29:28:31-r%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1});p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});p("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",F,Je);h("MM",F,te);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});P(["M","MM"],function(e,t){t[be]=k(e)-1});P(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[be]=n:w(r).invalidMonth=e});var Ja="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ks="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ss=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qa=ht,Ka=ht;function Xa(e,t){return e?oe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ss).test(t)?"format":"standalone"][e.month()]:oe(this._months)?this._months:this._months.standalone}function ei(e,t){return e?oe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ss.test(t)?"format":"standalone"][e.month()]:oe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ti(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=fe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=G.call(this._shortMonthsParse,i),n!==-1?n:null):(n=G.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=G.call(this._shortMonthsParse,i),n!==-1?n:(n=G.call(this._longMonthsParse,i),n!==-1?n:null)):(n=G.call(this._longMonthsParse,i),n!==-1?n:(n=G.call(this._shortMonthsParse,i),n!==-1?n:null))}function ri(e,t,r){var s,n,a;if(this._monthsParseExact)return ti.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=fe([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Ms(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),!_e(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,br(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function Ds(e){return e!=null?(Ms(this,e),f.updateOffset(this,!0),this):ot(this,"Month")}function si(){return br(this.year(),this.month())}function ni(e){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ns.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Qa),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ai(e){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ns.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=Ka),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ns(){function e(d,u){return u.length-d.length}var t=[],r=[],s=[],n,a,i,o;for(n=0;n<12;n++)a=fe([2e3,n]),i=ve(this.monthsShort(a,"")),o=ve(this.months(a,"")),t.push(i),r.push(o),s.push(o),s.push(i);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function ii(e,t,r,s,n,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,s,n,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,s,n,a,i),o}function lt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Nt(e,t,r){var s=7+t-r,n=(7+lt(e,0,s).getUTCDay()-t)%7;return-n+s-1}function Os(e,t,r,s,n){var a=(7+r-s)%7,i=Nt(e,s,n),o=1+7*(t-1)+a+i,d,u;return o<=0?(d=e-1,u=it(d)+o):o>it(e)?(d=e+1,u=o-it(e)):(d=e,u=o),{year:d,dayOfYear:u}}function dt(e,t,r){var s=Nt(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+we(i,t,r)):n>we(e.year(),t,r)?(a=n-we(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function we(e,t,r){var s=Nt(e,t,r),n=Nt(e+1,t,r);return(it(e)-s+n)/7}p("w",["ww",2],"wo","week");p("W",["WW",2],"Wo","isoWeek");h("w",F,Je);h("ww",F,te);h("W",F,Je);h("WW",F,te);mt(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=k(e)});function oi(e){return dt(e,this._week.dow,this._week.doy).week}var li={dow:0,doy:6};function di(){return this._week.dow}function ci(){return this._week.doy}function ui(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function fi(e){var t=dt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day");p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});p("e",0,0,"weekday");p("E",0,0,"isoWeekday");h("d",F);h("e",F);h("E",F);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});mt(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:w(r).invalidWeekday=e});mt(["d","e","E"],function(e,t,r,s){t[s]=k(e)});function hi(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function mi(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var pi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ys="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gi=ht,bi=ht,xi=ht;function vi(e,t){var r=oe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?xr(r,this._week.dow):e?r[e.day()]:r}function wi(e){return e===!0?xr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function _i(e){return e===!0?xr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function ki(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=fe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=G.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=G.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=G.call(this._weekdaysParse,i),n!==-1||(n=G.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=G.call(this._shortWeekdaysParse,i),n!==-1||(n=G.call(this._weekdaysParse,i),n!==-1)?n:(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=G.call(this._minWeekdaysParse,i),n!==-1||(n=G.call(this._weekdaysParse,i),n!==-1)?n:(n=G.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Si(e,t,r){var s,n,a;if(this._weekdaysParseExact)return ki.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=fe([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function Mi(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");return e!=null?(e=hi(e,this.localeData()),this.add(e-t,"d")):t}function Di(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Ni(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=mi(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Oi(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=gi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yi(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ji(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=xi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vr(){function e(m,y){return y.length-m.length}var t=[],r=[],s=[],n=[],a,i,o,d,u;for(a=0;a<7;a++)i=fe([2e3,1]).day(a),o=ve(this.weekdaysMin(i,"")),d=ve(this.weekdaysShort(i,"")),u=ve(this.weekdays(i,"")),t.push(o),r.push(d),s.push(u),n.push(o),n.push(d),n.push(u);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function wr(){return this.hours()%12||12}function Ti(){return this.hours()||24}p("H",["HH",2],0,"hour");p("h",["hh",2],0,wr);p("k",["kk",2],0,Ti);p("hmm",0,0,function(){return""+wr.apply(this)+ue(this.minutes(),2)});p("hmmss",0,0,function(){return""+wr.apply(this)+ue(this.minutes(),2)+ue(this.seconds(),2)});p("Hmm",0,0,function(){return""+this.hours()+ue(this.minutes(),2)});p("Hmmss",0,0,function(){return""+this.hours()+ue(this.minutes(),2)+ue(this.seconds(),2)});function js(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}js("a",!0);js("A",!1);function Ts(e,t){return t._meridiemParse}h("a",Ts);h("A",Ts);h("H",F,gr);h("h",F,Je);h("k",F,Je);h("HH",F,te);h("hh",F,te);h("kk",F,te);h("hmm",xs);h("hmmss",vs);h("Hmm",xs);h("Hmmss",vs);P(["H","HH"],$);P(["k","kk"],function(e,t,r){var s=k(e);t[$]=s===24?0:s});P(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});P(["h","hh"],function(e,t,r){t[$]=k(e),w(r).bigHour=!0});P("hmm",function(e,t,r){var s=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s)),w(r).bigHour=!0});P("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s,2)),t[xe]=k(e.substr(n)),w(r).bigHour=!0});P("Hmm",function(e,t,r){var s=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s))});P("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s,2)),t[xe]=k(e.substr(n))});function Ci(e){return(e+"").toLowerCase().charAt(0)==="p"}var Pi=/[ap]\.?m?\.?/i,Ri=Qe("Hours",!0);function Wi(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Cs={calendar:ka,longDateFormat:Na,invalidDate:Ya,ordinal:Ta,dayOfMonthOrdinalParse:Ca,relativeTime:Ra,months:Ja,monthsShort:ks,week:li,weekdays:pi,weekdaysMin:yi,weekdaysShort:Ys,meridiemParse:Pi},E={},st={},ct;function Ii(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function $r(e){return e&&e.toLowerCase().replace("_","-")}function Li(e){for(var t=0,r,s,n,a;t<e.length;){for(a=$r(e[t]).split("-"),r=a.length,s=$r(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=At(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&Ii(a,s)>=r-1)break;r--}t++}return ct}function Fi(e){return!!(e&&e.match("^[^/\\\\]*$"))}function At(e){var t=null,r;if(E[e]===void 0&&typeof module<"u"&&module&&module.exports&&Fi(e))try{t=ct._abbr,r=require,r("./locale/"+e),Ce(t)}catch{E[e]=null}return E[e]}function Ce(e,t){var r;return e&&(ee(t)?r=ke(e):r=_r(e,t),r?ct=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ct._abbr}function _r(e,t){if(t!==null){var r,s=Cs;if(t.abbr=e,E[e]!=null)ps("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=E[e]._config;else if(t.parentLocale!=null)if(E[t.parentLocale]!=null)s=E[t.parentLocale]._config;else if(r=At(t.parentLocale),r!=null)s=r._config;else return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;return E[e]=new fr(er(s,t)),st[e]&&st[e].forEach(function(n){_r(n.name,n.config)}),Ce(e),E[e]}else return delete E[e],null}function zi(e,t){if(t!=null){var r,s,n=Cs;E[e]!=null&&E[e].parentLocale!=null?E[e].set(er(E[e]._config,t)):(s=At(e),s!=null&&(n=s._config),t=er(n,t),s==null&&(t.abbr=e),r=new fr(t),r.parentLocale=E[e],E[e]=r),Ce(e)}else E[e]!=null&&(E[e].parentLocale!=null?(E[e]=E[e].parentLocale,e===Ce()&&Ce(e)):E[e]!=null&&delete E[e]);return E[e]}function ke(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ct;if(!oe(e)){if(t=At(e),t)return t;e=[e]}return Li(e)}function Ei(){return tr(E)}function kr(e){var t,r=e._a;return r&&w(e).overflow===-2&&(t=r[be]<0||r[be]>11?be:r[ce]<1||r[ce]>br(r[Q],r[be])?ce:r[$]<0||r[$]>24||r[$]===24&&(r[ie]!==0||r[xe]!==0||r[Ie]!==0)?$:r[ie]<0||r[ie]>59?ie:r[xe]<0||r[xe]>59?xe:r[Ie]<0||r[Ie]>999?Ie:-1,w(e)._overflowDayOfYear&&(t<Q||t>ce)&&(t=ce),w(e)._overflowWeeks&&t===-1&&(t=Ha),w(e)._overflowWeekday&&t===-1&&(t=Ga),w(e).overflow=t),e}var Ai=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ui=/Z|[+-]\d\d(?::?\d\d)?/,xt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Hi=/^\/?Date\((-?\d+)/i,Gi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$i={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ps(e){var t,r,s=e._i,n=Ai.exec(s)||Vi.exec(s),a,i,o,d,u=xt.length,m=Jt.length;if(n){for(w(e).iso=!0,t=0,r=u;t<r;t++)if(xt[t][1].exec(n[1])){i=xt[t][0],a=xt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=m;t<r;t++)if(Jt[t][1].exec(n[3])){o=(n[2]||" ")+Jt[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(n[4])if(Ui.exec(n[4]))d="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(d||""),Mr(e)}else e._isValid=!1}function Bi(e,t,r,s,n,a){var i=[Zi(e),ks.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function Zi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function qi(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ji(e,t,r){if(e){var s=Ys.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return w(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Qi(e,t,r){if(e)return $i[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function Rs(e){var t=Gi.exec(qi(e._i)),r;if(t){if(r=Bi(t[4],t[3],t[2],t[5],t[6],t[7]),!Ji(t[1],r,e))return;e._a=r,e._tzm=Qi(t[8],t[9],t[10]),e._d=lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function Ki(e){var t=Hi.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ps(e),e._isValid===!1)delete e._isValid;else return;if(Rs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:f.createFromInputFallback(e)}f.createFromInputFallback=se("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ve(e,t,r){return e??t??r}function Xi(e){var t=new Date(f.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,r,s=[],n,a,i;if(!e._d){for(n=Xi(e),e._w&&e._a[ce]==null&&e._a[be]==null&&eo(e),e._dayOfYear!=null&&(i=Ve(e._a[Q],n[Q]),(e._dayOfYear>it(i)||e._dayOfYear===0)&&(w(e)._overflowDayOfYear=!0),r=lt(i,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[ce]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$]===24&&e._a[ie]===0&&e._a[xe]===0&&e._a[Ie]===0&&(e._nextDay=!0,e._a[$]=0),e._d=(e._useUTC?lt:ii).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}function eo(e){var t,r,s,n,a,i,o,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Ve(t.GG,e._a[Q],dt(L(),1,4).year),s=Ve(t.W,1),n=Ve(t.E,1),(n<1||n>7)&&(d=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=dt(L(),a,i),r=Ve(t.gg,e._a[Q],u.year),s=Ve(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(d=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(d=!0)):n=a),s<1||s>we(r,a,i)?w(e)._overflowWeeks=!0:d!=null?w(e)._overflowWeekday=!0:(o=Os(r,s,n,a,i),e._a[Q]=o.year,e._dayOfYear=o.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function Mr(e){if(e._f===f.ISO_8601){Ps(e);return}if(e._f===f.RFC_2822){Rs(e);return}e._a=[],w(e).empty=!0;var t=""+e._i,r,s,n,a,i,o=t.length,d=0,u,m;for(n=ys(e._f,e._locale).match(hr)||[],m=n.length,r=0;r<m;r++)a=n[r],s=(t.match(Aa(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&w(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),d+=s.length),Ge[a]?(s?w(e).empty=!1:w(e).unusedTokens.push(a),Ua(a,s,e)):e._strict&&!s&&w(e).unusedTokens.push(a);w(e).charsLeftOver=o-d,t.length>0&&w(e).unusedInput.push(t),e._a[$]<=12&&w(e).bigHour===!0&&e._a[$]>0&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[$]=to(e._locale,e._a[$],e._meridiem),u=w(e).era,u!==null&&(e._a[Q]=e._locale.erasConvertYear(u,e._a[Q])),Sr(e),kr(e)}function to(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function ro(e){var t,r,s,n,a,i,o=!1,d=e._f.length;if(d===0){w(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<d;n++)a=0,i=!1,t=ur({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Mr(t),cr(t)&&(i=!0),a+=w(t).charsLeftOver,a+=w(t).unusedTokens.length*10,w(t).score=a,o?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(o=!0));je(e,r||t)}function so(e){if(!e._d){var t=mr(e._i),r=t.day===void 0?t.date:t.day;e._a=hs([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Sr(e)}}function no(e){var t=new ft(kr(Ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ws(e){var t=e._i,r=e._f;return e._locale=e._locale||ke(e._l),t===null||r===void 0&&t===""?Rt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),le(t)?new ft(kr(t)):(ut(t)?e._d=t:oe(r)?ro(e):r?Mr(e):ao(e),cr(e)||(e._d=null),e))}function ao(e){var t=e._i;ee(t)?e._d=new Date(f.now()):ut(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Ki(e):oe(t)?(e._a=hs(t.slice(0),function(r){return parseInt(r,10)}),Sr(e)):Le(t)?so(e):_e(t)?e._d=new Date(t):f.createFromInputFallback(e)}function Is(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(Le(e)&&dr(e)||oe(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,no(a)}function L(e,t,r,s){return Is(e,t,r,s,!1)}var io=se("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Rt()}),oo=se("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Rt()});function Ls(e,t){var r,s;if(t.length===1&&oe(t[0])&&(t=t[0]),!t.length)return L();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function lo(){var e=[].slice.call(arguments,0);return Ls("isBefore",e)}function co(){var e=[].slice.call(arguments,0);return Ls("isAfter",e)}var uo=function(){return Date.now?Date.now():+new Date},nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fo(e){var t,r=!1,s,n=nt.length;for(t in e)if(Y(e,t)&&!(G.call(nt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[nt[s]]){if(r)return!1;parseFloat(e[nt[s]])!==k(e[nt[s]])&&(r=!0)}return!0}function ho(){return this._isValid}function mo(){return de(NaN)}function Vt(e){var t=mr(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,d=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=fo(t),this._milliseconds=+m+u*1e3+d*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=ke(),this._bubble()}function _t(e){return e instanceof Vt}function sr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function po(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)k(e[i])!==k(t[i])&&a++;return a+n}function Fs(e,t){p(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+ue(~~(r/60),2)+t+ue(~~r%60,2)})}Fs("Z",":");Fs("ZZ","");h("Z",zt);h("ZZ",zt);P(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Dr(zt,e)});var yo=/([\+\-]|\d\d)/gi;function Dr(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(yo)||["-",0,0],a=+(n[1]*60)+k(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nr(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(le(e)||ut(e)?e.valueOf():L(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),f.updateOffset(r,!1),r):L(e).local()}function nr(e){return-Math.round(e._d.getTimezoneOffset())}f.updateOffset=function(){};function go(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dr(zt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=nr(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?As(this,de(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:nr(this)}function bo(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function xo(e){return this.utcOffset(0,e)}function vo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(nr(this),"m")),this}function wo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dr(za,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _o(e){return this.isValid()?(e=e?L(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function ko(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function So(){if(!ee(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ur(e,this),e=Ws(e),e._a?(t=e._isUTC?fe(e._a):L(e._a),this._isDSTShifted=this.isValid()&&po(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mo(){return this.isValid()?!this._isUTC:!1}function Do(){return this.isValid()?this._isUTC:!1}function zs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var No=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Oo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function de(e,t){var r=e,s=null,n,a,i;return _t(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:_e(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=No.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:k(s[ce])*n,h:k(s[$])*n,m:k(s[ie])*n,s:k(s[xe])*n,ms:k(sr(s[Ie]*1e3))*n}):(s=Oo.exec(e))?(n=s[1]==="-"?-1:1,r={y:We(s[2],n),M:We(s[3],n),w:We(s[4],n),d:We(s[5],n),h:We(s[6],n),m:We(s[7],n),s:We(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=Yo(L(r.from),L(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Vt(r),_t(e)&&Y(e,"_locale")&&(a._locale=e._locale),_t(e)&&Y(e,"_isValid")&&(a._isValid=e._isValid),a}de.fn=Vt.prototype;de.invalid=mo;function We(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Br(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Yo(e,t){var r;return e.isValid()&&t.isValid()?(t=Nr(t,e),e.isBefore(t)?r=Br(e,t):(r=Br(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Es(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(ps(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=s,s=a),n=de(r,s),As(this,n,e),this}}function As(e,t,r,s){var n=t._milliseconds,a=sr(t._days),i=sr(t._months);e.isValid()&&(s=s??!0,i&&Ms(e,ot(e,"Month")+i*r),a&&_s(e,"Date",ot(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&f.updateOffset(e,a||i))}var jo=Es(1,"add"),To=Es(-1,"subtract");function Vs(e){return typeof e=="string"||e instanceof String}function Co(e){return le(e)||ut(e)||Vs(e)||_e(e)||Ro(e)||Po(e)||e===null||e===void 0}function Po(e){var t=Le(e)&&!dr(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||Y(e,a);return t&&r}function Ro(e){var t=oe(e),r=!1;return t&&(r=e.filter(function(s){return!_e(s)&&Vs(e)}).length===0),t&&r}function Wo(e){var t=Le(e)&&!dr(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||Y(e,a);return t&&r}function Io(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function Lo(e,t){arguments.length===1&&(arguments[0]?Co(arguments[0])?(e=arguments[0],t=void 0):Wo(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||L(),s=Nr(r,this).startOf("day"),n=f.calendarFormat(this,s)||"sameElse",a=t&&(he(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,L(r)))}function Fo(){return new ft(this)}function zo(e,t){var r=le(e)?e:L(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Eo(e,t){var r=le(e)?e:L(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Ao(e,t,r,s){var n=le(e)?e:L(e),a=le(t)?t:L(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Vo(e,t){var r=le(e)?e:L(e),s;return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Uo(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Ho(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Go(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Nr(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=ne(t),t){case"year":a=kt(this,s)/12;break;case"month":a=kt(this,s);break;case"quarter":a=kt(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:re(a)}function kt(e,t){if(e.date()<t.date())return-kt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function $o(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Bo(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?wt(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",wt(r,"Z")):wt(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Zo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function qo(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=wt(this,e);return this.localeData().postformat(t)}function Jo(e,t){return this.isValid()&&(le(e)&&e.isValid()||L(e).isValid())?de({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qo(e){return this.from(L(),e)}function Ko(e,t){return this.isValid()&&(le(e)&&e.isValid()||L(e).isValid())?de({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Xo(e){return this.to(L(),e)}function Us(e){var t;return e===void 0?this._locale._abbr:(t=ke(e),t!=null&&(this._locale=t),this)}var Hs=se("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Gs(){return this._locale}var Ot=1e3,$e=60*Ot,Yt=60*$e,$s=(365*400+97)*24*Yt;function Be(e,t){return(e%t+t)%t}function Bs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-$s:new Date(e,t,r).valueOf()}function Zs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-$s:Date.UTC(e,t,r)}function el(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Zs:Bs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Be(t+(this._isUTC?0:this.utcOffset()*$e),Yt);break;case"minute":t=this._d.valueOf(),t-=Be(t,$e);break;case"second":t=this._d.valueOf(),t-=Be(t,Ot);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function tl(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Zs:Bs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Yt-Be(t+(this._isUTC?0:this.utcOffset()*$e),Yt)-1;break;case"minute":t=this._d.valueOf(),t+=$e-Be(t,$e)-1;break;case"second":t=this._d.valueOf(),t+=Ot-Be(t,Ot)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function rl(){return this._d.valueOf()-(this._offset||0)*6e4}function sl(){return Math.floor(this.valueOf()/1e3)}function nl(){return new Date(this.valueOf())}function al(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function il(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ol(){return this.isValid()?this.toISOString():null}function ll(){return cr(this)}function dl(){return je({},w(this))}function cl(){return w(this).overflow}function ul(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr");p("NN",0,0,"eraAbbr");p("NNN",0,0,"eraAbbr");p("NNNN",0,0,"eraName");p("NNNNN",0,0,"eraNarrow");p("y",["y",1],"yo","eraYear");p("y",["yy",2],0,"eraYear");p("y",["yyy",3],0,"eraYear");p("y",["yyyy",4],0,"eraYear");h("N",Or);h("NN",Or);h("NNN",Or);h("NNNN",_l);h("NNNNN",kl);P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?w(r).era=n:w(r).invalidEra=e});h("y",qe);h("yy",qe);h("yyy",qe);h("yyyy",qe);h("yo",Sl);P(["y","yy","yyy","yyyy"],Q);P(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Q]=r._locale.eraYearOrdinalParse(e,n):t[Q]=parseInt(e,10)});function fl(e,t){var r,s,n,a=this._eras||ke("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=f(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=f(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function hl(e,t,r){var s,n,a=this.eras(),i,o,d;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),d=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(d===e)return a[s];break}else if([i,o,d].indexOf(e)>=0)return a[s]}function ml(e,t){var r=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*r}function pl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function yl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function gl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function bl(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-f(n[e].since).year())*r+n[e].offset;return this.year()}function xl(e){return Y(this,"_erasNameRegex")||Yr.call(this),e?this._erasNameRegex:this._erasRegex}function vl(e){return Y(this,"_erasAbbrRegex")||Yr.call(this),e?this._erasAbbrRegex:this._erasRegex}function wl(e){return Y(this,"_erasNarrowRegex")||Yr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Or(e,t){return t.erasAbbrRegex(e)}function _l(e,t){return t.erasNameRegex(e)}function kl(e,t){return t.erasNarrowRegex(e)}function Sl(e,t){return t._eraYearOrdinalRegex||qe}function Yr(){var e=[],t=[],r=[],s=[],n,a,i,o,d,u=this.eras();for(n=0,a=u.length;n<a;++n)i=ve(u[n].name),o=ve(u[n].abbr),d=ve(u[n].narrow),t.push(i),e.push(o),r.push(d),s.push(i),s.push(o),s.push(d);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100});p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ut(e,t){p(0,[e,e.length],0,t)}Ut("gggg","weekYear");Ut("ggggg","weekYear");Ut("GGGG","isoWeekYear");Ut("GGGGG","isoWeekYear");h("G",Ft);h("g",Ft);h("GG",F,te);h("gg",F,te);h("GGGG",yr,pr);h("gggg",yr,pr);h("GGGGG",Lt,Wt);h("ggggg",Lt,Wt);mt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=k(e)});mt(["gg","GG"],function(e,t,r,s){t[s]=f.parseTwoDigitYear(e)});function Ml(e){return qs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Dl(e){return qs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nl(){return we(this.year(),1,4)}function Ol(){return we(this.isoWeekYear(),1,4)}function Yl(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)}function jl(){var e=this.localeData()._week;return we(this.weekYear(),e.dow,e.doy)}function qs(e,t,r,s,n){var a;return e==null?dt(this,s,n).year:(a=we(e,s,n),t>a&&(t=a),Tl.call(this,e,t,r,s,n))}function Tl(e,t,r,s,n){var a=Os(e,t,r,s,n),i=lt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}p("Q",0,"Qo","quarter");h("Q",gs);P("Q",function(e,t){t[be]=(k(e)-1)*3});function Cl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date");h("D",F,Je);h("DD",F,te);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});P(["D","DD"],ce);P("Do",function(e,t){t[ce]=k(e.match(F)[0])});var Js=Qe("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",It);h("DDDD",bs);P(["DDD","DDDD"],function(e,t,r){r._dayOfYear=k(e)});function Pl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute");h("m",F,gr);h("mm",F,te);P(["m","mm"],ie);var Rl=Qe("Minutes",!1);p("s",["ss",2],0,"second");h("s",F,gr);h("ss",F,te);P(["s","ss"],xe);var Wl=Qe("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)});p(0,["SS",2],0,function(){return~~(this.millisecond()/10)});p(0,["SSS",3],0,"millisecond");p(0,["SSSS",4],0,function(){return this.millisecond()*10});p(0,["SSSSS",5],0,function(){return this.millisecond()*100});p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",It,gs);h("SS",It,te);h("SSS",It,bs);var Te,Qs;for(Te="SSSS";Te.length<=9;Te+="S")h(Te,qe);function Il(e,t){t[Ie]=k(("0."+e)*1e3)}for(Te="S";Te.length<=9;Te+="S")P(Te,Il);Qs=Qe("Milliseconds",!1);p("z",0,0,"zoneAbbr");p("zz",0,0,"zoneName");function Ll(){return this._isUTC?"UTC":""}function Fl(){return this._isUTC?"Coordinated Universal Time":""}var c=ft.prototype;c.add=jo;c.calendar=Lo;c.clone=Fo;c.diff=Go;c.endOf=tl;c.format=qo;c.from=Jo;c.fromNow=Qo;c.to=Ko;c.toNow=Xo;c.get=Ba;c.invalidAt=cl;c.isAfter=zo;c.isBefore=Eo;c.isBetween=Ao;c.isSame=Vo;c.isSameOrAfter=Uo;c.isSameOrBefore=Ho;c.isValid=ll;c.lang=Hs;c.locale=Us;c.localeData=Gs;c.max=oo;c.min=io;c.parsingFlags=dl;c.set=Za;c.startOf=el;c.subtract=To;c.toArray=al;c.toObject=il;c.toDate=nl;c.toISOString=Bo;c.inspect=Zo;typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});c.toJSON=ol;c.toString=$o;c.unix=sl;c.valueOf=rl;c.creationData=ul;c.eraName=pl;c.eraNarrow=yl;c.eraAbbr=gl;c.eraYear=bl;c.year=ws;c.isLeapYear=$a;c.weekYear=Ml;c.isoWeekYear=Dl;c.quarter=c.quarters=Cl;c.month=Ds;c.daysInMonth=si;c.week=c.weeks=ui;c.isoWeek=c.isoWeeks=fi;c.weeksInYear=Yl;c.weeksInWeekYear=jl;c.isoWeeksInYear=Nl;c.isoWeeksInISOWeekYear=Ol;c.date=Js;c.day=c.days=Mi;c.weekday=Di;c.isoWeekday=Ni;c.dayOfYear=Pl;c.hour=c.hours=Ri;c.minute=c.minutes=Rl;c.second=c.seconds=Wl;c.millisecond=c.milliseconds=Qs;c.utcOffset=go;c.utc=xo;c.local=vo;c.parseZone=wo;c.hasAlignedHourOffset=_o;c.isDST=ko;c.isLocal=Mo;c.isUtcOffset=Do;c.isUtc=zs;c.isUTC=zs;c.zoneAbbr=Ll;c.zoneName=Fl;c.dates=se("dates accessor is deprecated. Use date instead.",Js);c.months=se("months accessor is deprecated. Use month instead",Ds);c.years=se("years accessor is deprecated. Use year instead",ws);c.zone=se("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",bo);c.isDSTShifted=se("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",So);function zl(e){return L(e*1e3)}function El(){return L.apply(null,arguments).parseZone()}function Ks(e){return e}var j=fr.prototype;j.calendar=Sa;j.longDateFormat=Oa;j.invalidDate=ja;j.ordinal=Pa;j.preparse=Ks;j.postformat=Ks;j.relativeTime=Wa;j.pastFuture=Ia;j.set=_a;j.eras=fl;j.erasParse=hl;j.erasConvertYear=ml;j.erasAbbrRegex=vl;j.erasNameRegex=xl;j.erasNarrowRegex=wl;j.months=Xa;j.monthsShort=ei;j.monthsParse=ri;j.monthsRegex=ai;j.monthsShortRegex=ni;j.week=oi;j.firstDayOfYear=ci;j.firstDayOfWeek=di;j.weekdays=vi;j.weekdaysMin=_i;j.weekdaysShort=wi;j.weekdaysParse=Si;j.weekdaysRegex=Oi;j.weekdaysShortRegex=Yi;j.weekdaysMinRegex=ji;j.isPM=Ci;j.meridiem=Wi;function jt(e,t,r,s){var n=ke(),a=fe().set(s,t);return n[r](a,e)}function Xs(e,t,r){if(_e(e)&&(t=e,e=void 0),e=e||"",t!=null)return jt(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=jt(e,s,r,"month");return n}function jr(e,t,r,s){typeof e=="boolean"?(_e(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,_e(t)&&(r=t,t=void 0),t=t||"");var n=ke(),a=e?n._week.dow:0,i,o=[];if(r!=null)return jt(t,(r+a)%7,s,"day");for(i=0;i<7;i++)o[i]=jt(t,(i+a)%7,s,"day");return o}function Al(e,t){return Xs(e,t,"months")}function Vl(e,t){return Xs(e,t,"monthsShort")}function Ul(e,t,r){return jr(e,t,r,"weekdays")}function Hl(e,t,r){return jr(e,t,r,"weekdaysShort")}function Gl(e,t,r){return jr(e,t,r,"weekdaysMin")}Ce("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=k(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});f.lang=se("moment.lang is deprecated. Use moment.locale instead.",Ce);f.langData=se("moment.langData is deprecated. Use moment.localeData instead.",ke);var ye=Math.abs;function $l(){var e=this._data;return this._milliseconds=ye(this._milliseconds),this._days=ye(this._days),this._months=ye(this._months),e.milliseconds=ye(e.milliseconds),e.seconds=ye(e.seconds),e.minutes=ye(e.minutes),e.hours=ye(e.hours),e.months=ye(e.months),e.years=ye(e.years),this}function en(e,t,r,s){var n=de(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Bl(e,t){return en(this,e,t,1)}function Zl(e,t){return en(this,e,t,-1)}function Zr(e){return e<0?Math.floor(e):Math.ceil(e)}function ql(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,o,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Zr(ar(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=re(e/1e3),s.seconds=n%60,a=re(n/60),s.minutes=a%60,i=re(a/60),s.hours=i%24,t+=re(i/24),d=re(tn(t)),r+=d,t-=Zr(ar(d)),o=re(r/12),r%=12,s.days=t,s.months=r,s.years=o,this}function tn(e){return e*4800/146097}function ar(e){return e*146097/4800}function Jl(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+tn(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ar(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Se(e){return function(){return this.as(e)}}var rn=Se("ms"),Ql=Se("s"),Kl=Se("m"),Xl=Se("h"),ed=Se("d"),td=Se("w"),rd=Se("M"),sd=Se("Q"),nd=Se("y"),ad=rn;function id(){return de(this)}function od(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Fe(e){return function(){return this.isValid()?this._data[e]:NaN}}var ld=Fe("milliseconds"),dd=Fe("seconds"),cd=Fe("minutes"),ud=Fe("hours"),fd=Fe("days"),hd=Fe("months"),md=Fe("years");function pd(){return re(this.days()/7)}var ge=Math.round,Ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yd(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function gd(e,t,r,s){var n=de(e).abs(),a=ge(n.as("s")),i=ge(n.as("m")),o=ge(n.as("h")),d=ge(n.as("d")),u=ge(n.as("M")),m=ge(n.as("w")),y=ge(n.as("y")),g=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||o<=1&&["h"]||o<r.h&&["hh",o]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(g=g||m<=1&&["w"]||m<r.w&&["ww",m]),g=g||u<=1&&["M"]||u<r.M&&["MM",u]||y<=1&&["y"]||["yy",y],g[2]=t,g[3]=+e>0,g[4]=s,yd.apply(null,g)}function bd(e){return e===void 0?ge:typeof e=="function"?(ge=e,!0):!1}function xd(e,t){return Ue[e]===void 0?!1:t===void 0?Ue[e]:(Ue[e]=t,e==="s"&&(Ue.ss=t-1),!0)}function vd(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Ue,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Ue,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=gd(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Qt=Math.abs;function Ae(e){return(e>0)-(e<0)||+e}function Ht(){if(!this.isValid())return this.localeData().invalidDate();var e=Qt(this._milliseconds)/1e3,t=Qt(this._days),r=Qt(this._months),s,n,a,i,o=this.asSeconds(),d,u,m,y;return o?(s=re(e/60),n=re(s/60),e%=60,s%=60,a=re(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=o<0?"-":"",u=Ae(this._months)!==Ae(o)?"-":"",m=Ae(this._days)!==Ae(o)?"-":"",y=Ae(this._milliseconds)!==Ae(o)?"-":"",d+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(t?m+t+"D":"")+(n||s||e?"T":"")+(n?y+n+"H":"")+(s?y+s+"M":"")+(e?y+i+"S":"")):"P0D"}var N=Vt.prototype;N.isValid=ho;N.abs=$l;N.add=Bl;N.subtract=Zl;N.as=Jl;N.asMilliseconds=rn;N.asSeconds=Ql;N.asMinutes=Kl;N.asHours=Xl;N.asDays=ed;N.asWeeks=td;N.asMonths=rd;N.asQuarters=sd;N.asYears=nd;N.valueOf=ad;N._bubble=ql;N.clone=id;N.get=od;N.milliseconds=ld;N.seconds=dd;N.minutes=cd;N.hours=ud;N.days=fd;N.weeks=pd;N.months=hd;N.years=md;N.humanize=vd;N.toISOString=Ht;N.toString=Ht;N.toJSON=Ht;N.locale=Us;N.localeData=Gs;N.toIsoString=se("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ht);N.lang=Hs;p("X",0,0,"unix");p("x",0,0,"valueOf");h("x",Ft);h("X",Ea);P("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});P("x",function(e,t,r){r._d=new Date(k(e))});//! moment.js
10
- f.version="2.30.1";va(L);f.fn=c;f.min=lo;f.max=co;f.now=uo;f.utc=fe;f.unix=zl;f.months=Al;f.isDate=ut;f.locale=Ce;f.invalid=Rt;f.duration=de;f.isMoment=le;f.weekdays=Ul;f.parseZone=El;f.localeData=ke;f.isDuration=_t;f.monthsShort=Vl;f.weekdaysMin=Gl;f.defineLocale=_r;f.updateLocale=zi;f.locales=Ei;f.weekdaysShort=Hl;f.normalizeUnits=ne;f.relativeTimeRounding=bd;f.relativeTimeThreshold=xd;f.calendarFormat=Io;f.prototype=c;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const sn=b.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...o},d)=>{const u=b.useMemo(()=>{const m=Math.abs(f().diff(f(s),"minutes"));if(m<60)return`há ${m} minutos`;const y=Math.abs(f().diff(f(s),"hours"));return y<24?`há ${y} horas`:`há ${Math.abs(f().diff(f(s),"days"))} dias`},[s]);return l.jsxs(lr,{ref:d,icon:null,className:_(!n&&"border-transparent bg-lightGray",e),...o,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&l.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),l.jsx(R,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:u})]}),l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),l.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[l.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(ba,{className:"size-4","aria-hidden":"true"})}),l.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(xa,{className:"size-4","aria-hidden":"true"})})]})]})});sn.displayName="Notification";function wd(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function _d(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=wd(e,t.key);return r==null||r===""?null:l.jsx(R,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const nn={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"},Tt=b.forwardRef(({className:e,...t},r)=>l.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[l.jsx("input",{ref:r,type:"checkbox",className:_("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),l.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Tt.displayName="TableCheckbox";function kd({className:e}){return l.jsx("svg",{className:_("size-5 shrink-0",e),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M8 9l4-4 4 4M8 15l4 4 4-4",stroke:"currentColor",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})})}const Ct=b.forwardRef(({className:e,align:t="left",sortable:r,sorted:s,onSort:n,children:a,...i},o)=>l.jsx("th",{ref:o,className:_("border-b border-neutral-divider-secondary px-5 py-2",e),...i,children:l.jsxs("span",{className:_("flex items-center gap-1.5",nn[t??"left"],r&&"cursor-pointer select-none"),onClick:r?n:void 0,children:[l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:a}),r&&l.jsx(kd,{className:_(s&&"text-agilys-primary")})]})}));Ct.displayName="TableHeadCell";function ir({align:e="left",className:t,children:r,onClick:s}){return l.jsx("td",{onClick:s,className:_("border-b border-neutral-divider-secondary px-5 py-3",t),children:l.jsx(R,{className:_("flex items-center gap-2",nn[e??"left"]),children:r})})}function Sd(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}function Md({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:o,onSelectionChange:d,sortKey:u,sortDirection:m,onSortChange:y,onRowClick:g,shadow:A=!1,border:W=!0,className:D,...x}){const T=e.length+(i?1:0),z=o??[],q=t.map((S,V)=>Sd(S,V,r)),O=q.length>0&&q.every(S=>z.includes(S)),B=()=>{d&&d(O?[]:q)},U=S=>{d&&d(z.includes(S)?z.filter(V=>V!==S):[...z,S])};return l.jsx("div",{className:_("w-full overflow-x-auto rounded-lg",W&&"border border-neutral-divider-secondary",A&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:l.jsxs("table",{className:_("w-full border-collapse font-sans",D),...x,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[i&&l.jsx(Ct,{align:"center",className:"w-11",children:l.jsx(Tt,{checked:O,onChange:B,"aria-label":"Selecionar todas as linhas"})}),e.map((S,V)=>l.jsx(Ct,{align:S.align,sortable:!!S.key&&!!y,sorted:S.key&&u===S.key?m:!1,onSort:()=>S.key&&(y==null?void 0:y(S.key)),children:S.label},S.key??`column-${V}`))]})}),l.jsx("tbody",{children:s?l.jsx("tr",{children:l.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((S,V)=>{const Z=q[V];return l.jsxs("tr",{onClick:g?()=>g(S):void 0,className:_(V%2===0?"bg-neutral-surface-lightest":"bg-white",g&&"cursor-pointer"),children:[i&&l.jsx(ir,{align:"center",onClick:J=>J.stopPropagation(),children:l.jsx(Tt,{checked:z.includes(Z),onChange:()=>U(Z),"aria-label":"Selecionar linha"})}),e.map((J,ae)=>l.jsx(ir,{align:J.align,className:J.className,children:_d(S,J)},J.key??`column-${ae}`))]},Z)})})]})})}const an=Pe("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function Dd(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const Nd={sm:"caption",md:"bodySm",lg:"body"},Tr=b.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const o=t??"md";return l.jsx("span",{ref:i,className:_(an({size:t}),e),...a,children:r?l.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&l.jsx(R,{as:"span",variant:Nd[o],weight:"medium",className:"text-inherit leading-none",children:Dd(n)})})});Tr.displayName="Avatar";function Od({src:e,name:t,description:r,size:s="md",className:n}){return l.jsxs("div",{className:_("flex min-w-0 items-center gap-2",n),children:[l.jsx(Tr,{src:e,name:t,size:s}),l.jsxs("div",{className:"flex min-w-0 flex-col",children:[l.jsx(R,{as:"span",variant:"body",className:"truncate",children:t}),r&&l.jsx(R,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}const at="ellipsis";function vt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function Yd(e,t,r){if(r*2+5>=t)return vt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,o=a<t-1;return!i&&o?[...vt(1,3+r*2),at,t]:i&&!o?[1,at,...vt(t-(2+r*2),t)]:[1,at,...vt(n,a),at,t]}function qr({direction:e,className:t}){return l.jsx("svg",{className:_("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const on=b.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const o=Yd(e,t,s),d=u=>{u<1||u>t||u===e||r(u)};return l.jsxs("nav",{ref:i,"aria-label":"Paginação",className:_("flex items-center gap-1 font-sans",n),...a,children:[l.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"left"})}),o.map((u,m)=>u===at?l.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:l.jsx(R,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${m}`):l.jsx("button",{type:"button","aria-current":u===e?"page":void 0,onClick:()=>d(u),className:_("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",u===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:u})},u)),l.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"right"})})]})});on.displayName="Pagination";const Cr=Pe("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),ln=b.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,error:i,disabled:o,id:d,...u},m)=>{const y=b.useId(),g=d??y,A=typeof i=="string"?i:i==null?void 0:i.message,W=!!A,D=`${g}-error`;return l.jsxs("div",{className:_("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&l.jsx(R,{as:"label",htmlFor:g,variant:"body",className:"text-neutral-text-primary",children:r}),l.jsxs("div",{className:_(Cr({hasError:W}),o&&"pointer-events-none opacity-50"),children:[s&&l.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),l.jsx("input",{ref:m,id:g,disabled:o,"aria-invalid":W||void 0,"aria-describedby":W?D:void 0,className:_(`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
9
+ `+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var Hr={};function ps(e,t){f.deprecationHandler!=null&&f.deprecationHandler(e,t),Hr[e]||(ms(t),Hr[e]=!0)}f.suppressDeprecationWarnings=!1;f.deprecationHandler=null;function he(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function ka(e){var t,r;for(r in e)Y(e,r)&&(t=e[r],he(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function er(e,t){var r=je({},e),s;for(s in t)Y(t,s)&&(Le(e[s])&&Le(t[s])?(r[s]={},je(r[s],e[s]),je(r[s],t[s])):t[s]!=null?r[s]=t[s]:delete r[s]);for(s in e)Y(e,s)&&!Y(t,s)&&Le(e[s])&&(r[s]=je({},r[s]));return r}function fr(e){e!=null&&this.set(e)}var tr;Object.keys?tr=Object.keys:tr=function(e){var t,r=[];for(t in e)Y(e,t)&&r.push(t);return r};var Sa={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ma(e,t,r){var s=this._calendar[e]||this._calendar.sameElse;return he(s)?s.call(t,r):s}function ue(e,t,r){var s=""+Math.abs(e),n=t-s.length,a=e>=0;return(a?r?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+s}var hr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qt={},Ge={};function p(e,t,r,s){var n=s;typeof s=="string"&&(n=function(){return this[s]()}),e&&(Ge[e]=n),t&&(Ge[t[0]]=function(){return ue(n.apply(this,arguments),t[1],t[2])}),r&&(Ge[r]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function Da(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Na(e){var t=e.match(hr),r,s;for(r=0,s=t.length;r<s;r++)Ge[t[r]]?t[r]=Ge[t[r]]:t[r]=Da(t[r]);return function(n){var a="",i;for(i=0;i<s;i++)a+=he(t[i])?t[i].call(n,e):t[i];return a}}function _t(e,t){return e.isValid()?(t=ys(t,e.localeData()),qt[t]=qt[t]||Na(t),qt[t](e)):e.localeData().invalidDate()}function ys(e,t){var r=5;function s(n){return t.longDateFormat(n)||n}for(xt.lastIndex=0;r>=0&&xt.test(e);)e=e.replace(xt,s),xt.lastIndex=0,r-=1;return e}var Oa={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ya(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(hr).map(function(s){return s==="MMMM"||s==="MM"||s==="DD"||s==="dddd"?s.slice(1):s}).join(""),this._longDateFormat[e])}var ja="Invalid date";function Ta(){return this._invalidDate}var Ca="%d",Pa=/\d{1,2}/;function Ra(e){return this._ordinal.replace("%d",e)}var Wa={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ia(e,t,r,s){var n=this._relativeTime[r];return he(n)?n(e,t,r,s):n.replace(/%d/i,e)}function La(e,t){var r=this._relativeTime[e>0?"future":"past"];return he(r)?r(t):r.replace(/%s/i,t)}var Gr={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return typeof e=="string"?Gr[e]||Gr[e.toLowerCase()]:void 0}function mr(e){var t={},r,s;for(s in e)Y(e,s)&&(r=ne(s),r&&(t[r]=e[s]));return t}var za={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Fa(e){var t=[],r;for(r in e)Y(e,r)&&t.push({unit:r,priority:za[r]});return t.sort(function(s,n){return s.priority-n.priority}),t}var gs=/\d/,te=/\d\d/,bs=/\d{3}/,pr=/\d{4}/,Wt=/[+-]?\d{6}/,z=/\d\d?/,xs=/\d\d\d\d?/,vs=/\d\d\d\d\d\d?/,It=/\d{1,3}/,yr=/\d{1,4}/,Lt=/[+-]?\d{1,6}/,qe=/\d+/,zt=/[+-]?\d+/,Ea=/Z|[+-]\d\d:?\d\d/gi,Ft=/Z|[+-]\d\d(?::?\d\d)?/gi,Aa=/[+-]?\d+(\.\d{1,3})?/,mt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Je=/^[1-9]\d?/,gr=/^([1-9]\d|\d)/,Nt;Nt={};function h(e,t,r){Nt[e]=he(t)?t:function(s,n){return s&&r?r:t}}function Va(e,t){return Y(Nt,e)?Nt[e](t._strict,t._locale):new RegExp(Ua(e))}function Ua(e){return ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,s,n,a){return r||s||n||a}))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function re(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function k(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=re(t)),r}var rr={};function P(e,t){var r,s=t,n;for(typeof e=="string"&&(e=[e]),_e(t)&&(s=function(a,i){i[t]=k(a)}),n=e.length,r=0;r<n;r++)rr[e[r]]=s}function pt(e,t){P(e,function(r,s,n,a){n._w=n._w||{},t(r,n._w,n,a)})}function Ha(e,t,r){t!=null&&Y(rr,e)&&rr[e](t,r._a,r,e)}function Et(e){return e%4===0&&e%100!==0||e%400===0}var Q=0,be=1,ce=2,$=3,ie=4,xe=5,Ie=6,Ga=7,$a=8;p("Y",0,0,function(){var e=this.year();return e<=9999?ue(e,4):"+"+e});p(0,["YY",2],0,function(){return this.year()%100});p(0,["YYYY",4],0,"year");p(0,["YYYYY",5],0,"year");p(0,["YYYYYY",6,!0],0,"year");h("Y",zt);h("YY",z,te);h("YYYY",yr,pr);h("YYYYY",Lt,Wt);h("YYYYYY",Lt,Wt);P(["YYYYY","YYYYYY"],Q);P("YYYY",function(e,t){t[Q]=e.length===2?f.parseTwoDigitYear(e):k(e)});P("YY",function(e,t){t[Q]=f.parseTwoDigitYear(e)});P("Y",function(e,t){t[Q]=parseInt(e,10)});function it(e){return Et(e)?366:365}f.parseTwoDigitYear=function(e){return k(e)+(k(e)>68?1900:2e3)};var ws=Qe("FullYear",!0);function Ba(){return Et(this.year())}function Qe(e,t){return function(r){return r!=null?(_s(this,e,r),f.updateOffset(this,t),this):ot(this,e)}}function ot(e,t){if(!e.isValid())return NaN;var r=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return s?r.getUTCSeconds():r.getSeconds();case"Minutes":return s?r.getUTCMinutes():r.getMinutes();case"Hours":return s?r.getUTCHours():r.getHours();case"Date":return s?r.getUTCDate():r.getDate();case"Day":return s?r.getUTCDay():r.getDay();case"Month":return s?r.getUTCMonth():r.getMonth();case"FullYear":return s?r.getUTCFullYear():r.getFullYear();default:return NaN}}function _s(e,t,r){var s,n,a,i,o;if(!(!e.isValid()||isNaN(r))){switch(s=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?s.setUTCMilliseconds(r):s.setMilliseconds(r));case"Seconds":return void(n?s.setUTCSeconds(r):s.setSeconds(r));case"Minutes":return void(n?s.setUTCMinutes(r):s.setMinutes(r));case"Hours":return void(n?s.setUTCHours(r):s.setHours(r));case"Date":return void(n?s.setUTCDate(r):s.setDate(r));case"FullYear":break;default:return}a=r,i=e.month(),o=e.date(),o=o===29&&i===1&&!Et(a)?28:o,n?s.setUTCFullYear(a,i,o):s.setFullYear(a,i,o)}}function Za(e){return e=ne(e),he(this[e])?this[e]():this}function qa(e,t){if(typeof e=="object"){e=mr(e);var r=Fa(e),s,n=r.length;for(s=0;s<n;s++)this[r[s].unit](e[r[s].unit])}else if(e=ne(e),he(this[e]))return this[e](t);return this}function Ja(e,t){return(e%t+t)%t}var G;Array.prototype.indexOf?G=Array.prototype.indexOf:G=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function br(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ja(t,12);return e+=(t-r)/12,r===1?Et(e)?29:28:31-r%7%2}p("M",["MM",2],"Mo",function(){return this.month()+1});p("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});p("MMMM",0,0,function(e){return this.localeData().months(this,e)});h("M",z,Je);h("MM",z,te);h("MMM",function(e,t){return t.monthsShortRegex(e)});h("MMMM",function(e,t){return t.monthsRegex(e)});P(["M","MM"],function(e,t){t[be]=k(e)-1});P(["MMM","MMMM"],function(e,t,r,s){var n=r._locale.monthsParse(e,s,r._strict);n!=null?t[be]=n:w(r).invalidMonth=e});var Qa="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ks="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ss=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ka=mt,Xa=mt;function ei(e,t){return e?oe(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ss).test(t)?"format":"standalone"][e.month()]:oe(this._months)?this._months:this._months.standalone}function ti(e,t){return e?oe(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ss.test(t)?"format":"standalone"][e.month()]:oe(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ri(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=fe([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return r?t==="MMM"?(n=G.call(this._shortMonthsParse,i),n!==-1?n:null):(n=G.call(this._longMonthsParse,i),n!==-1?n:null):t==="MMM"?(n=G.call(this._shortMonthsParse,i),n!==-1?n:(n=G.call(this._longMonthsParse,i),n!==-1?n:null)):(n=G.call(this._longMonthsParse,i),n!==-1?n:(n=G.call(this._shortMonthsParse,i),n!==-1?n:null))}function si(e,t,r){var s,n,a;if(this._monthsParseExact)return ri.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(n=fe([2e3,s]),r&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),!r&&!this._monthsParse[s]&&(a="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[s].test(e))return s;if(r&&t==="MMM"&&this._shortMonthsParse[s].test(e))return s;if(!r&&this._monthsParse[s].test(e))return s}}function Ms(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=k(t);else if(t=e.localeData().monthsParse(t),!_e(t))return e}var r=t,s=e.date();return s=s<29?s:Math.min(s,br(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,s):e._d.setMonth(r,s),e}function Ds(e){return e!=null?(Ms(this,e),f.updateOffset(this,!0),this):ot(this,"Month")}function ni(){return br(this.year(),this.month())}function ai(e){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ns.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Y(this,"_monthsShortRegex")||(this._monthsShortRegex=Ka),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ii(e){return this._monthsParseExact?(Y(this,"_monthsRegex")||Ns.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Y(this,"_monthsRegex")||(this._monthsRegex=Xa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Ns(){function e(d,u){return u.length-d.length}var t=[],r=[],s=[],n,a,i,o;for(n=0;n<12;n++)a=fe([2e3,n]),i=ve(this.monthsShort(a,"")),o=ve(this.months(a,"")),t.push(i),r.push(o),s.push(o),s.push(i);t.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function oi(e,t,r,s,n,a,i){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,s,n,a,i),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,s,n,a,i),o}function lt(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ot(e,t,r){var s=7+t-r,n=(7+lt(e,0,s).getUTCDay()-t)%7;return-n+s-1}function Os(e,t,r,s,n){var a=(7+r-s)%7,i=Ot(e,s,n),o=1+7*(t-1)+a+i,d,u;return o<=0?(d=e-1,u=it(d)+o):o>it(e)?(d=e+1,u=o-it(e)):(d=e,u=o),{year:d,dayOfYear:u}}function dt(e,t,r){var s=Ot(e.year(),t,r),n=Math.floor((e.dayOfYear()-s-1)/7)+1,a,i;return n<1?(i=e.year()-1,a=n+we(i,t,r)):n>we(e.year(),t,r)?(a=n-we(e.year(),t,r),i=e.year()+1):(i=e.year(),a=n),{week:a,year:i}}function we(e,t,r){var s=Ot(e,t,r),n=Ot(e+1,t,r);return(it(e)-s+n)/7}p("w",["ww",2],"wo","week");p("W",["WW",2],"Wo","isoWeek");h("w",z,Je);h("ww",z,te);h("W",z,Je);h("WW",z,te);pt(["w","ww","W","WW"],function(e,t,r,s){t[s.substr(0,1)]=k(e)});function li(e){return dt(e,this._week.dow,this._week.doy).week}var di={dow:0,doy:6};function ci(){return this._week.dow}function ui(){return this._week.doy}function fi(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function hi(e){var t=dt(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}p("d",0,"do","day");p("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});p("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});p("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});p("e",0,0,"weekday");p("E",0,0,"isoWeekday");h("d",z);h("e",z);h("E",z);h("dd",function(e,t){return t.weekdaysMinRegex(e)});h("ddd",function(e,t){return t.weekdaysShortRegex(e)});h("dddd",function(e,t){return t.weekdaysRegex(e)});pt(["dd","ddd","dddd"],function(e,t,r,s){var n=r._locale.weekdaysParse(e,s,r._strict);n!=null?t.d=n:w(r).invalidWeekday=e});pt(["d","e","E"],function(e,t,r,s){t[s]=k(e)});function mi(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function pi(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function xr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ys="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),gi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),bi=mt,xi=mt,vi=mt;function wi(e,t){var r=oe(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?xr(r,this._week.dow):e?r[e.day()]:r}function _i(e){return e===!0?xr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function ki(e){return e===!0?xr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Si(e,t,r){var s,n,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=fe([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return r?t==="dddd"?(n=G.call(this._weekdaysParse,i),n!==-1?n:null):t==="ddd"?(n=G.call(this._shortWeekdaysParse,i),n!==-1?n:null):(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null):t==="dddd"?(n=G.call(this._weekdaysParse,i),n!==-1||(n=G.call(this._shortWeekdaysParse,i),n!==-1)?n:(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null)):t==="ddd"?(n=G.call(this._shortWeekdaysParse,i),n!==-1||(n=G.call(this._weekdaysParse,i),n!==-1)?n:(n=G.call(this._minWeekdaysParse,i),n!==-1?n:null)):(n=G.call(this._minWeekdaysParse,i),n!==-1||(n=G.call(this._weekdaysParse,i),n!==-1)?n:(n=G.call(this._shortWeekdaysParse,i),n!==-1?n:null))}function Mi(e,t,r){var s,n,a;if(this._weekdaysParseExact)return Si.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(n=fe([2e3,1]).day(s),r&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[s].test(e))return s;if(r&&t==="ddd"&&this._shortWeekdaysParse[s].test(e))return s;if(r&&t==="dd"&&this._minWeekdaysParse[s].test(e))return s;if(!r&&this._weekdaysParse[s].test(e))return s}}function Di(e){if(!this.isValid())return e!=null?this:NaN;var t=ot(this,"Day");return e!=null?(e=mi(e,this.localeData()),this.add(e-t,"d")):t}function Ni(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Oi(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=pi(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yi(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Y(this,"_weekdaysRegex")||(this._weekdaysRegex=bi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ji(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Y(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ti(e){return this._weekdaysParseExact?(Y(this,"_weekdaysRegex")||vr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Y(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=vi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function vr(){function e(m,y){return y.length-m.length}var t=[],r=[],s=[],n=[],a,i,o,d,u;for(a=0;a<7;a++)i=fe([2e3,1]).day(a),o=ve(this.weekdaysMin(i,"")),d=ve(this.weekdaysShort(i,"")),u=ve(this.weekdays(i,"")),t.push(o),r.push(d),s.push(u),n.push(o),n.push(d),n.push(u);t.sort(e),r.sort(e),s.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function wr(){return this.hours()%12||12}function Ci(){return this.hours()||24}p("H",["HH",2],0,"hour");p("h",["hh",2],0,wr);p("k",["kk",2],0,Ci);p("hmm",0,0,function(){return""+wr.apply(this)+ue(this.minutes(),2)});p("hmmss",0,0,function(){return""+wr.apply(this)+ue(this.minutes(),2)+ue(this.seconds(),2)});p("Hmm",0,0,function(){return""+this.hours()+ue(this.minutes(),2)});p("Hmmss",0,0,function(){return""+this.hours()+ue(this.minutes(),2)+ue(this.seconds(),2)});function js(e,t){p(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}js("a",!0);js("A",!1);function Ts(e,t){return t._meridiemParse}h("a",Ts);h("A",Ts);h("H",z,gr);h("h",z,Je);h("k",z,Je);h("HH",z,te);h("hh",z,te);h("kk",z,te);h("hmm",xs);h("hmmss",vs);h("Hmm",xs);h("Hmmss",vs);P(["H","HH"],$);P(["k","kk"],function(e,t,r){var s=k(e);t[$]=s===24?0:s});P(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});P(["h","hh"],function(e,t,r){t[$]=k(e),w(r).bigHour=!0});P("hmm",function(e,t,r){var s=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s)),w(r).bigHour=!0});P("hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s,2)),t[xe]=k(e.substr(n)),w(r).bigHour=!0});P("Hmm",function(e,t,r){var s=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s))});P("Hmmss",function(e,t,r){var s=e.length-4,n=e.length-2;t[$]=k(e.substr(0,s)),t[ie]=k(e.substr(s,2)),t[xe]=k(e.substr(n))});function Pi(e){return(e+"").toLowerCase().charAt(0)==="p"}var Ri=/[ap]\.?m?\.?/i,Wi=Qe("Hours",!0);function Ii(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var Cs={calendar:Sa,longDateFormat:Oa,invalidDate:ja,ordinal:Ca,dayOfMonthOrdinalParse:Pa,relativeTime:Wa,months:Qa,monthsShort:ks,week:di,weekdays:yi,weekdaysMin:gi,weekdaysShort:Ys,meridiemParse:Ri},E={},st={},ct;function Li(e,t){var r,s=Math.min(e.length,t.length);for(r=0;r<s;r+=1)if(e[r]!==t[r])return r;return s}function $r(e){return e&&e.toLowerCase().replace("_","-")}function zi(e){for(var t=0,r,s,n,a;t<e.length;){for(a=$r(e[t]).split("-"),r=a.length,s=$r(e[t+1]),s=s?s.split("-"):null;r>0;){if(n=At(a.slice(0,r).join("-")),n)return n;if(s&&s.length>=r&&Li(a,s)>=r-1)break;r--}t++}return ct}function Fi(e){return!!(e&&e.match("^[^/\\\\]*$"))}function At(e){var t=null,r;if(E[e]===void 0&&typeof module<"u"&&module&&module.exports&&Fi(e))try{t=ct._abbr,r=require,r("./locale/"+e),Ce(t)}catch{E[e]=null}return E[e]}function Ce(e,t){var r;return e&&(ee(t)?r=ke(e):r=_r(e,t),r?ct=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ct._abbr}function _r(e,t){if(t!==null){var r,s=Cs;if(t.abbr=e,E[e]!=null)ps("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=E[e]._config;else if(t.parentLocale!=null)if(E[t.parentLocale]!=null)s=E[t.parentLocale]._config;else if(r=At(t.parentLocale),r!=null)s=r._config;else return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;return E[e]=new fr(er(s,t)),st[e]&&st[e].forEach(function(n){_r(n.name,n.config)}),Ce(e),E[e]}else return delete E[e],null}function Ei(e,t){if(t!=null){var r,s,n=Cs;E[e]!=null&&E[e].parentLocale!=null?E[e].set(er(E[e]._config,t)):(s=At(e),s!=null&&(n=s._config),t=er(n,t),s==null&&(t.abbr=e),r=new fr(t),r.parentLocale=E[e],E[e]=r),Ce(e)}else E[e]!=null&&(E[e].parentLocale!=null?(E[e]=E[e].parentLocale,e===Ce()&&Ce(e)):E[e]!=null&&delete E[e]);return E[e]}function ke(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ct;if(!oe(e)){if(t=At(e),t)return t;e=[e]}return zi(e)}function Ai(){return tr(E)}function kr(e){var t,r=e._a;return r&&w(e).overflow===-2&&(t=r[be]<0||r[be]>11?be:r[ce]<1||r[ce]>br(r[Q],r[be])?ce:r[$]<0||r[$]>24||r[$]===24&&(r[ie]!==0||r[xe]!==0||r[Ie]!==0)?$:r[ie]<0||r[ie]>59?ie:r[xe]<0||r[xe]>59?xe:r[Ie]<0||r[Ie]>999?Ie:-1,w(e)._overflowDayOfYear&&(t<Q||t>ce)&&(t=ce),w(e)._overflowWeeks&&t===-1&&(t=Ga),w(e)._overflowWeekday&&t===-1&&(t=$a),w(e).overflow=t),e}var Vi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ui=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Hi=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Gi=/^\/?Date\((-?\d+)/i,$i=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Bi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ps(e){var t,r,s=e._i,n=Vi.exec(s)||Ui.exec(s),a,i,o,d,u=vt.length,m=Jt.length;if(n){for(w(e).iso=!0,t=0,r=u;t<r;t++)if(vt[t][1].exec(n[1])){i=vt[t][0],a=vt[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(n[3]){for(t=0,r=m;t<r;t++)if(Jt[t][1].exec(n[3])){o=(n[2]||" ")+Jt[t][0];break}if(o==null){e._isValid=!1;return}}if(!a&&o!=null){e._isValid=!1;return}if(n[4])if(Hi.exec(n[4]))d="Z";else{e._isValid=!1;return}e._f=i+(o||"")+(d||""),Mr(e)}else e._isValid=!1}function Zi(e,t,r,s,n,a){var i=[qi(e),ks.indexOf(t),parseInt(r,10),parseInt(s,10),parseInt(n,10)];return a&&i.push(parseInt(a,10)),i}function qi(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ji(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qi(e,t,r){if(e){var s=Ys.indexOf(e),n=new Date(t[0],t[1],t[2]).getDay();if(s!==n)return w(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Ki(e,t,r){if(e)return Bi[e];if(t)return 0;var s=parseInt(r,10),n=s%100,a=(s-n)/100;return a*60+n}function Rs(e){var t=$i.exec(Ji(e._i)),r;if(t){if(r=Zi(t[4],t[3],t[2],t[5],t[6],t[7]),!Qi(t[1],r,e))return;e._a=r,e._tzm=Ki(t[8],t[9],t[10]),e._d=lt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),w(e).rfc2822=!0}else e._isValid=!1}function Xi(e){var t=Gi.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ps(e),e._isValid===!1)delete e._isValid;else return;if(Rs(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:f.createFromInputFallback(e)}f.createFromInputFallback=se("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ve(e,t,r){return e??t??r}function eo(e){var t=new Date(f.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Sr(e){var t,r,s=[],n,a,i;if(!e._d){for(n=eo(e),e._w&&e._a[ce]==null&&e._a[be]==null&&to(e),e._dayOfYear!=null&&(i=Ve(e._a[Q],n[Q]),(e._dayOfYear>it(i)||e._dayOfYear===0)&&(w(e)._overflowDayOfYear=!0),r=lt(i,0,e._dayOfYear),e._a[be]=r.getUTCMonth(),e._a[ce]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=s[t]=n[t];for(;t<7;t++)e._a[t]=s[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[$]===24&&e._a[ie]===0&&e._a[xe]===0&&e._a[Ie]===0&&(e._nextDay=!0,e._a[$]=0),e._d=(e._useUTC?lt:oi).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[$]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(w(e).weekdayMismatch=!0)}}function to(e){var t,r,s,n,a,i,o,d,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,i=4,r=Ve(t.GG,e._a[Q],dt(L(),1,4).year),s=Ve(t.W,1),n=Ve(t.E,1),(n<1||n>7)&&(d=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=dt(L(),a,i),r=Ve(t.gg,e._a[Q],u.year),s=Ve(t.w,u.week),t.d!=null?(n=t.d,(n<0||n>6)&&(d=!0)):t.e!=null?(n=t.e+a,(t.e<0||t.e>6)&&(d=!0)):n=a),s<1||s>we(r,a,i)?w(e)._overflowWeeks=!0:d!=null?w(e)._overflowWeekday=!0:(o=Os(r,s,n,a,i),e._a[Q]=o.year,e._dayOfYear=o.dayOfYear)}f.ISO_8601=function(){};f.RFC_2822=function(){};function Mr(e){if(e._f===f.ISO_8601){Ps(e);return}if(e._f===f.RFC_2822){Rs(e);return}e._a=[],w(e).empty=!0;var t=""+e._i,r,s,n,a,i,o=t.length,d=0,u,m;for(n=ys(e._f,e._locale).match(hr)||[],m=n.length,r=0;r<m;r++)a=n[r],s=(t.match(Va(a,e))||[])[0],s&&(i=t.substr(0,t.indexOf(s)),i.length>0&&w(e).unusedInput.push(i),t=t.slice(t.indexOf(s)+s.length),d+=s.length),Ge[a]?(s?w(e).empty=!1:w(e).unusedTokens.push(a),Ha(a,s,e)):e._strict&&!s&&w(e).unusedTokens.push(a);w(e).charsLeftOver=o-d,t.length>0&&w(e).unusedInput.push(t),e._a[$]<=12&&w(e).bigHour===!0&&e._a[$]>0&&(w(e).bigHour=void 0),w(e).parsedDateParts=e._a.slice(0),w(e).meridiem=e._meridiem,e._a[$]=ro(e._locale,e._a[$],e._meridiem),u=w(e).era,u!==null&&(e._a[Q]=e._locale.erasConvertYear(u,e._a[Q])),Sr(e),kr(e)}function ro(e,t,r){var s;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(s=e.isPM(r),s&&t<12&&(t+=12),!s&&t===12&&(t=0)),t)}function so(e){var t,r,s,n,a,i,o=!1,d=e._f.length;if(d===0){w(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<d;n++)a=0,i=!1,t=ur({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[n],Mr(t),cr(t)&&(i=!0),a+=w(t).charsLeftOver,a+=w(t).unusedTokens.length*10,w(t).score=a,o?a<s&&(s=a,r=t):(s==null||a<s||i)&&(s=a,r=t,i&&(o=!0));je(e,r||t)}function no(e){if(!e._d){var t=mr(e._i),r=t.day===void 0?t.date:t.day;e._a=hs([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(s){return s&&parseInt(s,10)}),Sr(e)}}function ao(e){var t=new ht(kr(Ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Ws(e){var t=e._i,r=e._f;return e._locale=e._locale||ke(e._l),t===null||r===void 0&&t===""?Rt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),le(t)?new ht(kr(t)):(ft(t)?e._d=t:oe(r)?so(e):r?Mr(e):io(e),cr(e)||(e._d=null),e))}function io(e){var t=e._i;ee(t)?e._d=new Date(f.now()):ft(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Xi(e):oe(t)?(e._a=hs(t.slice(0),function(r){return parseInt(r,10)}),Sr(e)):Le(t)?no(e):_e(t)?e._d=new Date(t):f.createFromInputFallback(e)}function Is(e,t,r,s,n){var a={};return(t===!0||t===!1)&&(s=t,t=void 0),(r===!0||r===!1)&&(s=r,r=void 0),(Le(e)&&dr(e)||oe(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=r,a._i=e,a._f=t,a._strict=s,ao(a)}function L(e,t,r,s){return Is(e,t,r,s,!1)}var oo=se("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Rt()}),lo=se("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=L.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Rt()});function Ls(e,t){var r,s;if(t.length===1&&oe(t[0])&&(t=t[0]),!t.length)return L();for(r=t[0],s=1;s<t.length;++s)(!t[s].isValid()||t[s][e](r))&&(r=t[s]);return r}function co(){var e=[].slice.call(arguments,0);return Ls("isBefore",e)}function uo(){var e=[].slice.call(arguments,0);return Ls("isAfter",e)}var fo=function(){return Date.now?Date.now():+new Date},nt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ho(e){var t,r=!1,s,n=nt.length;for(t in e)if(Y(e,t)&&!(G.call(nt,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(s=0;s<n;++s)if(e[nt[s]]){if(r)return!1;parseFloat(e[nt[s]])!==k(e[nt[s]])&&(r=!0)}return!0}function mo(){return this._isValid}function po(){return de(NaN)}function Vt(e){var t=mr(e),r=t.year||0,s=t.quarter||0,n=t.month||0,a=t.week||t.isoWeek||0,i=t.day||0,o=t.hour||0,d=t.minute||0,u=t.second||0,m=t.millisecond||0;this._isValid=ho(t),this._milliseconds=+m+u*1e3+d*6e4+o*1e3*60*60,this._days=+i+a*7,this._months=+n+s*3+r*12,this._data={},this._locale=ke(),this._bubble()}function kt(e){return e instanceof Vt}function sr(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function yo(e,t,r){var s=Math.min(e.length,t.length),n=Math.abs(e.length-t.length),a=0,i;for(i=0;i<s;i++)k(e[i])!==k(t[i])&&a++;return a+n}function zs(e,t){p(e,0,0,function(){var r=this.utcOffset(),s="+";return r<0&&(r=-r,s="-"),s+ue(~~(r/60),2)+t+ue(~~r%60,2)})}zs("Z",":");zs("ZZ","");h("Z",Ft);h("ZZ",Ft);P(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=Dr(Ft,e)});var go=/([\+\-]|\d\d)/gi;function Dr(e,t){var r=(t||"").match(e),s,n,a;return r===null?null:(s=r[r.length-1]||[],n=(s+"").match(go)||["-",0,0],a=+(n[1]*60)+k(n[2]),a===0?0:n[0]==="+"?a:-a)}function Nr(e,t){var r,s;return t._isUTC?(r=t.clone(),s=(le(e)||ft(e)?e.valueOf():L(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+s),f.updateOffset(r,!1),r):L(e).local()}function nr(e){return-Math.round(e._d.getTimezoneOffset())}f.updateOffset=function(){};function bo(e,t,r){var s=this._offset||0,n;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Dr(Ft,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(n=nr(this)),this._offset=e,this._isUTC=!0,n!=null&&this.add(n,"m"),s!==e&&(!t||this._changeInProgress?As(this,de(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?s:nr(this)}function xo(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vo(e){return this.utcOffset(0,e)}function wo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(nr(this),"m")),this}function _o(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Dr(Ea,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function ko(e){return this.isValid()?(e=e?L(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function So(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Mo(){if(!ee(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ur(e,this),e=Ws(e),e._a?(t=e._isUTC?fe(e._a):L(e._a),this._isDSTShifted=this.isValid()&&yo(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Do(){return this.isValid()?!this._isUTC:!1}function No(){return this.isValid()?this._isUTC:!1}function Fs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Oo=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function de(e,t){var r=e,s=null,n,a,i;return kt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:_e(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Oo.exec(e))?(n=s[1]==="-"?-1:1,r={y:0,d:k(s[ce])*n,h:k(s[$])*n,m:k(s[ie])*n,s:k(s[xe])*n,ms:k(sr(s[Ie]*1e3))*n}):(s=Yo.exec(e))?(n=s[1]==="-"?-1:1,r={y:We(s[2],n),M:We(s[3],n),w:We(s[4],n),d:We(s[5],n),h:We(s[6],n),m:We(s[7],n),s:We(s[8],n)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(i=jo(L(r.from),L(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),a=new Vt(r),kt(e)&&Y(e,"_locale")&&(a._locale=e._locale),kt(e)&&Y(e,"_isValid")&&(a._isValid=e._isValid),a}de.fn=Vt.prototype;de.invalid=po;function We(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Br(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function jo(e,t){var r;return e.isValid()&&t.isValid()?(t=Nr(t,e),e.isBefore(t)?r=Br(e,t):(r=Br(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Es(e,t){return function(r,s){var n,a;return s!==null&&!isNaN(+s)&&(ps(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=s,s=a),n=de(r,s),As(this,n,e),this}}function As(e,t,r,s){var n=t._milliseconds,a=sr(t._days),i=sr(t._months);e.isValid()&&(s=s??!0,i&&Ms(e,ot(e,"Month")+i*r),a&&_s(e,"Date",ot(e,"Date")+a*r),n&&e._d.setTime(e._d.valueOf()+n*r),s&&f.updateOffset(e,a||i))}var To=Es(1,"add"),Co=Es(-1,"subtract");function Vs(e){return typeof e=="string"||e instanceof String}function Po(e){return le(e)||ft(e)||Vs(e)||_e(e)||Wo(e)||Ro(e)||e===null||e===void 0}function Ro(e){var t=Le(e)&&!dr(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,a,i=s.length;for(n=0;n<i;n+=1)a=s[n],r=r||Y(e,a);return t&&r}function Wo(e){var t=oe(e),r=!1;return t&&(r=e.filter(function(s){return!_e(s)&&Vs(e)}).length===0),t&&r}function Io(e){var t=Le(e)&&!dr(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],n,a;for(n=0;n<s.length;n+=1)a=s[n],r=r||Y(e,a);return t&&r}function Lo(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function zo(e,t){arguments.length===1&&(arguments[0]?Po(arguments[0])?(e=arguments[0],t=void 0):Io(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||L(),s=Nr(r,this).startOf("day"),n=f.calendarFormat(this,s)||"sameElse",a=t&&(he(t[n])?t[n].call(this,r):t[n]);return this.format(a||this.localeData().calendar(n,this,L(r)))}function Fo(){return new ht(this)}function Eo(e,t){var r=le(e)?e:L(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ao(e,t){var r=le(e)?e:L(e);return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function Vo(e,t,r,s){var n=le(e)?e:L(e),a=le(t)?t:L(t);return this.isValid()&&n.isValid()&&a.isValid()?(s=s||"()",(s[0]==="("?this.isAfter(n,r):!this.isBefore(n,r))&&(s[1]===")"?this.isBefore(a,r):!this.isAfter(a,r))):!1}function Uo(e,t){var r=le(e)?e:L(e),s;return this.isValid()&&r.isValid()?(t=ne(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(s=r.valueOf(),this.clone().startOf(t).valueOf()<=s&&s<=this.clone().endOf(t).valueOf())):!1}function Ho(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Go(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $o(e,t,r){var s,n,a;if(!this.isValid())return NaN;if(s=Nr(e,this),!s.isValid())return NaN;switch(n=(s.utcOffset()-this.utcOffset())*6e4,t=ne(t),t){case"year":a=St(this,s)/12;break;case"month":a=St(this,s);break;case"quarter":a=St(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-n)/864e5;break;case"week":a=(this-s-n)/6048e5;break;default:a=this-s}return r?a:re(a)}function St(e,t){if(e.date()<t.date())return-St(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(r,"months"),n,a;return t-s<0?(n=e.clone().add(r-1,"months"),a=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),a=(t-s)/(n-s)),-(r+a)||0}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";f.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Bo(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Zo(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?_t(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):he(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",_t(r,"Z")):_t(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,s,n,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',s=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(r+s+n+a)}function Jo(e){e||(e=this.isUtc()?f.defaultFormatUtc:f.defaultFormat);var t=_t(this,e);return this.localeData().postformat(t)}function Qo(e,t){return this.isValid()&&(le(e)&&e.isValid()||L(e).isValid())?de({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ko(e){return this.from(L(),e)}function Xo(e,t){return this.isValid()&&(le(e)&&e.isValid()||L(e).isValid())?de({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function el(e){return this.to(L(),e)}function Us(e){var t;return e===void 0?this._locale._abbr:(t=ke(e),t!=null&&(this._locale=t),this)}var Hs=se("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Gs(){return this._locale}var Yt=1e3,$e=60*Yt,jt=60*$e,$s=(365*400+97)*24*jt;function Be(e,t){return(e%t+t)%t}function Bs(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-$s:new Date(e,t,r).valueOf()}function Zs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-$s:Date.UTC(e,t,r)}function tl(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Zs:Bs,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Be(t+(this._isUTC?0:this.utcOffset()*$e),jt);break;case"minute":t=this._d.valueOf(),t-=Be(t,$e);break;case"second":t=this._d.valueOf(),t-=Be(t,Yt);break}return this._d.setTime(t),f.updateOffset(this,!0),this}function rl(e){var t,r;if(e=ne(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Zs:Bs,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=jt-Be(t+(this._isUTC?0:this.utcOffset()*$e),jt)-1;break;case"minute":t=this._d.valueOf(),t+=$e-Be(t,$e)-1;break;case"second":t=this._d.valueOf(),t+=Yt-Be(t,Yt)-1;break}return this._d.setTime(t),f.updateOffset(this,!0),this}function sl(){return this._d.valueOf()-(this._offset||0)*6e4}function nl(){return Math.floor(this.valueOf()/1e3)}function al(){return new Date(this.valueOf())}function il(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ol(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ll(){return this.isValid()?this.toISOString():null}function dl(){return cr(this)}function cl(){return je({},w(this))}function ul(){return w(this).overflow}function fl(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}p("N",0,0,"eraAbbr");p("NN",0,0,"eraAbbr");p("NNN",0,0,"eraAbbr");p("NNNN",0,0,"eraName");p("NNNNN",0,0,"eraNarrow");p("y",["y",1],"yo","eraYear");p("y",["yy",2],0,"eraYear");p("y",["yyy",3],0,"eraYear");p("y",["yyyy",4],0,"eraYear");h("N",Or);h("NN",Or);h("NNN",Or);h("NNNN",kl);h("NNNNN",Sl);P(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,s){var n=r._locale.erasParse(e,s,r._strict);n?w(r).era=n:w(r).invalidEra=e});h("y",qe);h("yy",qe);h("yyy",qe);h("yyyy",qe);h("yo",Ml);P(["y","yy","yyy","yyyy"],Q);P(["yo"],function(e,t,r,s){var n;r._locale._eraYearOrdinalRegex&&(n=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Q]=r._locale.eraYearOrdinalParse(e,n):t[Q]=parseInt(e,10)});function hl(e,t){var r,s,n,a=this._eras||ke("en")._eras;for(r=0,s=a.length;r<s;++r){switch(typeof a[r].since){case"string":n=f(a[r].since).startOf("day"),a[r].since=n.valueOf();break}switch(typeof a[r].until){case"undefined":a[r].until=1/0;break;case"string":n=f(a[r].until).startOf("day").valueOf(),a[r].until=n.valueOf();break}}return a}function ml(e,t,r){var s,n,a=this.eras(),i,o,d;for(e=e.toUpperCase(),s=0,n=a.length;s<n;++s)if(i=a[s].name.toUpperCase(),o=a[s].abbr.toUpperCase(),d=a[s].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return a[s];break;case"NNNN":if(i===e)return a[s];break;case"NNNNN":if(d===e)return a[s];break}else if([i,o,d].indexOf(e)>=0)return a[s]}function pl(e,t){var r=e.since<=e.until?1:-1;return t===void 0?f(e.since).year():f(e.since).year()+(t-e.offset)*r}function yl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].name;return""}function gl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].narrow;return""}function bl(){var e,t,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return s[e].abbr;return""}function xl(){var e,t,r,s,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=n[e].since<=n[e].until?1:-1,s=this.clone().startOf("day").valueOf(),n[e].since<=s&&s<=n[e].until||n[e].until<=s&&s<=n[e].since)return(this.year()-f(n[e].since).year())*r+n[e].offset;return this.year()}function vl(e){return Y(this,"_erasNameRegex")||Yr.call(this),e?this._erasNameRegex:this._erasRegex}function wl(e){return Y(this,"_erasAbbrRegex")||Yr.call(this),e?this._erasAbbrRegex:this._erasRegex}function _l(e){return Y(this,"_erasNarrowRegex")||Yr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Or(e,t){return t.erasAbbrRegex(e)}function kl(e,t){return t.erasNameRegex(e)}function Sl(e,t){return t.erasNarrowRegex(e)}function Ml(e,t){return t._eraYearOrdinalRegex||qe}function Yr(){var e=[],t=[],r=[],s=[],n,a,i,o,d,u=this.eras();for(n=0,a=u.length;n<a;++n)i=ve(u[n].name),o=ve(u[n].abbr),d=ve(u[n].narrow),t.push(i),e.push(o),r.push(d),s.push(i),s.push(o),s.push(d);this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}p(0,["gg",2],0,function(){return this.weekYear()%100});p(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ut(e,t){p(0,[e,e.length],0,t)}Ut("gggg","weekYear");Ut("ggggg","weekYear");Ut("GGGG","isoWeekYear");Ut("GGGGG","isoWeekYear");h("G",zt);h("g",zt);h("GG",z,te);h("gg",z,te);h("GGGG",yr,pr);h("gggg",yr,pr);h("GGGGG",Lt,Wt);h("ggggg",Lt,Wt);pt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,s){t[s.substr(0,2)]=k(e)});pt(["gg","GG"],function(e,t,r,s){t[s]=f.parseTwoDigitYear(e)});function Dl(e){return qs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Nl(e){return qs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ol(){return we(this.year(),1,4)}function Yl(){return we(this.isoWeekYear(),1,4)}function jl(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)}function Tl(){var e=this.localeData()._week;return we(this.weekYear(),e.dow,e.doy)}function qs(e,t,r,s,n){var a;return e==null?dt(this,s,n).year:(a=we(e,s,n),t>a&&(t=a),Cl.call(this,e,t,r,s,n))}function Cl(e,t,r,s,n){var a=Os(e,t,r,s,n),i=lt(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}p("Q",0,"Qo","quarter");h("Q",gs);P("Q",function(e,t){t[be]=(k(e)-1)*3});function Pl(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}p("D",["DD",2],"Do","date");h("D",z,Je);h("DD",z,te);h("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});P(["D","DD"],ce);P("Do",function(e,t){t[ce]=k(e.match(z)[0])});var Js=Qe("Date",!0);p("DDD",["DDDD",3],"DDDo","dayOfYear");h("DDD",It);h("DDDD",bs);P(["DDD","DDDD"],function(e,t,r){r._dayOfYear=k(e)});function Rl(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}p("m",["mm",2],0,"minute");h("m",z,gr);h("mm",z,te);P(["m","mm"],ie);var Wl=Qe("Minutes",!1);p("s",["ss",2],0,"second");h("s",z,gr);h("ss",z,te);P(["s","ss"],xe);var Il=Qe("Seconds",!1);p("S",0,0,function(){return~~(this.millisecond()/100)});p(0,["SS",2],0,function(){return~~(this.millisecond()/10)});p(0,["SSS",3],0,"millisecond");p(0,["SSSS",4],0,function(){return this.millisecond()*10});p(0,["SSSSS",5],0,function(){return this.millisecond()*100});p(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});p(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});p(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});p(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});h("S",It,gs);h("SS",It,te);h("SSS",It,bs);var Te,Qs;for(Te="SSSS";Te.length<=9;Te+="S")h(Te,qe);function Ll(e,t){t[Ie]=k(("0."+e)*1e3)}for(Te="S";Te.length<=9;Te+="S")P(Te,Ll);Qs=Qe("Milliseconds",!1);p("z",0,0,"zoneAbbr");p("zz",0,0,"zoneName");function zl(){return this._isUTC?"UTC":""}function Fl(){return this._isUTC?"Coordinated Universal Time":""}var c=ht.prototype;c.add=To;c.calendar=zo;c.clone=Fo;c.diff=$o;c.endOf=rl;c.format=Jo;c.from=Qo;c.fromNow=Ko;c.to=Xo;c.toNow=el;c.get=Za;c.invalidAt=ul;c.isAfter=Eo;c.isBefore=Ao;c.isBetween=Vo;c.isSame=Uo;c.isSameOrAfter=Ho;c.isSameOrBefore=Go;c.isValid=dl;c.lang=Hs;c.locale=Us;c.localeData=Gs;c.max=lo;c.min=oo;c.parsingFlags=cl;c.set=qa;c.startOf=tl;c.subtract=Co;c.toArray=il;c.toObject=ol;c.toDate=al;c.toISOString=Zo;c.inspect=qo;typeof Symbol<"u"&&Symbol.for!=null&&(c[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});c.toJSON=ll;c.toString=Bo;c.unix=nl;c.valueOf=sl;c.creationData=fl;c.eraName=yl;c.eraNarrow=gl;c.eraAbbr=bl;c.eraYear=xl;c.year=ws;c.isLeapYear=Ba;c.weekYear=Dl;c.isoWeekYear=Nl;c.quarter=c.quarters=Pl;c.month=Ds;c.daysInMonth=ni;c.week=c.weeks=fi;c.isoWeek=c.isoWeeks=hi;c.weeksInYear=jl;c.weeksInWeekYear=Tl;c.isoWeeksInYear=Ol;c.isoWeeksInISOWeekYear=Yl;c.date=Js;c.day=c.days=Di;c.weekday=Ni;c.isoWeekday=Oi;c.dayOfYear=Rl;c.hour=c.hours=Wi;c.minute=c.minutes=Wl;c.second=c.seconds=Il;c.millisecond=c.milliseconds=Qs;c.utcOffset=bo;c.utc=vo;c.local=wo;c.parseZone=_o;c.hasAlignedHourOffset=ko;c.isDST=So;c.isLocal=Do;c.isUtcOffset=No;c.isUtc=Fs;c.isUTC=Fs;c.zoneAbbr=zl;c.zoneName=Fl;c.dates=se("dates accessor is deprecated. Use date instead.",Js);c.months=se("months accessor is deprecated. Use month instead",Ds);c.years=se("years accessor is deprecated. Use year instead",ws);c.zone=se("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",xo);c.isDSTShifted=se("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Mo);function El(e){return L(e*1e3)}function Al(){return L.apply(null,arguments).parseZone()}function Ks(e){return e}var j=fr.prototype;j.calendar=Ma;j.longDateFormat=Ya;j.invalidDate=Ta;j.ordinal=Ra;j.preparse=Ks;j.postformat=Ks;j.relativeTime=Ia;j.pastFuture=La;j.set=ka;j.eras=hl;j.erasParse=ml;j.erasConvertYear=pl;j.erasAbbrRegex=wl;j.erasNameRegex=vl;j.erasNarrowRegex=_l;j.months=ei;j.monthsShort=ti;j.monthsParse=si;j.monthsRegex=ii;j.monthsShortRegex=ai;j.week=li;j.firstDayOfYear=ui;j.firstDayOfWeek=ci;j.weekdays=wi;j.weekdaysMin=ki;j.weekdaysShort=_i;j.weekdaysParse=Mi;j.weekdaysRegex=Yi;j.weekdaysShortRegex=ji;j.weekdaysMinRegex=Ti;j.isPM=Pi;j.meridiem=Ii;function Tt(e,t,r,s){var n=ke(),a=fe().set(s,t);return n[r](a,e)}function Xs(e,t,r){if(_e(e)&&(t=e,e=void 0),e=e||"",t!=null)return Tt(e,t,r,"month");var s,n=[];for(s=0;s<12;s++)n[s]=Tt(e,s,r,"month");return n}function jr(e,t,r,s){typeof e=="boolean"?(_e(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,_e(t)&&(r=t,t=void 0),t=t||"");var n=ke(),a=e?n._week.dow:0,i,o=[];if(r!=null)return Tt(t,(r+a)%7,s,"day");for(i=0;i<7;i++)o[i]=Tt(t,(i+a)%7,s,"day");return o}function Vl(e,t){return Xs(e,t,"months")}function Ul(e,t){return Xs(e,t,"monthsShort")}function Hl(e,t,r){return jr(e,t,r,"weekdays")}function Gl(e,t,r){return jr(e,t,r,"weekdaysShort")}function $l(e,t,r){return jr(e,t,r,"weekdaysMin")}Ce("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=k(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});f.lang=se("moment.lang is deprecated. Use moment.locale instead.",Ce);f.langData=se("moment.langData is deprecated. Use moment.localeData instead.",ke);var ye=Math.abs;function Bl(){var e=this._data;return this._milliseconds=ye(this._milliseconds),this._days=ye(this._days),this._months=ye(this._months),e.milliseconds=ye(e.milliseconds),e.seconds=ye(e.seconds),e.minutes=ye(e.minutes),e.hours=ye(e.hours),e.months=ye(e.months),e.years=ye(e.years),this}function en(e,t,r,s){var n=de(t,r);return e._milliseconds+=s*n._milliseconds,e._days+=s*n._days,e._months+=s*n._months,e._bubble()}function Zl(e,t){return en(this,e,t,1)}function ql(e,t){return en(this,e,t,-1)}function Zr(e){return e<0?Math.floor(e):Math.ceil(e)}function Jl(){var e=this._milliseconds,t=this._days,r=this._months,s=this._data,n,a,i,o,d;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Zr(ar(r)+t)*864e5,t=0,r=0),s.milliseconds=e%1e3,n=re(e/1e3),s.seconds=n%60,a=re(n/60),s.minutes=a%60,i=re(a/60),s.hours=i%24,t+=re(i/24),d=re(tn(t)),r+=d,t-=Zr(ar(d)),o=re(r/12),r%=12,s.days=t,s.months=r,s.years=o,this}function tn(e){return e*4800/146097}function ar(e){return e*146097/4800}function Ql(e){if(!this.isValid())return NaN;var t,r,s=this._milliseconds;if(e=ne(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+s/864e5,r=this._months+tn(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(ar(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return t*24+s/36e5;case"minute":return t*1440+s/6e4;case"second":return t*86400+s/1e3;case"millisecond":return Math.floor(t*864e5)+s;default:throw new Error("Unknown unit "+e)}}function Se(e){return function(){return this.as(e)}}var rn=Se("ms"),Kl=Se("s"),Xl=Se("m"),ed=Se("h"),td=Se("d"),rd=Se("w"),sd=Se("M"),nd=Se("Q"),ad=Se("y"),id=rn;function od(){return de(this)}function ld(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function ze(e){return function(){return this.isValid()?this._data[e]:NaN}}var dd=ze("milliseconds"),cd=ze("seconds"),ud=ze("minutes"),fd=ze("hours"),hd=ze("days"),md=ze("months"),pd=ze("years");function yd(){return re(this.days()/7)}var ge=Math.round,Ue={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function gd(e,t,r,s,n){return n.relativeTime(t||1,!!r,e,s)}function bd(e,t,r,s){var n=de(e).abs(),a=ge(n.as("s")),i=ge(n.as("m")),o=ge(n.as("h")),d=ge(n.as("d")),u=ge(n.as("M")),m=ge(n.as("w")),y=ge(n.as("y")),g=a<=r.ss&&["s",a]||a<r.s&&["ss",a]||i<=1&&["m"]||i<r.m&&["mm",i]||o<=1&&["h"]||o<r.h&&["hh",o]||d<=1&&["d"]||d<r.d&&["dd",d];return r.w!=null&&(g=g||m<=1&&["w"]||m<r.w&&["ww",m]),g=g||u<=1&&["M"]||u<r.M&&["MM",u]||y<=1&&["y"]||["yy",y],g[2]=t,g[3]=+e>0,g[4]=s,gd.apply(null,g)}function xd(e){return e===void 0?ge:typeof e=="function"?(ge=e,!0):!1}function vd(e,t){return Ue[e]===void 0?!1:t===void 0?Ue[e]:(Ue[e]=t,e==="s"&&(Ue.ss=t-1),!0)}function wd(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,s=Ue,n,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(s=Object.assign({},Ue,t),t.s!=null&&t.ss==null&&(s.ss=t.s-1)),n=this.localeData(),a=bd(this,!r,s,n),r&&(a=n.pastFuture(+this,a)),n.postformat(a)}var Qt=Math.abs;function Ae(e){return(e>0)-(e<0)||+e}function Ht(){if(!this.isValid())return this.localeData().invalidDate();var e=Qt(this._milliseconds)/1e3,t=Qt(this._days),r=Qt(this._months),s,n,a,i,o=this.asSeconds(),d,u,m,y;return o?(s=re(e/60),n=re(s/60),e%=60,s%=60,a=re(r/12),r%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=o<0?"-":"",u=Ae(this._months)!==Ae(o)?"-":"",m=Ae(this._days)!==Ae(o)?"-":"",y=Ae(this._milliseconds)!==Ae(o)?"-":"",d+"P"+(a?u+a+"Y":"")+(r?u+r+"M":"")+(t?m+t+"D":"")+(n||s||e?"T":"")+(n?y+n+"H":"")+(s?y+s+"M":"")+(e?y+i+"S":"")):"P0D"}var N=Vt.prototype;N.isValid=mo;N.abs=Bl;N.add=Zl;N.subtract=ql;N.as=Ql;N.asMilliseconds=rn;N.asSeconds=Kl;N.asMinutes=Xl;N.asHours=ed;N.asDays=td;N.asWeeks=rd;N.asMonths=sd;N.asQuarters=nd;N.asYears=ad;N.valueOf=id;N._bubble=Jl;N.clone=od;N.get=ld;N.milliseconds=dd;N.seconds=cd;N.minutes=ud;N.hours=fd;N.days=hd;N.weeks=yd;N.months=md;N.years=pd;N.humanize=wd;N.toISOString=Ht;N.toString=Ht;N.toJSON=Ht;N.locale=Us;N.localeData=Gs;N.toIsoString=se("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ht);N.lang=Hs;p("X",0,0,"unix");p("x",0,0,"valueOf");h("x",zt);h("X",Aa);P("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});P("x",function(e,t,r){r._d=new Date(k(e))});//! moment.js
10
+ f.version="2.30.1";wa(L);f.fn=c;f.min=co;f.max=uo;f.now=fo;f.utc=fe;f.unix=El;f.months=Vl;f.isDate=ft;f.locale=Ce;f.invalid=Rt;f.duration=de;f.isMoment=le;f.weekdays=Hl;f.parseZone=Al;f.localeData=ke;f.isDuration=kt;f.monthsShort=Ul;f.weekdaysMin=$l;f.defineLocale=_r;f.updateLocale=Ei;f.locales=Ai;f.weekdaysShort=Gl;f.normalizeUnits=ne;f.relativeTimeRounding=xd;f.relativeTimeThreshold=vd;f.calendarFormat=Lo;f.prototype=c;f.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const sn=b.forwardRef(({className:e,title:t,body:r,timestamp:s,read:n=!1,onArchive:a,onDelete:i,...o},d)=>{const u=b.useMemo(()=>{const m=Math.abs(f().diff(f(s),"minutes"));if(m<60)return`há ${m} minutos`;const y=Math.abs(f().diff(f(s),"hours"));return y<24?`há ${y} horas`:`há ${Math.abs(f().diff(f(s),"days"))} dias`},[s]);return l.jsxs(lr,{ref:d,icon:null,className:_(!n&&"border-transparent bg-lightGray",e),...o,children:[l.jsxs("div",{className:"flex items-start justify-between gap-3",children:[l.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[!n&&l.jsx("span",{className:"size-2 shrink-0 rounded-full bg-danger-60","aria-label":"Não visualizada"}),l.jsx(R,{as:"div",variant:"body",weight:"semibold",className:"truncate text-neutral-text-primary",children:t})]}),l.jsx(R,{as:"span",variant:"caption",className:"shrink-0 text-neutral-text-secondary",children:u})]}),l.jsx(R,{as:"div",variant:"bodySm",className:"text-neutral-text-secondary",children:r}),l.jsxs("div",{className:"flex items-center justify-end gap-1 pt-1",children:[l.jsx("button",{type:"button",onClick:a,"aria-label":"Arquivar",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-neutral-surface-selected hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(ba,{className:"size-4","aria-hidden":"true"})}),l.jsx("button",{type:"button",onClick:i,"aria-label":"Excluir",className:"flex size-7 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:bg-danger-10 hover:text-danger-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary",children:l.jsx(va,{className:"size-4","aria-hidden":"true"})})]})]})});sn.displayName="Notification";const Ct=b.forwardRef(({className:e,...t},r)=>l.jsxs("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[l.jsx("input",{ref:r,type:"checkbox",className:_("peer size-5 shrink-0 cursor-pointer appearance-none rounded border-2 border-neutral-divider-primary bg-white shadow-[0px_0px_2px_0px_rgba(66,74,98,0.09)] checked:border-agilys-primary checked:bg-agilys-primary disabled:cursor-not-allowed disabled:opacity-50",e),...t}),l.jsx("svg",{className:"pointer-events-none absolute size-3 text-white opacity-0 peer-checked:opacity-100",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})]}));Ct.displayName="TableCheckbox";function _d(e,t){return t.split(".").reduce((r,s)=>r==null?void 0:r[s],e)}function kd(e,t){if(t.callback)return t.callback(e);if(!t.key)return null;const r=_d(e,t.key);return r==null||r===""?null:l.jsx(R,{as:"span",variant:"body",className:"truncate text-neutral-text-primary",children:r})}const nn={left:"text-left justify-start",center:"text-center justify-center",right:"text-right justify-end"};function Sd(e,t,r){if(typeof r=="function")return r(e);const s=e;return r?s[r]??t:s.id??t}const Pt=b.forwardRef(({className:e,align:t="left",sortable:r,sorted:s,onSort:n,children:a,...i},o)=>l.jsx("th",{ref:o,className:_("border-b border-neutral-divider-secondary px-5 py-2",e),...i,children:l.jsxs("span",{className:_("flex items-center gap-1.5",nn[t??"left"],r&&"cursor-pointer select-none"),onClick:r?n:void 0,children:[l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"flex-1 truncate text-neutral-text-secondary",children:a}),r&&l.jsx(xa,{className:_("size-5 shrink-0",s&&"text-agilys-primary"),"aria-hidden":"true"})]})}));Pt.displayName="TableHeadCell";function ir({align:e="left",className:t,children:r,onClick:s}){return l.jsx("td",{onClick:s,className:_("border-b border-neutral-divider-secondary px-5 py-3",t),children:l.jsx(R,{className:_("flex items-center gap-2",nn[e??"left"]),children:r})})}const an=Pe("relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-neutral-surface-lightest font-sans font-medium text-neutral-text-secondary",{variants:{size:{sm:"size-6 text-xs",md:"size-7 text-sm",lg:"size-10 text-base"}},defaultVariants:{size:"md"}});function Md(e){var s;const t=e.trim().split(/\s+/),r=t.length>1?`${t[0][0]}${t[t.length-1][0]}`:(s=t[0])==null?void 0:s.slice(0,2);return r==null?void 0:r.toUpperCase()}const Dd={sm:"caption",md:"bodySm",lg:"body"},Tr=b.forwardRef(({className:e,size:t,src:r,alt:s="",name:n,...a},i)=>{const o=t??"md";return l.jsx("span",{ref:i,className:_(an({size:t}),e),...a,children:r?l.jsx("img",{src:r,alt:s,className:"size-full object-cover"}):n&&l.jsx(R,{as:"span",variant:Dd[o],weight:"medium",className:"text-inherit leading-none",children:Md(n)})})});Tr.displayName="Avatar";function Nd({src:e,name:t,description:r,size:s="md",className:n}){return l.jsxs("div",{className:_("flex min-w-0 items-center gap-2",n),children:[l.jsx(Tr,{src:e,name:t,size:s}),l.jsxs("div",{className:"flex min-w-0 flex-col",children:[l.jsx(R,{as:"span",variant:"body",className:"truncate",children:t}),r&&l.jsx(R,{as:"span",variant:"bodySm",className:"truncate text-neutral-text-secondary",children:r})]})]})}function Od({keys:e,data:t,rowKey:r,loading:s,loadingMessage:n="Carregando dados...",emptyMessage:a="Nenhum dado para ser exibido!",selectable:i,selectedRowKeys:o,onSelectionChange:d,sortKey:u,sortDirection:m,onSortChange:y,onRowClick:g,shadow:A=!1,border:W=!1,className:D,...x}){const T=e.length+(i?1:0),F=o??[],q=t.map((S,V)=>Sd(S,V,r)),O=q.length>0&&q.every(S=>F.includes(S)),B=()=>{d&&d(O?[]:q)},U=S=>{d&&d(F.includes(S)?F.filter(V=>V!==S):[...F,S])};return l.jsx("div",{className:_("w-full overflow-x-auto rounded-lg",W&&"border border-neutral-divider-secondary",A&&"shadow-[0px_0px_2px_0px_rgba(66,74,98,0.04),0px_3px_8px_0px_rgba(66,74,98,0.09)]"),children:l.jsxs("table",{className:_("w-full border-collapse font-sans",D),...x,children:[l.jsx("thead",{children:l.jsxs("tr",{children:[i&&l.jsx(Pt,{align:"center",className:"w-11",children:l.jsx(Ct,{checked:O,onChange:B,"aria-label":"Selecionar todas as linhas"})}),e.map((S,V)=>l.jsx(Pt,{align:S.align,sortable:!!S.key&&!!y,sorted:S.key&&u===S.key?m:!1,onSort:()=>S.key&&(y==null?void 0:y(S.key)),children:S.label},S.key??`column-${V}`))]})}),l.jsx("tbody",{children:s?l.jsx("tr",{children:l.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:n})})}):t.length===0?l.jsx("tr",{children:l.jsx("td",{colSpan:T,className:"border-b border-neutral-divider-secondary bg-neutral-surface-lightest px-5 py-6",children:l.jsx(R,{as:"p",variant:"body",className:"w-full text-center text-neutral-text-secondary",children:a})})}):t.map((S,V)=>{const Z=q[V];return l.jsxs("tr",{onClick:g?()=>g(S):void 0,className:_(V%2===0?"bg-neutral-surface-lightest":"bg-white",g&&"cursor-pointer"),children:[i&&l.jsx(ir,{align:"center",onClick:J=>J.stopPropagation(),children:l.jsx(Ct,{checked:F.includes(Z),onChange:()=>U(Z),"aria-label":"Selecionar linha"})}),e.map((J,ae)=>l.jsx(ir,{align:J.align,className:J.className,children:kd(S,J)},J.key??`column-${ae}`))]},Z)})})]})})}const at="ellipsis";function wt(e,t){return Array.from({length:t-e+1},(r,s)=>e+s)}function Yd(e,t,r){if(r*2+5>=t)return wt(1,t);const n=Math.max(e-r,1),a=Math.min(e+r,t),i=n>2,o=a<t-1;return!i&&o?[...wt(1,3+r*2),at,t]:i&&!o?[1,at,...wt(t-(2+r*2),t)]:[1,at,...wt(n,a),at,t]}function qr({direction:e,className:t}){return l.jsx("svg",{className:_("size-4",t),viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:e==="left"?"M15 6l-6 6 6 6":"M9 6l6 6-6 6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}const on=b.forwardRef(({currentPage:e,totalPages:t,onPageChange:r,siblingCount:s=1,className:n,...a},i)=>{const o=Yd(e,t,s),d=u=>{u<1||u>t||u===e||r(u)};return l.jsxs("nav",{ref:i,"aria-label":"Paginação",className:_("flex items-center gap-1 font-sans",n),...a,children:[l.jsx("button",{type:"button","aria-label":"Página anterior",disabled:e===1,onClick:()=>d(e-1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"left"})}),o.map((u,m)=>u===at?l.jsx("span",{className:"inline-flex size-9 shrink-0 items-center justify-center text-neutral-text-secondary",children:l.jsx(R,{as:"span",variant:"bodySm",className:"text-inherit",children:"…"})},`ellipsis-${m}`):l.jsx("button",{type:"button","aria-current":u===e?"page":void 0,onClick:()=>d(u),className:_("inline-flex size-9 shrink-0 items-center justify-center rounded-lg transition-colors",u===e?"bg-neutral-surface-selected text-agilys-primary":"text-neutral-text-secondary hover:bg-neutral-surface-lightest"),children:l.jsx(R,{as:"span",variant:"bodySm",weight:"medium",className:"text-inherit",children:u})},u)),l.jsx("button",{type:"button","aria-label":"Próxima página",disabled:e===t,onClick:()=>d(e+1),className:"inline-flex size-9 shrink-0 items-center justify-center rounded-lg text-neutral-text-secondary transition-colors hover:bg-neutral-surface-lightest disabled:pointer-events-none disabled:opacity-40",children:l.jsx(qr,{direction:"right"})})]})});on.displayName="Pagination";const Cr=Pe("flex h-11 w-full bg-input-background min-w-0 border border-input-border items-center gap-2 rounded-lg px-3 transition-shadow focus-within:ring-1 focus-within:ring-input-focus",{variants:{hasError:{true:"ring-1 ring-danger-60 focus-within:ring-danger-60",false:""}},defaultVariants:{hasError:!1}}),ln=b.forwardRef(({className:e,containerClassName:t,label:r,leftIcon:s,rightIcon:n,bgIcon:a=!1,error:i,disabled:o,id:d,...u},m)=>{const y=b.useId(),g=d??y,A=typeof i=="string"?i:i==null?void 0:i.message,W=!!A,D=`${g}-error`;return l.jsxs("div",{className:_("flex w-full min-w-0 flex-col gap-1.5",t),children:[r&&l.jsx(R,{as:"label",htmlFor:g,variant:"body",className:"text-neutral-text-primary",children:r}),l.jsxs("div",{className:_(Cr({hasError:W}),o&&"pointer-events-none opacity-50"),children:[s&&l.jsx("span",{className:"flex size-6 shrink-0 items-center justify-center text-neutral-secondary","aria-hidden":"true",children:s}),l.jsx("input",{ref:m,id:g,disabled:o,"aria-invalid":W||void 0,"aria-describedby":W?D:void 0,className:_(`w-full min-w-0 flex-1 bg-transparent font-inter text-xs leading-relaxed
11
11
  font-normal text-black placeholder:font-inter placeholder:text-xs placeholder:leading-relaxed
12
- placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,e),...u}),n&&l.jsx("span",{className:_("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),W&&l.jsx(R,{as:"span",id:D,role:"alert",variant:"caption",className:"text-danger-60",children:A})]})});ln.displayName="Input";const jd=e=>typeof e.label=="string"?e.label:String(e.value),Jr=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Td=(e,t,r)=>{const s=Jr(t.trim());return s?e.filter(n=>Jr(r(n)).includes(s)):e},dn=b.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=jd,filterOptions:o,noOptionsText:d="Nenhuma opção encontrada",clearable:u=!0,placeholder:m="Selecione",label:y,name:g,leftIcon:A,rightIcon:W,bgIcon:D=!1,error:x,disabled:T,id:z,onKeyDown:q,onFocus:O,onBlur:B,...U},S)=>{const V=b.useId(),Z=z??V,J=`${Z}-listbox`,ae=typeof x=="string"?x:x==null?void 0:x.message,C=!!ae,Ke=`${Z}-error`,Re=s!==void 0,[pt,ze]=b.useState(n),Me=Re?s:pt,me=r.find(M=>M.value===Me),[H,De]=b.useState(!1),[X,Gt]=b.useState(""),[Pr,Xe]=b.useState(!1),[et,yt]=b.useState(0),Rr=b.useRef(null),Wr=b.useRef(null),mn=b.useCallback(M=>{Wr.current=M,typeof S=="function"?S(M):S&&(S.current=M)},[S]),Ne=b.useMemo(()=>Pr?o?o(r,X):Td(r,X,i):r,[Pr,r,X,o,i]),pn=H?X:me?i(me):"";b.useEffect(()=>{if(!H)return;const M=K=>{var Ee;(Ee=Rr.current)!=null&&Ee.contains(K.target)||(De(!1),Xe(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[H]),b.useEffect(()=>{if(!H)return;const M=Ne.findIndex(K=>K.value===Me);yt(M>=0?M:0)},[H,Ne,Me]);const gt=()=>{Gt(me?i(me):""),Xe(!1),De(!0)},Ir=()=>{De(!1),Xe(!1)},$t=M=>{var K;Re||ze(M?M.value:void 0),a==null||a(M?M.value:void 0,M),Ir(),(K=Wr.current)==null||K.focus()},yn=M=>{M.stopPropagation(),$t(null),Gt(""),Xe(!1),De(!0)},gn=M=>{if(q==null||q(M),!M.defaultPrevented)switch(M.key){case"ArrowDown":if(M.preventDefault(),!H){gt();break}yt(K=>Math.min(K+1,Ne.length-1));break;case"ArrowUp":if(M.preventDefault(),!H){gt();break}yt(K=>Math.max(K-1,0));break;case"Enter":M.preventDefault(),H&&Ne[et]&&$t(Ne[et]);break;case"Escape":H&&(M.preventDefault(),Ir());break}};return l.jsxs("div",{ref:Rr,className:_("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[y&&l.jsx(R,{as:"label",htmlFor:Z,variant:"body",className:"text-neutral-text-primary",children:y}),l.jsxs("div",{className:_(Cr({hasError:C}),T&&"pointer-events-none opacity-50"),children:[A&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:A}),l.jsx("input",{ref:mn,type:"text",id:Z,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":H,"aria-controls":J,"aria-invalid":C||void 0,"aria-describedby":C?Ke:void 0,"aria-activedescendant":H&&Ne[et]?`${J}-option-${et}`:void 0,disabled:T,placeholder:m,value:pn,onChange:M=>{Xe(!0),Gt(M.target.value),H||De(!0)},onFocus:M=>{gt(),O==null||O(M)},onBlur:B,onClick:()=>{H||gt()},onKeyDown:gn,className:_("w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...U}),u&&me&&!T&&l.jsx("button",{type:"button",tabIndex:-1,onClick:yn,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:l.jsx(ya,{className:"size-4"})}),l.jsx("span",{className:_("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",H&&"rotate-180",D&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:W??l.jsx(ga,{className:"size-4"})})]}),g&&l.jsx("input",{type:"hidden",name:g,value:Me??""}),H&&l.jsxs("ul",{id:J,role:"listbox","aria-labelledby":y?Z:void 0,className:"absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[Ne.length===0&&l.jsx("li",{className:"px-3 py-2",children:l.jsx(R,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:d})}),Ne.map((M,K)=>{const Ee=M.value===Me,bn=K===et;return l.jsx("li",{id:`${J}-option-${K}`,role:"option","aria-selected":Ee,onMouseEnter:()=>yt(K),onMouseDown:xn=>xn.preventDefault(),onClick:()=>$t(M),className:_("cursor-pointer truncate px-3 py-2",(bn||Ee)&&"bg-lightGray"),children:l.jsx(R,{as:"span",variant:"bodySm",className:_("truncate text-black",Ee&&"font-medium"),children:M.label})},K)})]}),C&&l.jsx(R,{as:"span",id:Ke,role:"alert",variant:"caption",className:"text-danger-60",children:ae})]})});dn.displayName="Select";function Cd(){return l.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const cn=b.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,className:o,contentClassName:d,...u},m)=>{const y=b.useId(),g=b.useRef(null),[A,W]=b.useState(!1);return b.useEffect(()=>W(!0),[]),b.useEffect(()=>{var T;if(!e)return;const D=document.body.style.overflow;document.body.style.overflow="hidden",(T=g.current)==null||T.focus();const x=z=>{z.key==="Escape"&&t()};return document.addEventListener("keydown",x),()=>{document.body.style.overflow=D,document.removeEventListener("keydown",x)}},[e,t]),!e||!A?null:vn.createPortal(l.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:l.jsxs("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":r?y:void 0,onClick:D=>D.stopPropagation(),className:_("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",o),...u,children:[i&&l.jsx("button",{ref:g,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:l.jsx(Cd,{})}),r&&l.jsx("div",{className:"pr-8",children:l.jsx(R,{as:"h2",id:y,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),l.jsx("div",{className:_("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",d),children:s}),n&&l.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:n})]})}),document.body)});cn.displayName="Modal";const un=Pe("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),fn=Pe("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),hn=b.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...o},d)=>{var q;const u=b.useId(),m=a??u,y=r!==void 0,[g,A]=b.useState(s??((q=t[0])==null?void 0:q.value)),W=y?r:g,D=b.useRef([]),x=O=>{O.disabled||(y||A(O.value),n==null||n(O.value,O))},T=O=>{var B;(B=D.current[O])==null||B.focus()},z=(O,B)=>{const U=t.map((V,Z)=>V.disabled?-1:Z).filter(V=>V!==-1),S=V=>{const Z=U.indexOf(B);if(Z===-1)return;const J=(Z+V+U.length)%U.length,ae=U[J];T(ae),x(t[ae])};switch(O.key){case"ArrowRight":O.preventDefault(),S(1);break;case"ArrowLeft":O.preventDefault(),S(-1);break;case"Home":O.preventDefault(),U.length&&(T(U[0]),x(t[U[0]]));break;case"End":if(O.preventDefault(),U.length){const V=U[U.length-1];T(V),x(t[V])}break}};return l.jsx("div",{ref:d,role:"tablist","aria-label":i,id:m,className:_(un(),e),...o,children:t.map((O,B)=>{const U=O.value===W;return l.jsx("button",{ref:S=>{D.current[B]=S},type:"button",role:"tab",id:`${m}-tab-${B}`,"aria-selected":U,"aria-disabled":O.disabled||void 0,disabled:O.disabled,tabIndex:U?0:-1,onClick:()=>x(O),onKeyDown:S=>z(S,B),className:_(fn({selected:U})),children:l.jsx(R,{as:"span",variant:"caption",weight:"medium",className:"text-inherit",children:O.label})},B)})})});hn.displayName="Tabs";exports.Avatar=Tr;exports.AvatarColumn=Od;exports.Badge=ls;exports.Button=is;exports.Card=lr;exports.Input=ln;exports.Modal=cn;exports.Notification=sn;exports.Pagination=on;exports.Select=dn;exports.Table=Md;exports.TableCell=ir;exports.TableCheckbox=Tt;exports.TableHeadCell=Ct;exports.Tabs=hn;exports.Text=R;exports.avatarVariants=an;exports.badgeVariants=os;exports.buttonVariants=as;exports.cardVariants=ds;exports.cn=_;exports.inputVariants=Cr;exports.tabVariants=fn;exports.tabsListVariants=un;exports.textVariants=ns;
12
+ placeholder:font-normal placeholder:text-neutral-secondary focus:outline-none disabled:cursor-not-allowed`,e),...u}),n&&l.jsx("span",{className:_("flex size-6 shrink-0 items-center justify-center text-neutral-secondary",a&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:n})]}),W&&l.jsx(R,{as:"span",id:D,role:"alert",variant:"caption",className:"text-danger-60",children:A})]})});ln.displayName="Input";const jd=e=>typeof e.label=="string"?e.label:String(e.value),Jr=e=>e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),Td=(e,t,r)=>{const s=Jr(t.trim());return s?e.filter(n=>Jr(r(n)).includes(s)):e},dn=b.forwardRef(({className:e,containerClassName:t,options:r,value:s,defaultValue:n,onChange:a,getOptionLabel:i=jd,filterOptions:o,noOptionsText:d="Nenhuma opção encontrada",clearable:u=!0,placeholder:m="Selecione",label:y,name:g,leftIcon:A,rightIcon:W,bgIcon:D=!1,error:x,disabled:T,id:F,onKeyDown:q,onFocus:O,onBlur:B,...U},S)=>{const V=b.useId(),Z=F??V,J=`${Z}-listbox`,ae=typeof x=="string"?x:x==null?void 0:x.message,C=!!ae,Ke=`${Z}-error`,Re=s!==void 0,[yt,Fe]=b.useState(n),Me=Re?s:yt,me=r.find(M=>M.value===Me),[H,De]=b.useState(!1),[X,Gt]=b.useState(""),[Pr,Xe]=b.useState(!1),[et,gt]=b.useState(0),Rr=b.useRef(null),Wr=b.useRef(null),mn=b.useCallback(M=>{Wr.current=M,typeof S=="function"?S(M):S&&(S.current=M)},[S]),Ne=b.useMemo(()=>Pr?o?o(r,X):Td(r,X,i):r,[Pr,r,X,o,i]),pn=H?X:me?i(me):"";b.useEffect(()=>{if(!H)return;const M=K=>{var Ee;(Ee=Rr.current)!=null&&Ee.contains(K.target)||(De(!1),Xe(!1))};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[H]),b.useEffect(()=>{if(!H)return;const M=Ne.findIndex(K=>K.value===Me);gt(M>=0?M:0)},[H,Ne,Me]);const bt=()=>{Gt(me?i(me):""),Xe(!1),De(!0)},Ir=()=>{De(!1),Xe(!1)},$t=M=>{var K;Re||Fe(M?M.value:void 0),a==null||a(M?M.value:void 0,M),Ir(),(K=Wr.current)==null||K.focus()},yn=M=>{M.stopPropagation(),$t(null),Gt(""),Xe(!1),De(!0)},gn=M=>{if(q==null||q(M),!M.defaultPrevented)switch(M.key){case"ArrowDown":if(M.preventDefault(),!H){bt();break}gt(K=>Math.min(K+1,Ne.length-1));break;case"ArrowUp":if(M.preventDefault(),!H){bt();break}gt(K=>Math.max(K-1,0));break;case"Enter":M.preventDefault(),H&&Ne[et]&&$t(Ne[et]);break;case"Escape":H&&(M.preventDefault(),Ir());break}};return l.jsxs("div",{ref:Rr,className:_("relative flex w-full min-w-0 flex-col gap-1.5",t),children:[y&&l.jsx(R,{as:"label",htmlFor:Z,variant:"body",className:"text-neutral-text-primary",children:y}),l.jsxs("div",{className:_(Cr({hasError:C}),T&&"pointer-events-none opacity-50"),children:[A&&l.jsx("span",{className:"inline-flex shrink-0","aria-hidden":"true",children:A}),l.jsx("input",{ref:mn,type:"text",id:Z,role:"combobox",autoComplete:"off","aria-autocomplete":"list","aria-haspopup":"listbox","aria-expanded":H,"aria-controls":J,"aria-invalid":C||void 0,"aria-describedby":C?Ke:void 0,"aria-activedescendant":H&&Ne[et]?`${J}-option-${et}`:void 0,disabled:T,placeholder:m,value:pn,onChange:M=>{Xe(!0),Gt(M.target.value),H||De(!0)},onFocus:M=>{bt(),O==null||O(M)},onBlur:B,onClick:()=>{H||bt()},onKeyDown:gn,className:_("w-full min-w-0 flex-1 truncate bg-transparent text-left font-sans text-xs leading-relaxed font-normal text-black placeholder:text-neutral-secondary/60 focus:outline-none disabled:cursor-not-allowed",e),...U}),u&&me&&!T&&l.jsx("button",{type:"button",tabIndex:-1,onClick:yn,"aria-label":"Limpar seleção",className:"flex size-5 shrink-0 items-center justify-center text-neutral-secondary hover:text-neutral-text-primary",children:l.jsx(ya,{className:"size-4"})}),l.jsx("span",{className:_("flex size-6 shrink-0 items-center justify-center text-neutral-secondary transition-transform",H&&"rotate-180",D&&"rounded-md bg-lightGray p-1"),"aria-hidden":"true",children:W??l.jsx(ga,{className:"size-4"})})]}),g&&l.jsx("input",{type:"hidden",name:g,value:Me??""}),H&&l.jsxs("ul",{id:J,role:"listbox","aria-labelledby":y?Z:void 0,className:"absolute left-0 top-full z-50 mt-1 max-h-60 w-full min-w-0 overflow-auto rounded-lg bg-white py-1 shadow-[0px_4px_12px_0px_rgba(0,0,0,0.15)]",children:[Ne.length===0&&l.jsx("li",{className:"px-3 py-2",children:l.jsx(R,{as:"span",variant:"bodySm",className:"text-neutral-secondary",children:d})}),Ne.map((M,K)=>{const Ee=M.value===Me,bn=K===et;return l.jsx("li",{id:`${J}-option-${K}`,role:"option","aria-selected":Ee,onMouseEnter:()=>gt(K),onMouseDown:xn=>xn.preventDefault(),onClick:()=>$t(M),className:_("cursor-pointer truncate px-3 py-2",(bn||Ee)&&"bg-lightGray"),children:l.jsx(R,{as:"span",variant:"bodySm",className:_("truncate text-black",Ee&&"font-medium"),children:M.label})},K)})]}),C&&l.jsx(R,{as:"span",id:Ke,role:"alert",variant:"caption",className:"text-danger-60",children:ae})]})});dn.displayName="Select";function Cd(){return l.jsx("svg",{className:"size-5",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:l.jsx("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}const cn=b.forwardRef(({open:e,onClose:t,title:r,children:s,footer:n,closeOnBackdropClick:a=!0,showCloseButton:i=!0,className:o,contentClassName:d,...u},m)=>{const y=b.useId(),g=b.useRef(null),[A,W]=b.useState(!1);return b.useEffect(()=>W(!0),[]),b.useEffect(()=>{var T;if(!e)return;const D=document.body.style.overflow;document.body.style.overflow="hidden",(T=g.current)==null||T.focus();const x=F=>{F.key==="Escape"&&t()};return document.addEventListener("keydown",x),()=>{document.body.style.overflow=D,document.removeEventListener("keydown",x)}},[e,t]),!e||!A?null:vn.createPortal(l.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center overflow-y-auto bg-black/40 p-4",onClick:a?t:void 0,children:l.jsxs("div",{ref:m,role:"dialog","aria-modal":"true","aria-labelledby":r?y:void 0,onClick:D=>D.stopPropagation(),className:_("relative flex w-full min-w-0 max-w-lg flex-col gap-6 rounded-xl bg-[#fcfcfc] p-6 shadow-[0px_0px_2px_0px_rgba(34,34,34,0.08)] sm:p-8",o),...u,children:[i&&l.jsx("button",{ref:g,type:"button",onClick:t,"aria-label":"Fechar",className:"absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-md text-neutral-text-secondary transition-colors hover:text-neutral-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary sm:right-5 sm:top-5",children:l.jsx(Cd,{})}),r&&l.jsx("div",{className:"pr-8",children:l.jsx(R,{as:"h2",id:y,variant:"h4",weight:"medium",className:"text-neutral-text-primary",children:r})}),l.jsx("div",{className:_("max-h-[70vh] min-w-0 overflow-y-auto overflow-x-hidden font-sans text-sm leading-relaxed text-neutral-text-secondary sm:text-base",d),children:s}),n&&l.jsx("div",{className:"flex flex-wrap items-center gap-2.5 pt-1",children:n})]})}),document.body)});cn.displayName="Modal";const un=Pe("flex w-full items-center gap-0.5 rounded-lg bg-lightGray p-1"),fn=Pe("flex min-w-0 flex-1 items-center justify-center whitespace-nowrap rounded-lg px-[22px] py-[11px] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-agilys-primary/40 disabled:pointer-events-none disabled:opacity-50",{variants:{selected:{true:"bg-agilys-primary text-white shadow-[0px_0px_2px_0px_rgba(0,0,0,0.1)]",false:"text-neutral-secondary hover:text-neutral-text-primary"}},defaultVariants:{selected:!1}}),hn=b.forwardRef(({className:e,options:t,value:r,defaultValue:s,onChange:n,id:a,"aria-label":i,...o},d)=>{var q;const u=b.useId(),m=a??u,y=r!==void 0,[g,A]=b.useState(s??((q=t[0])==null?void 0:q.value)),W=y?r:g,D=b.useRef([]),x=O=>{O.disabled||(y||A(O.value),n==null||n(O.value,O))},T=O=>{var B;(B=D.current[O])==null||B.focus()},F=(O,B)=>{const U=t.map((V,Z)=>V.disabled?-1:Z).filter(V=>V!==-1),S=V=>{const Z=U.indexOf(B);if(Z===-1)return;const J=(Z+V+U.length)%U.length,ae=U[J];T(ae),x(t[ae])};switch(O.key){case"ArrowRight":O.preventDefault(),S(1);break;case"ArrowLeft":O.preventDefault(),S(-1);break;case"Home":O.preventDefault(),U.length&&(T(U[0]),x(t[U[0]]));break;case"End":if(O.preventDefault(),U.length){const V=U[U.length-1];T(V),x(t[V])}break}};return l.jsx("div",{ref:d,role:"tablist","aria-label":i,id:m,className:_(un(),e),...o,children:t.map((O,B)=>{const U=O.value===W;return l.jsx("button",{ref:S=>{D.current[B]=S},type:"button",role:"tab",id:`${m}-tab-${B}`,"aria-selected":U,"aria-disabled":O.disabled||void 0,disabled:O.disabled,tabIndex:U?0:-1,onClick:()=>x(O),onKeyDown:S=>F(S,B),className:_(fn({selected:U})),children:l.jsx(R,{as:"span",variant:"caption",weight:"medium",className:"text-inherit",children:O.label})},B)})})});hn.displayName="Tabs";exports.Avatar=Tr;exports.Badge=ls;exports.Button=is;exports.Card=lr;exports.Input=ln;exports.Modal=cn;exports.Notification=sn;exports.Pagination=on;exports.Select=dn;exports.Table=Od;exports.TableAvatar=Nd;exports.TableCell=ir;exports.TableCheckbox=Ct;exports.TableHeadCell=Pt;exports.Tabs=hn;exports.Text=R;exports.avatarVariants=an;exports.badgeVariants=os;exports.buttonVariants=as;exports.cardVariants=ds;exports.cn=_;exports.inputVariants=Cr;exports.tabVariants=fn;exports.tabsListVariants=un;exports.textVariants=ns;
13
13
  //# sourceMappingURL=agilys-design-system.cjs.map