@articles-media/articles-dev-box 1.0.6 → 1.0.8

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.
@@ -22,4 +22,4 @@
22
22
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
23
23
  animation: grow-shrink 2s ease-in;
24
24
  }
25
- `}),s.jsxRuntimeExports.jsxs("div",{className:"articles-global-body",children:[s.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawsome/css/all.min.css"}),s.jsxRuntimeExports.jsx("div",{className:"content",children:s.jsxRuntimeExports.jsx("i",{className:"fas fa-thumbs-up"})})]})]})})}const n=e.memo(t);module.exports=n;
25
+ `}),s.jsxRuntimeExports.jsxs("div",{className:"articles-global-body",children:[s.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"}),s.jsxRuntimeExports.jsx("div",{className:"content",children:s.jsxRuntimeExports.jsx("i",{className:"fas fa-thumbs-up"})})]})]})})}const n=e.memo(t);module.exports=n;
@@ -32,7 +32,7 @@ function t(a) {
32
32
  "link",
33
33
  {
34
34
  rel: "stylesheet",
35
- href: "https://cdn.articles.media/fonts/fontawsome/css/all.min.css"
35
+ href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
36
36
  }
37
37
  ),
38
38
  /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("i", { className: "fas fa-thumbs-up" }) })
@@ -1 +1 @@
1
- "use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs");function e(){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawsome/css/all.min.css"})})}module.exports=e;
1
+ "use strict";const s=require("./jsx-runtime-nZSsnGb7.cjs");function e(){return s.jsxRuntimeExports.jsx("div",{children:s.jsxRuntimeExports.jsx("link",{rel:"stylesheet",href:"https://cdn.articles.media/fonts/fontawesome/css/all.min.css"})})}module.exports=e;
@@ -4,7 +4,7 @@ function t() {
4
4
  "link",
5
5
  {
6
6
  rel: "stylesheet",
7
- href: "https://cdn.articles.media/fonts/fontawsome/css/all.min.css"
7
+ href: "https://cdn.articles.media/fonts/fontawesome/css/all.min.css"
8
8
  }
9
9
  ) });
10
10
  }
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./jsx-runtime-nZSsnGb7.cjs"),h=require("react"),M=require("./toDate-CDU0W0Ek.cjs"),E=require("./Modal-Cr0uB770.cjs"),C=require("./Button-BVYvDTtH.cjs"),mn=require("react-dom"),_e=require("./index-Ddv_TnxK.cjs");function pn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ce=pn(h);let hn={};function qe(){return hn}function Ce(e,t){const n=qe(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=M.toDate(e,t?.in),i=s.getDay(),o=(i<r?7:0)+i-r;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function Ye(e,t){return Ce(e,{...t,weekStartsOn:1})}function It(e,t){const n=M.toDate(e,t?.in),r=n.getFullYear(),s=M.constructFrom(n,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const i=Ye(s),o=M.constructFrom(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const c=Ye(o);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function wt(e){const t=M.toDate(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function st(e,...t){const n=M.constructFrom.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function jt(e,t){const n=M.toDate(e,t?.in);return n.setHours(0,0,0,0),n}function xn(e,t,n){const[r,s]=st(n?.in,e,t),i=jt(r),o=jt(s),c=+i-wt(i),u=+o-wt(o);return Math.round((c-u)/M.millisecondsInDay)}function vn(e,t){const n=It(e,t),r=M.constructFrom(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ye(r)}function Je(e,t){const n=+M.toDate(e)-+M.toDate(t);return n<0?-1:n>0?1:n}function gn(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function bn(e){return!(!gn(e)&&typeof e!="number"||isNaN(+M.toDate(e)))}function yn(e,t,n){const[r,s]=st(n?.in,e,t),i=r.getFullYear()-s.getFullYear(),o=r.getMonth()-s.getMonth();return i*12+o}function wn(e,t){const n=M.toDate(e,t?.in);return n.setHours(23,59,59,999),n}function jn(e,t){const n=M.toDate(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function En(e,t){const n=M.toDate(e,t?.in);return+wn(n,t)==+jn(n,t)}function Rn(e,t,n){const[r,s,i]=st(n?.in,e,e,t),o=Je(s,i),c=Math.abs(yn(s,i));if(c<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*c);let u=Je(s,i)===-o;En(r)&&c===1&&Je(r,i)===1&&(u=!1);const f=o*(c-+u);return f===0?0:f}function On(e,t){const n=M.toDate(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Nn={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dn=(e,t,n)=>{let r;const s=Nn[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Ke(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Mn={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Pn={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Sn={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kn={date:Ke({formats:Mn,defaultWidth:"full"}),time:Ke({formats:Pn,defaultWidth:"full"}),dateTime:Ke({formats:Sn,defaultWidth:"full"})},_n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Cn=(e,t,n,r)=>_n[e];function Ne(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,c=n?.width?String(n.width):o;s=e.formattingValues[c]||e.formattingValues[o]}else{const o=e.defaultWidth,c=n?.width?String(n.width):e.defaultWidth;s=e.values[c]||e.values[o]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}const Tn={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},An={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Wn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fn={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Bn={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$n={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ln=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Yn={ordinalNumber:Ln,era:Ne({values:Tn,defaultWidth:"wide"}),quarter:Ne({values:An,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ne({values:Wn,defaultWidth:"wide"}),day:Ne({values:Fn,defaultWidth:"wide"}),dayPeriod:Ne({values:Bn,defaultWidth:"wide",formattingValues:$n,defaultFormattingWidth:"wide"})};function De(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const o=i[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?qn(c,m=>m.test(o)):Un(c,m=>m.test(o));let f;f=e.valueCallback?e.valueCallback(u):u,f=n.valueCallback?n.valueCallback(f):f;const l=t.slice(o.length);return{value:f,rest:l}}}function Un(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qn(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Hn(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let o=e.valueCallback?e.valueCallback(i[0]):i[0];o=n.valueCallback?n.valueCallback(o):o;const c=t.slice(s.length);return{value:o,rest:c}}}const In=/^(\d+)(th|st|nd|rd)?/i,Vn=/\d+/i,Xn={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zn={any:[/^b/i,/^(a|c)/i]},Qn={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gn={any:[/1/i,/2/i,/3/i,/4/i]},Jn={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kn={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Zn={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},er={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tr={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},nr={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rr={ordinalNumber:Hn({matchPattern:In,parsePattern:Vn,valueCallback:e=>parseInt(e,10)}),era:De({matchPatterns:Xn,defaultMatchWidth:"wide",parsePatterns:zn,defaultParseWidth:"any"}),quarter:De({matchPatterns:Qn,defaultMatchWidth:"wide",parsePatterns:Gn,defaultParseWidth:"any",valueCallback:e=>e+1}),month:De({matchPatterns:Jn,defaultMatchWidth:"wide",parsePatterns:Kn,defaultParseWidth:"any"}),day:De({matchPatterns:Zn,defaultMatchWidth:"wide",parsePatterns:er,defaultParseWidth:"any"}),dayPeriod:De({matchPatterns:tr,defaultMatchWidth:"any",parsePatterns:nr,defaultParseWidth:"any"})},sr={code:"en-US",formatDistance:Dn,formatLong:kn,formatRelative:Cn,localize:Yn,match:rr,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ar(e,t){const n=M.toDate(e,t?.in);return xn(n,On(n))+1}function ir(e,t){const n=M.toDate(e,t?.in),r=+Ye(n)-+vn(n);return Math.round(r/M.millisecondsInWeek)+1}function Vt(e,t){const n=M.toDate(e,t?.in),r=n.getFullYear(),s=qe(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=M.constructFrom(t?.in||e,0);o.setFullYear(r+1,0,i),o.setHours(0,0,0,0);const c=Ce(o,t),u=M.constructFrom(t?.in||e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const f=Ce(u,t);return+n>=+c?r+1:+n>=+f?r:r-1}function or(e,t){const n=qe(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=Vt(e,t),i=M.constructFrom(t?.in||e,0);return i.setFullYear(s,0,r),i.setHours(0,0,0,0),Ce(i,t)}function cr(e,t){const n=M.toDate(e,t?.in),r=+Ce(n,t)-+or(n,t);return Math.round(r/M.millisecondsInWeek)+1}function P(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const oe={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return P(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):P(n+1,2)},d(e,t){return P(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return P(e.getHours()%12||12,t.length)},H(e,t){return P(e.getHours(),t.length)},m(e,t){return P(e.getMinutes(),t.length)},s(e,t){return P(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),s=Math.trunc(r*Math.pow(10,n-3));return P(s,t.length)}},ge={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Et={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return oe.y(e,t)},Y:function(e,t,n,r){const s=Vt(e,r),i=s>0?s:1-s;if(t==="YY"){const o=i%100;return P(o,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):P(i,t.length)},R:function(e,t){const n=It(e);return P(n,t.length)},u:function(e,t){const n=e.getFullYear();return P(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return P(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return P(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return oe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return P(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const s=cr(e,r);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):P(s,t.length)},I:function(e,t,n){const r=ir(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):P(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):oe.d(e,t)},D:function(e,t,n){const r=ar(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):P(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return P(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const s=e.getDay(),i=(s-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return P(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),s=r===0?7:r;switch(t){case"i":return String(s);case"ii":return P(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let s;switch(r===12?s=ge.noon:r===0?s=ge.midnight:s=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let s;switch(r>=17?s=ge.evening:r>=12?s=ge.afternoon:r>=4?s=ge.morning:s=ge.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return oe.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):oe.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):P(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):oe.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):oe.s(e,t)},S:function(e,t){return oe.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return Ot(r);case"XXXX":case"XX":return de(r);default:return de(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return Ot(r);case"xxxx":case"xx":return de(r);default:return de(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Rt(r,":");default:return"GMT"+de(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Rt(r,":");default:return"GMT"+de(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return P(r,t.length)},T:function(e,t,n){return P(+e,t.length)}};function Rt(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=Math.trunc(r/60),i=r%60;return i===0?n+String(s):n+String(s)+t+P(i,2)}function Ot(e,t){return e%60===0?(e>0?"-":"+")+P(Math.abs(e)/60,2):de(e,t)}function de(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),s=P(Math.trunc(r/60),2),i=P(r%60,2);return n+s+t+i}const Nt=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Xt=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},ur=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Nt(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",Nt(r,t)).replace("{{time}}",Xt(s,t))},lr={p:Xt,P:ur},dr=/^D+$/,fr=/^Y+$/,mr=["D","DD","YY","YYYY"];function pr(e){return dr.test(e)}function hr(e){return fr.test(e)}function xr(e,t,n){const r=vr(e,t,n);if(console.warn(r),mr.includes(e))throw new RangeError(r)}function vr(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const gr=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,br=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yr=/^'([^]*?)'?$/,wr=/''/g,jr=/[a-zA-Z]/;function at(e,t,n){const r=qe(),s=r.locale??sr,i=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=M.toDate(e,n?.in);if(!bn(c))throw new RangeError("Invalid time value");let u=t.match(br).map(l=>{const m=l[0];if(m==="p"||m==="P"){const x=lr[m];return x(l,s.formatLong)}return l}).join("").match(gr).map(l=>{if(l==="''")return{isToken:!1,value:"'"};const m=l[0];if(m==="'")return{isToken:!1,value:Er(l)};if(Et[m])return{isToken:!0,value:l};if(m.match(jr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+m+"`");return{isToken:!1,value:l}});s.localize.preprocessor&&(u=s.localize.preprocessor(c,u));const f={firstWeekContainsDate:i,weekStartsOn:o,locale:s};return u.map(l=>{if(!l.isToken)return l.value;const m=l.value;(hr(m)||pr(m))&&xr(m,t,String(e));const x=Et[m[0]];return x(c,m,s.localize,f)}).join("")}function Er(e){const t=e.match(yr);return t?t[1].replace(wr,"'"):e}function Rr(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}const tt=2**31-1;function zt(e,t,n){const r=n-Date.now();e.current=r<=tt?setTimeout(t,r):setTimeout(()=>zt(e,t,n),tt)}function Or(){const e=Rr(),t=h.useRef();return E.useWillUnmount(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(s,i=0){e()&&(n(),i<=tt?t.current=setTimeout(s,i):zt(t,s,Date.now()+i))}return{set:r,clear:n,handleRef:t}},[])}var Ze,Dt;function Nr(){if(Dt)return Ze;Dt=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(s,i){var o=arguments.length;i=new Array(o>1?o-1:0);for(var c=1;c<o;c++)i[c-1]=arguments[c];var u=0,f="Warning: "+s.replace(/%s/g,function(){return i[u++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};t=function(r,s,i){var o=arguments.length;i=new Array(o>2?o-2:0);for(var c=2;c<o;c++)i[c-2]=arguments[c];if(s===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");r||n.apply(null,[s].concat(i))}}return Ze=t,Ze}var Dr=Nr();const Qt=C.getDefaultExportFromCjs(Dr);function Mr(e,t,n){var r=h.useRef(e!==void 0),s=h.useState(t),i=s[0],o=s[1],c=e!==void 0,u=r.current;return r.current=c,!c&&u&&i!==t&&o(t),[c?e:i,h.useCallback(function(f){for(var l=arguments.length,m=new Array(l>1?l-1:0),x=1;x<l;x++)m[x-1]=arguments[x];n&&n.apply(void 0,[f].concat(m)),o(f)},[n])]}function Mt(){return h.useState(null)}var Pt=Object.prototype.hasOwnProperty;function St(e,t,n){for(n of e.keys())if(Pe(n,t))return n}function Pe(e,t){var n,r,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Pe(e[r],t[r]););return r===-1}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if(s=r,s&&typeof s=="object"&&(s=St(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if(s=r[0],s&&typeof s=="object"&&(s=St(t,s),!s)||!Pe(r[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return r===-1}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Pt.call(e,n)&&++r&&!Pt.call(t,n)||!(n in t)||!Pe(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Pr(e){const t=E.useMounted();return[e[0],h.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var U="top",z="bottom",Q="right",q="left",it="auto",We=[U,z,Q,q],be="start",Te="end",Sr="clippingParents",Gt="viewport",Me="popper",kr="reference",kt=We.reduce(function(e,t){return e.concat([t+"-"+be,t+"-"+Te])},[]),Jt=[].concat(We,[it]).reduce(function(e,t){return e.concat([t,t+"-"+be,t+"-"+Te])},[]),_r="beforeRead",Cr="read",Tr="afterRead",Ar="beforeMain",Wr="main",Fr="afterMain",Br="beforeWrite",$r="write",Lr="afterWrite",Yr=[_r,Cr,Tr,Ar,Wr,Fr,Br,$r,Lr];function ee(e){return e.split("-")[0]}function I(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function me(e){var t=I(e).Element;return e instanceof t||e instanceof Element}function te(e){var t=I(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ot(e){if(typeof ShadowRoot>"u")return!1;var t=I(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var fe=Math.max,Ue=Math.min,ye=Math.round;function nt(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Kt(){return!/^((?!chrome|android).)*safari/i.test(nt())}function we(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&te(e)&&(s=e.offsetWidth>0&&ye(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ye(r.height)/e.offsetHeight||1);var o=me(e)?I(e):window,c=o.visualViewport,u=!Kt()&&n,f=(r.left+(u&&c?c.offsetLeft:0))/s,l=(r.top+(u&&c?c.offsetTop:0))/i,m=r.width/s,x=r.height/i;return{width:m,height:x,top:l,right:f+m,bottom:l+x,left:f,x:f,y:l}}function ct(e){var t=we(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Zt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ot(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return e?(e.nodeName||"").toLowerCase():null}function ae(e){return I(e).getComputedStyle(e)}function Ur(e){return["table","td","th"].indexOf(ue(e))>=0}function le(e){return((me(e)?e.ownerDocument:e.document)||window.document).documentElement}function He(e){return ue(e)==="html"?e:e.assignedSlot||e.parentNode||(ot(e)?e.host:null)||le(e)}function _t(e){return!te(e)||ae(e).position==="fixed"?null:e.offsetParent}function qr(e){var t=/firefox/i.test(nt()),n=/Trident/i.test(nt());if(n&&te(e)){var r=ae(e);if(r.position==="fixed")return null}var s=He(e);for(ot(s)&&(s=s.host);te(s)&&["html","body"].indexOf(ue(s))<0;){var i=ae(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function Fe(e){for(var t=I(e),n=_t(e);n&&Ur(n)&&ae(n).position==="static";)n=_t(n);return n&&(ue(n)==="html"||ue(n)==="body"&&ae(n).position==="static")?t:n||qr(e)||t}function ut(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Se(e,t,n){return fe(e,Ue(t,n))}function Hr(e,t,n){var r=Se(e,t,n);return r>n?n:r}function en(){return{top:0,right:0,bottom:0,left:0}}function tn(e){return Object.assign({},en(),e)}function nn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ir=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tn(typeof t!="number"?t:nn(t,We))};function Vr(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,c=ee(n.placement),u=ut(c),f=[q,Q].indexOf(c)>=0,l=f?"height":"width";if(!(!i||!o)){var m=Ir(s.padding,n),x=ct(i),d=u==="y"?U:q,v=u==="y"?z:Q,b=n.rects.reference[l]+n.rects.reference[u]-o[u]-n.rects.popper[l],p=o[u]-n.rects.reference[u],w=Fe(i),g=w?u==="y"?w.clientHeight||0:w.clientWidth||0:0,N=b/2-p/2,y=m[d],O=g-x[l]-m[v],R=g/2-x[l]/2+N,D=Se(y,R,O),T=u;n.modifiersData[r]=(t={},t[T]=D,t.centerOffset=D-R,t)}}function Xr(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Zt(t.elements.popper,s)&&(t.elements.arrow=s))}const zr={name:"arrow",enabled:!0,phase:"main",fn:Vr,effect:Xr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function je(e){return e.split("-")[1]}var Qr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gr(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:ye(n*s)/s||0,y:ye(r*s)/s||0}}function Ct(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,m=e.isFixed,x=o.x,d=x===void 0?0:x,v=o.y,b=v===void 0?0:v,p=typeof l=="function"?l({x:d,y:b}):{x:d,y:b};d=p.x,b=p.y;var w=o.hasOwnProperty("x"),g=o.hasOwnProperty("y"),N=q,y=U,O=window;if(f){var R=Fe(n),D="clientHeight",T="clientWidth";if(R===I(n)&&(R=le(n),ae(R).position!=="static"&&c==="absolute"&&(D="scrollHeight",T="scrollWidth")),R=R,s===U||(s===q||s===Q)&&i===Te){y=z;var A=m&&R===O&&O.visualViewport?O.visualViewport.height:R[D];b-=A-r.height,b*=u?1:-1}if(s===q||(s===U||s===z)&&i===Te){N=Q;var S=m&&R===O&&O.visualViewport?O.visualViewport.width:R[T];d-=S-r.width,d*=u?1:-1}}var _=Object.assign({position:c},f&&Qr),F=l===!0?Gr({x:d,y:b},I(n)):{x:d,y:b};if(d=F.x,b=F.y,u){var k;return Object.assign({},_,(k={},k[y]=g?"0":"",k[N]=w?"0":"",k.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+b+"px)":"translate3d("+d+"px, "+b+"px, 0)",k))}return Object.assign({},_,(t={},t[y]=g?b+"px":"",t[N]=w?d+"px":"",t.transform="",t))}function Jr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,c=n.roundOffsets,u=c===void 0?!0:c,f={placement:ee(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ct(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ct(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jr,data:{}};var Be={passive:!0};function Zr(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,c=o===void 0?!0:o,u=I(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach(function(l){l.addEventListener("scroll",n.update,Be)}),c&&u.addEventListener("resize",n.update,Be),function(){i&&f.forEach(function(l){l.removeEventListener("scroll",n.update,Be)}),c&&u.removeEventListener("resize",n.update,Be)}}const es={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zr,data:{}};var ts={left:"right",right:"left",bottom:"top",top:"bottom"};function $e(e){return e.replace(/left|right|bottom|top/g,function(t){return ts[t]})}var ns={start:"end",end:"start"};function Tt(e){return e.replace(/start|end/g,function(t){return ns[t]})}function lt(e){var t=I(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dt(e){return we(le(e)).left+lt(e).scrollLeft}function rs(e,t){var n=I(e),r=le(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,c=0,u=0;if(s){i=s.width,o=s.height;var f=Kt();(f||!f&&t==="fixed")&&(c=s.offsetLeft,u=s.offsetTop)}return{width:i,height:o,x:c+dt(e),y:u}}function ss(e){var t,n=le(e),r=lt(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=fe(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=fe(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-r.scrollLeft+dt(e),u=-r.scrollTop;return ae(s||n).direction==="rtl"&&(c+=fe(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:c,y:u}}function ft(e){var t=ae(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function rn(e){return["html","body","#document"].indexOf(ue(e))>=0?e.ownerDocument.body:te(e)&&ft(e)?e:rn(He(e))}function ke(e,t){var n;t===void 0&&(t=[]);var r=rn(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=I(r),o=s?[i].concat(i.visualViewport||[],ft(r)?r:[]):r,c=t.concat(o);return s?c:c.concat(ke(He(o)))}function rt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function as(e,t){var n=we(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function At(e,t,n){return t===Gt?rt(rs(e,n)):me(t)?as(t,n):rt(ss(le(e)))}function is(e){var t=ke(He(e)),n=["absolute","fixed"].indexOf(ae(e).position)>=0,r=n&&te(e)?Fe(e):e;return me(r)?t.filter(function(s){return me(s)&&Zt(s,r)&&ue(s)!=="body"}):[]}function os(e,t,n,r){var s=t==="clippingParents"?is(e):[].concat(t),i=[].concat(s,[n]),o=i[0],c=i.reduce(function(u,f){var l=At(e,f,r);return u.top=fe(l.top,u.top),u.right=Ue(l.right,u.right),u.bottom=Ue(l.bottom,u.bottom),u.left=fe(l.left,u.left),u},At(e,o,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function sn(e){var t=e.reference,n=e.element,r=e.placement,s=r?ee(r):null,i=r?je(r):null,o=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(s){case U:u={x:o,y:t.y-n.height};break;case z:u={x:o,y:t.y+t.height};break;case Q:u={x:t.x+t.width,y:c};break;case q:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var f=s?ut(s):null;if(f!=null){var l=f==="y"?"height":"width";switch(i){case be:u[f]=u[f]-(t[l]/2-n[l]/2);break;case Te:u[f]=u[f]+(t[l]/2-n[l]/2);break}}return u}function Ae(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,c=n.boundary,u=c===void 0?Sr:c,f=n.rootBoundary,l=f===void 0?Gt:f,m=n.elementContext,x=m===void 0?Me:m,d=n.altBoundary,v=d===void 0?!1:d,b=n.padding,p=b===void 0?0:b,w=tn(typeof p!="number"?p:nn(p,We)),g=x===Me?kr:Me,N=e.rects.popper,y=e.elements[v?g:x],O=os(me(y)?y:y.contextElement||le(e.elements.popper),u,l,o),R=we(e.elements.reference),D=sn({reference:R,element:N,placement:s}),T=rt(Object.assign({},N,D)),A=x===Me?T:R,S={top:O.top-A.top+w.top,bottom:A.bottom-O.bottom+w.bottom,left:O.left-A.left+w.left,right:A.right-O.right+w.right},_=e.modifiersData.offset;if(x===Me&&_){var F=_[s];Object.keys(S).forEach(function(k){var B=[Q,z].indexOf(k)>=0?1:-1,W=[U,z].indexOf(k)>=0?"y":"x";S[k]+=F[W]*B})}return S}function cs(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?Jt:u,l=je(r),m=l?c?kt:kt.filter(function(v){return je(v)===l}):We,x=m.filter(function(v){return f.indexOf(v)>=0});x.length===0&&(x=m);var d=x.reduce(function(v,b){return v[b]=Ae(e,{placement:b,boundary:s,rootBoundary:i,padding:o})[ee(b)],v},{});return Object.keys(d).sort(function(v,b){return d[v]-d[b]})}function us(e){if(ee(e)===it)return[];var t=$e(e);return[Tt(e),t,Tt(t)]}function ls(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,c=o===void 0?!0:o,u=n.fallbackPlacements,f=n.padding,l=n.boundary,m=n.rootBoundary,x=n.altBoundary,d=n.flipVariations,v=d===void 0?!0:d,b=n.allowedAutoPlacements,p=t.options.placement,w=ee(p),g=w===p,N=u||(g||!v?[$e(p)]:us(p)),y=[p].concat(N).reduce(function(X,K){return X.concat(ee(K)===it?cs(t,{placement:K,boundary:l,rootBoundary:m,padding:f,flipVariations:v,allowedAutoPlacements:b}):K)},[]),O=t.rects.reference,R=t.rects.popper,D=new Map,T=!0,A=y[0],S=0;S<y.length;S++){var _=y[S],F=ee(_),k=je(_)===be,B=[U,z].indexOf(F)>=0,W=B?"width":"height",Y=Ae(t,{placement:_,boundary:l,rootBoundary:m,altBoundary:x,padding:f}),V=B?k?Q:q:k?z:U;O[W]>R[W]&&(V=$e(V));var pe=$e(V),ne=[];if(i&&ne.push(Y[F]<=0),c&&ne.push(Y[V]<=0,Y[pe]<=0),ne.every(function(X){return X})){A=_,T=!1;break}D.set(_,ne)}if(T)for(var ie=v?3:1,Ee=function(K){var re=y.find(function(xe){var G=D.get(xe);if(G)return G.slice(0,K).every(function(Re){return Re})});if(re)return A=re,"break"},$=ie;$>0;$--){var he=Ee($);if(he==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const ds={name:"flip",enabled:!0,phase:"main",fn:ls,requiresIfExists:["offset"],data:{_skip:!1}};function Wt(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ft(e){return[U,Q,z,q].some(function(t){return e[t]>=0})}function fs(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Ae(t,{elementContext:"reference"}),c=Ae(t,{altBoundary:!0}),u=Wt(o,r),f=Wt(c,s,i),l=Ft(u),m=Ft(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":m})}const ms={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:fs};function ps(e,t,n){var r=ee(e),s=[q,U].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],c=i[1];return o=o||0,c=(c||0)*s,[q,Q].indexOf(r)>=0?{x:c,y:o}:{x:o,y:c}}function hs(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=Jt.reduce(function(l,m){return l[m]=ps(m,t.rects,i),l},{}),c=o[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=o}const xs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hs};function vs(e){var t=e.state,n=e.name;t.modifiersData[n]=sn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const gs={name:"popperOffsets",enabled:!0,phase:"read",fn:vs,data:{}};function bs(e){return e==="x"?"y":"x"}function ys(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,c=o===void 0?!1:o,u=n.boundary,f=n.rootBoundary,l=n.altBoundary,m=n.padding,x=n.tether,d=x===void 0?!0:x,v=n.tetherOffset,b=v===void 0?0:v,p=Ae(t,{boundary:u,rootBoundary:f,padding:m,altBoundary:l}),w=ee(t.placement),g=je(t.placement),N=!g,y=ut(w),O=bs(y),R=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,A=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,S=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(R){if(i){var k,B=y==="y"?U:q,W=y==="y"?z:Q,Y=y==="y"?"height":"width",V=R[y],pe=V+p[B],ne=V-p[W],ie=d?-T[Y]/2:0,Ee=g===be?D[Y]:T[Y],$=g===be?-T[Y]:-D[Y],he=t.elements.arrow,X=d&&he?ct(he):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:en(),re=K[B],xe=K[W],G=Se(0,D[Y],X[Y]),Re=N?D[Y]/2-ie-G-re-S.mainAxis:Ee-G-re-S.mainAxis,Ie=N?-D[Y]/2+ie+G+xe+S.mainAxis:$+G+xe+S.mainAxis,L=t.elements.arrow&&Fe(t.elements.arrow),ve=L?y==="y"?L.clientTop||0:L.clientLeft||0:0,Oe=(k=_?.[y])!=null?k:0,pt=V+Re-Oe-ve,ht=V+Ie-Oe,Ve=Se(d?Ue(pe,pt):pe,V,d?fe(ne,ht):ne);R[y]=Ve,F[y]=Ve-V}if(c){var Xe,ze=y==="x"?U:q,Qe=y==="x"?z:Q,Z=R[O],j=O==="y"?"height":"width",H=Z+p[ze],xt=Z-p[Qe],Ge=[U,q].indexOf(w)!==-1,vt=(Xe=_?.[O])!=null?Xe:0,gt=Ge?H:Z-D[j]-T[j]-vt+S.altAxis,bt=Ge?Z+D[j]+T[j]-vt-S.altAxis:xt,yt=d&&Ge?Hr(gt,Z,bt):Se(d?gt:H,Z,d?bt:xt);R[O]=yt,F[O]=yt-Z}t.modifiersData[r]=F}}const ws={name:"preventOverflow",enabled:!0,phase:"main",fn:ys,requiresIfExists:["offset"]};function js(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Es(e){return e===I(e)||!te(e)?lt(e):js(e)}function Rs(e){var t=e.getBoundingClientRect(),n=ye(t.width)/e.offsetWidth||1,r=ye(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Os(e,t,n){n===void 0&&(n=!1);var r=te(t),s=te(t)&&Rs(t),i=le(t),o=we(e,s,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((ue(t)!=="body"||ft(i))&&(c=Es(t)),te(t)?(u=we(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=dt(i))),{x:o.left+c.scrollLeft-u.x,y:o.top+c.scrollTop-u.y,width:o.width,height:o.height}}function Ns(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(c){if(!n.has(c)){var u=t.get(c);u&&s(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function Ds(e){var t=Ns(e);return Yr.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function Ms(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ps(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Bt={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ss(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Bt:s;return function(c,u,f){f===void 0&&(f=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bt,i),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},m=[],x=!1,d={state:l,setOptions:function(w){var g=typeof w=="function"?w(l.options):w;b(),l.options=Object.assign({},i,l.options,g),l.scrollParents={reference:me(c)?ke(c):c.contextElement?ke(c.contextElement):[],popper:ke(u)};var N=Ds(Ps([].concat(r,l.options.modifiers)));return l.orderedModifiers=N.filter(function(y){return y.enabled}),v(),d.update()},forceUpdate:function(){if(!x){var w=l.elements,g=w.reference,N=w.popper;if($t(g,N)){l.rects={reference:Os(g,Fe(N),l.options.strategy==="fixed"),popper:ct(N)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(S){return l.modifiersData[S.name]=Object.assign({},S.data)});for(var y=0;y<l.orderedModifiers.length;y++){if(l.reset===!0){l.reset=!1,y=-1;continue}var O=l.orderedModifiers[y],R=O.fn,D=O.options,T=D===void 0?{}:D,A=O.name;typeof R=="function"&&(l=R({state:l,options:T,name:A,instance:d})||l)}}}},update:Ms(function(){return new Promise(function(p){d.forceUpdate(),p(l)})}),destroy:function(){b(),x=!0}};if(!$t(c,u))return d;d.setOptions(f).then(function(p){!x&&f.onFirstUpdate&&f.onFirstUpdate(p)});function v(){l.orderedModifiers.forEach(function(p){var w=p.name,g=p.options,N=g===void 0?{}:g,y=p.effect;if(typeof y=="function"){var O=y({state:l,name:w,instance:d,options:N}),R=function(){};m.push(O||R)}})}function b(){m.forEach(function(p){return p()}),m=[]}return d}}const ks=Ss({defaultModifiers:[ms,gs,Kr,es,xs,ds,ws,zr]}),_s=["enabled","placement","strategy","modifiers"];function Cs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}const Ts={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},As={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const r=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);r.length?t.setAttribute("aria-describedby",r.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:r}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${n.id}`:n.id)}}},Ws=[];function Fs(e,t,n={}){let{enabled:r=!0,placement:s="bottom",strategy:i="absolute",modifiers:o=Ws}=n,c=Cs(n,_s);const u=h.useRef(o),f=h.useRef(),l=h.useCallback(()=>{var p;(p=f.current)==null||p.update()},[]),m=h.useCallback(()=>{var p;(p=f.current)==null||p.forceUpdate()},[]),[x,d]=Pr(h.useState({placement:s,update:l,forceUpdate:m,attributes:{},styles:{popper:{},arrow:{}}})),v=h.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const w={},g={};Object.keys(p.elements).forEach(N=>{w[N]=p.styles[N],g[N]=p.attributes[N]}),d({state:p,styles:w,attributes:g,update:l,forceUpdate:m,placement:p.placement})}}),[l,m,d]),b=h.useMemo(()=>(Pe(u.current,o)||(u.current=o),u.current),[o]);return h.useEffect(()=>{!f.current||!r||f.current.setOptions({placement:s,strategy:i,modifiers:[...b,v,Ts]})},[i,s,v,r,b]),h.useEffect(()=>{if(!(!r||e==null||t==null))return f.current=ks(e,t,Object.assign({},c,{placement:s,strategy:i,modifiers:[...b,As,v]})),()=>{f.current!=null&&(f.current.destroy(),f.current=void 0,d(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[r,e,t]),x}const Lt=()=>{};function Bs(e){return e.button===0}function $s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Le=e=>e&&("current"in e?e.current:e),Yt={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Ls(e,t=Lt,{disabled:n,clickTrigger:r="click"}={}){const s=h.useRef(!1),i=h.useRef(!1),o=h.useCallback(f=>{const l=Le(e);Qt(!!l,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!l||$s(f)||!Bs(f)||!!E.contains(l,f.target)||i.current,i.current=!1},[e]),c=E.useEventCallback(f=>{const l=Le(e);l&&E.contains(l,f.target)?i.current=!0:i.current=!1}),u=E.useEventCallback(f=>{s.current||t(f)});h.useEffect(()=>{var f,l;if(n||e==null)return;const m=E.ownerDocument(Le(e)),x=m.defaultView||window;let d=(f=x.event)!=null?f:(l=x.parent)==null?void 0:l.event,v=null;Yt[r]&&(v=E.listen(m,Yt[r],c,!0));const b=E.listen(m,r,o,!0),p=E.listen(m,r,g=>{if(g===d){d=void 0;return}u(g)});let w=[];return"ontouchstart"in m.documentElement&&(w=[].slice.call(m.body.children).map(g=>E.listen(g,"mousemove",Lt))),()=>{v?.(),b(),p(),w.forEach(g=>g())}},[e,n,r,o,c,u])}const Ys=()=>{};function Us(e,t,{disabled:n,clickTrigger:r}={}){const s=t||Ys;Ls(e,s,{disabled:n,clickTrigger:r});const i=E.useEventCallback(o=>{E.isEscKey(o)&&s(o)});h.useEffect(()=>{if(n||e==null)return;const o=E.ownerDocument(Le(e));let c=(o.defaultView||window).event;const u=E.listen(o,"keyup",f=>{if(f===c){c=void 0;return}i(f)});return()=>{u()}},[e,n,i])}function qs(e){const t={};return Array.isArray(e)?(e?.forEach(n=>{t[n.name]=n}),t):e||t}function Hs(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Is({enabled:e,enableEvents:t,placement:n,flip:r,offset:s,fixed:i,containerPadding:o,arrowElement:c,popperConfig:u={}}){var f,l,m,x;const d=qs(u.modifiers);return Object.assign({},u,{placement:n,enabled:e,strategy:i?"fixed":u.strategy,modifiers:Hs(Object.assign({},d,{eventListeners:{enabled:t,options:(f=d.eventListeners)==null?void 0:f.options},preventOverflow:Object.assign({},d.preventOverflow,{options:Object.assign({padding:o},(l=d.preventOverflow)==null?void 0:l.options)}),offset:{options:Object.assign({offset:s},(m=d.offset)==null?void 0:m.options)},arrow:Object.assign({},d.arrow,{enabled:!!c,options:Object.assign({},(x=d.arrow)==null?void 0:x.options,{element:c})}),flip:Object.assign({enabled:!!r},d.flip)}))})}const an=ce.forwardRef((e,t)=>{const{flip:n,offset:r,placement:s,containerPadding:i,popperConfig:o={},transition:c,runTransition:u}=e,[f,l]=Mt(),[m,x]=Mt(),d=E.useMergedRefs(l,t),v=E.useWaitForDOMRef(e.container),b=E.useWaitForDOMRef(e.target),[p,w]=h.useState(!e.show),g=Fs(b,f,Is({placement:s,enableEvents:!!e.show,containerPadding:i||5,flip:n,offset:r,arrowElement:m,popperConfig:o}));e.show&&p&&w(!1);const N=(..._)=>{w(!0),e.onExited&&e.onExited(..._)},y=e.show||!p;if(Us(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!y)return null;const{onExit:O,onExiting:R,onEnter:D,onEntering:T,onEntered:A}=e;let S=e.children(Object.assign({},g.attributes.popper,{style:g.styles.popper,ref:d}),{popper:g,placement:s,show:!!e.show,arrowProps:Object.assign({},g.attributes.arrow,{style:g.styles.arrow,ref:x})});return S=E.renderTransition(c,u,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:S,onExit:O,onExiting:R,onExited:N,onEnter:D,onEntering:T,onEntered:A}),v?mn.createPortal(S,v):null});an.displayName="Overlay";const Vs=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Xs=typeof document<"u",zs=Xs||Vs?h.useLayoutEffect:h.useEffect,on=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},s)=>(t=E.useBootstrapPrefix(t,"popover-header"),a.jsxRuntimeExports.jsx(n,{ref:s,className:C.classNames(e,t),...r})));on.displayName="PopoverHeader";const mt=ce.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},s)=>(t=E.useBootstrapPrefix(t,"popover-body"),a.jsxRuntimeExports.jsx(n,{ref:s,className:C.classNames(e,t),...r})));mt.displayName="PopoverBody";function cn(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function un(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ln=ce.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:s,body:i,arrowProps:o,hasDoneInitialMeasure:c,popper:u,show:f,...l},m)=>{const x=E.useBootstrapPrefix(e,"popover"),d=E.useIsRTL(),[v]=t?.split("-")||[],b=cn(v,d);let p=r;return f&&!c&&(p={...r,...un(u?.strategy)}),a.jsxRuntimeExports.jsxs("div",{ref:m,role:"tooltip",style:p,"x-placement":v,className:C.classNames(n,x,v&&`bs-popover-${b}`),...l,children:[a.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...o}),i?a.jsxRuntimeExports.jsx(mt,{children:s}):s]})});ln.displayName="Popover";const Qs=Object.assign(ln,{Header:on,Body:mt,POPPER_OFFSET:[0,8]}),dn=ce.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:r,children:s,arrowProps:i,hasDoneInitialMeasure:o,popper:c,show:u,...f},l)=>{e=E.useBootstrapPrefix(e,"tooltip");const m=E.useIsRTL(),[x]=t?.split("-")||[],d=cn(x,m);let v=r;return u&&!o&&(v={...r,...un(c?.strategy)}),a.jsxRuntimeExports.jsxs("div",{ref:l,style:v,role:"tooltip","x-placement":x,className:C.classNames(n,e,`bs-tooltip-${d}`),...f,children:[a.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...i}),a.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:s})]})});dn.displayName="Tooltip";const J=Object.assign(dn,{TOOLTIP_OFFSET:[0,6]});function Gs(e){const t=h.useRef(null),n=E.useBootstrapPrefix(void 0,"popover"),r=E.useBootstrapPrefix(void 0,"tooltip"),s=h.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(E.hasClass(t.current,n))return Qs.POPPER_OFFSET;if(E.hasClass(t.current,r))return J.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,r]);return[t,[s]]}function Js(e,t){const{ref:n}=e,{ref:r}=t;e.ref=n.__wrapped||(n.__wrapped=s=>n(E.safeFindDOMNode(s))),t.ref=r.__wrapped||(r.__wrapped=s=>r(E.safeFindDOMNode(s)))}const fn=ce.forwardRef(({children:e,transition:t=E.Fade,popperConfig:n={},rootClose:r=!1,placement:s="top",show:i=!1,...o},c)=>{const u=h.useRef({}),[f,l]=h.useState(null),[m,x]=Gs(o.offset),d=E.useMergedRefs$1(c,m),v=t===!0?E.Fade:t||void 0,b=E.useEventCallback$1(p=>{l(p),n==null||n.onFirstUpdate==null||n.onFirstUpdate(p)});return zs(()=>{f&&o.target&&(u.current.scheduleUpdate==null||u.current.scheduleUpdate())},[f,o.target]),h.useEffect(()=>{i||l(null)},[i]),a.jsxRuntimeExports.jsx(an,{...o,ref:d,popperConfig:{...n,modifiers:x.concat(n.modifiers||[]),onFirstUpdate:b},transition:v,rootClose:r,placement:s,show:i,children:(p,{arrowProps:w,popper:g,show:N})=>{var y;Js(p,w);const O=g?.placement,R=Object.assign(u.current,{state:g?.state,scheduleUpdate:g?.update,placement:O,outOfBoundaries:(g==null||(y=g.state)==null||(y=y.modifiersData.hide)==null?void 0:y.isReferenceHidden)||!1,strategy:n.strategy}),D=!!f;return typeof e=="function"?e({...p,placement:O,show:N,...!t&&N&&{className:"show"},popper:R,arrowProps:w,hasDoneInitialMeasure:D}):ce.cloneElement(e,{...p,placement:O,arrowProps:w,popper:R,hasDoneInitialMeasure:D,className:C.classNames(e.props.className,!t&&N&&"show"),style:{...e.props.style,...p.style}})}})});fn.displayName="Overlay";function Ks(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Ut(e,t,n){const[r]=t,s=r.currentTarget,i=r.relatedTarget||r.nativeEvent[n];(!i||i!==s)&&!E.contains(s,i)&&e(...t)}E.PropTypes.oneOf(["click","hover","focus"]);const se=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:r={},show:s,defaultShow:i=!1,onToggle:o,delay:c,placement:u,flip:f=u&&u.indexOf("auto")!==-1,...l})=>{const m=h.useRef(null),x=E.useMergedRefs$1(m,E.getChildRef(n)),d=Or(),v=h.useRef(""),[b,p]=Mr(s,i,o),w=Ks(c),{onFocus:g,onBlur:N,onClick:y}=typeof n!="function"?ce.Children.only(n).props:{},O=W=>{x(E.safeFindDOMNode(W))},R=h.useCallback(()=>{if(d.clear(),v.current="show",!w.show){p(!0);return}d.set(()=>{v.current==="show"&&p(!0)},w.show)},[w.show,p,d]),D=h.useCallback(()=>{if(d.clear(),v.current="hide",!w.hide){p(!1);return}d.set(()=>{v.current==="hide"&&p(!1)},w.hide)},[w.hide,p,d]),T=h.useCallback((...W)=>{R(),g?.(...W)},[R,g]),A=h.useCallback((...W)=>{D(),N?.(...W)},[D,N]),S=h.useCallback((...W)=>{p(!b),y?.(...W)},[y,p,b]),_=h.useCallback((...W)=>{Ut(R,W,"fromElement")},[R]),F=h.useCallback((...W)=>{Ut(D,W,"toElement")},[D]),k=e==null?[]:[].concat(e),B={ref:O};return k.indexOf("click")!==-1&&(B.onClick=S),k.indexOf("focus")!==-1&&(B.onFocus=T,B.onBlur=A),k.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&Qt(k.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),B.onMouseOver=_,B.onMouseOut=F),a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[typeof n=="function"?n(B):h.cloneElement(n,B),a.jsxRuntimeExports.jsx(fn,{...l,show:b,onHide:D,flip:f,placement:u,popperConfig:r,target:m.current,children:t})]})};function Zs(e){let t=e?.date,n=e?.format;return t?a.jsxRuntimeExports.jsx("span",{"date-renderer":"ArticlesDate",children:at(new Date(t),n||"MM/dd/yy - h:mmaa")}):"Need date prop"}function ea(e){const{profile_photo:t,width:n,alt:r,hideDefault:s,activityStatus:i,user_id:o}=e;return t?.key?a.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:`profile-photo-wrap ${n?"":"w-100 h-100"}`,style:{...n&&{width:n,height:n}},children:[a.jsxRuntimeExports.jsx(qt,{activityStatus:i,user_id:o}),a.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}${t.key}`,style:{objectFit:"contain"},alt:r||"Profile photo of a user"})]}):a.jsxRuntimeExports.jsxs("div",{"data-using-react-profile-photo":"true",className:C.classNames("profile-photo-wrap",{"w-100 h-100":!n,"d-none":s}),style:{...n&&{width:n,height:n}},children:[a.jsxRuntimeExports.jsx(qt,{activityStatus:i,user_id:o}),a.jsxRuntimeExports.jsx("img",{className:"w-100 h-100",src:`${process.env.NEXT_PUBLIC_CDN}profile_photos/starter/articles.jpg`,style:{objectFit:"contain"},alt:r||"Profile photo of a user"})]})}function qt({activityStatus:e,user_id:t}){if(!(!e||!t))return a.jsxRuntimeExports.jsx("div",{"data-user_id":t,className:C.classNames("online-status",{"status-online":e?.status=="Online"||t=="630f0b337c52851e754b03f7","status-offline":e?.status=="Offline","status-away":e?.status=="Away","activity-active":!1})})}const ta=e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)),na=_e.withMiddleware(_e.useSWR,ta),ra=e=>_e.axios.get(e.url,{params:{user_id:e.user_id}}).then(t=>t.data),sa={dedupingInterval:1e3*60*1,focusThrottleInterval:1e3*60*1},Ht=e=>{const{data:t,error:n,isLoading:r,isValidating:s,mutate:i}=na(e?.user_id?{url:process.env.NODE_ENV==="development"?"http://localhost:3001/api/user-public/getUserDetails":"https://articles.media/api/user-public/getUserDetails",user_id:e.user_id}:null,ra,sa);return{data:t,error:n,isLoading:r,isValidating:s,mutate:i}};function et({className:e,noOutline:t,children:n,inline:r}){const[i,o]=h.useState();if(h.useEffect(()=>{o(!0)},[]),n&&(!1)?.roles?.isDev&&i)return a.jsxRuntimeExports.jsx("div",{className:`is-dev-content ${t&&"no-outline"} ${e} ${r&&"d-inline-block"}`,children:n})}function aa({activeLayoutProposalSentiments:e}){return a.jsxRuntimeExports.jsx("div",{children:e.user_sentiments?.map(t=>a.jsxRuntimeExports.jsxs("div",{className:"card card-articles card-sm border mb-2",children:[a.jsxRuntimeExports.jsxs("div",{className:"card-header small",children:["Gave their sentiment on ",a.jsxRuntimeExports.jsx("b",{children:t.populated_proposal.title})]}),a.jsxRuntimeExports.jsxs("div",{className:"card-body small p-2",children:[a.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center border-bottom pb-1",children:[t.sentiment_status=="Agree"&&a.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-success",children:"Agree"}),t.sentiment_status=="Needs Work"&&a.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-warning text-dark",children:"Needs Work"}),t.sentiment_status=="Disagree"&&a.jsxRuntimeExports.jsx("div",{className:"badge shadow-articles bg-danger",children:"Disagree"}),a.jsxRuntimeExports.jsx("span",{className:"small ms-2",children:at(new Date(t.date),"M/dd/yy")})]}),a.jsxRuntimeExports.jsx("div",{className:"mt-1",children:t.comment})]}),a.jsxRuntimeExports.jsx("div",{className:"card-footer",children:a.jsxRuntimeExports.jsx(M.Link,{prefetch:!1,href:`https://articles.media/politics/proposals/${t.populated_proposal.url}?interaction_id=${t._id}`,children:a.jsxRuntimeExports.jsx(C.ArticlesButton,{small:!0,children:"View"})})})]},t._id))})}function ia(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}const oa=e=>_e.axios.get(e).then(t=>t.data),ca=e=>{const{data:t,error:n,isLoading:r,mutate:s}=_e.useSWR(process.env.NODE_ENV==="development"?"http://localhost:3001/api/news/resources/political-parties":"https://articles.media/api/news/resources/political-parties",oa,{dedupingInterval:6e5});return{data:t,error:n,isLoading:r,mutate:s}};function ua(e){const{populated_user:t,hidePhoto:n,visibleItems:r,size:s,className:i,dangerousPopulate:o,user_id:c,buttonType:u,children:f,fakeMembership:l}=e,[m,x]=h.useState(!1),[d,v]=h.useState({}),[b,p]=h.useState([]),[w,g]=h.useState([]),[N,y]=h.useState(null),[O,R]=h.useState([]),[D,T]=h.useState([]),[A,S]=h.useState(!1),_=!1,{data:F}=ca(),[k,B]=h.useState("Proposals Stance"),W=()=>{x(!1)};h.useEffect(()=>{t&&v({...t})},[]);const[Y,V]=h.useState(!1),[pe,ne]=h.useState([]),[ie,Ee]=h.useState([]),{data:$,mutate:he}=Ht((c||t?._id)&&(m||o)?{user_id:c||t?._id}:null),{data:X,mutate:K}=Ht(_?._id&&(m||o)?{user_id:_?._id}:null);h.useEffect(()=>{$&&(console.log("publicUserData",$),v($),p($?.populated_public_layouts),g($?.populated_public_donations),y($?.populated_public_donations.total),T($?.populated_public_proposals),ne($?.populated_public_proposals_stance),R($?.populated_public_news_submissions||[]))},[$]),h.useEffect(()=>{X&&(console.log("personalUserData",X),Ee(X?.populated_public_proposals_stance))},[X]);let re=(t||d)?.articles_membership?.plan.replace(" ","-").toLowerCase(),xe=l?.replace(" ","-").toLowerCase();const G="https://articles.media/images/store/memberships/",Re=()=>{let j=(t||d)?.articles_membership?.status=="Active";return a.jsxRuntimeExports.jsxs("div",{style:{position:"relative"}&&(s=="lg"?{fontSize:"1.5rem"}:{}),className:`view-user-modal-badge-wrap ${s=="lg"&&"large"} ${i&&i}`,children:[a.jsxRuntimeExports.jsxs("span",{onClick:()=>{x(!0)},className:"position-relative view-user-modal-badge d-flex justify-content-between align-items-center badge bg-articles-secondary shadow-articles badge-hover ",children:[(j||l)&&a.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${xe||re} fa-badge-check`,style:{position:"absolute",top:"-2px",left:"-2px",fontSize:"0.9rem",zIndex:1}}),a.jsxRuntimeExports.jsxs("div",{className:`d-flex align-items-center ${j&&""}`,children:[!n&&a.jsxRuntimeExports.jsx("div",{className:s=="lg"?"me-0":"me-1"}),d.display_name||t?.display_name]}),a.jsxRuntimeExports.jsx("i",{className:"fad fa-plus-square me-0 ms-2"})]}),r?.includes("Not Verified")&&t?.verified?.status!=="Verified"&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{style:{pointerEvents:"none"},id:"button-tooltip",children:a.jsxRuntimeExports.jsx("div",{className:"",children:"User is not verified"})}),children:a.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger d-flex align-items-center",children:[a.jsxRuntimeExports.jsx("i",{style:{paddingBottom:"2px"},className:"fas fa-robot me-1"}),a.jsxRuntimeExports.jsx("span",{className:"",children:"Unverified"})]})}),!1,r?.includes("Verification Status")&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{id:"button-tooltip",style:{pointerEvents:"none",transformX:"-20px"},children:t?.verified?.status=="Verified"?"Verified":" Not Verified"}),children:t?.verified?.status=="Verified"?a.jsxRuntimeExports.jsx("span",{className:"verification-user-badge badge bg-success cursor-pointer",children:a.jsxRuntimeExports.jsx("i",{className:"fas fa-check me-0"})}):a.jsxRuntimeExports.jsxs("span",{className:"verification-user-badge badge bg-danger cursor-pointer",children:[a.jsxRuntimeExports.jsx("i",{className:"fas fa-robot me-1"}),a.jsxRuntimeExports.jsx("span",{children:"?"})]})}),r?.includes("Political Party")&&a.jsxRuntimeExports.jsx("div",{className:"d-flex",children:(t||d)?.political?.party_id&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsxs(J,{id:"tooltip-bottom",style:{position:"fixed"},children:[a.jsxRuntimeExports.jsx("img",{width:"40px",height:"40px",style:{objectFit:"contain",padding:"0px",zIndex:"10",position:"relative"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+F?.find(H=>H._id==(t||d)?.political?.party_id)?.logo,alt:""}),a.jsxRuntimeExports.jsx("span",{className:"ms-2",children:F?.find(H=>H._id==(t||d)?.political?.party_id)?.name})]}),children:a.jsxRuntimeExports.jsx("div",{className:"badge bg-light text-capitalize ms-0 shadow-articles h-100 d-flex justify-content-center align-items-center",style:{padding:"0 0.15rem",cursor:"pointer"},children:(t||d)?.political?.party_id&&((t||d)?.political?.party_id=="62a830440593acbd4061c48c"?a.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):a.jsxRuntimeExports.jsx("img",{width:"15px",height:"15px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+F?.find(H=>H._id==(t||d)?.political?.party_id)?.logo,alt:""}))})})})]})};function Ie(j){return j==="Link"?a.jsxRuntimeExports.jsx("span",{type:"button",onClick:()=>{x(!0)},children:f}):a.jsxRuntimeExports.jsx(Re,{})}const[L,ve]=h.useState(!1),[Oe,pt]=h.useState({}),[ht,Ve]=h.useState({});h.useEffect(()=>{L&&Object.keys(Oe).length==0&&console.log("adminUserData",X)},[L]);const[Xe,ze]=h.useState(null);function Qe(){alert("TODO")}const Z=h.useMemo(()=>b?.filter(j=>j.user_layout)?.[0]?.url,[b]);return a.jsxRuntimeExports.jsxs(a.jsxRuntimeExports.Fragment,{children:[Ie(u),a.jsxRuntimeExports.jsxs(E.Modal,{show:m,size:"lg",id:"view-users-modal",className:"view-users-modal articles-modal",scrollable:!0,onHide:W,children:[a.jsxRuntimeExports.jsx(E.Modal.Header,{closeButton:!0,children:a.jsxRuntimeExports.jsx("div",{className:"w-100 d-flex justify-content-between align-items-center",children:a.jsxRuntimeExports.jsx("h3",{className:"mb-0",children:"User Info"})})}),a.jsxRuntimeExports.jsx(E.Modal.Body,{children:a.jsxRuntimeExports.jsxs("div",{className:"main-panel",children:[a.jsxRuntimeExports.jsxs("div",{className:"d-flex",children:[a.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column align-items-center",style:{width:"100px"},children:[a.jsxRuntimeExports.jsx("div",{type:"button",onClick:()=>{ze(`${process.env.NEXT_PUBLIC_CDN}${d?.profile_photo?.key}`)},children:a.jsxRuntimeExports.jsx(ea,{width:"100px",profile_photo:d?.profile_photo})}),a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{id:"tooltip-bottom",children:"Joined Articles Media"}),children:a.jsxRuntimeExports.jsxs("div",{className:"badge bg-black border border-white shadow-sm rounded-0",children:["Joined ",d?.sign_up_date&&at(new Date(d?.sign_up_date),"M/dd/yy")]})}),Z&&a.jsxRuntimeExports.jsx(M.Link,{href:`https://articles.media/layouts/${Z}`,className:"mt-2 w-100",children:a.jsxRuntimeExports.jsxs(C.ArticlesButton,{className:"w-100",style:{},children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-home"}),a.jsxRuntimeExports.jsx("span",{children:"Layout"})]})}),a.jsxRuntimeExports.jsx(et,{className:"w-100",children:a.jsxRuntimeExports.jsx(M.Link,{href:{pathname:"https://articles.media/messages",query:{startMsg:d?._id}},className:"mt-2 w-100",children:a.jsxRuntimeExports.jsxs(C.ArticlesButton,{className:"w-100",style:{fontSize:"0.88rem"},children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-envelope"}),a.jsxRuntimeExports.jsx("span",{children:"Message"})]})})}),L&&a.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column w-100 mt-2",style:{maxWidth:"100px"},children:[a.jsxRuntimeExports.jsx(C.ArticlesButton,{variant:"warning",small:!0,className:"",children:a.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Remove Photo"})}),Oe?.user?.profile_photo?.banned_uploads?a.jsxRuntimeExports.jsx(C.ArticlesButton,{variant:"warning",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:a.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Unban Uploads"})}):a.jsxRuntimeExports.jsx(C.ArticlesButton,{variant:"danger",small:!0,className:"",onClick:()=>{toggleBanCustomPhotoUpload()},children:a.jsxRuntimeExports.jsx(Textfit,{max:14,mode:"single",children:"Ban Uploads"})})]})]}),a.jsxRuntimeExports.jsxs("div",{className:"mx-2",children:[a.jsxRuntimeExports.jsxs("div",{className:"d-flex align-items-center mb-1",children:[a.jsxRuntimeExports.jsx("h5",{className:"mb-0",children:t?.display_name||d.display_name}),a.jsxRuntimeExports.jsxs("span",{className:"ms-2",children:[" @",d?.username]})]}),d?.articles_membership?.status=="Active"&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{id:"tooltip-bottom",children:a.jsxRuntimeExports.jsxs("div",{className:"d-flex flex-column py-1",children:[a.jsxRuntimeExports.jsxs("div",{className:"position-relative",children:[d?.articles_membership?.plan=="Supporter"&&a.jsxRuntimeExports.jsx("img",{src:`${G}supporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Premium Supporter"&&a.jsxRuntimeExports.jsx("img",{src:`${G}premiumSupporter.jpg`,width:50,height:50,alt:"Membership plan level"}),d?.articles_membership?.plan=="Advocate"&&a.jsxRuntimeExports.jsx("img",{src:`${G}advocate.jpg`,width:50,height:50,alt:"Membership plan level"}),a.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${re} fa-badge-check me-1`,style:{position:"absolute",top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)",fontSize:"1.5rem"}})]}),a.jsxRuntimeExports.jsxs("span",{className:"lh-sm",children:[a.jsxRuntimeExports.jsx("div",{children:d?.articles_membership?.plan}),a.jsxRuntimeExports.jsxs("div",{className:"small",children:["Since ",a.jsxRuntimeExports.jsx(Zs,{format:"MM/dd/yy",date:d?.articles_membership?.membership_started})]})]})]})}),children:a.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles border me-1 mb-1",style:{cursor:"pointer"},children:[a.jsxRuntimeExports.jsx("i",{className:`fad membership-badge ${re} fa-badge-check me-1`,style:{}}),a.jsxRuntimeExports.jsx("span",{children:d?.articles_membership?.plan}),a.jsxRuntimeExports.jsx("span",{className:"px-1",children:"|"}),a.jsxRuntimeExports.jsx("span",{className:"months fw-bold",children:Rn(new Date,new Date(d?.articles_membership?.membership_started))||0})]})}),d?.address?.state&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:d.address?.state?.length==2?a.jsxRuntimeExports.jsxs(J,{id:"tooltip-bottom",children:["From the state of ",convertRegion(d.address?.state,"name")?convertRegion(d.address?.state,"name")[0]:""]}):a.jsxRuntimeExports.jsxs(J,{id:"tooltip-bottom",children:["From the state of ",d.address?.state]}),children:a.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles-secondary border me-1 mb-1",children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-map-pin me-1"}),d.address?.state]})}),d.verified?.status!=="Verified"&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{id:"tooltip-bottom",children:"User is not verified"}),children:a.jsxRuntimeExports.jsxs("div",{className:"badge bg-danger shadow-articles me-1 mb-1",children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-robot me-1"}),"Unverified"]})}),d.verified?.status=="Verified"&&a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsxs(J,{id:"tooltip-bottom",className:"",children:[a.jsxRuntimeExports.jsxs("div",{children:["Verified by ",d.verified?.verified_methods?.length," method",d.verified?.verified_methods?.length>1&&"s"]}),a.jsxRuntimeExports.jsx("hr",{}),a.jsxRuntimeExports.jsx("div",{className:"pb-2",children:d.verified?.verified_methods?.map((j,H)=>Object.keys(j)?.length>0?a.jsxRuntimeExports.jsx("div",{className:"object",children:j?.method_name},H):a.jsxRuntimeExports.jsx("div",{className:"single",children:j},H))})]}),children:a.jsxRuntimeExports.jsxs("div",{className:"badge bg-articles-secondary border me-1 mb-1",children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-star me-1"}),d.verified?.status]})}),d.political?.party_id&&a.jsxRuntimeExports.jsx(a.jsxRuntimeExports.Fragment,{children:a.jsxRuntimeExports.jsx(se,{placement:"bottom",overlay:a.jsxRuntimeExports.jsx(J,{id:"tooltip-bottom",children:a.jsxRuntimeExports.jsx("div",{children:"Users political party"})}),children:a.jsxRuntimeExports.jsx(M.Link,{href:`https://articles.media/politics/parties/${(t||d)?.political?.party_id}`,children:a.jsxRuntimeExports.jsx("div",{className:"badge bg-articles-secondary border shadow-articles text-capitalize me-1",children:a.jsxRuntimeExports.jsxs("div",{className:"",children:[(t||d)?.political?.party_id=="62a830440593acbd4061c48c"?a.jsxRuntimeExports.jsx("i",{className:"fad fa-unlink unaffiliated-icon fa-lg me-0"}):a.jsxRuntimeExports.jsx("img",{width:"14px",height:"14px",style:{objectFit:"contain",padding:"0px"},loading:"lazy",src:`${process.env.NEXT_PUBLIC_CDN}`+F?.find(j=>j._id==d?.political?.party_id)?.logo,alt:""}),a.jsxRuntimeExports.jsx("span",{className:"ms-1",children:F?.find(j=>j._id==d.political?.party_id)?.name})]})})})})}),a.jsxRuntimeExports.jsx("hr",{}),a.jsxRuntimeExports.jsx("div",{className:"small",children:d?._id=="5e90cc96579a17440c5d7d52"&&a.jsxRuntimeExports.jsx("span",{children:"Founder of Articles Media, thank you for using the site, feel free to message me with any questions, concerns or anything else."})})]})]}),a.jsxRuntimeExports.jsx("hr",{}),L&&a.jsxRuntimeExports.jsxs("div",{children:[a.jsxRuntimeExports.jsx("div",{className:"d-flex align-items-center justify-content-between",children:a.jsxRuntimeExports.jsx("div",{className:"small",children:"Admin Mode Toolbar"})}),a.jsxRuntimeExports.jsxs("div",{children:[a.jsxRuntimeExports.jsxs("div",{className:"d-flex mb-2",children:[a.jsxRuntimeExports.jsx(C.ArticlesButton,{small:!0,variant:"warning",className:"",onClick:()=>{loadAdminUserData()},children:a.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})}),a.jsxRuntimeExports.jsx(C.ArticlesButton,{active:L?.edit,small:!0,className:"",onClick:()=>{ve({...L,edit:!L?.edit})},children:"Edit Mode"}),L?.edit&&a.jsxRuntimeExports.jsx(C.ArticlesButton,{small:!0,variant:"success",className:"me-0",onClick:()=>{Qe()},children:a.jsxRuntimeExports.jsx("i",{className:"fad fa-save me-0"})})]}),["User Details","Verification","Moderation","Bans","Stripe","Layouts","Reset Password","Sessions"].map(j=>a.jsxRuntimeExports.jsx(C.ArticlesButton,{active:j==L?.tab,small:!0,onClick:()=>{ve({...L,tab:j})},children:j},j))]}),a.jsxRuntimeExports.jsx("hr",{})]}),a.jsxRuntimeExports.jsxs("div",{className:"pe-3 pb-3",children:[a.jsxRuntimeExports.jsx("div",{className:"mb-2 me-2",children:[{name:"Proposals Stance",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:a.jsxRuntimeExports.jsxs("div",{className:"small",children:[a.jsxRuntimeExports.jsx("span",{children:ie?.fundamental?.filter(j=>ie?.user_sentiments?.find(H=>H.proposal_id==j._id)?j:null).length}),a.jsxRuntimeExports.jsx("span",{className:"px-1",children:"/"}),a.jsxRuntimeExports.jsx("span",{children:ie?.fundamental?.length})]})})},{name:"Proposal Sentiments",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_sentiments_count||0})},{name:"Proposal Comments",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_public_proposals_stance?.user_comments_count||0})},{name:"Proposal Submissions",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:D?.length||0})},{name:"News Comments",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d?.populated_news_comments_count||0})},{name:"News Submissions",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:O?.length||0})},{name:"Verifications",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:d.verified?.verified_methods?.length||0})},{name:"Layouts",badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:b?.length||0})},{name:"Donations",badge:a.jsxRuntimeExports.jsxs("span",{children:[a.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:$?.populated_public_donations?.count||0}),a.jsxRuntimeExports.jsxs("span",{className:"badge bg-black",children:["$",ia(($?.populated_public_donations.total/100).toFixed(2))]})]})},{name:"Orders",badge:a.jsxRuntimeExports.jsxs("span",{children:[a.jsxRuntimeExports.jsx("span",{className:"badge bg-primary ms-1",children:"0"}),a.jsxRuntimeExports.jsx("span",{className:"badge bg-black",children:"0"})]})},{name:"Achievements",dev:!0,badge:a.jsxRuntimeExports.jsx("span",{className:"badge bg-black ms-1",children:"0"})}].map(j=>(C.ArticlesButton,j.name==k,j.name,j.badge,j.name,j.dev?a.jsxRuntimeExports.jsx(et,{inline:!0,children:a.jsxRuntimeExports.jsxs(C.ArticlesButton,{onClick:()=>B(j.name),active:j.name==k,small:!0,children:[j.name,j.badge]},j.name)},j.name):a.jsxRuntimeExports.jsxs(C.ArticlesButton,{onClick:()=>B(j.name),active:j.name==k,small:!0,children:[j.name,j.badge]},j.name)))}),k=="Proposal Sentiments"&&a.jsxRuntimeExports.jsx(aa,{activeLayoutProposalSentiments:pe})]})]})}),a.jsxRuntimeExports.jsxs(E.Modal.Footer,{className:"justify-content-between",children:[_?._id=="5e90cc96579a17440c5d7d52"?a.jsxRuntimeExports.jsxs("span",{children:[a.jsxRuntimeExports.jsxs(et,{inline:!0,className:"me-2",children:[a.jsxRuntimeExports.jsxs(C.ArticlesButton,{onClick:()=>{ve(L?!1:{tab:""})},small:!0,active:L,variant:"",className:"me-1",children:[a.jsxRuntimeExports.jsx("i",{className:"fad fa-pen"}),a.jsxRuntimeExports.jsx("span",{children:"Admin Mode"})]}),a.jsxRuntimeExports.jsx(C.ArticlesButton,{onClick:()=>{he(),K()},small:!0,variant:"warning",className:"",children:a.jsxRuntimeExports.jsx("i",{className:"fad fa-redo me-0"})})]}),a.jsxRuntimeExports.jsx("span",{style:{fontSize:"0.8rem"},children:d?._id})]}):a.jsxRuntimeExports.jsx("span",{}),a.jsxRuntimeExports.jsx("div",{className:"justify-content-",children:a.jsxRuntimeExports.jsx(C.ArticlesButton,{variant:"articles",onClick:W,children:"Close"})})]})]})]})}module.exports=ua;