nntc-ui 0.2.18 → 0.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/data-display/VirtualTable/VirtualTable.d.ts +3 -1
- package/components/data-display/VirtualTable/VirtualTable.d.ts.map +1 -1
- package/components/data-display/VirtualTable/models/FilterBy.d.ts +3 -2
- package/components/data-display/VirtualTable/models/FilterBy.d.ts.map +1 -1
- package/components/data-display/VirtualTable/ui/HeaderDropdown/HeaderDropdown.d.ts +1 -1
- package/components/data-display/VirtualTable/ui/HeaderDropdown/HeaderDropdown.d.ts.map +1 -1
- package/components/data-display/VirtualTable/utils/rowMatchesFilter.d.ts.map +1 -1
- package/components/layout/Divider/Divider.d.ts +12 -0
- package/components/layout/Divider/Divider.d.ts.map +1 -0
- package/components/layout/Divider/index.d.ts +2 -0
- package/components/layout/Divider/index.d.ts.map +1 -0
- package/components/navigation/Tabs/Tabs.d.ts +2 -0
- package/components/navigation/Tabs/Tabs.d.ts.map +1 -1
- package/components/surfaces/Card/Card.d.ts +2 -2
- package/components/surfaces/Collapse/Collapse.d.ts +15 -0
- package/components/surfaces/Collapse/Collapse.d.ts.map +1 -0
- package/components/surfaces/Collapse/index.d.ts +2 -0
- package/components/surfaces/Collapse/index.d.ts.map +1 -0
- package/index.css +161 -4
- package/index.css.map +1 -1
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/models/CardSize.d.ts +2 -0
- package/models/CardSize.d.ts.map +1 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see index.mjs.LICENSE.txt */
|
|
2
|
-
import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=m;var O="$isDayjsObject",w=function(e){return e instanceof _||!(!e||!e[O])},S=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},j=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},P=b;P.l=S,P.i=w,P.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return P},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return j(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<j(e)},g.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,g):p(0,g+1);case a:var y=this.$locale().weekStart||0,O=(m<y?m+7:m)-y;return p(c?b-O:b+(6-O),g);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,c=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[P.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),h=function(e){var t=j(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return h(1);if(p===a)return h(7);var m=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return P.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(i,l,!0);case"A":return m(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=this,m=P.p(d),g=j(n),b=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return P.m(h,g)};switch(m){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:P.a(p)},g.daysInMonth=function(){return this.endOf(s).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return P.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),x=_.prototype;return j.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,_,j),e.$i=!0),j},j.locale=S,j.isDayjs=w,j.unix=function(e){return j(1e3*e)},j.en=y[v],j.Ls=y,j.p={},j}()},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}};const a={};function s(e){const t=a[e];if(void 0!==t)return t.exports;const n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c=s.cw(function(e,t){var n=je,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,l=n.useLayoutEffect,a=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return l(function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})},[e,n,t]),i(function(){return s(c)&&u({inst:c}),e(function(){s(c)&&u({inst:c})})},[e]),a(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c}),u=s.cw(function(e,t){e.exports=c()}),d={};s.r(d),s.d(d,{active:()=>Pe,compact:()=>_e,elevated:()=>xe,extraLarge:()=>Ce,filled:()=>Ae,large:()=>Ee,medium:()=>Re,onlyIcon:()=>ke,outlined:()=>De,root:()=>Me,small:()=>Le,stateLayer:()=>Ie,text:()=>Ne,textSecondary:()=>Te,tonal:()=>ze,withIcon:()=>Ve,withoutIcon:()=>Fe});var f={};s.r(f),s.d(f,{body1:()=>Ye,body2:()=>Je,body3:()=>Qe,button:()=>Ze,caption:()=>Xe,caption2:()=>$e,doubleCaption:()=>et,h1:()=>tt,h2:()=>nt,h3:()=>rt,h4:()=>ot,h5:()=>it,h6:()=>lt,h7:()=>at,label:()=>st,overline:()=>ct,subtitle1:()=>ut,subtitle2:()=>dt,subtitle3:()=>ft});var p={};s.r(p),s.d(p,{arrow:()=>qt,bottomArrow:()=>Bt,content:()=>Wt,error:()=>Kt,info:()=>Gt,leftArrow:()=>Ut,rightArrow:()=>Yt,success:()=>Jt,topArrow:()=>Qt,trigger:()=>Zt,warning:()=>Xt});var h={};s.r(h),s.d(h,{clickable:()=>ll,disabled:()=>al,extraLarge:()=>sl,filled:()=>cl,icon:()=>ul,large:()=>dl,medium:()=>fl,outlined:()=>pl,remove:()=>hl,root:()=>ml,small:()=>gl,text:()=>bl,withIcon:()=>vl});var m={};s.r(m),s.d(m,{divider:()=>ed,extraLarge:()=>td,item:()=>nd,itemActions:()=>rd,itemDescription:()=>od,itemDisabled:()=>id,itemIcon:()=>ld,itemSelected:()=>ad,itemTextBlock:()=>sd,itemTitle:()=>cd,itemTitleTop:()=>ud,large:()=>dd,medium:()=>fd,root:()=>pd,small:()=>hd,stateLayer:()=>md,virtualItem:()=>gd,virtualSpace:()=>bd,virtualized:()=>vd});var g={};s.r(g),s.d(g,{button:()=>Md,buttonsContainer:()=>Ld,calendarContainer:()=>Id,cell:()=>Nd,cellCircle:()=>Td,cellData:()=>zd,cellSelection:()=>Vd,cellSelectionFirst:()=>Fd,cellSelectionLast:()=>Hd,cellsContainer:()=>qd,dateTimeMode:()=>Bd,medium:()=>Wd,month:()=>Kd,monthCellSelection:()=>Gd,monthCellSelectionFirst:()=>Ud,monthCellSelectionLast:()=>Yd,monthView:()=>Jd,navigationArrow:()=>Qd,navigationContainer:()=>Zd,navigationTitle:()=>Xd,navigationValue:()=>$d,root:()=>ef,small:()=>tf,timeContainer:()=>nf,timeDivider:()=>rf,timeSelectionMarker:()=>of,year:()=>lf});var b={};s.r(b),s.d(b,{medium:()=>cp,root:()=>up,small:()=>dp});var v={};s.r(v),s.d(v,{medium:()=>Vh,modal:()=>Fh,overlay1:()=>Hh,overlay2:()=>qh,panel:()=>Bh,primary:()=>Wh,root:()=>Kh,small:()=>Gh});var y={};s.r(y),s.d(y,{alignCenter:()=>Xh,alignLeft:()=>$h,alignRight:()=>em,borderFrame:()=>tm,borderSpacer:()=>nm,bordersAll:()=>rm,bordersHorizontal:()=>om,bordersVertical:()=>im,bottomBorder:()=>lm,clickable:()=>am,editable:()=>sm,error:()=>cm,evenRow:()=>um,firstThRow:()=>dm,input:()=>fm,label:()=>pm,marginLeftChanging:()=>hm,medium:()=>mm,modalContent:()=>gm,pageLoadingLabel:()=>bm,pageLoadingLane:()=>vm,pageLoadingTrack:()=>ym,pageLoadingUp:()=>Om,rightBorder:()=>wm,rightBorderWithBottom:()=>Sm,root:()=>jm,rowButtonTrigger:()=>Pm,rowspanContent:()=>_m,selectRows:()=>xm,selected:()=>Cm,showInModal:()=>Am,small:()=>Em,sticky:()=>Rm,success:()=>km,table:()=>Dm,tableContainer:()=>Mm,td:()=>Lm,th:()=>Im,thCell:()=>Nm,thHiddenColumn:()=>Tm,thLeftBorder:()=>zm,thRightBorder:()=>Vm,tr:()=>Fm,verticalAlignCenter:()=>Hm,verticalAlignFlexEnd:()=>qm,verticalAlignFlexStart:()=>Bm,viewCell:()=>Wm,viewSpan:()=>Km});var O={};s.r(O),s.d(O,{clickable:()=>qg,filled:()=>Bg,icon:()=>Wg,iconClickable:()=>Kg,iconLeft:()=>Gg,iconRight:()=>Ug,iconRightSlot:()=>Yg,label:()=>Jg,medium:()=>Qg,outlined:()=>Zg,root:()=>Xg,secondary:()=>$g,small:()=>eb,withIcon:()=>tb});var w={};s.r(w),s.d(w,{_default:()=>db,error:()=>fb,icon:()=>pb,info:()=>hb,medium:()=>mb,message:()=>gb,root:()=>bb,small:()=>vb,success:()=>yb,warning:()=>Ob});var S={};s.r(S),s.d(S,{actions:()=>Cb,bodyFullSize:()=>Ab,bodyPadded:()=>Eb,bodyPaddedNoHeader:()=>Rb,header:()=>kb,headerOverlay:()=>Db,medium:()=>Mb,root:()=>Lb,small:()=>Ib});var j={};s.r(j),s.d(j,{disableBorder:()=>Hb,disabled:()=>qb,extraLarge:()=>Bb,filled:()=>Wb,filledTabs:()=>Kb,hasActions:()=>Gb,iconOnly:()=>Ub,large:()=>Yb,medium:()=>Jb,root:()=>Qb,scrollable:()=>Zb,selected:()=>Xb,selectedFilled:()=>$b,selectedItemFilled:()=>ev,small:()=>tv,tab:()=>nv,tabActions:()=>rv,tabBorder:()=>ov,tabBorderVertical:()=>iv,tabFilled:()=>lv,tabIcon:()=>av,tabItemFilled:()=>sv,tabTitle:()=>cv,tabVertical:()=>uv,vertical:()=>dv});const P=e=>"string"==typeof e,_=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},x=e=>null==e?"":String(e),C=/###/g,A=e=>e&&e.includes("###")?e.replace(C,"."):e,E=e=>!e||P(e),R=(e,t,n)=>{const r=P(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(E(e))return{};const t=A(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return E(e)?{}:{obj:e,k:A(r[o])}},k=(e,t,n)=>{const{obj:r,k:o}=R(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=R(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=R(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},D=(e,t)=>{const{obj:n,k:r}=R(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},M=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?P(e[r])||e[r]instanceof String||P(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):M(e[r],t[r],n):e[r]=t[r]);return e},L=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},N=e=>P(e)?e.replace(/[&<>"'\/]/g,e=>I[e]):e,T=[" ",",","?","!",";"],z=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),V=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},F=e=>e?.replace(/_/g,"-"),H={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class q{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||H,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>P(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),P(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new q(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new q(this.logger,e)}}var B=new q;class W{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class K extends W{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):P(n)&&o?l.push(...n.split(o)):l.push(n)));const a=D(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&P(n)?V(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),k(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(P(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=D(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?M(a,n,o):a={...a,...n},k(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var G={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const U=Symbol("i18next/PATH_KEY");function Y(e,t){const{[U]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===U?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(n.length>1&&o){const e=t?.ns,l=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(l&&(i?l:l.length>1?l.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const J=e=>!P(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Q extends W{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=B.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=J(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=T.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=z.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:P(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:P(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Y(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?Y(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const h=f?.usedKey||l,m=f?.exactUsedKey||l,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!P(r.count),y=Q.hasDefaultValue(r),O=v?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=v&&!r.ordinal&&0===r.count,j=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${O}`]||r[`defaultValue${w}`]||r.defaultValue;let _=p;b&&!p&&y&&(_=j);const x=J(_),C=Object.prototype.toString.apply(_);if(!(b&&_&&x)||["[object Number]","[object Function]","[object RegExp]"].includes(C)||P(g)&&Array.isArray(_))if(b&&P(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=j),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&j!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?j:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||j)})}):n(e,l,j))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,_,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(_),t=e?[]:{},n=e?m:h;for(const e in _)if(Object.prototype.hasOwnProperty.call(_,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:J(j)?j[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=_[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=P(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!P(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=P(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=G.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return P(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?Y(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!P(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(P(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!P(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class Z{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=B.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=F(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=F(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(P(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),P(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.options.fallbackLng,r=Array.isArray(n)?n.join("|"):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);const o=void 0===t||!1===t||P(t),i=void 0===t&&"function"==typeof this.options.fallbackLng;let l=null;if(P(e)&&o&&!i){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${n}`}if(null!==l){const e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}const a=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),s=[],c=e=>{e&&(this.isSupportedCode(e)?s.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return P(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):P(e)&&c(this.formatLanguageCode(e)),a.forEach(e=>{s.includes(e)||c(this.formatLanguageCode(e))}),null!==l?(this.resolveHierarchyCache[l]=s,s.slice()):s}}const X={zero:0,one:1,two:2,few:3,many:4,other:5},$={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class ee{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=B.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=F("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),$;if(!e.match(/-|_/))return $;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>X[e]-X[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const te=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=D(e,n);return void 0!==r?r:D(t,n)})(e,t,n);return!i&&o&&P(n)&&(i=V(e,n,r),void 0===i&&(i=V(t,n,r))),i},ne=e=>e.replace(/\$/g,"$$$$");class re{constructor(e={}){this.logger=B.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:N,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?L(o):i||"{{",this.suffix=l?L(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?L(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?L(c):"",this.nestingPrefix=d?L(d):f||L("$t("),this.nestingSuffix=p?L(p):h||L(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=te(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(te(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=P(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else P(i)||this.useRawValueToEscape||(i=x(i));const a=t.safeValue(i);if(e=e.replace(o[0],ne(a)),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${L(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!P(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!P(o))return o;P(o)||(o=x(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],ne(x(o))),this.regexp.lastIndex=0}return e}}const oe=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e(F(r),o),t[l]=a),a(n)}},ie=e=>(t,n,r)=>e(F(n),r)(t);class le{constructor(e={}){this.logger=B.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?oe:ie;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=oe(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator),i=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;i.push(t)}const l=i.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return l}}class ae extends W{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=B.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=R(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();P(e)&&(e=this.languageUtils.toResolveHierarchy(e)),P(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const se=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),P(e[1])&&(t.defaultValue=e[1]),P(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ce=e=>(P(e.ns)&&(e.ns=[e.ns]),P(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),P(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ue=()=>{};class de extends W{constructor(e={},t){var n;if(super(),this.options=ce(e),this.services={},this.logger=B,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(P(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=se();this.options={...n,...this.options,...ce(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?B.init(r(this.modules.logger),this.options):B.init(null,this.options),e=this.modules.formatter?this.modules.formatter:le;const t=new Z(this.options);this.store=new K(this.options.resources,this.options);const n=this.services;n.logger=B,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new ee(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new re(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new ae(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Q(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=ue),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=_(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=ue){let n=t;const r=P(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=_();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=ue),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&G.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=_();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=P(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(P(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,r){const o=r?.scopeNs,i=(e,t,...r)=>{let l;l="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs;const a=void 0!==l.ns&&null!==l.ns;l.ns=l.ns||i.ns,""!==l.keyPrefix&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const s={...this.options,...l};Array.isArray(o)&&!a&&(s.ns=o),"function"==typeof l.keyPrefix&&(l.keyPrefix=Y(l.keyPrefix,s));const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(e)?u=e.map(e=>("function"==typeof e&&(e=Y(e,s)),`${l.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=Y(e,s)),u=l.keyPrefix?`${l.keyPrefix}${c}${e}`:e),this.t(u,l)};return P(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=_();return this.options.ns?(P(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=_();P(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new Z(se());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new de(e,t);return n.createInstance=de.createInstance,n}cloneInstance(e={},t=ue){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new de(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new K(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...se().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new re(n)}return o.translator=new Q(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const fe=de.createInstance(),pe=(fe.createInstance,fe.dir,fe.init,fe.loadResources,fe.reloadResources,fe.use,fe.changeLanguage,fe.getFixedT,fe.t,fe.exists,fe.setDefaultNamespace,fe.hasLoadedNamespace,fe.loadNamespaces,fe.loadLanguages,/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g),he={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},me=e=>he[e];let ge,be={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(pe,me),transDefaultProps:void 0};const ve={type:"3rdParty",init(e){((e={})=>{be={...be,...e}})(e.options.react),(e=>{ge=e})(e)}},ye=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Search..."},"multiSelect":{"selectedItems":"Selected items"},"checklist":{"selected":"Selected","cancel":"Cancel","selectAll":"Select all"},"list":{"loading":"Loading...","notFound":"Nothing found"}},"view":{"virtualTable":{"sort":"Sort","AZ":"Asc","ZA":"Desc","sortAndFiltration":"Sort and filtration","uniqueValues":"Unique values","uniqueOnly":"Unique only","loadingData":"Loading data...","noValue":"< no value >"}}}}'),Oe=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Поиск..."},"multiSelect":{"selectedItems":"Выбрано элементов"},"checklist":{"selected":"Выбранное","cancel":"Отменить","selectAll":"Выбрать все"},"list":{"loading":"Загрузка...","notFound":"Ничего не найдено"}},"view":{"virtualTable":{"sort":"Сортировка","AZ":"По возрастанию","ZA":"По убыванию","sortAndFiltration":"Сортировка и фильтрация","uniqueValues":"Уникальность значений","uniqueOnly":"Только уникальные","loadingData":"Идёт загрузка данных...","noValue":"< нет значения >"}}}}');fe.use(ve).init({resources:{en:{translation:ye},ru:{translation:Oe}},lng:"ru",fallbackLng:"en",interpolation:{escapeValue:!1}});var we=s(942),Se=s.n(we);const je=e;var Pe="button-module__active__J1ZMQ",_e="button-module__compact___dXxT",xe="button-module__elevated__DfXlq",Ce="button-module__extraLarge__G1XhO",Ae="button-module__filled__tpB2J",Ee="button-module__large__QVzg5",Re="button-module__medium__NzTCo",ke="button-module__only-icon__MYlMe",De="button-module__outlined__U7Ix5",Me="button-module__root__d8Qm7",Le="button-module__small__yTLSt",Ie="button-module__state-layer__ZxKUR",Ne="button-module__text__ThaTQ",Te="button-module__text-secondary__UtgHY",ze="button-module__tonal__LGQFG",Ve="button-module__with-icon__JrK73",Fe="button-module__without-icon__xZxlu";const He=["variant","componentSize","icon","textSecondary","isActive","compact","className","children","classes"];function qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach(function(t){We(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ke=(0,je.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,textSecondary:a,isActive:s,compact:c,className:u,children:f,classes:p}=e,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,He);return n("button",Be(Be({className:Se()(Me,d[o],d[i],l?f?Ve:ke:Fe,s?Pe:void 0,a?Te:void 0,c?_e:void 0,u,p?.root)},h),{},{ref:t,children:r("span",{className:Se()(Ie,p?.stateLayer),children:[l,f]})}))});function Ge(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Ue=parseInt(je.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=Ge(r,t),o="function"==typeof e;n.push(o?e:()=>Ge(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)Ge(n,t)}},Ye="typography-module__body1__aH5C7",Je="typography-module__body2__tLnbZ",Qe="typography-module__body3__ArlMM",Ze="typography-module__button__QH0WB",Xe="typography-module__caption__Um0hc",$e="typography-module__caption2__ftlcn",et="typography-module__doubleCaption__DKOZy",tt="typography-module__h1__WhV07",nt="typography-module__h2__wu3B3",rt="typography-module__h3__g4nW1",ot="typography-module__h4__bevKW",it="typography-module__h5__zljak",lt="typography-module__h6__mAHOd",at="typography-module__h7__k_Iry",st="typography-module__label__jNXgm",ct="typography-module__overline__LOINe",ut="typography-module__subtitle1__D0BxG",dt="typography-module__subtitle2__DLkzN",ft="typography-module__subtitle3__Yqzol";const pt=["variant","component","children","className"];function ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ht(Object(n),!0).forEach(function(t){gt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bt=(0,je.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pt);return n(o||"span",mt(mt({className:Se()(f[r],l)},a),{},{ref:t,children:i}))});function vt(){const e=je;return"function"==typeof e.useId?e.useId():(0,je.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const yt=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function Ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ot(Object(n),!0).forEach(function(t){St(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function St(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jt=e=>n(yt,wt(wt({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach(function(t){xt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ct=e=>n(yt,_t(_t({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach(function(t){Rt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kt=e=>n(yt,Et(Et({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var Dt="checkbox-module__checkbox__yO066",Mt="checkbox-module__pressed__lPIee";const Lt=["label","several","componentSize","classes","id"];function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach(function(t){Tt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zt=(0,je.forwardRef)(function(e,o){const{label:i,several:l,componentSize:a="medium",classes:s,id:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lt),d=(0,je.useRef)(null),f=vt(),p=c??f;(0,je.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Mt),n=()=>e.classList.add(Mt);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h="large"===a?"subtitle1":"subtitle2";return r("div",{className:Se()("checkbox-module__root__AzwHw",s?.root),children:[n("input",Nt({ref:Ue([d,o]),type:"checkbox",className:Se()("checkbox-module__input__qmuqO",s?.input),id:p,title:i},u)),r("label",{htmlFor:p,className:Se()("checkbox-module__label__wmkmp",s?.label),title:i,children:[l?n("span",{className:Se()(Dt,"checkbox-module__several__MIC_C",s?.checkbox),children:n(kt,{})}):r(t,{children:[n("span",{className:Se()(Dt,"checkbox-module__deselected__xrQoR",s?.checkbox),children:n(jt,{})}),n("span",{className:Se()(Dt,"checkbox-module__selected__MsgZN",s?.checkbox),children:n(Ct,{})})]}),!!i&&n(bt,{variant:h,className:Se()("checkbox-module__label-text__uUcXJ",s?.labelText),children:i})]})]})}),Vt=new Uint8Array(16),Ft=[];for(let e=0;e<256;++e)Ft.push((e+256).toString(16).slice(1));const Ht=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Vt);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Ft[e[t+0]]+Ft[e[t+1]]+Ft[e[t+2]]+Ft[e[t+3]]+"-"+Ft[e[t+4]]+Ft[e[t+5]]+"-"+Ft[e[t+6]]+Ft[e[t+7]]+"-"+Ft[e[t+8]]+Ft[e[t+9]]+"-"+Ft[e[t+10]]+Ft[e[t+11]]+Ft[e[t+12]]+Ft[e[t+13]]+Ft[e[t+14]]+Ft[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var qt="tooltip-module__arrow__t3qHm",Bt="tooltip-module__bottom-arrow__BY759",Wt="tooltip-module__content__GmJjH",Kt="tooltip-module__error__asP80",Gt="tooltip-module__info__SGNDR",Ut="tooltip-module__left-arrow__Wpg7W",Yt="tooltip-module__right-arrow__qwOJk",Jt="tooltip-module__success__f_f_u",Qt="tooltip-module__top-arrow__k7G3S",Zt="tooltip-module__trigger__fBwzk",Xt="tooltip-module__warning__aZtHW";function $t(){return"undefined"!=typeof window}function en(e){return rn(e)?(e.nodeName||"").toLowerCase():"#document"}function tn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nn(e){var t;return null==(t=(rn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rn(e){return!!$t()&&(e instanceof Node||e instanceof tn(e).Node)}function on(e){return!!$t()&&(e instanceof Element||e instanceof tn(e).Element)}function ln(e){return!!$t()&&(e instanceof HTMLElement||e instanceof tn(e).HTMLElement)}function an(e){return!(!$t()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof tn(e).ShadowRoot)}function sn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function cn(e){return/^(table|td|th)$/.test(en(e))}function un(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const dn=/transform|translate|scale|rotate|perspective|filter/,fn=/paint|layout|strict|content/,pn=e=>!!e&&"none"!==e;let hn;function mn(e){const t=on(e)?vn(e):e;return pn(t.transform)||pn(t.translate)||pn(t.scale)||pn(t.rotate)||pn(t.perspective)||!gn()&&(pn(t.backdropFilter)||pn(t.filter))||dn.test(t.willChange||"")||fn.test(t.contain||"")}function gn(){return null==hn&&(hn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hn}function bn(e){return/^(html|body|#document)$/.test(en(e))}function vn(e){return tn(e).getComputedStyle(e)}function yn(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function On(e){if("html"===en(e))return e;const t=e.assignedSlot||e.parentNode||an(e)&&e.host||nn(e);return an(t)?t.host:t}function wn(e){const t=On(e);return bn(t)?(e.ownerDocument||e).body:ln(t)&&sn(t)?t:wn(t)}function Sn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=wn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=tn(o);if(i){const e=jn(l);return t.concat(l,l.visualViewport||[],sn(o)?o:[],e&&n?Sn(e):[])}return t.concat(o,Sn(o,[],n))}function jn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Pn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),_n="undefined"==typeof Element,xn=_n?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Cn=!_n&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},An=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):An(e.parentNode))},En=function(e,t,n){if(An(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Pn));return t&&xn.call(e,Pn)&&r.unshift(e),r.filter(n)},Rn=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!An(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=Rn(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{xn.call(i,Pn)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!An(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=Rn(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},kn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Dn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!kn(e)?0:e.tabIndex},Mn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ln=function(e){return"INPUT"===e.tagName},In=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Nn=function(e,t){return!(t.disabled||function(e){return Ln(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=xn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(xn.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return In(e)}else{if("function"==typeof r){for(var l=e;e;){var a=e.parentElement,s=Cn(e);if(a&&!a.shadowRoot&&!0===r(a))return In(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=l}if(function(e){var t,n,r,o,i=e&&Cn(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=Cn(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!xn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Tn=function(e,t){return!(function(e){return function(e){return Ln(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Cn(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Dn(t)<0||!Nn(e,t))},zn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Vn=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=Dn(e);return n<0&&t&&!kn(e)?0:n}(i,o),a=o?Vn(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(Mn).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Fn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Rn([e],t.includeContainer,{filter:Tn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:zn}):En(e,t.includeContainer,Tn.bind(null,t)),Vn(n)},Hn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==xn.call(e,Pn)&&Tn(t,e)};function qn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Bn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Wn(){return/apple/i.test(navigator.vendor)}function Kn(){const e=/android/i;return e.test(qn())||e.test(Bn())}function Gn(){return Bn().includes("jsdom/")}const Un="data-floating-ui-focusable";function Yn(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Jn(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&an(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Qn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Zn(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Xn(e){return(null==e?void 0:e.ownerDocument)||document}function $n(e){return ln(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function er(e){return!!e&&"combobox"===e.getAttribute("role")&&$n(e)}function tr(e){return e?e.hasAttribute(Un)?e:e.querySelector("["+Un+"]")||e:null}function nr(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...nr(e,t.id,n)])}function rr(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function or(e){e.preventDefault(),e.stopPropagation()}function ir(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var lr="undefined"!=typeof document?je.useLayoutEffect:function(){};function ar(e){const t=je.useRef(e);return lr(()=>{t.current=e}),t}const sr={...je}.useInsertionEffect||(e=>e());function cr(e){const t=je.useRef(()=>{});return sr(()=>{t.current=e}),je.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const ur=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function dr(e,t){const n=Fn(e,ur()),r=n.length;if(0===r)return;const o=Yn(Xn(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function fr(e){return dr(Xn(e).body,1)||e}function pr(e){return dr(Xn(e).body,-1)||e}function hr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Jn(n,r)}function mr(e){Fn(e,ur()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function gr(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const br=Math.min,vr=Math.max,yr=Math.round,Or=Math.floor,wr=e=>({x:e,y:e}),Sr={left:"right",right:"left",bottom:"top",top:"bottom"};function jr(e,t,n){return vr(e,br(t,n))}function Pr(e,t){return"function"==typeof e?e(t):e}function _r(e){return e.split("-")[0]}function xr(e){return e.split("-")[1]}function Cr(e){return"x"===e?"y":"x"}function Ar(e){return"y"===e?"height":"width"}function Er(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Rr(e){return Cr(Er(e))}function kr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Dr=["left","right"],Mr=["right","left"],Lr=["top","bottom"],Ir=["bottom","top"];function Nr(e){const t=_r(e);return Sr[t]+e.slice(t.length)}function Tr(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function zr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vr(e,t,n){let{reference:r,floating:o}=e;const i=Er(t),l=Rr(t),a=Ar(l),s=_r(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}const h=xr(t);return h&&(p[l]+=f*("end"===h?1:-1)*(n&&c?-1:1)),p}async function Fr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Pr(t,e),h=Tr(p),m=a[f?"floating"===d?"reference":"floating":d],g=zr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},O=zr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-O.top+h.top)/y.y,bottom:(O.bottom-g.bottom+h.bottom)/y.y,left:(g.left-O.left+h.left)/y.x,right:(O.right-g.right+h.right)/y.x}}const Hr=new Set(["left","top"]);function qr(e){const t=vn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ln(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=yr(n)!==i||yr(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Br(e){return on(e)?e:e.contextElement}function Wr(e){const t=Br(e);if(!ln(t))return wr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qr(t);let l=(i?yr(n.width):n.width)/r,a=(i?yr(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Kr=wr(0);function Gr(e){const t=tn(e);return gn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Kr}function Ur(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Br(e);let l=wr(1);t&&(r?on(r)&&(l=Wr(r)):l=Wr(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===tn(e)}(i,n,r)?Gr(i):wr(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i&&r){const e=tn(i),t=on(r)?tn(r):r;let n=e,o=jn(n);for(;o&&t!==n;){const e=Wr(o),t=o.getBoundingClientRect(),r=vn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=tn(o),o=jn(n)}}return zr({width:u,height:d,x:s,y:c})}function Yr(e,t){const n=yn(e).scrollLeft;return t?t.left+n:Ur(nn(e)).left+n}function Jr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Yr(e,n),y:n.top+t.scrollTop}}function Qr(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=tn(e),i=nn(e),l=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(l){const e=!gn()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(a=l.width,s=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(Yr(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:s,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=yn(e),n=e.ownerDocument.body,r=vr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=vr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Yr(e);const l=-t.scrollTop;return"rtl"===vn(n).direction&&(i+=vr(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(nn(e));else if(on(t))r=function(e,t){const n=Ur(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Wr(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Gr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return zr(r)}function Zr(e,t,n){const r=ln(t),o=nn(t),i="fixed"===n,l=Ur(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=wr(0);if((r||!i)&&(("body"!==en(t)||sn(o))&&(a=yn(t)),r)){const e=Ur(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=Yr(o));const c=!o||r||i?wr(0):Jr(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}function Xr(e){return"static"===vn(e).position}function $r(e,t){if(!ln(e)||"fixed"===vn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return nn(e)===n&&(n=n.ownerDocument.body),n}function eo(e,t){const n=tn(e);if(un(e))return n;if(!ln(e)){let t=On(e);for(;t&&!bn(t);){if(on(t)&&!Xr(t))return t;t=On(t)}return n}let r=$r(e,t);for(;r&&cn(r)&&Xr(r);)r=$r(r,t);return r&&bn(r)&&Xr(r)&&!mn(r)?n:r||function(e){let t=On(e);for(;ln(t)&&!bn(t);){if(mn(t))return t;if(un(t))return null;t=On(t)}return null}(e)||n}const to={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=nn(r),a=!!t&&un(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=wr(1);const u=wr(0),d=ln(r);if((d||!i)&&(("body"!==en(r)||sn(l))&&(s=yn(r)),d)){const e=Ur(r);c=Wr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?wr(0):Jr(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:nn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?un(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Sn(e,[],!1).filter(e=>on(e)&&"body"!==en(e)),o=null;const i="fixed"===vn(e).position;let l=i?On(e):e;for(;on(l)&&!bn(l);){const e=vn(l),t=mn(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=On(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Qr(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Qr(t,i[e],o);a=vr(n.top,a),s=br(n.right,s),c=br(n.bottom,c),u=vr(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:eo,getElementRects:async function(e){const t=this.getOffsetParent||eo,n=this.getDimensions,r=await n(e.floating);return{reference:Zr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=qr(e);return{width:t,height:n}},getScale:Wr,isElement:on,isRTL:function(e){return"rtl"===vn(e).direction}};function no(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ro(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Br(e),u=o||i?[...c?Sn(c):[],...t?Sn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t,n){let r,o=null;const i=nn(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),l();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;const h={rootMargin:-Or(d)+"px "+-Or(i.clientWidth-(u+f))+"px "+-Or(i.clientHeight-(d+p))+"px "+-Or(u)+"px",threshold:vr(0,br(1,s))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!no(c,e.getBoundingClientRect()))return a();if(n!==s){if(!m)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}const s=tn(e),c=()=>a(n);return s.addEventListener("resize",c),a(!0),()=>{s.removeEventListener("resize",c),l()}}(c,n,i):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let m=s?Ur(e):null;return s&&function t(){const r=Ur(e);m&&!no(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const oo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Pr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=_r(o),v=Er(a),y=_r(a)===a,O=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(y||!m?[Nr(a)]:function(e){const t=Nr(e);return[kr(e),t,kr(t)]}(a)),S="none"!==h;!f&&S&&w.push(...function(e,t,n,r){const o=xr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Mr:Dr:t?Dr:Mr;case"left":case"right":return t?Lr:Ir;default:return[]}}(_r(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(kr)))),i}(a,m,h,O));const j=[a,...w],P=await s.detectOverflow(t,g),_=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=xr(e),o=Rr(e),i=Ar(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Nr(l)),[l,Nr(l)]}(o,l,O);_.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:_}],!_.every(e=>e<=0)){var C,A;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=j[e];if(t&&("alignment"!==d||v===Er(t)||x.every(e=>Er(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(A=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var E;const e=null==(E=x.filter(e=>{if(S){const t=Er(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:E[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},io=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=Pr(e,t)||{};if(null==c)return{};const d=Tr(u),f={x:n,y:r},p=Rr(o),h=Ar(p),m=await l.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",O=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let j=S?S[y]:0;j&&await(null==l.isElement?void 0:l.isElement(S))||(j=a.floating[y]||i.floating[h]);const P=O/2-w/2,_=j/2-m[h]/2-1,x=br(d[b],_),C=br(d[v],_),A=j-m[h]-C,E=j/2-m[h]/2+P,R=jr(x,E,A),k=!s.arrow&&null!=xr(o)&&E!==R&&i.reference[h]/2-(E<x?x:C)-m[h]/2<0,D=k?E<x?E-x:E-A:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:E-R-D,...k&&{alignmentOffset:D}},reset:k}}}),lo=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...to,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Fr},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Vr(c,r,s),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:b}=m,{x:v,y,data:O,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[g]={...h[g],...O},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Vr(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var ao="undefined"!=typeof document?je.useLayoutEffect:function(){};function so(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!so(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||so(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function co(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const n=co(e);return Math.round(t*n)/n}function fo(e){const t=je.useRef(e);return ao(()=>{t.current=e}),t}const po=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=_r(n),a=xr(n),s="y"===Er(n),c=Hr.has(l)?-1:1,u=i&&s?-1:1,d=Pr(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ho=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Pr(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Er(o),p=Cr(f);let h=u[p],m=u[f];const g=(e,t)=>jr(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);l&&(h=g(p,h)),a&&(m=g(f,m));const b=s.fn({...t,[p]:h,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},mo=(e,t)=>{const n=oo(e);return{name:n.name,fn:n.fn,options:[e,t]}},go=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?io({element:n.current,padding:r}).fn(t):{}:n?io({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function bo(e){const t=je.useRef(void 0),n=je.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return je.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const vo="data-floating-ui-focusable",yo="active",Oo="selected",wo={...je};let So=!1,jo=0;const Po=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+jo++,_o=wo.useId||function(){const[e,t]=je.useState(()=>So?Po():void 0);return lr(()=>{null==e&&t(Po())},[]),je.useEffect(()=>{So=!0},[]),e};const xo=je.createContext(null),Co=je.createContext(null),Ao=()=>{var e;return(null==(e=je.useContext(xo))?void 0:e.id)||null},Eo=()=>je.useContext(Co);function Ro(e){return"data-floating-ui-"+e}function ko(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Do=Ro("safe-polygon");function Mo(e,t,n){if(n&&!ir(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function Lo(e){return"function"==typeof e?e():e}let Io=0;function No(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Io);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Io=requestAnimationFrame(i)}const To={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function zo(e){return"inert"===e?To.inert:"aria-hidden"===e?To["aria-hidden"]:To.none}let Vo=new WeakSet,Fo={},Ho=0;function qo(e){return e?an(e)?e.host:qo(e.parentNode):null}const Bo=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=qo(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Wo(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=Bo(t,e),a=new Set,s=new Set(l),c=[];Fo[o]||(Fo[o]=new WeakMap);const u=Fo[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==en(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=zo(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&Vo.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),Ho++,()=>{c.forEach(e=>{const t=zo(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Vo.has(e)&&i&&e.removeAttribute(i),Vo.delete(e)),r||e.removeAttribute(o)}),Ho--,Ho||(To.inert=new WeakMap,To["aria-hidden"]=new WeakMap,To.none=new WeakMap,Vo=new WeakSet,Fo={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Ko={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Go=je.forwardRef(function(e,t){const[r,o]=je.useState();lr(()=>{Wn()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Ro("focus-guard")]:"",style:Ko};return n("span",{...e,...i})}),Uo={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Yo=je.createContext(null),Jo=Ro("portal");function Qo(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=_o(),o=Zo(),[i,l]=je.useState(null),a=je.useRef(null);return lr(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),lr(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Jo,""),e.appendChild(n),a.current=n,l(n)},[t,r]),lr(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!rn(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Jo,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:i,root:l}),[c,u]=je.useState(null),d=je.useRef(null),f=je.useRef(null),p=je.useRef(null),h=je.useRef(null),m=null==c?void 0:c.modal,g=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return je.useEffect(()=>{if(s&&a&&!m)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&hr(e)&&("focusin"===e.type?gr:mr)(s)}},[s,a,m]),je.useEffect(()=>{s&&(g||gr(s))},[g,s]),r(Yo.Provider,{value:je.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:h,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n(Go,{"data-type":"outside",ref:d,onFocus:e=>{if(hr(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=pr(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Uo}),s&&o(t,s),b&&s&&n(Go,{"data-type":"outside",ref:f,onFocus:e=>{if(hr(e,s)){var t;null==(t=h.current)||t.focus()}else{const t=fr(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Zo=()=>je.useContext(Yo);function Xo(e){return je.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let $o=[];function ei(){$o=$o.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function ti(){ei();const e=$o[$o.length-1];return null==e?void 0:e.deref()}function ni(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=ur(),o=function(e,t){return(t=t||{}).getShadowRoot?Rn([e],t.includeContainer,{filter:Nn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):En(e,t.includeContainer,Nn.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return Hn(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const ri=je.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Ko})});function oi(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0,outsideElementsInert:m=!1,getInsideElements:g=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:O,elements:{domReference:w,floating:S}}=o,j=cr(()=>{var e;return null==(e=O.current.floatingContext)?void 0:e.nodeId}),P=cr(g),_="number"==typeof c&&c<0,x=er(w)&&_,C="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,A=!C||s,E=!A||C&&m,R=ar(a),k=ar(c),D=ar(u),M=Eo(),L=Zo(),I=je.useRef(null),N=je.useRef(null),T=je.useRef(!1),z=je.useRef(!1),V=je.useRef(-1),F=je.useRef(-1),H=null!=L,q=tr(S),B=cr(function(e){return void 0===e&&(e=q),e?Fn(e,ur()):[]}),W=cr(e=>{const t=B(e);return R.current.map(e=>w&&"reference"===e?w:q&&"floating"===e?q:t).filter(Boolean).flat()});je.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Jn(q,Yn(Xn(q)))&&0===B().length&&!x&&or(e);const t=W(),n=Qn(e);"reference"===R.current[0]&&n===w&&(or(e),e.shiftKey?No(t[t.length-1]):No(t[1])),"floating"===R.current[1]&&n===q&&e.shiftKey&&(or(e),No(t[0]))}}const t=Xn(q);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,w,q,f,R,x,B,W]),je.useEffect(()=>{if(!l&&S)return S.addEventListener("focusin",e),()=>{S.removeEventListener("focusin",e)};function e(e){const t=Qn(e),n=B().indexOf(t);-1!==n&&(V.current=n)}},[l,S,B]),je.useEffect(()=>{if(l)return;if(!h)return;function e(){z.current=!0,setTimeout(()=>{z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Qn(e);queueMicrotask(()=>{const o=j(),i=!(Jn(w,t)||Jn(S,t)||Jn(t,S)||Jn(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(Ro("focus-guard"))||M&&(nr(M.nodesRef.current,o).find(e=>{var n,r;return Jn(null==(n=e.context)?void 0:n.elements.floating,t)||Jn(null==(r=e.context)?void 0:r.elements.domReference,t)})||rr(M.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,tr(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===w&&q&&ni(q,R),d&&n!==w&&(null==r||!r.isConnected)&&Yn(Xn(q))===Xn(q).body){ln(q)&&q.focus();const e=V.current,t=B(),n=t[e]||t[t.length-1]||q;ln(n)&&n.focus()}O.current.insideReactTree?O.current.insideReactTree=!1:!x&&f||!t||!i||z.current||t===ti()||(T.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!M&&L);function r(){ko(F),O.current.insideReactTree=!0,F.current=window.setTimeout(()=>{O.current.insideReactTree=!1})}return S&&ln(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),S.addEventListener("focusout",t),n&&S.addEventListener("focusout",r,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),S.removeEventListener("focusout",t),n&&S.removeEventListener("focusout",r,!0)}):void 0},[l,w,S,q,f,M,L,v,h,d,B,x,j,R,O]);const K=je.useRef(null),G=je.useRef(null),U=Xo([K,null==L?void 0:L.beforeInsideRef]),Y=Xo([G,null==L?void 0:L.afterInsideRef]);function J(e){return!l&&p&&f?n(ri,{ref:"start"===e?I:N,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}je.useEffect(()=>{var e,t;if(l)return;if(!S)return;const n=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+Ro("portal")+"]"))||[]),r=null==(t=(M?rr(M.nodesRef.current,j()):[]).find(e=>{var t;return er((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[S,r,...n,...P(),I.current,N.current,K.current,G.current,null==L?void 0:L.beforeOutsideRef.current,null==L?void 0:L.afterOutsideRef.current,R.current.includes("reference")||x?w:null].filter(e=>null!=e),i=f||x?Wo(o,!E,E):Wo(o);return()=>{i()}},[l,w,S,f,R,L,x,A,E,M,j,P]),lr(()=>{if(l||!ln(q))return;const e=Yn(Xn(q));queueMicrotask(()=>{const t=W(q),n=k.current,r=("number"==typeof n?t[n]:n.current)||q,o=Jn(q,e);_||o||!b||No(r,{preventScroll:r===q})})},[l,b,q,_,W,k]),lr(()=>{if(l||!q)return;const e=Xn(q);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(T.current=!0),"outside-press"===t)if(r)T.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Kn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Gn()&&(!Kn()&&0===e.width&&0===e.height||Kn()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))T.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),T.current=!e}}t=Yn(e),ei(),t&&"body"!==en(t)&&($o.push(new WeakRef(t)),$o.length>20&&($o=$o.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Ko),H&&w&&w.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=Yn(e),o=Jn(S,t)||M&&nr(M.nodesRef.current,j(),!1).some(e=>{var n;return Jn(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof D.current){const e=w||ti();return e&&e.isConnected?e:r}return D.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=ur();return Hn(e,t)?e:Fn(e,t)[0]||e}(i);D.current&&!T.current&&ln(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,S,q,D,O,y,M,H,w,j]),je.useEffect(()=>(queueMicrotask(()=>{T.current=!1}),()=>{queueMicrotask(ei)}),[l]),lr(()=>{if(!l&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:h,open:b,onOpenChange:v,domReference:w}),()=>{L.setFocusManagerState(null)}},[l,L,f,b,v,h,w]),lr(()=>{l||q&&ni(q,R)},[l,q,R]);const Q=!l&&A&&(!f||!x)&&(H||f);return r(t,{children:[Q&&n(Go,{"data-type":"inside",ref:U,onFocus:e=>{if(f){const e=W();No("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(T.current=!1,hr(e,L.portalNode)){const e=fr(w);null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!x&&J("start"),i,J("end"),Q&&n(Go,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)No(W()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(h&&(T.current=!0),hr(e,L.portalNode)){const e=pr(w);null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}})]})}function ii(e){return ln(e.target)&&"BUTTON"===e.target.tagName}function li(e){return $n(e)}function ai(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=je.useRef(),p=je.useRef(!1),h=je.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(ir(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:ir(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||ii(e)||(" "!==e.key||li(i)||(e.preventDefault(),p.current=!0),function(e){return ln(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||ii(e)||li(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return je.useMemo(()=>l?{reference:h}:{},[l,h])}const si={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ci={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},ui=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function di(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=Eo(),g=cr("function"==typeof s?s:()=>!1),b="function"==typeof s?g:s,v=je.useRef(!1),{escapeKey:y,outsidePress:O}=ui(p),{escapeKey:w,outsidePress:S}=ui(h),j=je.useRef(!1),P=cr(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(j.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=m?nr(m.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),_=cr(e=>{var t;const n=()=>{var t;P(e),null==(t=Qn(e))||t.removeEventListener("keydown",n)};null==(t=Qn(e))||t.addEventListener("keydown",n)}),x=cr(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Qn(e),s="["+Ro("inert")+"]",u=Xn(o.floating).querySelectorAll(s);let d=on(a)?a:null;for(;d&&!bn(d);){const e=On(d);if(bn(e)||!on(e))break;d=e}if(u.length&&on(a)&&!a.matches("html,body")&&!Jn(a,o.floating)&&Array.from(u).every(e=>!Jn(d,e)))return;if(ln(a)&&E){const t=bn(a),n=vn(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=m&&nr(m.nodesRef.current,f).some(t=>{var n;return Zn(e,null==(n=t.context)?void 0:n.elements.floating)});if(Zn(e,o.floating)||Zn(e,o.domReference)||p)return;const h=m?nr(m.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),C=cr(e=>{var t;const n=()=>{var t;x(e),null==(t=Qn(e))||t.removeEventListener(c,n)};null==(t=Qn(e))||t.addEventListener(c,n)});je.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),j.current=!0}function u(){e=window.setTimeout(()=>{j.current=!1},gn()?5:0)}const d=Xn(o.floating);a&&(d.addEventListener("keydown",w?_:P,w),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,S?C:x,S);let p=[];return f&&(on(o.domReference)&&(p=Sn(o.domReference)),on(o.floating)&&(p=p.concat(Sn(o.floating))),!on(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(Sn(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t)}),()=>{a&&(d.removeEventListener("keydown",w?_:P,w),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,S?C:x,S),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,O,P,w,_,x,S,C]),je.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const A=je.useMemo(()=>({onKeyDown:P,...u&&{[si[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,u,d]),E=je.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[ci[c]]:()=>{i.current.insideReactTree=!0}}},[P,c,i]);return je.useMemo(()=>l?{reference:A,floating:E}:{},[l,A,E])}function fi(e){var t,n;let{elements:r,...o}=void 0===e?{}:e;const{nodeId:l}=o,a=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=_o(),i=je.useRef({}),[l]=je.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=Ao(),[s,c]=je.useState(r.reference),u=cr((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=je.useMemo(()=>({setPositionReference:c}),[]),f=je.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return je.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...o,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),s=o.rootContext||a,c=s.elements,[u,d]=je.useState(null),[f,p]=je.useState(null),h=(null==c?void 0:c.domReference)||u,m=je.useRef(null),g=Eo();lr(()=>{h&&(m.current=h)},[h]);const b=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=je.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=je.useState(r);so(p,r)||h(r);const[m,g]=je.useState(null),[b,v]=je.useState(null),y=je.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),O=je.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),w=l||m,S=a||b,j=je.useRef(null),P=je.useRef(null),_=je.useRef(d),x=null!=c,C=fo(c),A=fo(o),E=fo(u),R=je.useCallback(()=>{if(!j.current||!P.current)return;const e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),lo(j.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==E.current};k.current&&!so(_.current,t)&&(_.current=t,i(()=>{f(t)}))})},[p,t,n,A,E]);ao(()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const k=je.useRef(!1);ao(()=>(k.current=!0,()=>{k.current=!1}),[]),ao(()=>{if(w&&(j.current=w),S&&(P.current=S),w&&S){if(C.current)return C.current(w,S,R);R()}},[w,S,R,C,x]);const D=je.useMemo(()=>({reference:j,floating:P,setReference:y,setFloating:O}),[y,O]),M=je.useMemo(()=>({reference:w,floating:S}),[w,S]),L=je.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=uo(M.floating,d.x),r=uo(M.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...co(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,d.x,d.y]);return je.useMemo(()=>({...d,update:R,refs:D,elements:M,floatingStyles:L}),[d,R,D,M,L])}({...o,elements:{...c,...f&&{reference:f}}}),v=je.useCallback(e=>{const t=on(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),b.refs.setReference(t)},[b.refs]),y=je.useCallback(e=>{(on(e)||null===e)&&(m.current=e,d(e)),(on(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!on(e))&&b.refs.setReference(e)},[b.refs]),O=je.useMemo(()=>({...b.refs,setReference:y,setPositionReference:v,domReference:m}),[b.refs,y,v]),w=je.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),S=je.useMemo(()=>({...b,...s,refs:O,elements:w,nodeId:l}),[b,O,w,l,s]);return lr(()=>{s.dataRef.current.floatingContext=S;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===l);e&&(e.context=S)}),je.useMemo(()=>({...b,context:S,refs:O,elements:w}),[b,O,w,S])}function pi(){return qn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Wn()}function hi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=je.useRef(!1),u=je.useRef(-1),d=je.useRef(!0);je.useEffect(()=>{if(!a)return;const e=tn(l.domReference);function t(){!n&&ln(l.domReference)&&l.domReference===Yn(Xn(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),pi()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),pi()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),je.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,a]),je.useEffect(()=>()=>{ko(u)},[]);const f=je.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Qn(e.nativeEvent);if(s&&on(t))if(pi()&&!e.relatedTarget){if(!d.current&&!$n(t))return}else if(!function(e){if(!e||Gn())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=on(t)&&t.hasAttribute(Ro("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Yn(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Jn(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Jn(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return je.useMemo(()=>a?{reference:f}:{},[a,f])}function mi(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[yo]:t,[Oo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[vo]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var l;o&&[yo,Oo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function gi(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=je.useCallback(t=>mi(t,e,"reference"),t),i=je.useCallback(t=>mi(t,e,"floating"),n),l=je.useCallback(t=>mi(t,e,"item"),r);return je.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const bi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function vi(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=_o(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=je.useMemo(()=>{var e;return(null==(e=tr(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=bi.get(s))?r:s,p=null!=Ao(),h=je.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),m=je.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),g=je.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return je.useMemo(()=>a?{reference:h,floating:m,item:g}:{},[a,h,m,g])}const yi=(0,je.createContext)(null);function Oi(){return(0,je.useContext)(yi)}function wi(e,t){return void 0!==e?e:t??void 0}const Si=(0,je.createContext)(null),ji=["styles","style","children"],Pi=["context"];function _i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(n),!0).forEach(function(t){Ci(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ci(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Ei=(0,je.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=Ai(e,ji);const s=Oi(),c=(0,je.useContext)(Si);if(!c)return null;const{context:u}=c,d=Ai(c,Pi),f=bo([d.refs.setFloating,t]);if(!u.open)return null;let p="",h=null,m=null;switch(d.placement){case"top":case"top-end":case"top-start":p="topArrow",m=!1;break;case"bottom":case"bottom-end":case"bottom-start":p="bottomArrow",m=!0;break;case"left":case"left-end":case"left-start":p="leftArrow",h=!0;break;case"right":case"right-end":case"right-start":p="rightArrow",h=!1}return n(Qo,{root:wi(d.root,s),children:r("div",xi(xi({ref:f,style:xi(xi({},d.floatingStyles),i)},d.getFloatingProps(a)),{},{children:[l,!d.withoutArrow&&n("div",{className:o&&Se()(o.arrow,o[p]),ref:d.arrowRef,style:{position:"absolute",left:null===m&&!1===h?0:d.middlewareData.arrow?.x,right:null===m&&!0===h?0:d.middlewareData.arrow?.x,top:null===h&&!0===m?0:d.middlewareData.arrow?.y,bottom:null===h&&!1===m?0:d.middlewareData.arrow?.y}})]}))})});function Ri(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ri(Object(n),!0).forEach(function(t){Di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ri(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Di(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mi=["children"],Li=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Mi),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,je.useState)(t),u=r??s,d=o??c,f=fi({placement:n,open:u,onOpenChange:d,whileElementsMounted:ro,middleware:[po(12),mo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),ho({padding:5}),...!i&&l?.current?[go({element:l})]:[]]}),{context:p}=f,h=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=Eo(),h=Ao(),m=ar(c),g=ar(s),b=ar(n),v=ar(d),y=je.useRef(),O=je.useRef(-1),w=je.useRef(),S=je.useRef(-1),j=je.useRef(!0),P=je.useRef(!1),_=je.useRef(()=>{}),x=je.useRef(!1),C=cr(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});je.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(ko(O),ko(S),j.current=!0,x.current=!1)}},[a,i]),je.useEffect(()=>{if(!a)return;if(!m.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Xn(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,m,C]);const A=je.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Mo(g.current,"close",y.current);o&&!w.current?(ko(O),O.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(ko(O),r(!1,e,n))},[g,r]),E=cr(()=>{_.current(),w.current=void 0}),R=cr(()=>{if(P.current){const e=Xn(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Do),P.current=!1}}),k=cr(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));je.useEffect(()=>{if(a&&on(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(ko(O),j.current=!1,u&&!ir(y.current)||Lo(v.current)>0&&!Mo(g.current,"open"))return;const t=Mo(g.current,"open",y.current);t?O.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(k())return void R();_.current();const t=Xn(l.floating);if(ko(S),x.current=!1,m.current&&o.current.floatingContext){n||ko(O),w.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),E(),k()||A(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Jn(l.floating,e.relatedTarget))&&A(e)}function i(e){k()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),E(),k()||A(e)}})(e))}function s(){ko(O)}function c(e){k()||A(e,!1)}},[l,a,e,u,f,A,E,R,r,n,b,p,g,m,o,k,v]),lr(()=>{var e;if(a&&n&&null!=(e=m.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&C()){P.current=!0;const e=l.floating;if(on(l.domReference)&&e){var t;const n=Xn(l.floating).body;n.setAttribute(Do,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,h,l,p,m,C]),lr(()=>{n||(y.current=void 0,x.current=!1,E(),R())},[n,E,R]),je.useEffect(()=>()=>{E(),ko(O),ko(S),R()},[a,l.domReference,E,R]);const D=je.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){j.current||b.current||r(!0,t,"hover")}u&&!ir(y.current)||n||0===Lo(v.current)||x.current&&e.movementX**2+e.movementY**2<2||(ko(S),"touch"===y.current?o():(x.current=!0,S.current=window.setTimeout(o,Lo(v.current))))}}},[u,r,n,b,v]);return je.useMemo(()=>a?{reference:D}:{},[a,D])}(p,{move:!1,enabled:null==r}),m=gi([h,hi(p,{enabled:null==r}),di(p),vi(p,{role:"tooltip"})]);return(0,je.useMemo)(()=>ki(ki({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},m),f),[u,d,m,f,a])}(r);return n(Si.Provider,{value:o,children:t})},Ii=["children","wrapTrigger"];function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(n),!0).forEach(function(t){zi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ni(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vi=(0,je.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ii);const l=(0,je.useContext)(Si),a=r.ref,s=bo([l?.refs.setReference,t,a]);return l?!o&&(0,je.isValidElement)(r)?(0,je.cloneElement)(r,l.getReferenceProps(Ti(Ti(Ti({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",Ti(Ti({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Fi(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:d,children:f,classes:h}=e,[m,g]=(0,je.useState)(!1),b=(0,je.useRef)(null);return o?f?r(Li,{placement:a,initialOpen:l,open:i?m:void 0,onOpenChange:i?g:void 0,withoutArrow:s,arrowRef:b,root:d,children:[n(Vi,{wrapTrigger:c,onClick:i?()=>g(e=>!e):void 0,className:c?Se()(Zt,h?.trigger):void 0,children:f}),n(Ei,{className:Se()(Wt,p[u],h?.content),styles:p,children:o})]}):null:f?n(t,{children:f}):null}var Hi="fieldShell-module__arrow__aEobm",qi="fieldShell-module__chips__sRJzx",Bi="fieldShell-module__end-icon__b8buW",Wi="fieldShell-module__input__uhnF8";const Ki=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","endIconCount","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className","style"];function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach(function(t){Yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ji=(0,je.forwardRef)(function(e,t){let{variant:o="outlined",componentSize:i="medium",fullWidth:l,label:a,error:s,labelExtra:c,inputId:u,onLabelClick:d,hasStartIcon:f,endIconCount:p=0,hasErrorIcon:h,hasClearButton:m,hasArrow:g,chipsMode:b,children:v,classes:y,className:O,style:w}=e,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ki);return r("div",{"data-size":i,className:Se()("fieldShell-module__root__A1OLC",l&&"fieldShell-module__full-width__TtRHo",y?.root),children:[!!a&&r("div",{className:Se()("fieldShell-module__label-row__UkRCm",y?.labelRow),children:[r(bt,{className:Se()("fieldShell-module__label__MW9yk",y?.label),component:"label",variant:"caption",htmlFor:u,onClick:d,children:[a,c]}),!!s&&n(Fi,{label:s.description,alertType:"error",children:n("span",{className:Se()("fieldShell-module__error-name__WExJs",y?.errorName),children:s.name})})]}),n("div",Ui(Ui({ref:t,"data-variant":o,"data-error":s?"":void 0,"data-start-icon":f?"":void 0,"data-end-icon":p>0?"":void 0,"data-error-icon":h?"":void 0,"data-clear":m?"":void 0,"data-arrow":g?"":void 0,"data-chips":b?"":void 0,className:Se()("fieldShell-module__wrapper__OvvEL",O,y?.wrapper)},S),{},{style:Ui(Ui({},w),{},{"--end-icon-count":p}),children:v}))]})});function Qi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qi(Object(n),!0).forEach(function(t){Xi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $i=e=>n(yt,Zi(Zi({},e),{},{children:n("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function el(e){return r(t,{children:[e.name,n("br",{}),e.description]})}function tl(e){const{error:t,componentSize:r="medium",className:o}=e,i="large"===r||"extraLarge"===r?24:20;return n(Fi,{label:el(t),alertType:"error",children:n("span",{className:Se()(Bi,"fieldShell-module__error-icon__aHf1B",o),children:n($i,{size:i})})})}function nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nl(Object(n),!0).forEach(function(t){ol(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ol(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const il=e=>n(yt,rl(rl({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));var ll="inputChip-module__clickable__djl7f",al="inputChip-module__disabled__YGtsQ",sl="inputChip-module__extraLarge__y0_Wa",cl="inputChip-module__filled__pktYJ",ul="inputChip-module__icon__o6UjH",dl="inputChip-module__large__zecCF",fl="inputChip-module__medium__T_uhi",pl="inputChip-module__outlined__L0tPF",hl="inputChip-module__remove__k2uuh",ml="inputChip-module__root__PCWqv",gl="inputChip-module__small__XM6yG",bl="inputChip-module__text__LQYEa",vl="inputChip-module__with-icon__J7ekZ";const yl=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ol(Object(n),!0).forEach(function(t){Sl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ol(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jl=(0,je.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,disabled:a,onClick:s,onRemove:c,children:u,classes:d,className:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yl);return r("div",wl(wl({ref:t,className:Se()(ml,h[o],h[i],!!l&&vl,a&&al,s&&!a&&ll,f,d?.root),tabIndex:s&&!a?0:void 0},p),{},{onClick:a?void 0:s,children:[!!l&&n("span",{className:Se()(ul,d?.icon),children:l}),n("span",{className:Se()(bl,d?.text),children:u}),!!c&&n("button",{type:"button",className:Se()(hl,d?.remove),onClick:e=>{e.stopPropagation(),a||c?.()},disabled:a,"aria-label":"Удалить",children:n(il,{})})]}))}),Pl=(0,je.createContext)(null),_l=["style","children"],xl=["context"];function Cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach(function(t){El(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function El(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const kl=(0,je.forwardRef)(function(e,t){let{style:r,children:o}=e,i=Rl(e,_l);const l=Oi(),a=(0,je.useContext)(Pl);if(!a)return null;const{context:s}=a,c=Rl(a,xl),u=bo([c.refs.setFloating,t]),d=vt();return(0,je.useLayoutEffect)(()=>(a.setDescriptionId(d),()=>a.setDescriptionId(void 0)),[d,a.setDescriptionId]),s.open?n(Qo,{root:wi(c.root,l),children:n(oi,{context:s,modal:c.modal,children:n("div",Al(Al({id:d,ref:u,style:Al(Al({},c.floatingStyles),r),"aria-describedby":c.descriptionId},c.getFloatingProps(i)),{},{children:o}))})}):null}),Dl=["update"];function Ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ll(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ml(Object(n),!0).forEach(function(t){Il(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ml(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Il(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nl=["children","modal"];function Tl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vl=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nl),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12,layoutVersion:s}=e,[c,u]=(0,je.useState)(t),[d,f]=(0,je.useState)(),p=i??c,h=l??u,m=fi({placement:n,open:p,onOpenChange:h,whileElementsMounted:ro,middleware:[po(a),mo({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),ho({padding:5})]}),{update:g}=m,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(m,Dl),{context:v}=b;(0,je.useLayoutEffect)(()=>{p&&g()},[p,s,g]);const y=gi([ai(v,{enabled:null==i}),di(v),vi(v)]);return(0,je.useMemo)(()=>Ll(Ll(Ll({open:p,setOpen:h},y),b),{},{update:g,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,y,b,g,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tl(Object(n),!0).forEach(function(t){zl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(Pl.Provider,{value:i,children:t})},Fl=["children","wrapTrigger"];function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach(function(t){Bl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wl=(0,je.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Fl);const l=(0,je.useContext)(Pl),a=r.ref,s=bo([l?.refs.setReference,t,a]);return l?!o&&(0,je.isValidElement)(r)?(0,je.cloneElement)(r,l.getReferenceProps(ql(ql(ql({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",ql(ql({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Kl(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:h,layoutVersion:m}=e,[g,b]=(0,je.useState)(!1);return f?t?r(Vl,{placement:l,initialOpen:i,open:void 0!==u?u:o?g:void 0,onOpenChange:void 0!==d?d:o?b:void 0,containerOffset:s,root:c,layoutVersion:m,children:[n(Wl,{wrapTrigger:a,onClick:o?()=>b(e=>!e):void 0,className:Se()(a?"popover-module__trigger__nPqWJ":void 0,p?.trigger),children:f}),n(kl,{className:Se()("popover-module__content__mHuYG",p?.content),style:h,children:t})]}):f:null}function Gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ul(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gl(Object(n),!0).forEach(function(t){Yl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jl=e=>n(yt,Ul(Ul({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ql(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $l=e=>n(yt,Zl(Zl({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function ea(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ea(Object(n),!0).forEach(function(t){na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function na(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ra=e=>n(yt,ta(ta({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ia(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach(function(t){la(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function la(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aa=e=>n(yt,ia(ia({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sa(Object(n),!0).forEach(function(t){ua(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ua(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const da=e=>n(yt,ca(ca({},e),{},{children:n("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})}));function fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fa(Object(n),!0).forEach(function(t){ha(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ha(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ma=e=>n(yt,pa(pa({},e),{},{children:n("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44\n 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13\n 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"})}));function ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ga(Object(n),!0).forEach(function(t){va(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function va(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ya=e=>n(yt,ba(ba({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0\n 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})}));function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach(function(t){Sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ja=e=>n(yt,wa(wa({},e),{},{children:n("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0\n .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M10 5.47l4\n 1.4v11.66l-4-1.4zm-5 .99 3-1.01v11.7l-3 1.16zm14 11.08-3 1.01V6.86l3-1.16z"})}));function Pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(n),!0).forEach(function(t){xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ca=e=>r(yt,_a(_a({},e),{},{children:[n("circle",{cx:"7",cy:"14",r:"3"}),n("circle",{cx:"11",cy:"6",r:"3"}),n("circle",{cx:"16.6",cy:"17.6",r:"3"})]}));function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ea(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach(function(t){Ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ka=e=>n(yt,Ea(Ea({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Da(Object(n),!0).forEach(function(t){La(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function La(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ia=e=>n(yt,Ma(Ma({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Na(Object(n),!0).forEach(function(t){za(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function za(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Va=e=>n(yt,Ta(Ta({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fa(Object(n),!0).forEach(function(t){qa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ba=e=>n(yt,Ha(Ha({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function Wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wa(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ua=e=>n(yt,Ka(Ka({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(n),!0).forEach(function(t){Qa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Za=e=>n(yt,Ja(Ja({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function Xa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xa(Object(n),!0).forEach(function(t){es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function es(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ts=e=>n(yt,$a($a({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ns(Object(n),!0).forEach(function(t){os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function os(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const is=e=>n(yt,rs(rs({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ls(Object(n),!0).forEach(function(t){ss(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ss(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cs=e=>n(yt,as(as({},e),{},{children:n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ps=e=>n(yt,ds(ds({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function hs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hs(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bs=e=>n(yt,ms(ms({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(n),!0).forEach(function(t){Os(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Os(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ws=e=>r(yt,ys(ys({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function Ss(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function js(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ss(Object(n),!0).forEach(function(t){Ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ps(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _s=e=>n(yt,js(js({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xs(Object(n),!0).forEach(function(t){As(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function As(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Es=e=>n(yt,Cs(Cs({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function Rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ds(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ms=e=>n(yt,ks(ks({},e),{},{children:n("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach(function(t){Ns(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ns(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ts=e=>n(yt,Is(Is({},e),{},{children:n("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zs(Object(n),!0).forEach(function(t){Fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hs=e=>n(yt,Vs(Vs({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach(function(t){Ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ks=e=>n(yt,Bs(Bs({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gs(Object(n),!0).forEach(function(t){Ys(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ys(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Js=e=>n(yt,Us(Us({},e),{},{children:n("g",{transform:"scale(1.5)",children:n("path",{d:"M11.498 5H9.705L10.973 3.732C11.168 3.537 11.168 3.22 10.973 3.025C10.778 2.83 10.461 2.83 10.266 3.025L8.998 4.293V2.5C8.998 2.224 8.774 2 8.498 2C8.222 2 7.998 2.224 7.998 2.5V4.293L6.73 3.025C6.535 2.83 6.218 2.83 6.023 3.025C5.828 3.22 5.828 3.537 6.023 3.732L7.291 5H5.498C5.222 5 4.998 5.224 4.998 5.5C4.998 5.776 5.222 6 5.498 6H7.291L6.023 7.268C5.828 7.463 5.828 7.78 6.023 7.975C6.121 8.073 6.249 8.121 6.377 8.121C6.505 8.121 6.633 8.072 6.731 7.975L7.999 6.707V8.5C7.999 8.776 8.223 9 8.499 9C8.775 9 8.999 8.776 8.999 8.5V6.707L10.267 7.975C10.365 8.073 10.493 8.121 10.621 8.121C10.749 8.121 10.877 8.072 10.975 7.975C11.17 7.78 11.17 7.463 10.975 7.268L9.707 6H11.5C11.776 6 12 5.776 12 5.5C12 5.224 11.776 5 11.5 5H11.498ZM5 12C5 12.552 4.552 13 4 13C3.448 13 3 12.552 3 12C3 11.448 3.448 11 4 11C4.552 11 5 11.448 5 12Z"})})}));function Qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(n),!0).forEach(function(t){Xs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $s=e=>n(yt,Zs(Zs({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rc=e=>n(yt,tc(tc({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(n),!0).forEach(function(t){lc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ac=e=>n(yt,ic(ic({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach(function(t){uc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dc=e=>n(yt,cc(cc({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach(function(t){hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mc=e=>n(yt,pc(pc({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gc(Object(n),!0).forEach(function(t){vc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yc=e=>n(yt,bc(bc({},e),{},{children:n("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})}));function Oc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach(function(t){Sc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jc=e=>n(yt,wc(wc({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function Pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach(function(t){xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cc=e=>n(yt,_c(_c({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach(function(t){Rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kc=e=>n(yt,Ec(Ec({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dc(Object(n),!0).forEach(function(t){Lc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ic=e=>n(yt,Mc(Mc({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function Nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(n),!0).forEach(function(t){zc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vc=e=>n(yt,Tc(Tc({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach(function(t){qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bc=e=>n(yt,Hc(Hc({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){Gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uc=e=>n(yt,Kc(Kc({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach(function(t){Qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zc=e=>n(yt,Jc(Jc({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function Xc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xc(Object(n),!0).forEach(function(t){eu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const tu=e=>n(yt,$c($c({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nu(Object(n),!0).forEach(function(t){ou(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ou(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iu=e=>n(yt,ru(ru({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach(function(t){su(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function su(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cu=e=>n(yt,au(au({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function uu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uu(Object(n),!0).forEach(function(t){fu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pu=e=>n(yt,du(du({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function hu(){const e=(0,je.useContext)(Pl);return n(e?.open?ra:$l,{})}function mu(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){const l=e(),a=l.length!==o.length||l.some((e,t)=>o[t]!==e);return a?(o=l,r=t(...l),!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r):r}return l.updateDeps=e=>{o=e},l}function gu(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const bu=(e,t)=>Math.abs(e-t)<1.01,vu=(e,t,n)=>{let r;return Object.assign(function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(r)}})};let yu;const Ou=()=>{if(void 0!==yu)return yu;if("undefined"==typeof navigator)return yu=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return yu=!0;const e=navigator.maxTouchPoints;return yu="MacIntel"===navigator.platform&&void 0!==e&&e>0},wu=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Su=e=>e,ju=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Pu=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(wu(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(wu(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},_u={passive:!0},xu="undefined"==typeof window||"onscrollend"in window,Cu=(e,t)=>((e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&xu;let l=0;const a=i?null:vu(o,()=>t(n(r),!1),e.options.isScrollingResetDelay),s=e=>()=>{l=n(r),null==a||a(),t(l,e)},c=s(!0),u=s(!1);return r.addEventListener("scroll",c,_u),i&&r.addEventListener("scrollend",u,_u),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u),null==a||a.cancel()}})(e,t,t=>{const{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r?-1:1):t.scrollTop}),Au=(e,t,n)=>{if(n.options.useCachedMeasurements){const t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Eu=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class Ru{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Su,rangeExtractor:ju,onChange:()=>{},measureElement:Au,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const r=e[t];void 0!==r&&(n[t]=r)}const r=this.options;let o=null,i=null,l=!1;if(void 0!==r&&r.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=r.count,a=n.count,s=this.getMeasurements(),c=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??s,u=e=>{return"object"==typeof(t=c[e])?t.key:t;var t},d=e>0?u(0):null,f=e>0?u(e-1):null;if(a!==e||e>0&&a>0&&(n.getItemKey(0)!==d||n.getItemKey(a-1)!==f)){l=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);const c=!0===n.followOnAppend?"auto":n.followOnAppend||null;c&&a>0&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||n.getItemKey(a-1)!==f)&&(a>e||function(e,t,n,r){if(0===t)return!1;const o=r(0),i=new Set;let l=0;for(;l<e;){const e=n(l);if(e===o)break;i.add(e),l++}const a=e-l;if(0===a||a>=t)return!1;for(let e=0;e<a;e++)if(r(e)!==n(l+e))return!1;for(let e=a;e<t;e++)if(i.has(r(e)))return!1;return!0}(e,a,u,n.getItemKey))&&(i=c)}}this.options=n,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,s=0;if(o&&null!==this.scrollOffset){const[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:l}=this.options;let c=0;for(;c<r&&l(c)!==e;)c++;if(c<r){const e=n[c];if(e){const n=Math.max(0,e.start+t);i||n===this.scrollOffset||(s=n-this.scrollOffset,this.scrollOffset=n,a=!0)}}}(a||i)&&(this.pendingScrollAnchor=[a?o[0]:null,a?o[1]:0,i,s])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=mu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n)return void this.maybeNotify();if(this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,Ou()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,_u),e.addEventListener("touchend",n,_u),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){const[e,n,o,i]=r;null===e||o||(Ou()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):("smooth"!==(null==(t=this.scrollState)?void 0:t.behavior)||bu(this.getScrollOffset()-i,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),o&&this.scrollToEnd({behavior:o})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;const{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=mu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,l,a)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:a}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=mu(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:a},s)=>{var c;const u=this.itemSizeCache;if(!o)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){const o=2*e;let i=null==(c=this._singleLaneMeasurements)?void 0:c.flat;if(!i||i.length<o){const e=new Float64Array(o);i&&d>0&&e.set(i.subarray(0,2*d)),i=e}const l=0===d?new Array(e):this._singleLaneMeasurements.items.slice();let s;if(0===d)s=t+n;else{const e=d-1;s=i[2*e]+i[2*e+1]+a}for(let t=d;t<e;t++){const e=r(t);l[t]=e;const n=u.get(e),o="number"==typeof n?n:this.options.estimateSize(t);i[2*t]=s,i[2*t+1]=o,s+=o+a}this._singleLaneMeasurements={flat:i,items:l};const f=function(e,t){const n=e.length;return new Proxy(e,{get(e,r,o){if("string"==typeof r){const o=r.charCodeAt(0);if(o>=48&&o<=57){const o=+r;if(Number.isInteger(o)&&o>=0&&o<n){let n=e[o];if("object"!=typeof n){const r=t[2*o];n=e[o]={index:o,key:n,start:r,size:t[2*o+1],end:r+t[2*o+1],lane:0}}return n}}if("length"===r)return n}return Reflect.get(e,r,o)}})}(l,i);return this.measurementsCache=f,f}const f=this.measurementsCache.slice(0,d),p=new Array(i).fill(void 0),h=new Float64Array(i);let m=0;for(let e=0;e<d;e++){const t=f[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,h[t.lane]=t.end)}for(let o=d;o<e;o++){const e=r(o),s=this.laneAssignments.get(o);let c,d;const g="estimate"===l||u.has(e);if(void 0!==s&&this.options.lanes>1){c=s;const e=p[c],r=void 0!==e?f[e]:void 0;d=r?r.end+a:t+n}else if(m===i){let e=0,t=h[0],n=p[0];for(let r=1;r<i;r++){const o=h[r];(o<t||o===t&&p[r]<n)&&(e=r,t=o,n=p[r])}c=e,d=t+a,g&&this.laneAssignments.set(o,c)}else c=o%this.options.lanes,d=t+n,g&&this.laneAssignments.set(o,c);const b=u.get(e),v="number"==typeof b?b:this.options.estimateSize(o),y=d+v;f[o]={index:o,start:d,size:v,end:y,key:e,lane:c},void 0===p[c]&&m++,p[c]=o,h[c]=y}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=mu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){const e=function(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,i=e[2*o];if(i<n)r=o+1;else{if(!(i>n))return o;t=o-1}}return r>0?r-1:0}(o,i,n);let r=e;const l=n+t;for(;r<i&&o[2*r]+o[2*r+1]<l;)r++;return{startIndex:e,endIndex:r}}let l=ku(0,i,t=>e[t].start,n),a=l;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some(e=>e<n+t);){const t=e[a];o[t.lane]=t.end,a++}const s=Array(r).fill(n+t);for(;l>=0&&s.some(e=>e>=n);){const t=e[l];s[t.lane]=t.start,l--}l=Math.max(0,l-l%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:l,endIndex:a}}(e,t,n,r,1===r&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=mu(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;const n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r,o;if(!this.isIndexInRange(e))return;let i,l,a;const s=null==(n=this._singleLaneMeasurements)?void 0:n.flat;if(1===this.options.lanes&&null!=s)a=this.options.getItemKey(e),l=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;a=t.key,l=t.start,i=t.size}const c=this.itemSizeCache.get(a)??i,u=t-c;if(0!==u){const n="end"===this.options.anchorTo&&"smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,s=n?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,f=this.itemSizeCache.has(a)?l+c<=d&&"backward"!==this.scrollDirection:l<d,p="smooth"!==(null==(o=this.scrollState)?void 0:o.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:l,size:i,end:l+i,lane:0},u,this):f);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++;let h=!1;n?h=this.applyScrollAdjustment(this.getTotalSize()-s):p&&(h=this.applyScrollAdjustment(u)),this.notify(h),this._retryClampedAdjustment()}},this.getVirtualItems=mu(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{var t;const n=this.getMeasurements();if(0===n.length)return;const r=null==(t=this._singleLaneMeasurements)?void 0:t.flat,o=1===this.options.lanes&&null!=r,i=ku(0,n.length-1,o?e=>r[2*e]:e=>gu(n[e]).start,e);return gu(n[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;const n=this.getMeasurements();let r;if(0===n.length)r=this.options.paddingStart;else if(1===this.options.lanes){const o=n.length-1,i=null==(e=this._singleLaneMeasurements)?void 0:e.flat;r=null!=i?i[2*o]+i[2*o+1]:(null==(t=n[o])?void 0:t.end)??0}else{const e=Array(this.options.lanes).fill(null);let t=n.length-1;for(;t>=0&&e.some(e=>null===e);){const r=n[t];null===e[r.lane]&&(e[r.lane]=r.end),t--}r=Math.max(...e.filter(e=>null!==e))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(Ou()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{const n=this.getScrollOffset()+this.scrollAdjustments+e,r=this.scrollElement,o=null!==r&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==o&&n>o+.5?{target:n,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&bu(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,n){const e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}const ku=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Du="undefined"!=typeof document?je.useLayoutEffect:je.useEffect;function Mu(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const o=je.useReducer(e=>e+1,0)[1],l=je.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});l.current.enabled=t,l.current.mode=n;const a=je.useRef(!1),s=e=>{const t=l.current;if(!t.enabled||!t.container)return;const n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;const r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},c=e=>{const t=l.current;if(!t.enabled||!t.container)return;s(e);const n=!!e.options.horizontal,r="transform"===t.mode,o=n?"left":"top",i=e.options.scrollMargin,a=e.getVirtualItems();for(const l of a){const a=l.start-i,s=e.elementsCache.get(l.key);s&&t.lastPositions.get(s)!==a&&(t.lastPositions.set(s,a),r?s.style.transform=n?`translate3d(${a}px, 0, 0)`:`translate3d(0, ${a}px, 0)`:s.style[o]=`${a}px`)}},u={...r,onChange:(t,n)=>{var s;const u=l.current;let d=!0;if(u.enabled){c(t);const e=t.range,n=u.prevRange;d=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex),d&&(u.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}d&&(e&&n&&!a.current?i(o):o()),null==(s=r.onChange)||s.call(r,t,n)}},[d]=je.useState(()=>{const e=new Ru(u),t=e.measureElement;return e.measureElement=e=>{a.current=!0;try{t(e)}finally{a.current=!1}},Object.assign(e,{containerRef:t=>{const n=l.current;if(n.container=t,n.lastSize=null,t&&n.enabled){const r=e.getTotalSize();n.lastSize=r;const o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return d.setOptions(u),Du(()=>d._didMount(),[]),Du(()=>(s(d),d._willUpdate())),Du(()=>{c(d)}),d}({observeElementRect:Pu,observeElementOffset:Cu,scrollToFn:Eu,...e})}const Lu=["children","fillEvenly","classes","className"];function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(t){Tu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zu=(0,je.forwardRef)(function(e,t){let{children:r,fillEvenly:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lu);return n("div",Nu(Nu({ref:t,className:Se()("buttonsGroup-module__root__ajMji",o&&"buttonsGroup-module__fill-evenly__nNjz0",l,i?.root)},a),{},{children:r}))});u();const Vu=(0,je.createContext)();class Fu{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Hu={},qu=(e,t,n,r)=>{Gu(n)&&Hu[n]||(Gu(n)&&(Hu[n]=new Date),((e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Gu(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,n,r))},Bu=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Wu=(e,t,n)=>{e.loadNamespaces(t,Bu(e,n))},Ku=(e,t,n,r)=>{if(Gu(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Wu(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Bu(e,r))},Gu=e=>"string"==typeof e,Uu={t:(e,t)=>{if(Gu(t))return t;if("object"==typeof(n=t)&&null!==n&&Gu(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},Yu=()=>()=>{},Ju=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,je.useContext)(Vu)||{},i=n||r||ge;i&&!i.reportNamespaces&&(i.reportNamespaces=new Fu),i||qu(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const l=(0,je.useMemo)(()=>({...be,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,u=e||o||i?.options?.defaultNS,d=Gu(u)?[u]:u||["translation"],f=(0,je.useMemo)(()=>d,d);i?.reportNamespaces?.addUsedNamespaces?.(f);const p=(0,je.useRef)(0),h=(0,je.useCallback)(e=>{if(!i)return Yu;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{p.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),m=(0,je.useRef)(),g=(0,je.useCallback)(()=>{if(!i)return Uu;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&f.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(qu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=p.current,o=m.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?f:f[0],s,{scopeNs:f}),ready:e,lng:n,keyPrefix:s,revision:r};return m.current=a,a},[i,f,s,l,t.lng]),[b,v]=(0,je.useState)(0),{t:y,ready:O}=(0,c().useSyncExternalStore)(h,g,g);(0,je.useEffect)(()=>{if(i&&!O&&!a){const e=()=>v(e=>e+1);t.lng?Ku(i,t.lng,f,e):Wu(i,f,e)}},[i,t.lng,f,O,a,b]);const w=i||{},S=(0,je.useRef)(null),j=(0,je.useRef)(),P=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},_=(0,je.useMemo)(()=>{const e=w,t=e&&`${(n=e).language}|${n.resolvedLanguage}|${n.languages?.join(",")}`;var n;let r=e;e&&(S.current&&S.current.__original===e?j.current!==t?(r=P(e),S.current=r,j.current=t):r=S.current:(r=P(e),S.current=r,j.current=t));const o=O||a?y:(...e)=>(qu(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),y(...e)),l=[o,r,O];return l.t=o,l.i18n=r,l.ready=O,l},[y,w,O,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!O){let e=!1;try{e=!1}catch(e){}throw e&&qu(i,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{const n=()=>e();t.lng?Ku(i,t.lng,f,n):Wu(i,f,n)})}return _},Qu=()=>{const{t:e,i18n:t}=Ju();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Zu="infiniteListFooter-module__footer__f8lZM";function Xu({loading:e=!1,hasMore:o=!1,empty:i=!1,sentinelRef:l}){const{t:a}=Qu(),s=i&&!e&&!o;return e||s||o?r(t,{children:[e&&n("div",{className:Zu,role:"status",children:n(bt,{variant:"caption",children:a("nntc_ui.common.list.loading")})}),s&&n("div",{className:Zu,role:"status",children:n(bt,{variant:"caption",children:a("nntc_ui.common.list.notFound")})}),o&&n("div",{ref:l,className:"infiniteListFooter-module__sentinel__O1XNW","aria-hidden":!0})]}):null}function $u({scrollRef:e,hasMore:t=!1,loading:n=!1,onLoadMore:r,itemCount:o,resetKey:i="",enabled:l=!0}){const a=(0,je.useRef)(null),s=(0,je.useRef)(!1),c=(0,je.useRef)(!1),u=(0,je.useRef)(r),d=(0,je.useRef)(t),f=(0,je.useRef)(n),p=(0,je.useRef)(l);u.current=r,d.current=t,f.current=n,p.current=l;const h=`${o}:${n}:${t}:${l}:${i}`,m=(0,je.useRef)(h);m.current!==h&&(m.current=h,s.current=!1,c.current=!1);const g=(0,je.useCallback)(()=>{const t=e.current;p.current&&u.current&&d.current&&!f.current&&!s.current&&t&&0!==t.clientHeight&&(s.current=!0,u.current())},[e]),b=(0,je.useCallback)(()=>{const t=e.current;t&&0!==t.clientHeight&&t.scrollHeight<=t.clientHeight+1&&g()},[g,e]);return(0,je.useLayoutEffect)(()=>{l&&t&&r&&!n&&b()},[l,t,r,n,o,i,b]),(0,je.useEffect)(()=>{const n=e.current;if(!(l&&t&&r&&n&&"undefined"!=typeof ResizeObserver))return;const o=new ResizeObserver(()=>{b()});return o.observe(n),()=>o.disconnect()},[l,t,r,o,i,b,e]),(0,je.useEffect)(()=>{const n=e.current,o=a.current;if(!(l&&t&&r&&n&&o))return;const i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)?c.current||(c.current=!0,g()):c.current=!1},{root:n,rootMargin:"48px"});return i.observe(o),()=>i.disconnect()},[l,t,r,o,i,n,g,e]),a}var ed="menu-module__divider__kik9c",td="menu-module__extraLarge__RIQUR",nd="menu-module__item__DO2AJ",rd="menu-module__item-actions__ecU8y",od="menu-module__item-description__BxxnF",id="menu-module__item-disabled__E7Z4s",ld="menu-module__item-icon___HDe4",ad="menu-module__item-selected__m9VFe",sd="menu-module__item-text-block__zgpGT",cd="menu-module__item-title__gcK7P",ud="menu-module__item-title-top__PSYWj",dd="menu-module__large__jYm_Q",fd="menu-module__medium__Jev6c",pd="menu-module__root__pR_5h",hd="menu-module__small__uGqFV",md="menu-module__state-layer__m8uMf",gd="menu-module__virtual-item___RvYR",bd="menu-module__virtual-space__SbY08",vd="menu-module__virtualized__PoNVi";const yd=["items","componentSize","descriptionPosition","virtualize","maxHeight","hasMore","loadingMore","onLoadMore","classes","className","style"];function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(Object(n),!0).forEach(function(t){Sd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jd={small:4,medium:8,large:0,extraLarge:0},Pd=(0,je.forwardRef)(function(e,o){let{items:i,componentSize:l="medium",descriptionPosition:a="right",virtualize:s=!1,maxHeight:c=250,hasMore:u=!1,loadingMore:d=!1,onLoadMore:f,classes:p,className:h,style:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yd);const v=(0,je.useRef)(null),y=Ue([o,v]),O=jd[l],w=s&&!!f,S=(0,je.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]),j=Mu({count:s?i.length:0,enabled:s,getScrollElement:()=>v.current,estimateSize:e=>function(e,t){return t&&"divider"!==t.type?"small"===e?28:"large"===e||"extraLarge"===e?48:36:32}(l,i[e]),overscan:6,paddingStart:s?O:0,paddingEnd:s?O:0,getItemKey:e=>{const t=i[e];return t?"divider"===t.type?`divider-${t.name??""}-${e}`:`item-${t.name}-${e}`:e}}),P=$u({scrollRef:v,hasMore:u,loading:d,onLoadMore:f,itemCount:i.length,enabled:w}),_=(e,o)=>{const i="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(i,{tabIndex:-10,className:Se()(nd,e.selected?ad:void 0,e.disabled?id:void 0,p?.item,e.selected?p?.itemSelected:void 0,e.disabled?p?.itemDisabled:void 0),onClick:e.disabled?void 0:S(e),title:e.name,children:r("span",{className:Se()(md),children:[!!e.icon&&n("span",{className:Se()(ld,p?.itemIcon,e.selected?p?.itemSelectedIcon:void 0,e.disabled?p?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===a&&e.description?r("span",{className:Se()(sd),children:[n("span",{className:Se()(ud,cd,p?.itemTitle,e.selected?p?.itemSelectedTitle:void 0,e.disabled?p?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:Se()(od,p?.itemDescription,e.selected?p?.itemSelectedDescription:void 0,e.disabled?p?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:Se()(cd,p?.itemTitle,e.selected?p?.itemSelectedTitle:void 0,e.disabled?p?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:Se()(od,p?.itemDescription,e.selected?p?.itemSelectedDescription:void 0,e.disabled?p?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:Se()(rd,p?.itemActions,e.selected?p?.itemSelectedActions:void 0,e.disabled?p?.itemDisabledActions:void 0),children:n(zu,{children:e.subButtons.map((e,t)=>n(Ke,{variant:e.variant,componentSize:l,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:Se()(ed,p?.divider),children:e.name},`menu-divider-${e.name}-${o}`)};if(!s)return r("div",wd(wd({ref:y,className:Se()(pd,m[l],h,p?.root),style:g},b),{},{children:[" ",i.map((e,t)=>_(e,t))]}));const x=j.getVirtualItems();return r("div",wd(wd({ref:y,className:Se()(pd,m[l],vd,"styledScroll",h,p?.root),style:wd({maxHeight:c},g)},b),{},{children:[x.length>0?n("div",{className:bd,style:{height:j.getTotalSize()},children:x.map(e=>{const t=i[e.index];return t?n("div",{"data-index":e.index,ref:j.measureElement,className:gd,style:{transform:`translateY(${e.start}px)`},children:_(t,e.index)},e.key):null})}):n("div",{style:{paddingTop:O,paddingBottom:O},children:i.map((e,t)=>_(e,t))}),n(Xu,{loading:d,hasMore:u&&w,sentinelRef:P})]}))});function _d(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,hasMore:l,loadingMore:a,onLoadMore:s,classes:c}=e,u=(0,je.useContext)(Pl);return n(Pd,{virtualize:!0,maxHeight:250,componentSize:r,classes:c?.menu,hasMore:l,loadingMore:a,onLoadMore:s,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),u&&u.setOpen(!1)}})})}const xd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","loadingMore","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach(function(t){Ed(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ed(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rd=(0,je.forwardRef)(function(e,t){const{variant:o="filled",componentSize:i="medium",icon:l,fullWidth:a,label:s,error:c,placeholder:u,items:d,onLoadMore:f,hasMore:p=!1,loadingMore:h=!1,defaultValue:m,onValueChange:g,selected:b,chips:v,classes:y,disabled:O,id:w}=e,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xd),j=void 0!==f,P=(0,je.useMemo)(()=>j?d.filter(e=>"divider"!==e.type):d,[j,d]),_=m&&!b,[x,C]=(0,je.useState)(_?d.find(e=>"item"===e.type&&e.value===m):void 0),A=_?x:b,E=(0,je.useRef)(null),R=(0,je.useRef)(null),k=(0,je.useCallback)(e=>{e.preventDefault(),O||R?.current?.click()},[R]),D=e=>{_&&C(e),g?.(e)};(0,je.useEffect)(()=>{if(j||!A)return;const e=d.find(e=>"item"===e.type&&e.value===A.value);e||D(e)},[j,d,A]);const M=w??Ht(),L=!!c&&!s;return r(Ji,{variant:o,componentSize:i,fullWidth:a,label:s,error:c,inputId:M,onLabelClick:k,hasStartIcon:!!l||!!A?.icon,hasArrow:!0,hasErrorIcon:L,chipsMode:v&&!!A,classes:Ad(Ad({},y),{},{wrapper:Se()(l?"select-module__with-icon__fSXNX":void 0,A?.icon?"select-module__with-item-icon__DQCJ6":void 0,y?.wrapper)}),children:[n("input",Ad(Ad({ref:Ue([E,t]),id:M,className:Se()(Wi,"select-module__input__wOpYo",y?.input),placeholder:v&&A?void 0:u},S),{},{value:v?"":A?.name??"",onChange:()=>{},onClick:k,disabled:O})),v&&!!A&&n("span",{className:Se()(qi,y?.chips),children:n(jl,{componentSize:i,disabled:O,onClick:()=>R?.current?.click(),onRemove:()=>D(void 0),children:A.name})}),!!l&&n("span",{onClick:k,className:Se()("select-module__icon___B0Xg",y?.icon),children:l}),!!A?.icon&&n("span",{onClick:k,className:Se()("select-module__item-icon__yL747",y?.itemIcon),children:A?.icon}),n("span",{onClick:k,className:Se()(Hi,y?.arrow),children:n(hu,{})}),L&&c&&n(tl,{error:c,componentSize:i,className:y?.errorIcon}),n(Kl,{placement:"bottom-start",classes:Ad({content:Se()("select-module__popover-content__mnDVQ",y?.popoverContent)},y?.popover),containerOffset:4,description:n(_d,{items:P,classes:y,componentSize:i,selectedValue:A?.value,changeSelectedItem:D,hasMore:p,loadingMore:h,onLoadMore:f}),children:n("div",{ref:R,className:Se()("select-module__popover-target__sZm8R")})})]})});var kd=s(353),Dd=s.n(kd),Md="calendarPopover-module__button__OeuOB",Ld="calendarPopover-module__buttons-container__AfhIW",Id="calendarPopover-module__calendar-container__oaYLG",Nd="calendarPopover-module__cell__SRzca",Td="calendarPopover-module__cell-circle__g39W8",zd="calendarPopover-module__cell-data__JaucX",Vd="calendarPopover-module__cell-selection__HAjxx",Fd="calendarPopover-module__cell-selection-first__HX9vJ",Hd="calendarPopover-module__cell-selection-last__fKUk_",qd="calendarPopover-module__cells-container__FRgCG",Bd="calendarPopover-module__date-time-mode__VMAyh",Wd="calendarPopover-module__medium__z28wH",Kd="calendarPopover-module__month__PliR3",Gd="calendarPopover-module__month-cell-selection__qFg7g",Ud="calendarPopover-module__month-cell-selection-first__sP5vu",Yd="calendarPopover-module__month-cell-selection-last__qmLPc",Jd="calendarPopover-module__month-view__Lhg3K",Qd="calendarPopover-module__navigation-arrow__Iq9ex",Zd="calendarPopover-module__navigation-container__MnZVh",Xd="calendarPopover-module__navigation-title__U0go2",$d="calendarPopover-module__navigation-value__abf_Q",ef="calendarPopover-module__root__WSPPf",tf="calendarPopover-module__small__vty_X",nf="calendarPopover-module__time-container___TvPa",rf="calendarPopover-module__time-divider__xebBR",of="calendarPopover-module__time-selection-marker__WznxQ",lf="calendarPopover-module__year__DgFQi";const af=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function sf(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,je.useRef)(null),s=(0,je.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,je.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,je.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,je.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,je.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:Se()("timeWheelColumn-module__time-wheel__fZDBM"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:Se()("timeWheelColumn-module__time-wheel-button__XHOTH","timeWheelColumn-module__time-wheel-item__YAUHz",e===r&&"timeWheelColumn-module__time-wheel-item-active__fHOGJ"),onClick:d(e),children:n(bt,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function cf(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,useUtc:f=!1,classes:p}=e,h=o??Dd(),m="dateTime"===a&&!l,[b,v]=(0,je.useState)("year"===a?"yearsRange":"month"),[y,O]=(0,je.useState)(()=>{if(s){const e=h(s);return{year:e.year(),month:e.month()}}const e=h();return{year:e.year(),month:e.month()}}),[w,S]=(0,je.useState)(s?m?h(s).second(0).millisecond(0).valueOf():h(s).startOf("D").valueOf():void 0),[j,P]=(0,je.useState)(c?h(c).startOf("D").valueOf():void 0),[_,x]=(0,je.useState)(m&&s?h(s).hour():0),[C,A]=(0,je.useState)(m&&s?h(s).minute():0),E=(0,je.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),R=(0,je.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),k=(0,je.useMemo)(()=>w?h(w).startOf("D").valueOf():void 0,[w,h]),D=(0,je.useMemo)(()=>j?h(j).startOf("D").valueOf():void 0,[j,h]),M=(0,je.useMemo)(()=>k?h(k).startOf("M").valueOf():void 0,[k,h]),L=(0,je.useMemo)(()=>D?h(D).startOf("M").valueOf():void 0,[D,h]),I=(0,je.useMemo)(()=>k?h(k).year():void 0,[k,h]),N=(0,je.useMemo)(()=>D?h(D).year():void 0,[D,h]),T=(0,je.useMemo)(()=>af(h,y.year,y.month,1,f).startOf("month"===b?"M":"y"),[y,b,h,f]),z=T.daysInMonth();let V=T.startOf("M").day()-1;V<0&&(V=6),(0,je.useEffect)(()=>w||j?"year"===a?!l&&w?void u(h(w).format("YYYY")):l&&w&&j?void u(h(w).format("YYYY"),h(j).format("YYYY")):void 0:void(m&&w?u(h(w).second(0).millisecond(0).format()):l||!w?l&&w&&j&&u(h(w).format(),h(j).format()):u(h(w).format())):(d?.(),void u()),[w,j,l,a,m,h,u,d]);const F=(0,je.useCallback)((e,t,n)=>h(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[h]);(0,je.useEffect)(()=>{if(!m||!w)return;const e=F(w,_,C);e!==w&&S(e)},[m,w,_,C,F]);const H=(0,je.useCallback)(e=>()=>{const t=af(h,y.year,y.month,1,f),n="yearsRange"===b?20*e:e,r="month"===b?"month":"year",o=t.add(n,r);O({month:o.month(),year:o.year()})},[b,y,h,f]),q=(0,je.useCallback)(()=>{"year"!==a&&v("month"===b?"year":"year"===b?"yearsRange":"month")},[b,a]),B=(0,je.useCallback)(e=>()=>{O({month:e.month(),year:e.year()}),v("month")},[]),W=(0,je.useCallback)(e=>()=>{const t=af(h,e,0,1,f).startOf("y").valueOf();if(!l)return S(m&&k===t?void 0:m||w!==t?m?F(t,_,C):t:void 0),void P(void 0);w&&j?t===w?S(void 0):(t===j||S(t),P(void 0)):w?t===w?S(void 0):t<w?(P(w),S(t)):P(t):j?t===j?P(void 0):t<j?S(t):(S(j),P(t)):S(t)},[F,j,m,l,_,C,w,k,h,f]),K=(0,je.useMemo)(()=>{const e=T.year();return 20*Math.floor(e/20)},[T]),G=(0,je.useCallback)(e=>()=>{if(!l)return S(w===e?void 0:e),void P(void 0);w&&j?e===w?S(void 0):(e===j||S(e),P(void 0)):w?e===w?S(void 0):e<w?(P(w),S(e)):P(e):j?e===j?P(void 0):e<j?S(e):(S(j),P(e)):S(e)},[w,j,l]),U=(0,je.useCallback)(e=>{S(void 0),P(void 0),m&&(x(0),A(0)),e.currentTarget.blur()},[m]),Y=(0,je.useCallback)(e=>{const t=h();O({year:t.year(),month:t.month()}),e.currentTarget.blur()},[h]);return r("div",{className:Se()(ef,g[i],m&&Bd,p?.root),children:[r("div",{className:Se()(Id,"month"===b&&Jd),children:[n("div",{className:Se()(Ld,p?.buttonsContainer),children:r(zu,{fillEvenly:!0,children:[n(Ke,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сбросить"}),"year"!==a&&n(Ke,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сегодня"})]})}),r("div",{className:Se()(Zd,p?.navigationContainer),children:[n("button",{type:"button",className:Se()(Md,Qd,p?.navigationArrow),onClick:H(-1),"aria-label":"Предыдущий период",children:n(Va,{})}),n("button",{type:"button",className:Se()(Md,$d,p?.navigationValue),onClick:q,children:r(bt,{variant:"subtitle1",className:Se()(Xd,p?.navigationTitle),children:["month"===b&&T.format("MMMM YYYY"),"year"===b&&T.format("YYYY"),"yearsRange"===b&&`${K} - ${K+19}`]})}),n("button",{type:"button",className:Se()(Md,Qd,p?.navigationArrow),onClick:H(1),"aria-label":"Следующий период",children:n(Ba,{})})]}),r("div",{className:Se()(qd,p?.cellsContainer),children:["yearsRange"===b&&n(t,{children:[...Array(20)].map((e,t)=>{const o=K+t,i="year"===a?W(o):()=>{O({month:0,year:o}),v("year")},s="year"===a&&void 0!==I&&(o===I||o===N);let c=!1,u=!1,d=!1;return void 0!==I&&(l?void 0!==N&&(I===N?o===I&&(c=!0):o>=I&&o<=N&&(c=!0,o===I?u=!0:o===N&&(d=!0))):"year"!==a&&o===I&&(c=!0)),r("button",{type:"button",className:Se()(Md,Nd,lf,p?.cell,p?.year),onClick:i,children:[s&&n("span",{className:Se()(Td,p?.cellCircle)}),c&&n("span",{className:Se()(Vd,p?.cellSelection,u&&Fd,u&&p?.cellSelectionFirst,d&&Hd,d&&p?.cellSelectionLast)}),n(bt,{variant:"subtitle1",className:Se()(zd,p?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===b&&n(t,{children:[...Array(12)].map((e,t)=>{const o=T.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==M&&void 0!==L?M===L?i===M&&(s=!0):i>=M&&i<=L&&(s=!0,i===M?c=!0:i===L&&(u=!0)):l||"year"===a||void 0===M?s=l?void 0!==M&&void 0!==L&&i>=M&&i<=L:void 0!==M&&i===M:i===M&&(s=!0),r("button",{type:"button",className:Se()(Md,Nd,Kd,p?.cell,p?.month),onClick:B(o),children:[s&&n("span",{className:Se()(Gd,p?.monthCellSelection,c&&Ud,c&&p?.monthCellSelectionFirst,u&&Yd,u&&p?.monthCellSelectionLast)}),n(bt,{variant:"subtitle1",className:Se()(zd,p?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===b&&r(t,{children:[[...Array(V)].map((e,t)=>n("div",{className:Se()(Nd,p?.cell)},`empty-cell-${t}`)),[...Array(z)].map((e,t)=>{const o=T.add(t,"d").valueOf();return r("button",{type:"button",className:Se()(Md,Nd,p?.cell),onClick:G(o),children:[(o===k||o===D)&&n("span",{className:Se()(Td,p?.cellCircle)}),void 0!==k&&void 0!==D&&o>=k&&o<=D&&n("span",{className:Se()(Vd,p?.cellSelection,o===k&&Fd,o===k&&p?.cellSelectionFirst,o===D&&Hd,o===D&&p?.cellSelectionLast)}),n(bt,{variant:"subtitle1",className:Se()(zd,p?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),m&&r("div",{className:Se()(nf),children:[n("div",{className:Se()(of)}),n(sf,{values:E,selectedValue:_,onSelect:x}),n(bt,{variant:"subtitle1",className:Se()(rf),children:":"}),n(sf,{values:R,selectedValue:C,onSelect:A})]})]})}const uf=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ff(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?df(Object(n),!0).forEach(function(t){pf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hf=(0,je.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,error:d,placeholder:f,defaultValues:p,values:h,onClear:m,onValueChange:g,dayjs:b,useUtc:v=!1,classes:y,id:O,onFocus:w,onBlur:S}=e,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,uf);const P=b??Dd(),[_,x]=(0,je.useState)(void 0!==h?h:p),[C,A]=(0,je.useState)(a),E=(0,je.useRef)(_);(0,je.useEffect)(()=>{void 0!==h&&x(h)},[h]),(0,je.useEffect)(()=>{void 0===h&&void 0!==p&&x(p)},[p,h]),(0,je.useEffect)(()=>{E.current=_},[_]);const R=i&&"dateTime"===l?"date":l,k=(0,je.useRef)(null),D=vt(),M=O??D,L=(0,je.useCallback)(e=>{A(!0),w?.(e)},[w]),I=(0,je.useCallback)(e=>{C||S?.(e)},[C,S]),N=(0,je.useCallback)(e=>{if(A(e),!e){const e=E.current;void 0!==e&&g?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();S?.({target:t,currentTarget:t})}},[S,g]),T=(0,je.useCallback)(()=>{k.current?.focus()},[]),z=!!d&&!u,V=(0,je.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=E.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(E.current=n,x(n))},[i]);return r(Ji,{variant:o,componentSize:s,fullWidth:c,label:u,error:d,inputId:M,hasArrow:!0,hasErrorIcon:z,classes:y,children:[n("input",ff(ff({ref:Ue([k,t]),id:M,className:Se()(Wi,"dateTime-module__input__kmAiU",y?.input),placeholder:f},j),{},{value:_?.[0]?i&&_[1]?`${P(_[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${P(_[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${P(_[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:I})),n("span",{onClick:T,className:Se()(Hi,y?.icon),children:n(Za,{})}),z&&d&&n(tl,{error:d,componentSize:s,className:y?.errorIcon}),n(Kl,{placement:"bottom-start",open:C,onOpenChange:N,classes:ff(ff({},y?.popover),{},{content:"dateTime-module__popover-content__oLd5U"}),containerOffset:4,description:n(cf,{dayjs:P,useUtc:v,classes:y,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:i,valueType:R,initStartDate:_?.[0],initEndDate:_?.[1],changeDates:V,onClear:m}),children:n("div",{className:Se()("dateTime-module__popover-target__KDRaS")})})]})});function mf(){return(mf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function bf(e){var t=(0,je.useRef)(e),n=(0,je.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var vf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},yf=function(e){return"touches"in e},Of=function(e){return e&&e.ownerDocument.defaultView||self},wf=function(e,t,n){var r=e.getBoundingClientRect(),o=yf(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:vf((o.pageX-(r.left+Of(e).pageXOffset))/r.width),top:vf((o.pageY-(r.top+Of(e).pageYOffset))/r.height)}},Sf=function(e){!yf(e)&&e.preventDefault()},jf=je.default.memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,o=gf(e,["onMove","onKey","onEnd"]),i=(0,je.useRef)(null),l=bf(t),a=bf(n),s=bf(r),c=(0,je.useRef)(null),u=(0,je.useRef)(!1),d=(0,je.useMemo)(function(){var e=function(e){Sf(e),(yf(e)?e.touches.length>0:e.buttons>0)&&i.current?l(wf(i.current,e,c.current)):(n(!1),s())},t=function(){n(!1),s()};function n(n){var r=u.current,o=Of(i.current),l=n?o.addEventListener:o.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(Sf(t),!function(e,t){return t&&!yf(e)}(t,u.current)&&r)){if(yf(t)){u.current=!0;var o=t.changedTouches||[];o.length&&(c.current=o[0].identifier)}r.focus(),l(wf(r,t,c.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&s()},n]},[a,l,s]),f=d[0],p=d[1],h=d[2],m=d[3];return(0,je.useEffect)(function(){return m},[m]),je.default.createElement("div",mf({},o,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:p,onKeyUp:h,tabIndex:0,role:"slider"}))}),Pf=function(e){return e.filter(Boolean).join(" ")},_f=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=Pf(["react-colorful__pointer",e.className]);return je.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},je.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},xf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Cf=(Math.PI,function(e){return Nf(Af(e))}),Af=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?xf(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?xf(parseInt(e.substring(6,8),16)/255,2):1}},Ef=function(e){return If(Mf(e))},Rf=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:xf(e.h),s:xf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:xf(o/2),a:xf(r,2)}},kf=function(e){var t=Rf(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Df=function(e){var t=Rf(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Mf=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:xf(255*[r,a,l,l,s,r][c]),g:xf(255*[s,r,r,a,l,l][c]),b:xf(255*[l,l,s,r,r,a][c]),a:xf(o,2)}},Lf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},If=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Lf(xf(255*o)):"";return"#"+Lf(t)+Lf(n)+Lf(r)+i},Nf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(a<0?a+6:a),s:i?l/i*100:0,v:i/255*100,a:o}},Tf=je.default.memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,o=Pf(["react-colorful__hue",e.className]);return je.default.createElement("div",{className:o},je.default.createElement(jf,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:vf(t+360*e.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":xf(t),"aria-valuemax":"360","aria-valuemin":"0"},je.default.createElement(_f,{className:"react-colorful__hue-pointer",left:t/360,color:kf({h:t,s:100,v:100,a:1})})))}),zf=je.default.memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,o={backgroundColor:kf({h:t.h,s:100,v:100,a:1})};return je.default.createElement("div",{className:"react-colorful__saturation",style:o},je.default.createElement(jf,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:vf(t.s+100*e.left,0,100),v:vf(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+xf(t.s)+"%, Brightness "+xf(t.v)+"%"},je.default.createElement(_f,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:kf(t)})))}),Vf=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Ff=function(e,t){return e.toLowerCase()===t.toLowerCase()||Vf(Af(e),Af(t))};function Hf(e,t,n,r){var o=bf(n),i=bf(r),l=(0,je.useState)(function(){return e.toHsva(t)}),a=l[0],s=l[1],c=(0,je.useRef)({color:t,hsva:a}),u=(0,je.useRef)(!1);(0,je.useEffect)(function(){if(!e.equal(t,c.current.color)){var n=e.toHsva(t);c.current={hsva:n,color:t},s(n),u.current=!1}},[t,e]),(0,je.useEffect)(function(){var t;Vf(a,c.current.hsva)||e.equal(t=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:t},o(t),u.current=!0)},[a,e,o]);var d=(0,je.useCallback)(function(e){s(function(t){return Object.assign({},t,e)})},[]),f=(0,je.useCallback)(function(){u.current&&(u.current=!1,i(c.current.color))},[i]);return[a,d,f]}var qf="undefined"!=typeof window?je.useLayoutEffect:je.useEffect,Bf=new WeakMap,Wf=function(e){qf(function(){var t=e.current;if("undefined"!=typeof document&&t){var n=t.getRootNode?t.getRootNode():t.ownerDocument,r=n&&("head"in n||"host"in n)?n:t.ownerDocument;if(!Bf.has(r)){var o="head"in r?r.head:r,i=(o.ownerDocument||document).createElement("style");i.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}';var l=s.nc;l&&i.setAttribute("nonce",l),Bf.set(r,i),o.appendChild(i)}}},[])},Kf=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,l=e.onChangeEnd,a=gf(e,["className","colorModel","color","onChange","onChangeEnd"]),s=(0,je.useRef)(null);Wf(s);var c=Hf(n,o,i,l),u=c[0],d=c[1],f=c[2],p=Pf(["react-colorful",t]);return je.default.createElement("div",mf({},a,{ref:s,className:p}),je.default.createElement(zf,{hsva:u,onChange:d,onChangeEnd:f}),je.default.createElement(Tf,{hue:u.h,onChange:d,onChangeEnd:f,className:"react-colorful__last-control"}))},Gf={defaultColor:"000",toHsva:Cf,fromHsva:function(e){return Ef({h:e.h,s:e.s,v:e.v,a:1})},equal:Ff},Uf=function(e){return je.default.createElement(Kf,mf({},e,{colorModel:Gf}))},Yf=function(e){var t=e.className,n=e.hsva,r=e.onChange,o=e.onChangeEnd,i={backgroundImage:"linear-gradient(90deg, "+Df(Object.assign({},n,{a:0}))+", "+Df(Object.assign({},n,{a:1}))+")"},l=Pf(["react-colorful__alpha",t]),a=xf(100*n.a);return je.default.createElement("div",{className:l},je.default.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),je.default.createElement(jf,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:vf(n.a+e.left)})},onEnd:o,"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},je.default.createElement(_f,{className:"react-colorful__alpha-pointer",left:n.a,color:Df(n)})))},Jf=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,l=e.onChangeEnd,a=gf(e,["className","colorModel","color","onChange","onChangeEnd"]),s=(0,je.useRef)(null);Wf(s);var c=Hf(n,o,i,l),u=c[0],d=c[1],f=c[2],p=Pf(["react-colorful",t]);return je.default.createElement("div",mf({},a,{ref:s,className:p}),je.default.createElement(zf,{hsva:u,onChange:d,onChangeEnd:f}),je.default.createElement(Tf,{hue:u.h,onChange:d,onChangeEnd:f}),je.default.createElement(Yf,{hsva:u,onChange:d,onChangeEnd:f,className:"react-colorful__last-control"}))},Qf={defaultColor:"0001",toHsva:Cf,fromHsva:Ef,equal:Ff},Zf=function(e){return je.default.createElement(Jf,mf({},e,{colorModel:Qf}))};const Xf=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","enableAlpha","disableLabel","onValueChange"];function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(Object(n),!0).forEach(function(t){tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const np=(0,je.forwardRef)(function(e,t){const{variant:o="outlined",componentSize:i="medium",fullWidth:l,label:a,error:s,classes:c,placeholder:u,disabled:d,defaultValue:f,id:p,enableAlpha:h=!1,disableLabel:m=!1,onValueChange:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Xf),[v,y]=(0,je.useState)(f?.toString()??"#AABBCC"),O=(0,je.useRef)(null),w=(0,je.useRef)(null),S=(0,je.useCallback)(e=>{y(e.toUpperCase()),g?.(e.toUpperCase())},[]),j=(0,je.useCallback)(e=>{e.preventDefault(),d||w?.current?.click()},[w,d]),P=p??Ht(),_=!!s&&!a&&!m,x=n(Kl,{placement:"bottom-start",classes:ep({content:Se()("colorPicker-module__popover-content___l9Cj",h&&"colorPicker-module__popover-content-alpha__qL4F7",c?.popoverContent)},c?.popover),containerOffset:4,description:n(h?Zf:Uf,{color:v,onChange:S}),children:n("div",{ref:w,className:Se()("colorPicker-module__popover-target__EZe64")})}),C=n("span",{onClick:j,className:Se()("colorPicker-module__swatch__CJpfS",h&&"colorPicker-module__swatch-alpha__fR5dI",m&&"colorPicker-module__swatch-only__Ssxwd",d&&"colorPicker-module__swatch-disabled__v7mTm",c?.icon),style:{"--swatch-color":v}});return m?r("div",{"data-size":i,className:Se()("colorPicker-module__root-only__Bqjfa",c?.root),children:[n("input",ep(ep({ref:Ue([O,t]),id:P,className:"colorPicker-module__hidden-input__iEwws"},b),{},{value:v,onChange:()=>{},disabled:d,tabIndex:-1,"aria-hidden":!0})),C,x]}):r(Ji,{variant:o,componentSize:i,fullWidth:l,label:a,error:s,inputId:P,onLabelClick:j,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:_,classes:ep(ep({},c),{},{root:Se()("colorPicker-module__root__Ni1Qk",c?.root)}),children:[n("input",ep(ep({ref:Ue([O,t]),id:P,className:Se()(Wi,"colorPicker-module__input__rwgTH",c?.input),placeholder:u},b),{},{value:v,onChange:()=>{},onClick:j,disabled:d})),C,n("span",{onClick:j,className:Se()(Hi,c?.arrow),children:n(hu,{})}),_&&s&&n(tl,{error:s,componentSize:i,className:c?.errorIcon}),x]})});var rp="input-module__field-icon__t2MCN";const op=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ip(Object(n),!0).forEach(function(t){ap(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ap(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sp=(0,je.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,error:c,startIcon:u,endIcon:d,classes:f,placeholder:p,id:h,type:m,onChange:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,op);const v=(0,je.useRef)(null),[y,O]=(0,je.useState)(""),w=vt(),S=h??w,j="file"===m,P=!!c&&!j&&!s,_=j?[]:function(e){return null==e||!1===e||!0===e?[]:(Array.isArray(e)?e:[e]).filter(e=>null!=e&&!1!==e&&!0!==e)}(d),x=_.length+(P?1:0),C=()=>{v.current?.focus()};return r(Ji,{variant:i,componentSize:l,fullWidth:a,label:s,error:c,inputId:S,hasStartIcon:!j&&!!u,endIconCount:x,classes:f,children:[j?r(t,{children:[n("input",lp({ref:Ue([v,o]),id:S,className:Se()("input-module__file-input__q2Nqj",f?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];O(t?.name??""),g?.(e)}},b)),r("div",{role:"button",tabIndex:0,className:Se()(Wi,"input-module__file-display__nDbsE",f?.input),onClick:()=>v.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v.current?.click())},children:[n("span",{className:Se()("input-module__file-name__X3xkl",!y&&"input-module__placeholder__NSfNL"),children:y||p}),n(aa,{size:20,className:"input-module__attach-icon__l8K5u"})]})]}):n("input",lp({ref:Ue([v,o]),id:S,className:Se()(Wi,"input-module__input__kODuu",f?.input),placeholder:p,type:m,autoComplete:"off",onChange:g},b)),!!u&&!j&&n("span",{onClick:C,className:Se()("fieldShell-module__start-icon__fIKEA",rp,f?.startIcon),children:u}),_.map((e,t)=>{const r=_.length-1-t+(P?1:0);return n("span",{onClick:C,className:Se()(Bi,rp,f?.endIcon),style:{right:`calc(var(--end-icon-edge) + ${r} * var(--end-icon-slot))`},children:e},t)}),P&&c&&n(tl,{error:c,componentSize:l,className:f?.errorIcon})]})});var cp="wrapForLabel-module__medium__TMPJd",up="wrapForLabel-module__root__n2E0p",dp="wrapForLabel-module__small__BWNtg";const fp=["componentSize","children","classes","className"];function pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pp(Object(n),!0).forEach(function(t){mp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gp=(0,je.forwardRef)(function(e,t){let{componentSize:r="medium",children:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fp);return n("div",hp(hp({ref:t,className:Se()(up,b[r],l,i?.root)},a),{},{children:o}))});function bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yp=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","onSearchChange","searchValue","hasMore","onSelectAll","loadingMore","onLoadMore","virtualize","classes","className"];function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Op(Object(n),!0).forEach(function(t){Sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Op(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jp=(0,je.forwardRef)(function(e,o){let{items:i,selected:l,disableSearch:a,isDisabled:s,actionWithSelected:c,onChangeItem:u,onSearchChange:d,searchValue:f,hasMore:p=!1,onSelectAll:h,loadingMore:m=!1,onLoadMore:g,virtualize:b=!1,classes:v,className:y}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,yp);const{t:w}=Qu(),S=void 0!==d,j=!a||S,[P,_]=(0,je.useState)(f??""),x=(0,je.useRef)(null),C=(0,je.useRef)(d),A=(0,je.useRef)(!0);C.current=d;const E=(0,je.useRef)(!0);(0,je.useEffect)(()=>{void 0!==f&&_(f)},[f]),(0,je.useEffect)(()=>{E.current?E.current=!1:x.current?.scrollTo({top:0})},[P]),(0,je.useEffect)(()=>{if(!C.current)return;if(A.current)return void(A.current=!1);const e=window.setTimeout(()=>{C.current?.(P)},300);return()=>window.clearTimeout(e)},[P]);const R=(0,je.useMemo)(()=>S?i.filter(e=>!l[e.value]):((e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bp(Object(n),!0).forEach(function(t){vp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(i,P,l),[i,P,S,l]),k=(0,je.useMemo)(()=>i.filter(e=>!!l[e.value]),[i,l]),D=(!p||!!h)&&!s&&R.length>0,M=(0,je.useMemo)(()=>{const e=[];return k.length>0&&(e.push({type:"selected-header",key:"selected-header"}),k.forEach(t=>{e.push({type:"selected",key:`selected-${t.value}`,item:t})})),D&&e.push({type:"select-all",key:"select-all"}),R.forEach(t=>{e.push({type:"option",key:`option-${t.value}`,item:t})}),e},[R,k,D]),L=Mu({count:b?M.length:0,enabled:b,getScrollElement:()=>x.current,estimateSize:e=>{return(t=M[e])&&"option"!==t.type&&"selected"!==t.type?36:24;var t},overscan:8,getItemKey:e=>M[e]?.key??e}),I=$u({scrollRef:x,hasMore:p,loading:m,onLoadMore:g,itemCount:i.length,resetKey:P,enabled:!!g}),N=(0,je.useCallback)(e=>{const t=!l[e.value];u&&u(e);const n=wp(wp({},l),{},{[e.value]:t});c(n)},[l,u,c]),T=(0,je.useCallback)(()=>{if(h)return void h(P);const e=wp({},l);R.forEach(t=>{e[t.value]=!0}),c(e)},[h,P,l,R,c]),z=(0,je.useCallback)(()=>{const e=wp({},l);k.forEach(t=>{delete e[t.value]}),c(e)},[l,k,c]),V=(0,je.useCallback)(e=>{_(e.target.value)},[]),F=(0,je.useCallback)(e=>t=>{t.stopPropagation(),N(e)},[N]),H=(e,t)=>n(zt,{label:e.name,checked:!!l[e.value],onChange:F(e),disabled:s,classes:v?.checkbox},`${t}-${e.value}`),q=D||0===R.length,B=()=>r("div",{className:Se()("checklist-module__action-wrap___WNPp",!q&&"checklist-module__action-wrap-end__nwOQE",v?.actionWrap),children:[q&&n(bt,{className:Se()(v?.typography),children:w("nntc_ui.common.checklist.selected")}),n(Ke,{variant:"text",componentSize:"small",compact:!0,disabled:s,onClick:z,className:Se()(v?.button),children:w("nntc_ui.common.checklist.cancel")})]}),W=()=>n(Ke,{variant:"text",componentSize:"small",compact:!0,disabled:s,onClick:T,className:Se()(v?.button),children:w("nntc_ui.common.checklist.selectAll")}),K=e=>"selected-header"===e.type?B():"select-all"===e.type?W():H(e.item,"selected"===e.type?"selected":"filtered"),G=b?L.getVirtualItems():[],U=b&&G.length>0,Y=S&&""!==P.trim()&&0===R.length;return r("div",wp(wp({ref:o,className:Se()("checklist-module__root__rtLgn",y,v?.root)},O),{},{children:[" ",j&&n(sp,{variant:"outlined",startIcon:n($s,{}),placeholder:w("nntc_ui.common.search.placeholder"),disabled:s,value:P,fullWidth:!0,classes:v?.searchInput,onChange:V}),r("div",{ref:x,className:Se()("checklist-module__scrolled__t7xdx","styledScroll",v?.scrolled),children:[U?n("div",{className:"checklist-module__virtual-space__cTHv9",style:{height:L.getTotalSize()},children:G.map(e=>{const t=M[e.index];return t?n("div",{"data-index":e.index,ref:L.measureElement,className:"checklist-module__virtual-item___Q2fN",style:{transform:`translateY(${e.start}px)`},children:K(t)},e.key):null})}):r(t,{children:[k.length>0&&r(t,{children:[B(),n("div",{children:k.map(e=>H(e,"selected"))})]}),D&&W(),n("div",{children:R.map(e=>H(e,"filtered"))})]}),n(Xu,{loading:m,hasMore:p&&!!g,empty:Y,sentinelRef:I})]})]}))}),Pp=["checklistWrapper"];function _p(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,onSearchChange:a,searchValue:s,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,disabled:p}=e,h=(0,je.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),m=(0,je.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),g=(0,je.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),b=i??{},{checklistWrapper:v}=b,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(b,Pp);return n("div",{className:Se()(v),children:n(jp,{virtualize:!0,disableSearch:!l,isDisabled:p,items:h,selected:m,actionWithSelected:g,onSearchChange:a,searchValue:s,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,classes:y})})}const xp=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","onSelectAll","loadingMore","onSearchChange","searchValue","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Cp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cp(Object(n),!0).forEach(function(t){Ep(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ep(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rp=(0,je.forwardRef)(function(e,t){const{variant:o="filled",componentSize:i="medium",icon:l,fullWidth:a,label:s,error:c,placeholder:u,items:d,onLoadMore:f,hasMore:p=!1,onSelectAll:h,loadingMore:m=!1,onSearchChange:g,searchValue:b,onValueChange:v,selected:y,classes:O,disabled:w,id:S,titleType:j="allValue",showSelectedCount:P=!1,enableSearch:_=!1,popoverInComponent:x=!1}=e,C=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,xp),A="chips"===j,{t:E}=Ju(),R=(0,je.useRef)(null),k=(0,je.useRef)(null),D=(0,je.useRef)(null),[M,L]=(0,je.useState)(!1),[I,N]=(0,je.useState)(),[T,z]=(0,je.useState)(0),V=void 0!==f||void 0!==g,{activeItems:F,remember:H}=function(e,t,n){const[r,o]=(0,je.useState)(()=>new Map);(0,je.useEffect)(()=>{n&&o(n=>{const r=new Set(e.map(e=>e.value)),o=new Set(t??[]);let i=!1;const l=new Map(n);return e.forEach(e=>{const t=l.get(e.value);t&&t.name===e.name&&t.description===e.description&&t.disabled===e.disabled||(l.set(e.value,e),i=!0)}),l.forEach((e,t)=>{o.has(t)||r.has(t)||(l.delete(t),i=!0)}),i?l:n})},[n,e,t]);const i=(0,je.useCallback)(e=>{n&&e.length&&o(t=>{const n=new Map(t);return e.forEach(e=>n.set(e.value,e)),n})},[n]);return{activeItems:(0,je.useMemo)(()=>{if(!t?.length)return[];if(!n)return e.filter(e=>t.includes(e.value));const o=new Map(e.map(e=>[e.value,e]));return t.map(e=>o.get(e)??r.get(e)??{name:e,value:e})},[n,e,r,t]),remember:i}}(d,y,V),q=(0,je.useRef)(F);q.current=F;const B=(0,je.useRef)(!1),W=(0,je.useRef)(""),K=(0,je.useMemo)(()=>{if(!V)return d;const e=new Set(d.map(e=>e.value)),t=F.filter(t=>!e.has(t.value));return t.length?[...t,...d]:d},[F,d,V]),G=(0,je.useCallback)(e=>{W.current=e,g?.(e)},[g]),U=(0,je.useCallback)(e=>{L(e),!e&&W.current&&(W.current="",g?.(""))},[g]);(0,je.useLayoutEffect)(()=>{const e=R.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();N(t),z(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,je.useLayoutEffect)(()=>{A&&z(e=>e+1)},[A,F.length]);const Y=(0,je.useCallback)(e=>{e.preventDefault(),w||L(e=>!e)},[w]),J=(0,je.useCallback)(e=>{v?.(e)},[v]),Q=(0,je.useCallback)(e=>{h&&!B.current&&(B.current=!0,Promise.resolve(h(e)).then(e=>{if(!Array.isArray(e))return;H(e);const t=new Map(q.current.map(e=>[e.value,e]));e.forEach(e=>{t.has(e.value)||t.set(e.value,e)}),v?.([...t.values()])}).finally(()=>{B.current=!1}))},[h,v,H]),Z=(0,je.useMemo)(()=>F.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("nntc_ui.common.multiSelect.selectedItems")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`;case"chips":return""}})(j,F,E):"",[j,F,E]),X=S??Ht(),$=!!c&&!s;return r(Ji,{variant:o,componentSize:i,fullWidth:a,label:s,error:c,labelExtra:P&&F.length>0?n("span",{className:Se()("multiSelect-module__label-selected-count__vykag",O?.labelSelectedCount),children:` (${F.length})`}):void 0,inputId:X,onLabelClick:Y,ref:R,hasStartIcon:!!l,hasArrow:!0,hasErrorIcon:$,hasClearButton:!!F.length,chipsMode:A,classes:O,children:[n("input",Ap(Ap({ref:Ue([k,t]),id:X,className:Se()(Wi,"multiSelect-module__input__vG33L",O?.input),placeholder:A&&F.length?void 0:u},C),{},{value:A?"":Z,onClick:Y,disabled:w,readOnly:!0,title:A?void 0:F.map(e=>e.name).join(", "),autoComplete:"off"})),A&&!!F.length&&n("span",{className:Se()(qi,"multiSelect-module__chips__jJlqe",O?.chips),children:F.map(e=>n(jl,{componentSize:i,disabled:w,onClick:()=>{w||L(e=>!e)},onRemove:()=>{const t=F.filter(t=>t.value!==e.value);v?.(t.length?t:null)},children:e.name},e.value))}),!!l&&n("span",{onClick:Y,className:Se()("multiSelect-module__icon__f8pIe",O?.icon),children:l}),!!F.length&&n("span",{onClick:()=>{v?.(null)},className:Se()("multiSelect-module__clear__s8X8D",O?.clear),children:n(il,{})}),n("span",{onClick:Y,className:Se()(Hi,O?.arrow),children:n(hu,{})}),$&&c&&n(tl,{error:c,componentSize:i,className:O?.errorIcon}),n(Kl,{placement:"bottom-start",open:M,onOpenChange:U,contentStyle:I?{width:I,minWidth:I,maxWidth:I}:void 0,classes:Ap({content:Se()("multiSelect-module__popover-content__OYXE6",O?.popoverContent)},O?.popover),containerOffset:4,layoutVersion:T,root:x?R.current:void 0,description:n(_p,{items:K,classes:Ap({searchInput:Ap({root:"multiSelect-module__search-input-root__S2Us8"},O?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__SqDIN",checklistWrapper:Se()("multiSelect-module__checklist-wrapper__Fw8O9"),scrolled:"multiSelect-module__checklist-scrolled__XQQba"},O?.selectPopover),componentSize:i,selected:y,onSelectedChange:J,enableSearch:_||void 0!==g,onSearchChange:g?G:void 0,searchValue:b,hasMore:p,onSelectAll:h?Q:void 0,loadingMore:m,onLoadMore:f,disabled:w}),children:n("div",{ref:D,className:Se()("multiSelect-module__popover-target__CM0gG")})})]})});var kp="radioButton-module__pressed__zYl50",Dp="radioButton-module__radio__HJxXO";const Mp=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach(function(t){Np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Np(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tp=(0,je.forwardRef)(function(e,t){const{label:o,componentSize:i="medium",canUncheck:l,onUncheck:a,classes:s,id:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Mp),f=(0,je.useRef)(null),p=(0,je.useRef)(!1),h=vt(),m=c??h;(0,je.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(kp),n=()=>{e.classList.add(kp),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g=(0,je.useCallback)(e=>{l&&p.current&&(f.current.checked=!1,a?.()),u?.(e)},[l,a,u]),b="large"===i?"subtitle1":"subtitle2";return r("div",{className:Se()("radioButton-module__root__stJhI",s?.root),children:[n("input",Ip({ref:Ue([f,t]),type:"radio",className:Se()("radioButton-module__input__EBKKq",s?.input),id:m,title:o,onClick:g},d)),r("label",{htmlFor:m,className:Se()("radioButton-module__label__E8YrK",s?.label),title:o,children:[n("span",{className:Se()(Dp,"radioButton-module__deselected__phKEf",s?.radio),children:n(ka,{})}),n("span",{className:Se()(Dp,"radioButton-module__selected__KErVW",s?.radio),children:n(Ia,{})}),!!o&&n(bt,{variant:b,className:Se()("radioButton-module__label-text__JHs3s",s?.labelText),children:o})]})]})});function zp(e,t){return"function"==typeof e?e(t):e}function Vp(e,t){return n=>{t.setState(t=>({...t,[e]:zp(n,t[e])}))}}function Fp(e){return e instanceof Function}function Hp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function qp(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Bp="debugHeaders";function Wp(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Kp={createTable:e=>{e.getHeaderGroups=Hp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Gp(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},qp(e.options,Bp)),e.getCenterHeaderGroups=Hp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Gp(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),qp(e.options,Bp)),e.getLeftHeaderGroups=Hp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Gp(t,i,e,"left")},qp(e.options,Bp)),e.getRightHeaderGroups=Hp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Gp(t,i,e,"right")},qp(e.options,Bp)),e.getFooterGroups=Hp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),qp(e.options,Bp)),e.getLeftFooterGroups=Hp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),qp(e.options,Bp)),e.getCenterFooterGroups=Hp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),qp(e.options,Bp)),e.getRightFooterGroups=Hp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),qp(e.options,Bp)),e.getFlatHeaders=Hp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),qp(e.options,Bp)),e.getLeftFlatHeaders=Hp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),qp(e.options,Bp)),e.getCenterFlatHeaders=Hp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),qp(e.options,Bp)),e.getRightFlatHeaders=Hp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),qp(e.options,Bp)),e.getCenterLeafHeaders=Hp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qp(e.options,Bp)),e.getLeftLeafHeaders=Hp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qp(e.options,Bp)),e.getRightLeafHeaders=Hp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),qp(e.options,Bp)),e.getLeafHeaders=Hp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},qp(e.options,Bp))}};function Gp(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=Wp(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Wp(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Up=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:Hp(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:Hp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),qp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),qp(e.options,"debugRows")),_getAllCellsByColumnId:Hp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),qp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Yp={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Jp=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};Jp.autoRemove=e=>ih(e);const Qp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Qp.autoRemove=e=>ih(e);const Zp=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Zp.autoRemove=e=>ih(e);const Xp=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};Xp.autoRemove=e=>ih(e);const $p=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});$p.autoRemove=e=>ih(e)||!(null!=e&&e.length);const eh=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});eh.autoRemove=e=>ih(e)||!(null!=e&&e.length);const th=(e,t,n)=>e.getValue(t)===n;th.autoRemove=e=>ih(e);const nh=(e,t,n)=>e.getValue(t)==n;nh.autoRemove=e=>ih(e);const rh=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};rh.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},rh.autoRemove=e=>ih(e)||ih(e[0])&&ih(e[1]);const oh={includesString:Jp,includesStringSensitive:Qp,equalsString:Zp,arrIncludes:Xp,arrIncludesAll:$p,arrIncludesSome:eh,equals:th,weakEquals:nh,inNumberRange:rh};function ih(e){return null==e||""===e}const lh={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Vp("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?oh.includesString:"number"==typeof r?oh.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?oh.equals:Array.isArray(r)?oh.arrIncludes:oh.weakEquals},e.getFilterFn=()=>{var n,r;return Fp(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:oh[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=zp(n,o?o.value:void 0);var l;if(ah(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=zp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!ah(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function ah(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const sh={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},ch={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Vp("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?sh.sum:"[object Date]"===Object.prototype.toString.call(r)?sh.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Fp(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:sh[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},uh={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Vp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=Hp(e=>[bh(t,e)],t=>t.findIndex(t=>t.id===e.id),qp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=bh(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=bh(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=Hp(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},qp(e.options,"debugTable"))}},dh={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Vp("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=Hp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},qp(t.options,"debugRows")),e.getLeftVisibleCells=Hp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},qp(t.options,"debugRows")),e.getRightVisibleCells=Hp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},qp(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=Hp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),qp(e.options,"debugColumns")),e.getRightLeafColumns=Hp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),qp(e.options,"debugColumns")),e.getCenterLeafColumns=Hp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},qp(e.options,"debugColumns"))}},fh={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ph={getDefaultColumnDef:()=>fh,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Vp("columnSizing",e),onColumnSizingInfoChange:Vp("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:fh.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:fh.size),null!=(o=e.columnDef.maxSize)?o:fh.maxSize)},e.getStart=Hp(e=>[e,bh(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),qp(t.options,"debugColumns")),e.getAfter=Hp(e=>[e,bh(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),qp(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),mh(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=mh(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof hh)return hh;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return hh=e,hh}()&&{passive:!1};mh(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let hh=null;function mh(e){return"touchstart"===e.type}const gh={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Vp("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Hp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),qp(t.options,"debugRows")),e.getVisibleCells=Hp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],qp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>Hp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),qp(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function bh(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const vh={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Vp("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>zp(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=zp(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,zp(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=zp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=Hp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},qp(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},yh={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Vp("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=Hp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),qp(e.options,"debugRows")),e.getBottomRows=Hp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),qp(e.options,"debugRows")),e.getCenterRows=Hp(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},qp(e.options,"debugRows"))}},Oh={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Vp("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{wh(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Hp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Sh(e,n):{rows:[],flatRows:[],rowsById:{}},qp(e.options,"debugTable")),e.getFilteredSelectedRowModel=Hp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Sh(e,n):{rows:[],flatRows:[],rowsById:{}},qp(e.options,"debugTable")),e.getGroupedSelectedRowModel=Hp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Sh(e,n):{rows:[],flatRows:[],rowsById:{}},qp(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return wh(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return jh(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===Ph(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===Ph(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},wh=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>wh(e,t.id,n,r,o))};function Sh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=jh(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function jh(e,t){var n;return null!=(n=t[e.id])&&n}function Ph(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(jh(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=Ph(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const _h=/([0-9]+)/gm;function xh(e,t){return e===t?0:e>t?1:-1}function Ch(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ah(e,t){const n=e.split(_h).filter(Boolean),r=t.split(_h).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const Eh={alphanumeric:(e,t,n)=>Ah(Ch(e.getValue(n)).toLowerCase(),Ch(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Ah(Ch(e.getValue(n)),Ch(t.getValue(n))),text:(e,t,n)=>xh(Ch(e.getValue(n)).toLowerCase(),Ch(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>xh(Ch(e.getValue(n)),Ch(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>xh(e.getValue(n),t.getValue(n))},Rh={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Vp("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Eh.datetime;if("string"==typeof n&&(r=!0,n.split(_h).length>1))return Eh.alphanumeric}return r?Eh.text:Eh.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Fp(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Eh[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},kh=[Kp,gh,uh,dh,Yp,lh,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Vp("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>oh.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Fp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:oh[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},Rh,ch,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Vp("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},vh,yh,Oh,ph];function Dh(e){var t,n;const r=[...kh,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=zp(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:Hp(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},qp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:Hp(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:Hp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},qp(e.options,"debugColumns")),getLeafColumns:Hp(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},qp(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},qp(e,"debugColumns")),getAllFlatColumns:Hp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),qp(e,"debugColumns")),_getAllFlatColumnsById:Hp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),qp(e,"debugColumns")),getAllLeafColumns:Hp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),qp(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function Mh(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?je.createElement(e,t):e:null;var n}const Lh=["open","onClose","root","children","classes","className","onClick"];function Ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach(function(t){Th(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Th(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zh=(0,je.forwardRef)(function(e,t){let{open:r,onClose:i,root:l,children:a,classes:s,className:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lh);const f=Oi(),p=(0,je.useRef)(null),h=(0,je.useRef)(null);if(!r||!a)return null;const m=n("div",{ref:p,className:"modal-module__overlay__jUOz9",onClick:e=>{e.target!==p.current&&h.current?.contains(e.target)||(e.stopPropagation(),i?.())},children:n("div",Nh(Nh({},d),{},{ref:e=>{e&&(h.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:Se()("modal-module__modal__MbFDb",c,s?.root),onClick:e=>{e.stopPropagation(),u?.(e)},children:a}))}),g=l&&"current"in l?l.current:l;return o(m,g??f??document.body)});var Vh="surface-module__medium__RDAZM",Fh="surface-module__modal__CR4M1",Hh="surface-module__overlay1__mkcgW",qh="surface-module__overlay2__SpRc6",Bh="surface-module__panel___5TWQ",Wh="surface-module__primary__eubsR",Kh="surface-module__root__NWwiS",Gh="surface-module__small__GMEm1";const Uh=["type","componentSize","children","classes","className"];function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(n),!0).forEach(function(t){Qh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zh=(0,je.forwardRef)(function(e,t){let{type:r="primary",componentSize:o="medium",children:i,classes:l,className:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Uh);return n("div",Jh(Jh({ref:t,className:Se()(Kh,a,l?.root,v[r],v[o])},s),{},{children:i}))});var Xh="virtualTable-module__align-center__rbiTV",$h="virtualTable-module__align-left__h55vl",em="virtualTable-module__align-right__D9XGD",tm="virtualTable-module__border-frame__cK6e3",nm="virtualTable-module__border-spacer__bjkt2",rm="virtualTable-module__borders-all__KkNTI",om="virtualTable-module__borders-horizontal__jR33G",im="virtualTable-module__borders-vertical__uEuZ0",lm="virtualTable-module__bottom-border__WDi6q",am="virtualTable-module__clickable__e1Fzm",sm="virtualTable-module__editable__ykKJ7",cm="virtualTable-module__error__AlQbz",um="virtualTable-module__even-row__G9kZ9",dm="virtualTable-module__first-th-row__gTB11",fm="virtualTable-module__input__woZy1",pm="virtualTable-module__label__MH9F1",hm="virtualTable-module__margin-left-changing__zOfJs",mm="virtualTable-module__medium__ir7ZQ",gm="virtualTable-module__modal-content__x3MRE",bm="virtualTable-module__page-loading-label__GmatN",vm="virtualTable-module__page-loading-lane__dNGr4",ym="virtualTable-module__page-loading-track__fGERG",Om="virtualTable-module__page-loading-up__dNqWK",wm="virtualTable-module__right-border__VUcBZ",Sm="virtualTable-module__right-border-with-bottom__RUwY4",jm="virtualTable-module__root__T5DB8",Pm="virtualTable-module__row-button-trigger__GOp1L",_m="virtualTable-module__rowspan-content__tVYnk",xm="virtualTable-module__select-rows___j564",Cm="virtualTable-module__selected__m1TlO",Am="virtualTable-module__show-in-modal__CRX1n",Em="virtualTable-module__small__Frhxm",Rm="virtualTable-module__sticky__IOXhs",km="virtualTable-module__success__xA9vR",Dm="virtualTable-module__table__DVtV1",Mm="virtualTable-module__table-container__Mg8RS",Lm="virtualTable-module__td__xaUJu",Im="virtualTable-module__th__e9Feh",Nm="virtualTable-module__th-cell__p6rQ6",Tm="virtualTable-module__th-hidden-column__G4mQg",zm="virtualTable-module__th-left-border__VLgUr",Vm="virtualTable-module__th-right-border__bNAS9",Fm="virtualTable-module__tr__zZyk5",Hm="virtualTable-module__vertical-align-center__BgJQa",qm="virtualTable-module__vertical-align-flex-end__tIx0q",Bm="virtualTable-module__vertical-align-flex-start___IFqc",Wm="virtualTable-module__view-cell__eY5xo",Km="virtualTable-module__view-span__SezD2";function Gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gm(Object(n),!0).forEach(function(t){Ym(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ym(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jm={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,je.useState)(c),[h,m]=(0,je.useState)(!1),[g,b]=(0,je.useState)(!1),v=(0,je.useRef)();v.current=()=>{b(!1)},(0,je.useEffect)(()=>{p(c)},[c]);const O=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(h&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),m(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),m(!1))};return n(Fi,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=O?.edit?O.edit(r,e):n(t,{children:n(sp,{classes:{input:fm},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const w=null!=O?.view?O.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed)),S=Boolean(u?.editable||u?.showInModal||u?.onClick&&i[l]?.payload);return n(Fi,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",Um(Um({className:Se()(Wm,u?.rowsAlign?y[`align${u?.rowsAlign}`]:void 0,u?.showInModal?Am:void 0,u?.onClick&&i[l]?.payload?am:void 0,i[l]?.fill?y[i[l].fill]:void 0,u?.editable?sm:void 0,u?.verticalAlign?y[`verticalAlign${u?.verticalAlign}`]:void 0)},S?{"data-vt-cell-action":""}:void 0),{},{onClick:S?e=>{e.ctrlKey||e.metaKey||e.shiftKey||(u?.editable?m(!0):u?.showInModal?b(!0):u?.onClick&&i[l]?.payload&&u.onClick(i[l]?.payload??{}))}:void 0,children:[n("span",{className:Km,children:w}),g&&n(zh,{root:d?.tableContainerRef?.current,open:g,onClose:()=>v.current?.(),children:n(Zh,{type:"panel",children:n("div",{className:gm,children:w})})})]}))})}},Qm=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function Zm(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,je.useState)(t);(0,je.useEffect)(()=>{o(i)},[i]);const a=(0,je.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:Se()("dateFiltration-module__root__q1XLM"),children:[n(hf,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(Fi,{label:"Сбросить",children:n(Ke,{onClick:a,className:Se()("dateFiltration-module__button__qR5Az"),variant:"text",componentSize:"small",textSecondary:!0,icon:n(il,{})})})]})}var Xm="numberFiltration-module__input__a8GyD";const $m=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function eg(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,je.useState)(o[0]===-1/0&&o[1]===1/0?$m[0]:o[0]===o[1]?$m[3]:o[0]===-1/0?$m[2]:o[1]===1/0?$m[1]:$m[0]),[s,c]=(0,je.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,je.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:Se()("numberFiltration-module__root__sSnKZ"),children:[n(Rd,{items:$m,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__KO1Ce"},tabIndex:-1}),n("div",{className:Se()("numberFiltration-module__inputs-container__Eqfwf"),children:"range"===l.value?r(t,{children:[n(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(sp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:Xm},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(Fi,{label:"Сбросить",children:n(Ke,{onClick:d,className:Se()("numberFiltration-module__button__PJOUL"),variant:"text",componentSize:"small",textSecondary:!0,icon:n(il,{})})})]})}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ng(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach(function(t){rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function og(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:h,filterBy:m,setFilterBy:g,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:O,rightAdditionalContent:w,children:S,rows:j,rowsForUniqueCount:P,externalValues:_}=e,x=a??b,{t:C}=Qu(),A=(0,je.useMemo)(()=>{const e=C("nntc_ui.view.virtualTable.noValue"),t=t=>void 0===t||""===t?e:d?d(t)?.toString()||e:void 0===f||Number.isNaN(parseFloat(t))?t.toString()||e:parseFloat(Number(t).toFixed(f)).toString(),n=t=>t.sort((t,n)=>{const r=t.name.toString(),o=n.name.toString();return r===e?-1:o===e?1:Qm(r,o)});if(_)return n(_.map(e=>({name:t(e),value:e??""})));const r=j.map(n=>({name:n[x]?t(n[x].value):e,value:n[x]?.value?.toString()||""}));n(r);return[...r.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]},[j,x,d,f,_,C]),E=(0,je.useMemo)(()=>{const e=new Set;_?_.forEach(t=>e.add(t??"")):(P??j).forEach(t=>{const n=t?.[x];e.add(n?(n.value??"")?.toString():"")});const t=m.find(e=>e.columnName===x&&"value"===e.type),n=(t?.values??[]).map(e=>(e??"")?.toString());if(n.length>0){const t=new Set(n);let r=0;return e.forEach(e=>{t.has(e)&&(r+=1)}),r}return e.size},[P,j,x,m,_]),R=(0,je.useMemo)(()=>{const e={};return m.find(e=>e.columnName===x)?.values.forEach(t=>{e[t]=!0}),e},[m,x]),k=(0,je.useMemo)(()=>m.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[m,x]),D=(0,je.useMemo)(()=>m.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[m,x]),M=e=>()=>{h(t=>t.some(t=>t.columnName===x&&t.direction===e)?t.filter(t=>!(t.columnName===x&&t.direction===e)):t.some(e=>e.columnName===x)?t.map(t=>t.columnName===x?ng(ng({},t),{},{direction:e}):ng({},t)):t.concat([{columnName:x,direction:e,sortType:l}]))},L=m.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),I=Object.keys(R).length>0||L,N=p.some(e=>e.columnName===x&&"desc"===e.direction),T=p.some(e=>e.columnName===x&&"asc"===e.direction),z=[];return i&&(z.push({type:"divider",name:C("nntc_ui.view.virtualTable.uniqueValues")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.uniqueOnly"),icon:n(rc,{}),selected:L,onClick:()=>{g(e=>{const t=e.findIndex(e=>e.columnName===x&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?ng(ng({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:x,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(z.push({type:"divider",name:C("nntc_ui.view.virtualTable.sort")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.AZ"),icon:n(dc,{}),selected:p.some(e=>e.columnName===x&&"asc"===e.direction),onClick:M("asc")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.ZA"),icon:n(mc,{}),selected:p.some(e=>e.columnName===x&&"desc"===e.direction),onClick:M("desc")})),r("div",{className:Se()("headerDropdown-module__root__WMUvA"),children:[O?.(x),S?.(y&&n("div",{children:`(${E})`})),w?.(x),(o||i||u||c||s)&&n(Kl,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(eg,{defaultValues:k,actionWithSelected:e=>{g(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===x&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"numberRange"===e.type);return-1!==r?n[r]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),c&&n(Zm,{defaultValues:D,actionWithSelected:e=>{g(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===x&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"dateRange"===e.type);return-1!==r?n[r]=ng(ng({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:Se()("headerDropdown-module__checklist-wrap__P7ADR"),children:n(jp,{items:A,selected:R,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e);g(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?ng(ng({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===x&&"value"===e.type);return-1!==r?n[r]=ng(ng({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(Pd,{items:z})})]}),children:n(Fi,{label:C("nntc_ui.view.virtualTable.sortAndFiltration"),placement:"bottom-end",root:v,children:n(Ke,{componentSize:"small",variant:"text",textSecondary:!I&&!N&&!T,icon:n(I?bs:N?mc:T?dc:$l,{})})})})]})}function ig(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const lg=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},ag=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:lg(t?.accessorKey?t:e),columns:e.columns?ag(e.columns,e):void 0})),sg=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(sg(e,t+1,n)):[],cg=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(cg(e,t-1,n)):[],ug=(e,t,n)=>e[t+1]&&cg(e,t+1,n).length?[e[t+1].headers[n]].concat(ug(e,t+1,n)):[],dg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(dg(e,t-1)):[];function fg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=Dd()(t.values[0]),n=Dd()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=Dd()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}return n?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes((r||"")?.toString()):t.values.includes("")}const pg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>fg(e,n)||1===e.isNew?.value):e;return pg(r,t.slice(0,t.length-1))}return e},hg=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=Qm(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return hg(r,t.slice(0,t.length-1))}return e},mg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},gg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bg(Object(n),!0).forEach(function(t){yg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Og=(0,je.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[32],bodyRowHeight:p=32,rowActionWidth:h=77,classes:m,dynamicRowHeight:g=!1,height:b,scrollToBottom:v,useTableContainerAsRootForPopup:O,componentSize:w="small",borders:S="horizontal",showUniqueValuesCount:j=!1,globalFilters:P,globalSorts:_,onFiltersChange:x,onSortsChange:C,leftAdditionalHeaderContent:A,rightAdditionalHeaderContent:E,showRowsNumbers:R,stripedRows:k=!0,enableSelectRows:D=!1,onSelectRowsChange:M,globalSelectedRows:L,manualRows:I=!1,externalFilterValues:N,windowed:T=!1,totalCount:z,page:V,pageSize:F,onRequestPage:H,loadingPage:q=!1}=e,{t:B}=Qu(),W=d+(R?1:0),[K,G]=(0,je.useState)(P??[]),[U,Y]=(0,je.useState)([..._??[],{columnName:"isNew",direction:"desc"}]),[J,Q]=(0,je.useState)(()=>new Set),Z=(0,je.useRef)(null),X=(0,je.useRef)(null),$=(0,je.useRef)("down"),ee=(0,je.useRef)(0),te=(0,je.useRef)("down"),ne=(0,je.useRef)(J),re=(0,je.useRef)(D?L??[]:[]),oe=(0,je.useRef)([]),ie=(0,je.useRef)(null),le=(0,je.useRef)(null),ae=(0,je.useRef)(null),se=(0,je.useRef)(M),ce=(0,je.useRef)(D);ne.current=J,se.current=M,ce.current=D;const ue=Boolean(T&&F&&F>0),de=ue?(V??0)*F:0,fe=ue?Math.max(0,z??0):0,pe=(0,je.useMemo)(()=>R?`rowNumber_${Ht()}`:null,[R]),he=(0,je.useMemo)(()=>{if(!pe)return ag(l);const e=t=>vg(vg({id:pe},t?.columns?.length?void 0:{accessorKey:pe}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return ag(t)},[l,pe]),me=(0,je.useMemo)(()=>{if(I)return i;const e=[...i],t=K.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||i.some(t=>fg(t,e))),n=t.length?pg(e,t):K.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!Dd()(e).isSame(Dd()(0))&&!Dd()(e).isSame(Dd()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=U.length?hg(n,U):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=ig(r,e.columnName));return r},[i,U,K,I]),ge=(0,je.useMemo)(()=>{const e=pe?me.map((e,t)=>vg(vg({},e),{},{[pe]:{value:de+t+1}})):me;return I&&ue&&0===e.length&&fe>0||window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[me,pe,de,I,ue,fe]);oe.current=me;const be=(0,je.useCallback)((e,t)=>{const n=oe.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=ne.current,a=o.size===l.size&&r.every(e=>l.has(e));a||(Q(o),ne.current=o,re.current=i,se.current?.(i)),null!==t&&n[t]?(ie.current=t,le.current=n[t]):null===t&&(ie.current=null,le.current=null)},[]);(0,je.useEffect)(()=>{const e=le.current;if(e){const t=me.indexOf(e);ie.current=-1===t?null:t,-1===t&&(le.current=null)}if(0===re.current.length)return void(ne.current.size>0&&be(new Set,ie.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(me,re.current),n=t.size>0?Math.max(...t):null;be(t,ie.current??n)},[me,be]),(0,je.useEffect)(()=>{!D&&ne.current.size>0&&be(new Set,null)},[D,be]);const ve=(0,je.useMemo)(()=>{if(I)return[];const e=[...i];return Array.from({length:K.length+1},(t,n)=>pg(e,K.slice(0,n)))},[i,K,I]),ye=(0,je.useMemo)(()=>c??(e=>pe&&0===e?8*(ue?fe:ge.length).toString().length+24:he[e]?.meta?.width??200),[c,he,ge,pe,ue,fe]),Oe=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=je.useState(()=>({current:Dh(t)})),[r,o]=je.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:ge,columns:he,defaultColumn:Jm,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>Hp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Up(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},qp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:he.filter((e,t)=>t<W).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{s?.(e,t,n,r)},tableContainerRef:Z,additionalColumnsViews:a}}),{rows:we}=Oe.getRowModel(),Pe=Oe.getHeaderGroups(),_e=Mu({count:ue?fe:we.length,getScrollElement:()=>Z?.current,estimateSize:()=>p,overscan:5}),xe=Mu({horizontal:!0,count:Pe[0]?.headers.length??1,rangeExtractor:(0,je.useCallback)(e=>{const t=[...Array(W)].map((e,t)=>t);return[...new Set([...t,...ju(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>Z?.current,estimateSize:ye,overscan:5}),Ce=(0,je.useMemo)(()=>[...Array(W)].reduce((e,t,n)=>e+ye(n),0),[W,ye]),Ae=(0,je.useMemo)(()=>{const e=Pe.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push(32);return t},[f,Pe]),Ee=(0,je.useMemo)(()=>Ae.reduce((e,t,n)=>n<Pe.length?e+t:e,0),[Ae,Pe]),Re=(0,je.useCallback)(e=>Ae.reduce((t,n,r)=>r<e?t+n:t,0),[Ae,Pe]),ke=_e.getTotalSize(),De=xe.getTotalSize(),Me=ke+Ee,Le=De+(u?h:0),Ie=()=>{G([])},Ne=()=>{Y([{columnName:"isNew",direction:"desc"}])};(0,je.useImperativeHandle)(o,()=>({resetFilters:Ie,resetSorts:Ne})),(0,je.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${hm}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return Z?.current&&(Z.current.addEventListener("scroll",e),v&&Z.current.scrollTo(0,Z.current.scrollHeight)),()=>{Z?.current&&Z.current.removeEventListener("scroll",e)}},[Z,v]);const Te=_e.getVirtualItems();(0,je.useEffect)(()=>{if(!ue||!H||q||!F||fe<=0||0===Te.length)return;const e=Z.current;if(!e)return;const{scrollTop:t}=e;t>ee.current+1?te.current="down":t<ee.current-1&&(te.current="up"),ee.current=t;const n="up"===te.current,r=Math.max(0,e.clientHeight-Ee),o=n?1/3:1-1/3,i=Math.max(0,t+r*o-_e.options.scrollMargin),l=_e.getVirtualItemForOffset(i);if(!l)return;const a=Math.floor(l.index/F);a!==(V??0)&&($.current=a<(V??0)?"up":"down",H(a))},[ue,H,q,F,fe,V,Ee,Te,_e]),(0,je.useLayoutEffect)(()=>{if(!q)return;const e=Z.current,t=X.current;if(!e||!t)return;const n=()=>{t.style.width=`${e.clientWidth}px`};n();const r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[q]);const ze=xe.getVirtualItems(),Ve=ze[ze.length-1]?.index,Fe=(0,je.useMemo)(()=>new Map(Te.map(e=>[e.index,e.size])),[Te]),He=(0,je.useCallback)(e=>Fe.get(e)??p,[p,Fe]),qe=(0,je.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=ue?fe:we.length,o=Math.min(r-1,e+n-1),i=o-e+1;let l=0;for(let t=e;t<=o;t+=1)l+=He(t);const a="all"===S||"horizontal"===S?Math.max(0,i-1):0;return Math.max(0,l-a)},[S,He,ue,we.length,fe]),Be=(0,je.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=we[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[we]),We=(0,je.useCallback)(e=>{const t=Z.current,n=ue?fe:oe.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-Ee;let o;if(r<0)o=0;else if(r>=_e.getTotalSize())o=n-1;else{const e=_e.measurementsCache;if(o=-1,e.length>0){let t=0,i=e.length-1;for(;t<=i;){const l=t+i>>1,a=e[l];if(r<a.start)i=l-1;else{if(!(r>=a.end)){o=Math.min(n-1,a.index);break}t=l+1}}}if(-1===o)if(g){const e=_e.getVirtualItems();if(0===e.length)return null;o=r<e[0].start?e[0].index:e[e.length-1].index}else o=Math.max(0,Math.min(n-1,Math.floor(r/p)))}if(!ue)return o;const i=o-de,l=oe.current.length;return i>=0&&i<l?i:null},[p,g,ue,de,_e,Ee,fe]),Ge=(e,t)=>{const n=ae.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:a}=e;if(o&&null!==i){const e=mg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(a){const e=mg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});be(r.indexes,r.anchor)},Ue=e=>{const t=ae.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||Ge(t.startIndex,!1),ae.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Ye=(0,je.useCallback)((e,t)=>1===e?.isNew?.value||J.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[J]),Je=(0,je.useMemo)(()=>{const e=we.length,t=new Map;return we.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[we]),Qe=(0,je.useMemo)(()=>we.length*we.length+we.length+10,[we.length]),Ze=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(je.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return Mh(e.column.columnDef.header,e.getContext())},Xe=(()=>{if(!q||!ue||0===we.length)return null;const e=$.current,t="up"===e?de:de+we.length-1,n=_e.measurementsCache[t],r=n?.start??t*p;return{direction:e,top:Ee+("up"===e?r:r+(n?.size??p))-_e.options.scrollMargin}})(),[$e,et]=ze.length>0?[W&&ze[W].index!==W?ze[W].start-Ce:ze[0].start,De-ze[ze.length-1].end]:[0,0];return(0,je.useEffect)(()=>{x?.(K)},[K]),(0,je.useEffect)(()=>{C?.(U.filter(e=>"isNew"!==e.columnName))},[U]),n("div",{className:Se()(jm,y[w],y[`borders${tt=S,tt[0].toUpperCase()+tt.substring(1)}`],m?.root),style:b?{height:b}:void 0,children:n("div",{ref:Z,className:Se()(Mm,"styledScroll",D&&xm),onPointerDown:D?e=>{if(!ce.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${Fm}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));if(!Number.isFinite(n))return null;if(!ue)return n;const r=n-de,o=oe.current.length;return r>=0&&r<o?r:null})(e.target);if(null===t){if(gg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${Im}`)))return;return void(ne.current.size>0&&be(new Set,null))}if(gg(e.target))return;const n=e.target instanceof Element&&null!==e.target.closest("[data-vt-cell-action]"),r=e.ctrlKey||e.metaKey||e.shiftKey;if(n&&!r)return;const o="mouse"===e.pointerType||"pen"===e.pointerType;ae.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(ne.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:ie.current,isDragCapable:o&&!n,hasDragged:!1},n?Ge(t,!1):o&&(e.currentTarget.setPointerCapture(e.pointerId),Ge(t,!1))}:void 0,onPointerMove:D?e=>{const t=ae.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=Z.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+Ee?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=We(e.clientY);null!==i&&Ge(i,!0)}:void 0,onPointerUp:D?Ue:void 0,onPointerCancel:D?Ue:void 0,onDragStart:D?e=>e.preventDefault():void 0,children:r("div",{className:Dm,style:{width:`${Le}px`,height:`${Me}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:Qe},children:Pe.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=K.findIndex(e=>e.columnName===o),l=I?N?.[o]??[]:void 0,a=l?[]:-1===i?ge:ve[i];return n("div",{className:Se()(Nm),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==pe&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?n(og,{headerMeta:t,sortBy:U,setSortBy:Y,filterBy:K,setFilterBy:G,rows:a,rowsForUniqueCount:ge,externalValues:l,headerName:e.column.columnDef.id??e.id,containerRef:O?Z:void 0,showUniqueValuesCount:j,leftAdditionalContent:A,rightAdditionalContent:E,children:n=>r("div",{className:Se()(pm,t?.headerAlign?y[`align${t?.headerAlign}`]:$h),children:[Ze(e),n]})}):n("div",{className:Se()(pm,t?.headerAlign?y[`align${t?.headerAlign}`]:$h),children:Ze(e)})})};return r(je.Fragment,{children:[[...Array(W)].map((r,i)=>{const l=e.headers[i],a=sg(e.headers,i,Ve),s=ug(Pe,t,i);return n("div",{className:Se()(Im,0===t?dm:void 0,!s.length&&i!==e.headers.length-1&&Vm,0===i&&zm,s.length&&!a.length&&Tm,hm),style:{zIndex:Qe+1,width:`${ye(i)}px`,height:`${Ae[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>ye(t)).reduce((e,t)=>e+t,0)}px) translateY(${Re(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),ze.map(r=>{if(r.index>W-1){const i=e.headers[r.index],l=sg(e.headers,r.index,Ve),a=dg(e.headers,r.index),s=ug(Pe,t,r.index),c=cg(Pe,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?Qe+l.length+2:void 0,f=c.length?Ae[t]+c.reduce((e,n,r)=>e+(Ae[t-r-1]??0),0):Ae[t],p=c.length?Re(t)-c.reduce((e,n,r)=>e+(Ae[t-r-1]??0),0):Re(t);return n("div",{className:Se()(Im,0===t&&dm,!s.length&&r.index!==e.headers.length-1&&Vm,0===r.index&&zm,s.length&&!l.length&&Tm),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(W?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==S&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:Se()(Im,0===t?dm:void 0),style:{width:`${h}px`,height:`${Ae[t]}px`,transform:`translateX(${De+(W?-2:0)}px) translateY(${Re(t)}px)`}})]},e.id)})}),Te.map(e=>{const t=e.index-de,o=t>=0&&t<we.length?we[t]:void 0;return o?r("div",{"data-index":e.index,ref:g?_e.measureElement:void 0,className:Se()(Fm,k&&e.index%2!=0&&um,(1===o.original?.isNew?.value||J.has(t))&&Cm),style:vg(vg({zIndex:Je.get(t)??1},!g&&{height:e.size}),{},{transform:"translateY("+(Ee+e.start-_e.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${$e}px`}}),ze.map(r=>{const i=o.getAllCells()[r.index],l="left"===i.column.getIsPinned(),a=o.original?.[i.column.id],s=Math.max(1,a?.rowspan??1),c=Be(t,i.column.id),u=s>1&&!c;return n("div",{"data-col-index":r.index,className:Se()(Lm,l&&Rm),style:vg(vg({},l&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!g&&!u&&{overflow:"hidden"}),"data-index":e.index,children:!c&&(u?n("div",{className:_m,style:{height:`${qe(e.index,s)}px`,backgroundColor:Ye(o.original,t)},children:Mh(i.column.columnDef.cell,i.getContext())}):Mh(i.column.columnDef.cell,i.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:Se()(Lm),style:vg({width:`${h}px`,justifyContent:"flex-start",padding:"4px"},!g&&{overflow:"hidden"}),children:u?.(o.original)?.map(e=>n(je.Fragment,{children:e.template?e.template(e):n(Fi,{label:e.title,placement:"top",wrapTrigger:!0,classes:{trigger:Pm},children:n(Ke,{onClick:()=>e.onClick?.(t,o.original),componentSize:"small",variant:"text",icon:e.icon})})},e.title))}),n("div",{style:{width:`${et}px`}})]},`row-${e.key}`):n("div",{"data-index":e.index,className:Se()(Fm,k&&e.index%2!=0&&um),style:{height:e.size,transform:"translateY("+(Ee+e.start-_e.options.scrollMargin)+"px)"}},`row-${e.key}`)}),Xe&&n("div",{className:ym,style:{top:Xe.top,zIndex:Qe-1},children:n("div",{ref:X,className:Se()(vm,"up"===Xe.direction&&Om),children:n("div",{className:bm,role:"status",children:B("nntc_ui.view.virtualTable.loadingData")})})}),("all"===S||"vertical"===S||"horizontal"===S)&&r("div",{className:tm,style:{zIndex:Qe+2},children:[n("div","all"===S||"vertical"===S?{className:Se()(wm,"all"===S&&Sm)}:{className:nm}),("all"===S||"horizontal"===S)&&n("div",{className:lm})]})]})})});var tt});var wg="treeViewItem-module__selectable__ZflaR",Sg="treeViewItem-module__selected__JQfHF";const jg=(0,je.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,je.useState)(!1);(0,je.useEffect)(()=>{p(!!i)},[i]);const h=!!d?.length,m=s&&u?.[s],g=l[o];return r("div",{children:[r("div",{className:Se()("treeViewItem-module__item__x24lD",{[wg]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[h&&n(Ts,{}),r("div",{className:Se()("treeViewItem-module__title__LS87U",{[Sg]:g}),children:[m,n(bt,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Psa6v",children:n(g?is:Jl,{})})]})]}),f&&h&&n("div",{className:"treeViewItem-module__children__zgXjR",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function Pg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pg(Object(n),!0).forEach(function(t){xg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cg=["data","selected","startIcons","onSelect","withSearch","className"];function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach(function(t){Rg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kg=(0,je.forwardRef)(function(e,t){let{data:o,selected:i,startIcons:l,onSelect:a,withSearch:s=!1,className:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cg);const[d,f]=(0,je.useState)(""),p=(0,je.useCallback)(e=>f(e.target.value),[]),h=(0,je.useMemo)(()=>i.reduce((e,t)=>(e[t]=!0,e),{}),[i]),m=(0,je.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(_g(_g({},t),{},{children:n}))}return e};return e.reduce(r,[])})(o,d),[o,d]);return r("div",Eg(Eg({ref:t,className:c},u),{},{children:[s&&n(sp,{variant:"outlined",startIcon:n($s,{}),value:d,fullWidth:!0,onChange:p,classes:{root:"treeView-module__search__dvz4l"}}),n("div",{className:"styledScroll",children:m.map(({id:e,name:t,children:r})=>n(jg,{title:t,value:e,searchValue:d,children:r,startIcons:l,onSelect:a,selected:h},e))})]}))}),Dg=(0,je.memo)(kg);var Mg="pairs-module__labels-with-borders__R7DHF",Lg="pairs-module__row-container-borders__aZqF4",Ig="pairs-module__values-with-borders__IoG1U";function Ng(e){const{label:t}=e,[r,o]=(0,je.useState)(t);return n(Fi,{label:r,children:n(bt,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const Tg=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zg(Object(n),!0).forEach(function(t){Fg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hg=(0,je.forwardRef)(function(e,o){let{pairs:i,column1Width:l="50%",column2Width:a="50%",showBorder:s,minRowHeight:c,classes:u,className:d,style:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Tg);return n("div",Vg(Vg({ref:o,className:Se()(d,u?.root),style:f},p),{},{children:i.map((e,o)=>n("div",{style:{minHeight:c,display:"flex"},className:Se()(u?.rowContainer,{[Lg]:s}),children:e&&r(t,{children:[n("div",{className:Se()("pairs-module__labels-container__Sr8b_",u?.labelsContainer,{[Mg]:s}),style:{width:l,minWidth:l},children:n(bt,{className:"pairs-module__dim-typography__WR4xl",children:e.label})}),n("div",{style:{width:a,minWidth:a},className:Se()("pairs-module__values-container__jB2cJ",u?.valuesContainer,{[Ig]:s}),children:n(Ng,{label:e.value})})]})},o))}))});var qg="chip-module__clickable__TUTgS",Bg="chip-module__filled__EHPO6",Wg="chip-module__icon__lCVDX",Kg="chip-module__icon-clickable__pVkQ_",Gg="chip-module__icon-left__ErNwI",Ug="chip-module__icon-right__CrocA",Yg="chip-module__icon-right-slot__wpFIw",Jg="chip-module__label__zdrBP",Qg="chip-module__medium__UhEci",Zg="chip-module__outlined__r71l2",Xg="chip-module__root__PRr_w",$g="chip-module__secondary__A_nQw",eb="chip-module__small__dtqpK",tb="chip-module__with-icon__wzJU8";const nb=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function rb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rb(Object(n),!0).forEach(function(t){ib(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ib(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lb=(0,je.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,iconPlacement:a="right",secondary:s,onClick:c,onIconClick:u,children:d,classes:f,className:p}=e,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,nb);const m=e=>{e.stopPropagation(),u?.()},g=u?"button":"span",b=!!l&&"left"===a,v=!!l&&"right"===a;return r("div",ob(ob({ref:t,className:Se()(Xg,O[o],O[i],!!l&&tb,b&&Gg,v&&Ug,s&&$g,c&&qg,p,f?.root),tabIndex:c?0:void 0,role:c?"button":void 0},h),{},{onClick:c,children:[b&&n(g,{className:Se()(Wg,u&&Kg,f?.icon),onClick:u?m:void 0,"aria-label":u?"Удалить":void 0,children:l}),d&&n("span",{className:Se()(Jg,f?.label),children:d}),v&&n(g,{className:Se()(Wg,Yg,u&&Kg,f?.icon),onClick:u?m:void 0,"aria-label":u?"Удалить":void 0,children:l})]}))}),ab=["width","height","className","classes","alt"];function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ub=(0,je.forwardRef)(function(e,t){let{width:r=60,height:o=1.5*r,className:i,classes:l,alt:a="loading"}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ab);return n("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sb(Object(n),!0).forEach(function(t){cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:a,width:r,height:o,className:Se()("loader-module__root__RU8Ov",i,l?.root)},s))});var db="alert-module__default__Wedqm",fb="alert-module__error__hMcQT",pb="alert-module__icon__E2Ch1",hb="alert-module__info___t4NH",mb="alert-module__medium__Z731x",gb="alert-module__message__RhPdI",bb="alert-module__root__OeAcB",vb="alert-module__small__m75_f",yb="alert-module__success__frW1w",Ob="alert-module__warning__p4tWV";const wb=["alertType","componentSize","icon","children","classes","className","role"];function Sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sb(Object(n),!0).forEach(function(t){Pb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _b={success:n(is,{}),warning:n(Es,{}),error:n($i,{}),info:n(_s,{}),default:null},xb=(0,je.forwardRef)(function(e,t){let{alertType:o="info",componentSize:i="medium",icon:l,children:a,classes:s,className:c,role:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,wb);const f=!1===l?null:l??_b[o];return r("div",jb(jb({ref:t,role:u??"alert",className:Se()(bb,w[o],w[i],c,s?.root)},d),{},{children:[null!=f&&n("span",{className:Se()(pb,s?.icon),"aria-hidden":!0,children:f}),null!=a&&!1!==a&&n("div",{className:Se()(gb,s?.message),children:a})]}))});var Cb="card-module__actions__ZJ6UM",Ab="card-module__body-full-size__RmpRw",Eb="card-module__body-padded__l5QS5",Rb="card-module__body-padded-no-header__ZbnPS",kb="card-module__header__n_G4u",Db="card-module__header-overlay__uPDfl",Mb="card-module__medium__pVsKH",Lb="card-module__root__GQS7Y",Ib="card-module__small__wzZOs";const Nb=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach(function(t){Vb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fb=(0,je.forwardRef)(function(e,t){let{surfaceType:o="primary",componentSize:i="medium",title:l,actions:a,children:s,classes:c,className:u,headerOverlay:d=!0,fullSizeBody:f=!1}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nb);const h=!!l||!!a;return r(Zh,zb(zb({ref:t,type:o,className:u,classes:{root:Se()(Lb,S[i],c?.root)}},p),{},{children:[h&&r("div",{className:Se()(kb,d&&Db,c?.header),children:[l??n("div",{}),!!a&&n("div",{className:Se()(Cb,c?.actions),children:a})]}),n("div",{className:Se()(f?Ab:h?Eb:Rb,c?.body),children:s})]}))});var Hb="tabs-module__disable-border__Vw9nt",qb="tabs-module__disabled__e_X85",Bb="tabs-module__extraLarge__Vr50m",Wb="tabs-module__filled__Kzrnb",Kb="tabs-module__filled-tabs___LvVq",Gb="tabs-module__has-actions__OD8xm",Ub="tabs-module__icon-only__qDPjH",Yb="tabs-module__large__v3OJM",Jb="tabs-module__medium__dvN0f",Qb="tabs-module__root__m7YiQ",Zb="tabs-module__scrollable__eR0BR",Xb="tabs-module__selected__YEXTT",$b="tabs-module__selected-filled__MkMIt",ev="tabs-module__selected-item-filled__eUWV8",tv="tabs-module__small__hiwdI",nv="tabs-module__tab__NoNie",rv="tabs-module__tab-actions__YBrq0",ov="tabs-module__tab-border__tvFwj",iv="tabs-module__tab-border-vertical__TVo15",lv="tabs-module__tab-filled__Gmwpo",av="tabs-module__tab-icon__Kj5Oa",sv="tabs-module__tab-item-filled__JTGlH",cv="tabs-module__tab-title__XsuJP",uv="tabs-module__tab-vertical__WQDkd",dv="tabs-module__vertical__sPO6h";const fv=["items","defaultSelected","onChange","componentSize","filled","filledTabs","isVertical","disableBorder","allowDeselect","showTooltips","scrollable","useExternalState","value","classes","className"];function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pv(Object(n),!0).forEach(function(t){mv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gv(e,t){let{items:o,defaultSelected:i,onChange:l,componentSize:a="medium",filled:s=!1,filledTabs:c=!1,isVertical:u=!1,disableBorder:d=!1,allowDeselect:f=!1,showTooltips:p=!1,scrollable:h=!1,useExternalState:m=!1,value:g,classes:b,className:v}=e,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fv);const[O,w]=(0,je.useState)(!1),[S,P]=(0,je.useState)(i),_=m?g:S,x=e=>()=>{e.isDisabled||(e.onClick?e.onClick():m?f&&_===e.value?l?.(void 0):l?.(e.value):f&&S===e.value?P(void 0):P(e.value))};return(0,je.useEffect)(()=>{O&&!m&&l?.(S),O||w(!0)},[S,m]),n("div",hv(hv({ref:t,className:Se()(Qb,s&&Wb,c&&Kb,u&&dv,h&&Zb,h&&"styledScrollThin",d&&Hb,j[a],v,b?.root)},y),{},{children:o.map(e=>{const t=!e.onClick&&_===e.value,o=!!e.subButtons?.length,i=!!e.icon&&(p||null==e.name||""===e.name),l=r("div",{className:Se()(nv,s&&lv,c&&sv,u&&uv,d&&Hb,t?Xb:void 0,t&&s?$b:void 0,t&&c?ev:void 0,e.isDisabled&&qb,b?.tab,t?b?.tabSelected:void 0,e.isDisabled?b?.tabDisabled:void 0),onClick:x(e),children:[r("div",{className:Se()(cv,i&&Ub,o&&Gb,b?.tabTitle,t?b?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:av,children:"string"==typeof e.icon?n("span",{className:av,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!p&&("string"==typeof e.name?n("span",{title:e.name,children:e.name}):e.name),o&&n("div",{className:Se()(rv,b?.tabActions),children:n(zu,{children:e.subButtons?.map((e,t)=>n(Ke,{variant:e.variant,componentSize:a,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,compact:e.compact,disabled:e.disabled,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]}),n("div",{className:Se()(ov,u&&iv,d&&Hb,b?.tabBorder,t?b?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return p&&e.name?n(Fi,{label:e.name,placement:u?"right":"top",children:l},`tab-${e.value}`):l})}))}const bv=(0,je.forwardRef)(gv),vv=["withoutHeader","children","classes","className"];function yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ov(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(n),!0).forEach(function(t){wv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sv=(0,je.forwardRef)(function(e,t){let{withoutHeader:r,children:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,vv);return n("div",Ov(Ov({ref:t,className:Se()("layout-module__root__I9KVI",r?void 0:"layout-module__with-header___aKcB",l,i?.root)},a),{},{children:o}))});function jv(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function Pv(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const _v=(0,je.createContext)(void 0);function xv(){return(0,je.useContext)(_v)??null}function Cv(){return xv()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function Av({children:e,styleContainer:t,portalContainer:r=null}){const[o,i]=(0,je.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,je.useEffect)(()=>{const e=t??document.head;Pv(e,"nntc-ui-base-styles").textContent=jv(":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\n\n --scroll-size: 16px;\n --scroll-size-thin: 8px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll,\n.styledScrollThin {\n overflow: auto;\n}\n\n.styledScroll {\n --scroll-thickness: var(--scroll-size);\n}\n\n.styledScrollThin {\n --scroll-thickness: var(--scroll-size-thin);\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .styledScroll,\n .styledScrollThin {\n scrollbar-color: var(--theme-thumb) transparent;\n scrollbar-width: auto;\n }\n\n .styledScrollThin {\n scrollbar-width: thin;\n }\n}\n\n/* общая зона скроллбара / thumb / track */\n.styledScroll::-webkit-scrollbar,\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScroll::-webkit-scrollbar-track,\n.styledScrollThin::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: calc(var(--scroll-thickness) / 4) solid transparent;\n border-radius: calc(var(--scroll-thickness) * 0.75);\n}\n\n.styledScroll::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar {\n width: var(--scroll-thickness);\n height: var(--scroll-thickness);\n}\n\n.styledScroll::-webkit-scrollbar-button,\n.styledScrollThin::-webkit-scrollbar-button {\n display: none;\n width: 0;\n height: 0;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner,\n.styledScrollThin::-webkit-scrollbar-corner {\n background: transparent;\n}\n",e)},[t]),(0,je.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(0, 0, 0, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(0, 0, 0, 0.04);\n --theme-overlay-8: rgba(0, 0, 0, 0.08);\n --theme-overlay-10: rgba(0, 0, 0, 0.1);\n --theme-overlay-12: rgba(0, 0, 0, 0.12);\n --theme-overlay-24: rgba(0, 0, 0, 0.24);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(0, 0, 0, 0.08);\n --theme-chip-subtle-hover: rgba(0, 0, 0, 0.12);\n --theme-chip-subtle-focus: rgba(0, 0, 0, 0.16);\n --theme-chip-subtle-disabled-bg: rgba(0, 0, 0, 0.08);\n\n --theme-input-chip-bg: var(--theme-chip-accent-bg);\n --theme-input-chip-hover: var(--theme-chip-accent-hover);\n --theme-input-chip-focus: var(--theme-chip-accent-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #373737;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #424242;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #14212e;\n\n --theme-divider: rgba(255, 255, 255, 0.12);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.12);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #14212e;\n --theme-table-header: #28323e;\n --theme-table-even-row: #1f2a36;\n --theme-table-hover-row: #1f2a36;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #14212e;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n"},n=t??document.head;Pv(n,"nntc-ui-theme-styles").textContent=jv(e[o]??e.light,n)},[o,t]),(0,je.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const n=e=>{i(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const l={theme:o,toggleTheme:()=>{i(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{i(e);try{localStorage.setItem("theme",e)}catch{}}};return n(_v.Provider,{value:l,children:n(yi.Provider,{value:r,children:e})})}export{Jl as AddIcon,xb as Alert,Es as AlertIcon,$l as ArrowDropDownIcon,ra as ArrowDropUpIcon,aa as AttachIcon,da as BarChartIcon,Uc as BookmarkAddIcon,Bc as BookmarkIcon,Ke as Button,zu as ButtonsGroup,Fb as Card,zt as Checkbox,jt as CheckboxDeselectedIcon,Ct as CheckboxIcon,kt as CheckboxSeveralIcon,jp as Checklist,Ts as ChevronDownIcon,Va as ChevronLeftIcon,Ba as ChevronRightIcon,Ms as ChevronUpIcon,lb as Chip,Ua as CircleFilledIcon,il as CloseIcon,np as ColorPicker,Za as DateRangeIcon,hf as DateTime,ts as DeleteIcon,is as DoneIcon,ma as DonutIcon,tu as DownloadIcon,cs as DragIcon,kc as EditIcon,$i as ErrorOutlineIcon,Zc as ExportTableIcon,ps as FileUploadIcon,ws as FilterClearIcon,bs as FilterIcon,Vc as FullScreenOffIcon,Ic as FullScreenOnIcon,_s as InfoIcon,sp as Input,jl as InputChip,Sv as Layout,Hs as ListIcon,ub as Loader,ya as LooksOneIcon,ja as MapIcon,Pd as Menu,zh as Modal,Ks as MoreVerticalIcon,Rp as MultiSelect,Hg as Pairs,cu as PointIcon,Kl as Popover,Tp as RadioButton,ka as RadioDeselectedIcon,Ia as RadioSelectedIcon,Js as RegexIcon,pu as SaveIcon,Ca as ScatterPlotIcon,$s as SearchIcon,Rd as Select,rc as SelectUniqueIcon,ac as SettingsIcon,dc as SortDownIcon,mc as SortUpIcon,Zh as Surface,yc as TableChartIcon,bv as Tabs,Av as ThemeProvider,Fi as Tooltip,Dg as TreeView,bt as Typography,jc as UploadIcon,Og as VirtualTable,iu as VisibilityIcon,Cc as WellIcon,gp as WrapForLabel,af as createCalendarDate,Oi as usePortalContainer,xv as useTheme,Cv as useThemeWithFallback};export const virtualTableDefaultRowHeight=32;
|
|
2
|
+
import*as e from"react";import{Fragment as t,jsx as n,jsxs as r}from"react/jsx-runtime";import{createPortal as o,flushSync as i}from"react-dom";var l={353(e){e.exports=function(){var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",l="day",a="week",s="month",c="quarter",u="year",d="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,l=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-l:l-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:u,w:a,d:l,D:d,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=m;var O="$isDayjsObject",w=function(e){return e instanceof _||!(!e||!e[O])},S=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(o=i),n&&(y[i]=n,o=i);var l=t.split("-");if(!o&&l.length>1)return e(l[0])}else{var a=t.name;y[a]=t,o=a}return!r&&o&&(v=o),o||!r&&v},j=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new _(n)},P=b;P.l=S,P.i=w,P.w=function(e,t){return j(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[O]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return P},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=j(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return j(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<j(e)},g.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!P.u(t)||t,f=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(l)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case u:return c?p(1,0):p(31,11);case s:return c?p(1,g):p(0,g+1);case a:var y=this.$locale().weekStart||0,O=(m<y?m+7:m)-y;return p(c?b-O:b+(6-O),g);case l:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,c=P.p(e),f="set"+(this.$u?"UTC":""),p=(a={},a[l]=f+"Date",a[d]=f+"Date",a[s]=f+"Month",a[u]=f+"FullYear",a[i]=f+"Hours",a[o]=f+"Minutes",a[r]=f+"Seconds",a[n]=f+"Milliseconds",a)[c],h=c===l?this.$D+(t-this.$W):t;if(c===s||c===u){var m=this.clone().set(d,1);m.$d[p](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[P.p(e)]()},g.add=function(n,c){var d,f=this;n=Number(n);var p=P.p(c),h=function(e){var t=j(f);return P.w(t.date(t.date()+Math.round(e*n)),f)};if(p===s)return this.set(s,this.$M+n);if(p===u)return this.set(u,this.$y+n);if(p===l)return h(1);if(p===a)return h(7);var m=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[p]||1,g=this.$d.getTime()+n*m;return P.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,l=this.$m,a=this.$M,s=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},p=function(e){return P.s(i%12||12,e,"0")},m=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return P.s(t.$y,4,"0");case"M":return a+1;case"MM":return P.s(a+1,2,"0");case"MMM":return d(n.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return P.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,s,2);case"ddd":return d(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return P.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(i,l,!0);case"A":return m(i,l,!1);case"m":return String(l);case"mm":return P.s(l,2,"0");case"s":return String(t.$s);case"ss":return P.s(t.$s,2,"0");case"SSS":return P.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,f){var p,h=this,m=P.p(d),g=j(n),b=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return P.m(h,g)};switch(m){case u:p=y()/12;break;case s:p=y();break;case c:p=y()/3;break;case a:p=(v-b)/6048e5;break;case l:p=(v-b)/864e5;break;case i:p=v/t;break;case o:p=v/e;break;case r:p=v/1e3;break;default:p=v}return f?p:P.a(p)},g.daysInMonth=function(){return this.endOf(s).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return P.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),x=_.prototype;return j.prototype=x,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",l],["$M",s],["$y",u],["$D",d]].forEach(function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),j.extend=function(e,t){return e.$i||(e(t,_,j),e.$i=!0),j},j.locale=S,j.isDayjs=w,j.unix=function(e){return j(1e3*e)},j.en=y[v],j.Ls=y,j.p={},j}()},942(e,t){var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}};const a={};function s(e){const t=a[e];if(void 0!==t)return t.exports;const n=a[e]={exports:{}};return l[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nc=void 0;var c=s.cw(function(e,t){var n=Pe,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useState,i=n.useEffect,l=n.useLayoutEffect,a=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return l(function(){c.value=n,c.getSnapshot=t,s(c)&&u({inst:c})},[e,n,t]),i(function(){return s(c)&&u({inst:c}),e(function(){s(c)&&u({inst:c})})},[e]),a(n),n};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c}),u=s.cw(function(e,t){e.exports=c()}),d={};s.r(d),s.d(d,{active:()=>_e,compact:()=>xe,elevated:()=>Ce,extraLarge:()=>Ee,filled:()=>Ae,large:()=>Re,medium:()=>ke,onlyIcon:()=>De,outlined:()=>Me,root:()=>Le,small:()=>Ne,stateLayer:()=>Ie,text:()=>Te,textSecondary:()=>ze,tonal:()=>Ve,withIcon:()=>Fe,withoutIcon:()=>He});var f={};s.r(f),s.d(f,{body1:()=>Je,body2:()=>Qe,body3:()=>Ze,button:()=>Xe,caption:()=>$e,caption2:()=>et,doubleCaption:()=>tt,h1:()=>nt,h2:()=>rt,h3:()=>ot,h4:()=>it,h5:()=>lt,h6:()=>at,h7:()=>st,label:()=>ct,overline:()=>ut,subtitle1:()=>dt,subtitle2:()=>ft,subtitle3:()=>pt});var p={};s.r(p),s.d(p,{arrow:()=>Bt,bottomArrow:()=>Wt,content:()=>Kt,error:()=>Gt,info:()=>Ut,leftArrow:()=>Yt,rightArrow:()=>Jt,success:()=>Qt,topArrow:()=>Zt,trigger:()=>Xt,warning:()=>$t});var h={};s.r(h),s.d(h,{clickable:()=>al,disabled:()=>sl,extraLarge:()=>cl,filled:()=>ul,icon:()=>dl,large:()=>fl,medium:()=>pl,outlined:()=>hl,remove:()=>ml,root:()=>gl,small:()=>bl,text:()=>vl,withIcon:()=>yl});var m={};s.r(m),s.d(m,{divider:()=>td,extraLarge:()=>nd,item:()=>rd,itemActions:()=>od,itemDescription:()=>id,itemDisabled:()=>ld,itemIcon:()=>ad,itemSelected:()=>sd,itemTextBlock:()=>cd,itemTitle:()=>ud,itemTitleTop:()=>dd,large:()=>fd,medium:()=>pd,root:()=>hd,small:()=>md,stateLayer:()=>gd,virtualItem:()=>bd,virtualSpace:()=>vd,virtualized:()=>yd});var g={};s.r(g),s.d(g,{button:()=>Ld,buttonsContainer:()=>Nd,calendarContainer:()=>Id,cell:()=>Td,cellCircle:()=>zd,cellData:()=>Vd,cellSelection:()=>Fd,cellSelectionFirst:()=>Hd,cellSelectionLast:()=>qd,cellsContainer:()=>Bd,dateTimeMode:()=>Wd,medium:()=>Kd,month:()=>Gd,monthCellSelection:()=>Ud,monthCellSelectionFirst:()=>Yd,monthCellSelectionLast:()=>Jd,monthView:()=>Qd,navigationArrow:()=>Zd,navigationContainer:()=>Xd,navigationTitle:()=>$d,navigationValue:()=>ef,root:()=>tf,small:()=>nf,timeContainer:()=>rf,timeDivider:()=>of,timeSelectionMarker:()=>lf,year:()=>af});var b={};s.r(b),s.d(b,{medium:()=>up,root:()=>dp,small:()=>fp});var v={};s.r(v),s.d(v,{medium:()=>Fh,modal:()=>Hh,overlay1:()=>qh,overlay2:()=>Bh,panel:()=>Wh,primary:()=>Kh,root:()=>Gh,small:()=>Uh});var y={};s.r(y),s.d(y,{alignCenter:()=>$h,alignLeft:()=>em,alignRight:()=>tm,bodyLock:()=>nm,borderFrame:()=>rm,borderSpacer:()=>om,bordersAll:()=>im,bordersHorizontal:()=>lm,bordersVertical:()=>am,bottomBorder:()=>sm,clickable:()=>cm,editable:()=>um,error:()=>dm,evenRow:()=>fm,firstThRow:()=>pm,input:()=>hm,label:()=>mm,marginLeftChanging:()=>gm,medium:()=>bm,modalContent:()=>vm,pageLoadingLabel:()=>ym,pageLoadingLane:()=>Om,pageLoadingTrack:()=>wm,pageLoadingUp:()=>Sm,rightBorder:()=>jm,rightBorderWithBottom:()=>Pm,root:()=>_m,rowButtonTrigger:()=>xm,rowspanContent:()=>Cm,selectRows:()=>Em,selected:()=>Am,showInModal:()=>Rm,small:()=>km,sticky:()=>Dm,success:()=>Mm,table:()=>Lm,tableContainer:()=>Nm,td:()=>Im,th:()=>Tm,thCell:()=>zm,thHiddenColumn:()=>Vm,thLeftBorder:()=>Fm,thRightBorder:()=>Hm,tr:()=>qm,verticalAlignCenter:()=>Bm,verticalAlignFlexEnd:()=>Wm,verticalAlignFlexStart:()=>Km,viewCell:()=>Gm,viewSpan:()=>Um});var O={};s.r(O),s.d(O,{clickable:()=>Wg,filled:()=>Kg,icon:()=>Gg,iconClickable:()=>Ug,iconLeft:()=>Yg,iconRight:()=>Jg,iconRightSlot:()=>Qg,label:()=>Zg,medium:()=>Xg,outlined:()=>$g,root:()=>eb,secondary:()=>tb,small:()=>nb,withIcon:()=>rb});var w={};s.r(w),s.d(w,{_default:()=>pb,error:()=>hb,icon:()=>mb,info:()=>gb,medium:()=>bb,message:()=>vb,root:()=>yb,small:()=>Ob,success:()=>wb,warning:()=>Sb});var S={};s.r(S),s.d(S,{actions:()=>Ab,bodyFullSize:()=>Rb,bodyPadded:()=>kb,bodyPaddedNoHeader:()=>Db,header:()=>Mb,headerOverlay:()=>Lb,medium:()=>Nb,root:()=>Ib,small:()=>Tb});var j={};s.r(j),s.d(j,{content:()=>Bb,header:()=>Wb,icon:()=>Kb,medium:()=>Gb,root:()=>Ub,small:()=>Yb,title:()=>Jb});var P={};s.r(P),s.d(P,{disableBorder:()=>tv,disabled:()=>nv,extraLarge:()=>rv,filled:()=>ov,filledTabs:()=>iv,hasActions:()=>lv,iconOnly:()=>av,large:()=>sv,medium:()=>cv,root:()=>uv,scrollable:()=>dv,selected:()=>fv,selectedFilled:()=>pv,selectedItemFilled:()=>hv,small:()=>mv,tab:()=>gv,tabActions:()=>bv,tabBorder:()=>vv,tabBorderVertical:()=>yv,tabFilled:()=>Ov,tabIcon:()=>wv,tabItemFilled:()=>Sv,tabTitle:()=>jv,tabVertical:()=>Pv,vertical:()=>_v,verticalLabel:()=>xv,verticalText:()=>Cv});const _=e=>"string"==typeof e,x=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},C=e=>null==e?"":String(e),E=/###/g,A=e=>e&&e.includes("###")?e.replace(E,"."):e,R=e=>!e||_(e),k=(e,t,n)=>{const r=_(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(R(e))return{};const t=A(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return R(e)?{}:{obj:e,k:A(r[o])}},D=(e,t,n)=>{const{obj:r,k:o}=k(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],l=t.slice(0,t.length-1),a=k(e,l,Object);for(;void 0===a.obj&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),a=k(e,l,Object),a?.obj&&void 0!==a.obj[`${a.k}.${i}`]&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},M=(e,t)=>{const{obj:n,k:r}=k(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},L=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?_(e[r])||e[r]instanceof String||_(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):L(e[r],t[r],n):e[r]=t[r]);return e},N=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),I={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},T=e=>_(e)?e.replace(/[&<>"'\/]/g,e=>I[e]):e,z=[" ",",","?","!",";"],V=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),F=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let e=0;e<r.length;){if(!o||"object"!=typeof o)return;let t,i="";for(let l=e;l<r.length;++l)if(l!==e&&(i+=n),i+=r[l],t=o[i],void 0!==t){if(["string","number","boolean"].includes(typeof t)&&l<r.length-1)continue;e+=l-e+1;break}o=t}return o},H=e=>e?.replace(/_/g,"-"),q={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class B{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||q,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>_(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),_(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new B(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new B(this.logger,e)}}var W=new B;class K{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(e,t){const n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n(e,...t)})}}class G extends K{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;e.includes(".")?l=e.split("."):(l=[e,t],n&&(Array.isArray(n)?l.push(...n):_(n)&&o?l.push(...n.split(o)):l.push(n)));const a=M(this.data,l);return a||t||n||!e.includes(".")||(e=l[0],t=l[1],n=l.slice(2).join(".")),!a&&i&&_(n)?F(this.data?.[e]?.[t],n,o):a}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let l=[e,t];n&&(l=l.concat(i?n.split(i):n)),e.includes(".")&&(l=e.split("."),r=t,t=l[1]),this.addNamespaces(t),D(this.data,l,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const r in n)(_(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let l=[e,t];e.includes(".")&&(l=e.split("."),r=n,n=t,t=l[1]),this.addNamespaces(t);let a=M(this.data,l)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?L(a,n,o):a={...a,...n},D(this.data,l,a),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var U={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Y=Symbol("i18next/PATH_KEY");function J(e,t){const{[Y]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Y?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}()),r=t?.keySeparator??".",o=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(n.length>1&&o){const e=t?.ns,l=i?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(l&&(i?l:l.length>1?l.slice(1):[]).includes(n[0]))return`${n[0]}${o}${n.slice(1).join(r)}`}return n.join(r)}const Q=e=>!_(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Z extends K{constructor(e,t={}){super(),((e,t,n)=>{["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{t[e]&&(n[e]=t[e])})})(0,e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=W.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Q(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.includes(n),l=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=z.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;const o=V.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!l){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:_(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.includes(i[0]))&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:_(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=J(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?J(e,{...this.options,...r}):String(e));const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:l,namespaces:a}=this.extractFromKey(e[e.length-1],r),s=a[a.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?o?{res:`${s}${c}${l}`,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${l}`:o?{res:l,usedKey:l,exactUsedKey:l,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:l;const f=this.resolve(e,r);let p=f?.res;const h=f?.usedKey||l,m=f?.exactUsedKey||l,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!_(r.count),y=Z.hasDefaultValue(r),O=v?this.pluralResolver.getSuffix(u,r.count,r):"",w=r.ordinal&&v?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",S=v&&!r.ordinal&&0===r.count,j=S&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${O}`]||r[`defaultValue${w}`]||r.defaultValue;let P=p;b&&!p&&y&&(P=j);const x=Q(P),C=Object.prototype.toString.apply(P);if(!(b&&P&&x)||["[object Number]","[object Function]","[object RegExp]"].includes(C)||_(g)&&Array.isArray(P))if(b&&_(g)&&Array.isArray(p))p=p.join(g),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&y&&(t=!0,p=j),this.isValidLookup(p)||(o=!0,p=l);const a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=y&&j!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,s,v&&!d?`${l}${this.pluralResolver.getSuffix(u,r.count,r)}`:l,d?j:p),i){const e=this.resolve(l,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=y&&n!==p?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,o,d,r),this.emit("missingKey",e,s,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);S&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],l+t,r[`defaultValue${t}`]||j)})}):n(e,l,j))}p=this.extendTranslation(p,e,r,f,n),o&&p===l&&this.options.appendNamespaceToMissingKey&&(p=`${s}${c}${l}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${l}`:l,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,P,{...r,ns:a}):`key '${l} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(P),t=e?[]:{},n=e?m:h;for(const e in P)if(Object.prototype.hasOwnProperty.call(P,e)){const o=`${n}${i}${e}`;t[e]=y&&!p?this.translate(o,{...r,defaultValue:Q(j)?j[e]:void 0,joinArrays:!1,ns:a}):this.translate(o,{...r,joinArrays:!1,ns:a}),t[e]===o&&(t[e]=P[e])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=_(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(i){const t=e.match(this.interpolator.nestingRegexp);l=t&&t.length}let a=n.replace&&!_(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),e=this.interpolator.interpolate(e,a,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);l<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,l=_(i)?[i]:i;return null!=e&&l?.length&&!1!==n.applyPostProcessor&&(e=U.handle(l,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,l;return _(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?J(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;const a=this.extractFromKey(e,t),s=a.key;r=s;let c=a.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!_(t.count),d=u&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(_(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(l=e,this.checkedLoadedFor[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(l)||(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const l=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(l,s,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(o)&&l.push(s+e.replace(o,this.options.pluralSeparator)),l.push(s+e),d&&l.push(s+n)),f){const r=`${s}${this.options.contextSeparator||"_"}${t.context}`;l.push(r),u&&(t.ordinal&&e.startsWith(o)&&l.push(r+e.replace(o,this.options.pluralSeparator)),l.push(r+e),d&&l.push(r+n))}}let a;for(;a=l.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(r,e,a,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:l}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!_(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class X{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=W.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){if(!(e=H(e))||!e.includes("-"))return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=H(e))||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(_(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>!(e!==r&&(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&r.length>1))))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),_(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.options.fallbackLng,r=Array.isArray(n)?n.join("|"):n;r!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=r);const o=void 0===t||!1===t||_(t),i=void 0===t&&"function"==typeof this.options.fallbackLng;let l=null;if(_(e)&&o&&!i){let n;n=void 0===t?"undefined":!1===t?"boolean:false":`string:${t}`,l=`${e.length}:${e}|${n}`}if(null!==l){const e=this.resolveHierarchyCache[l];if(void 0!==e)return e.slice()}const a=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),s=[],c=e=>{e&&(this.isSupportedCode(e)?s.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return _(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&c(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&c(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&c(this.getLanguagePartFromCode(e))):_(e)&&c(this.formatLanguageCode(e)),a.forEach(e=>{s.includes(e)||c(this.formatLanguageCode(e))}),null!==l?(this.resolveHierarchyCache[l]=s,s.slice()):s}}const $={zero:0,one:1,two:2,few:3,many:4,other:5},ee={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class te{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=W.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=H("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(n){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ee;if(!e.match(/-|_/))return ee;const r=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(r,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>$[e]-$[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const ne=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=M(e,n);return void 0!==r?r:M(t,n)})(e,t,n);return!i&&o&&_(n)&&(i=F(e,n,r),void 0===i&&(i=F(t,n,r))),i},re=e=>e.replace(/\$/g,"$$$$");class oe{constructor(e={}){this.logger=W.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:l,suffixEscaped:a,formatSeparator:s,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:T,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?N(o):i||"{{",this.suffix=l?N(l):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":u?N(u):"-",this.unescapeSuffix=this.unescapePrefix?"":c?N(c):"",this.nestingPrefix=d?N(d):f||N("$t("),this.nestingSuffix=p?N(p):h||N(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=e=>{if(!e.includes(this.formatSeparator)){const o=ne(t,a,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),l=o.join(this.formatSeparator).trim();return this.format(ne(t,a,i,this.options.keySeparator,this.options.ignoreJSONStructure),l,n,{...r,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(l=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=s(n),void 0===i)if("function"==typeof c){const t=c(e,o,r);i=_(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else _(i)||this.useRawValueToEscape||(i=C(i));const a=t.safeValue(i);if(e=e.replace(o[0],re(a)),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const l=(e,t)=>{const n=this.nestingOptionsSeparator;if(!e.includes(n))return e;const r=e.split(new RegExp(`${N(n)}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const l=o.match(/'/g),a=o.match(/"/g);((l?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let a=[];i={...n},i=i.replace&&!_(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const s=/{.*}/s.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==s&&(a=r[1].slice(s).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),o=t(l.call(this,r[1].trim(),i),i),o&&r[0]===e&&!_(o))return o;_(o)||(o=C(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),a.length&&(o=a.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],re(C(o))),this.regexp.lastIndex=0}return e}}const ie=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const l=r+JSON.stringify(i);let a=t[l];return a||(a=e(H(r),o),t[l]=a),a(n)}},le=e=>(t,n,r)=>e(H(n),r)(t);class ae{constructor(e={}){this.logger=W.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?ie:le;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ie(t)}format(e,t,n,r={}){if(!t)return e;if(null==e)return e;const o=t.split(this.formatSeparator),i=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;i.push(t)}const l=i.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const l=r?.formatParams?.[r.interpolationkey]||{},a=l.locale||l.lng||r.locale||r.lng||n;t=this.formats[o](e,a,{...i,...r,...l})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e);return l}}class se extends K{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=W.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},l={},a={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const l=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[l]=2:this.state[l]<0||(1===this.state[l]?void 0===i[l]&&(i[l]=!0):(this.state[l]=1,r=!1,void 0===i[l]&&(i[l]=!0),void 0===o[l]&&(o[l]=!0),void 0===a[t]&&(a[t]=!0)))}),r||(l[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const l={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=k(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{l[e]||(l[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===l[e][t]&&(l[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const l=(l,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}l&&a&&r<this.maxRetries?setTimeout(()=>{this.read(e,t,n,r+1,2*o,i)},o):i(l,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(e,t,l);try{const n=a(e,t);n&&"function"==typeof n.then?n.then(e=>l(null,e)).catch(l):l(null,n)}catch(e){l(e)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();_(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},l=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const a={...i,isUpdate:o},s=this.backend.create.bind(this.backend);if(s.length<6)try{let o;o=5===s.length?s(e,t,n,r,a):s(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>l(null,e)).catch(l):l(null,o)}catch(e){l(e)}else s(e,t,n,r,l,a)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const ce=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),_(e[1])&&(t.defaultValue=e[1]),_(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ue=e=>(_(e.ns)&&(e.ns=[e.ns]),_(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),_(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),de=()=>{};class fe extends K{constructor(e={},t){var n;if(super(),this.options=ue(e),this.services={},this.logger=W,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(_(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const n=ce();this.options={...n,...this.options,...ue(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?W.init(r(this.modules.logger),this.options):W.init(null,this.options),e=this.modules.formatter?this.modules.formatter:ae;const t=new X(this.options);this.store=new G(this.options.resources,this.options);const n=this.services;n.logger=W,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new te(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new oe(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new se(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new Z(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=de),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=x(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=de){let n=t;const r=_(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=x();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=de),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&U.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=x();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=_(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(_(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,r){const o=r?.scopeNs,i=(e,t,...r)=>{let l;l="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t},l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs;const a=void 0!==l.ns&&null!==l.ns;l.ns=l.ns||i.ns,""!==l.keyPrefix&&(l.keyPrefix=l.keyPrefix||n||i.keyPrefix);const s={...this.options,...l};Array.isArray(o)&&!a&&(s.ns=o),"function"==typeof l.keyPrefix&&(l.keyPrefix=J(l.keyPrefix,s));const c=this.options.keySeparator||".";let u;return l.keyPrefix&&Array.isArray(e)?u=e.map(e=>("function"==typeof e&&(e=J(e,s)),`${l.keyPrefix}${c}${e}`)):("function"==typeof e&&(e=J(e,s)),u=l.keyPrefix?`${l.keyPrefix}${c}${e}`:e),this.t(u,l)};return _(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=x();return this.options.ns?(_(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=x();_(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}const t=this.services?.languageUtils||new X(ce());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const n=new fe(e,t);return n.createInstance=fe.createInstance,n}cloneInstance(e={},t=de){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new fe(r);if(void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new G(e,r),o.services.resourceStore=o.store}if(e.interpolation){const t={...ce().interpolation,...this.options.interpolation,...e.interpolation},n={...r,interpolation:t};o.services.interpolator=new oe(n)}return o.translator=new Z(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const pe=fe.createInstance(),he=(pe.createInstance,pe.dir,pe.init,pe.loadResources,pe.reloadResources,pe.use,pe.changeLanguage,pe.getFixedT,pe.t,pe.exists,pe.setDefaultNamespace,pe.hasLoadedNamespace,pe.loadNamespaces,pe.loadLanguages,/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g),me={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ge=e=>me[e];let be,ve={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(he,ge),transDefaultProps:void 0};const ye={type:"3rdParty",init(e){((e={})=>{ve={...ve,...e}})(e.options.react),(e=>{be=e})(e)}},Oe=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Search..."},"multiSelect":{"selectedItems":"Selected items"},"checklist":{"selected":"Selected","cancel":"Cancel","selectAll":"Select all"},"list":{"loading":"Loading...","notFound":"Nothing found"}},"view":{"virtualTable":{"sort":"Sort","AZ":"Asc","ZA":"Desc","sortAndFiltration":"Sort and filtration","uniqueValues":"Unique values","uniqueOnly":"Unique only","loadingData":"Loading data...","noValue":"< no value >"}}}}'),we=JSON.parse('{"nntc_ui":{"common":{"search":{"placeholder":"Поиск..."},"multiSelect":{"selectedItems":"Выбрано элементов"},"checklist":{"selected":"Выбранное","cancel":"Отменить","selectAll":"Выбрать все"},"list":{"loading":"Загрузка...","notFound":"Ничего не найдено"}},"view":{"virtualTable":{"sort":"Сортировка","AZ":"По возрастанию","ZA":"По убыванию","sortAndFiltration":"Сортировка и фильтрация","uniqueValues":"Уникальность значений","uniqueOnly":"Только уникальные","loadingData":"Идёт загрузка данных...","noValue":"< нет значения >"}}}}');pe.use(ye).init({resources:{en:{translation:Oe},ru:{translation:we}},lng:"ru",fallbackLng:"en",interpolation:{escapeValue:!1}});var Se=s(942),je=s.n(Se);const Pe=e;var _e="button-module__active__J1ZMQ",xe="button-module__compact___dXxT",Ce="button-module__elevated__DfXlq",Ee="button-module__extraLarge__G1XhO",Ae="button-module__filled__tpB2J",Re="button-module__large__QVzg5",ke="button-module__medium__NzTCo",De="button-module__only-icon__MYlMe",Me="button-module__outlined__U7Ix5",Le="button-module__root__d8Qm7",Ne="button-module__small__yTLSt",Ie="button-module__state-layer__ZxKUR",Te="button-module__text__ThaTQ",ze="button-module__text-secondary__UtgHY",Ve="button-module__tonal__LGQFG",Fe="button-module__with-icon__JrK73",He="button-module__without-icon__xZxlu";const qe=["variant","componentSize","icon","textSecondary","isActive","compact","className","children","classes"];function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach(function(t){Ke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ke(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ge=(0,Pe.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,textSecondary:a,isActive:s,compact:c,className:u,children:f,classes:p}=e,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qe);return n("button",We(We({className:je()(Le,d[o],d[i],l?f?Fe:De:He,s?_e:void 0,a?ze:void 0,c?xe:void 0,u,p?.root)},h),{},{ref:t,children:r("span",{className:je()(Ie,p?.stateLayer),children:[l,f]})}))});function Ue(e,t){if("function"==typeof e)return e(t);e&&(e.current=t)}var Ye=parseInt(Pe.version.split(".")[0],10)>=19?function(e){return t=>{const n=[];for(const r of e){const e=Ue(r,t),o="function"==typeof e;n.push(o?e:()=>Ue(r,null))}return()=>{for(const e of n)e()}}}:function(e){return t=>{for(const n of e)Ue(n,t)}},Je="typography-module__body1__aH5C7",Qe="typography-module__body2__tLnbZ",Ze="typography-module__body3__ArlMM",Xe="typography-module__button__QH0WB",$e="typography-module__caption__Um0hc",et="typography-module__caption2__ftlcn",tt="typography-module__doubleCaption__DKOZy",nt="typography-module__h1__WhV07",rt="typography-module__h2__wu3B3",ot="typography-module__h3__g4nW1",it="typography-module__h4__bevKW",lt="typography-module__h5__zljak",at="typography-module__h6__mAHOd",st="typography-module__h7__k_Iry",ct="typography-module__label__jNXgm",ut="typography-module__overline__LOINe",dt="typography-module__subtitle1__D0BxG",ft="typography-module__subtitle2__DLkzN",pt="typography-module__subtitle3__Yqzol";const ht=["variant","component","children","className"];function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach(function(t){bt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vt=(0,Pe.forwardRef)(function(e,t){let{variant:r="body2",component:o,children:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ht);return n(o||"span",gt(gt({className:je()(f[r],l)},a),{},{ref:t,children:i}))});function yt(){const e=Pe;return"function"==typeof e.useId?e.useId():(0,Pe.useMemo)(()=>`nntc-ui-${Math.random().toString(36).slice(2,11)}`,[])}const Ot=({size:e=24,color:t="currentColor",className:r,children:o})=>n("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:t,className:r,xmlns:"http://www.w3.org/2000/svg",children:o});function wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach(function(t){jt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pt=e=>n(Ot,St(St({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"})}));function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach(function(t){Ct(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ct(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Et=e=>n(Ot,xt(xt({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})}));function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach(function(t){kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dt=e=>n(Ot,Rt(Rt({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2zm0-4H7V7h10v2z"})}));var Mt="checkbox-module__checkbox__yO066",Lt="checkbox-module__pressed__lPIee";const Nt=["label","several","componentSize","classes","id"];function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?It(Object(n),!0).forEach(function(t){zt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zt(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vt=(0,Pe.forwardRef)(function(e,o){const{label:i,several:l,componentSize:a="medium",classes:s,id:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nt),d=(0,Pe.useRef)(null),f=yt(),p=c??f;(0,Pe.useEffect)(()=>{const e=d.current;if(!e)return;const t=()=>e.classList.remove(Lt),n=()=>e.classList.add(Lt);return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const h="large"===a?"subtitle1":"subtitle2";return r("div",{className:je()("checkbox-module__root__AzwHw",s?.root),children:[n("input",Tt({ref:Ye([d,o]),type:"checkbox",className:je()("checkbox-module__input__qmuqO",s?.input),id:p,title:i},u)),r("label",{htmlFor:p,className:je()("checkbox-module__label__wmkmp",s?.label),title:i,children:[l?n("span",{className:je()(Mt,"checkbox-module__several__MIC_C",s?.checkbox),children:n(Dt,{})}):r(t,{children:[n("span",{className:je()(Mt,"checkbox-module__deselected__xrQoR",s?.checkbox),children:n(Pt,{})}),n("span",{className:je()(Mt,"checkbox-module__selected__MsgZN",s?.checkbox),children:n(Et,{})})]}),!!i&&n(vt,{variant:h,className:je()("checkbox-module__label-text__uUcXJ",s?.labelText),children:i})]})]})}),Ft=new Uint8Array(16),Ht=[];for(let e=0;e<256;++e)Ht.push((e+256).toString(16).slice(1));const qt=function(e,t,n){return t||e||!crypto.randomUUID?function(e,t,n){const r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(Ft);if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Ht[e[t+0]]+Ht[e[t+1]]+Ht[e[t+2]]+Ht[e[t+3]]+"-"+Ht[e[t+4]]+Ht[e[t+5]]+"-"+Ht[e[t+6]]+Ht[e[t+7]]+"-"+Ht[e[t+8]]+Ht[e[t+9]]+"-"+Ht[e[t+10]]+Ht[e[t+11]]+Ht[e[t+12]]+Ht[e[t+13]]+Ht[e[t+14]]+Ht[e[t+15]]).toLowerCase()}(r)}(e,t,n):crypto.randomUUID()};var Bt="tooltip-module__arrow__t3qHm",Wt="tooltip-module__bottom-arrow__BY759",Kt="tooltip-module__content__GmJjH",Gt="tooltip-module__error__asP80",Ut="tooltip-module__info__SGNDR",Yt="tooltip-module__left-arrow__Wpg7W",Jt="tooltip-module__right-arrow__qwOJk",Qt="tooltip-module__success__f_f_u",Zt="tooltip-module__top-arrow__k7G3S",Xt="tooltip-module__trigger__fBwzk",$t="tooltip-module__warning__aZtHW";function en(){return"undefined"!=typeof window}function tn(e){return on(e)?(e.nodeName||"").toLowerCase():"#document"}function nn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function rn(e){var t;return null==(t=(on(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function on(e){return!!en()&&(e instanceof Node||e instanceof nn(e).Node)}function ln(e){return!!en()&&(e instanceof Element||e instanceof nn(e).Element)}function an(e){return!!en()&&(e instanceof HTMLElement||e instanceof nn(e).HTMLElement)}function sn(e){return!(!en()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof nn(e).ShadowRoot)}function cn(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function un(e){return/^(table|td|th)$/.test(tn(e))}function dn(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const fn=/transform|translate|scale|rotate|perspective|filter/,pn=/paint|layout|strict|content/,hn=e=>!!e&&"none"!==e;let mn;function gn(e){const t=ln(e)?yn(e):e;return hn(t.transform)||hn(t.translate)||hn(t.scale)||hn(t.rotate)||hn(t.perspective)||!bn()&&(hn(t.backdropFilter)||hn(t.filter))||fn.test(t.willChange||"")||pn.test(t.contain||"")}function bn(){return null==mn&&(mn="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mn}function vn(e){return/^(html|body|#document)$/.test(tn(e))}function yn(e){return nn(e).getComputedStyle(e)}function On(e){return ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wn(e){if("html"===tn(e))return e;const t=e.assignedSlot||e.parentNode||sn(e)&&e.host||rn(e);return sn(t)?t.host:t}function Sn(e){const t=wn(e);return vn(t)?(e.ownerDocument||e).body:an(t)&&cn(t)?t:Sn(t)}function jn(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Sn(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=nn(o);if(i){const e=Pn(l);return t.concat(l,l.visualViewport||[],cn(o)?o:[],e&&n?jn(e):[])}return t.concat(o,jn(o,[],n))}function Pn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var _n=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"].join(","),xn="undefined"==typeof Element,Cn=xn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,En=!xn&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},An=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):An(e.parentNode))},Rn=function(e,t,n){if(An(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(_n));return t&&Cn.call(e,_n)&&r.unshift(e),r.filter(n)},kn=function(e,t,n){for(var r=[],o=Array.from(e);o.length;){var i=o.shift();if(!An(i,!1))if("SLOT"===i.tagName){var l=i.assignedElements(),a=l.length?l:i.children,s=kn(a,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:i,candidates:s})}else{Cn.call(i,_n)&&n.filter(i)&&(t||!e.includes(i))&&r.push(i);var c=i.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(i),u=!An(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=kn(!0===c?i.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:i,candidates:d})}else o.unshift.apply(o,i.children)}}return r},Dn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Mn=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Dn(e)?0:e.tabIndex},Ln=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Nn=function(e){return"INPUT"===e.tagName},In=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Tn=function(e,t){return!(t.disabled||function(e){return Nn(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var o=getComputedStyle(e).visibility;if("hidden"===o||"collapse"===o)return!0;var i=Cn.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Cn.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return In(e)}else{if("function"==typeof r){for(var l=e;e;){var a=e.parentElement,s=En(e);if(a&&!a.shadowRoot&&!0===r(a))return In(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=l}if(function(e){var t,n,r,o,i=e&&En(e),l=null===(t=i)||void 0===t?void 0:t.host,a=!1;if(i&&i!==e)for(a=!!(null!==(n=l)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(l)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!a&&l;){var s,c,u;a=!(null===(c=l=null===(s=i=En(l))||void 0===s?void 0:s.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(l))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!Cn.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},zn=function(e,t){return!(function(e){return function(e){return Nn(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||En(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||Mn(t)<0||!Tn(e,t))},Vn=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Fn=function(e){var t=[],n=[];return e.forEach(function(e,r){var o=!!e.scopeParent,i=o?e.scopeParent:e,l=function(e,t){var n=Mn(e);return n<0&&t&&!Dn(e)?0:n}(i,o),a=o?Fn(e.candidates):i;0===l?o?t.push.apply(t,a):t.push(i):n.push({documentOrder:r,tabIndex:l,item:e,isScope:o,content:a})}),n.sort(Ln).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},Hn=function(e,t){var n;return n=(t=t||{}).getShadowRoot?kn([e],t.includeContainer,{filter:zn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Vn}):Rn(e,t.includeContainer,zn.bind(null,t)),Fn(n)},qn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Cn.call(e,_n)&&zn(t,e)};function Bn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function Wn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function Kn(){return/apple/i.test(navigator.vendor)}function Gn(){const e=/android/i;return e.test(Bn())||e.test(Wn())}function Un(){return Wn().includes("jsdom/")}const Yn="data-floating-ui-focusable";function Jn(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function Qn(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&sn(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Zn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Xn(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function $n(e){return(null==e?void 0:e.ownerDocument)||document}function er(e){return an(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function tr(e){return!!e&&"combobox"===e.getAttribute("role")&&er(e)}function nr(e){return e?e.hasAttribute(Yn)?e:e.querySelector("["+Yn+"]")||e:null}function rr(e,t,n){return void 0===n&&(n=!0),e.filter(e=>{var r;return e.parentId===t&&(!n||(null==(r=e.context)?void 0:r.open))}).flatMap(t=>[t,...rr(e,t.id,n)])}function or(e,t){var n;let r=[],o=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;o;){const t=e.find(e=>e.id===o);o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}function ir(e){e.preventDefault(),e.stopPropagation()}function lr(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var ar="undefined"!=typeof document?Pe.useLayoutEffect:function(){};function sr(e){const t=Pe.useRef(e);return ar(()=>{t.current=e}),t}const cr={...Pe}.useInsertionEffect||(e=>e());function ur(e){const t=Pe.useRef(()=>{});return cr(()=>{t.current=e}),Pe.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}const dr=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function fr(e,t){const n=Hn(e,dr()),r=n.length;if(0===r)return;const o=Jn($n(e)),i=n.indexOf(o);return n[-1===i?1===t?0:r-1:i+t]}function pr(e){return fr($n(e).body,1)||e}function hr(e){return fr($n(e).body,-1)||e}function mr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Qn(n,r)}function gr(e){Hn(e,dr()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function br(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}const vr=Math.min,yr=Math.max,Or=Math.round,wr=Math.floor,Sr=e=>({x:e,y:e}),jr={left:"right",right:"left",bottom:"top",top:"bottom"};function Pr(e,t,n){return yr(e,vr(t,n))}function _r(e,t){return"function"==typeof e?e(t):e}function xr(e){return e.split("-")[0]}function Cr(e){return e.split("-")[1]}function Er(e){return"x"===e?"y":"x"}function Ar(e){return"y"===e?"height":"width"}function Rr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function kr(e){return Er(Rr(e))}function Dr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Mr=["left","right"],Lr=["right","left"],Nr=["top","bottom"],Ir=["bottom","top"];function Tr(e){const t=xr(e);return jr[t]+e.slice(t.length)}function zr(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function Vr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Fr(e,t,n){let{reference:r,floating:o}=e;const i=Rr(t),l=kr(t),a=Ar(l),s=xr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let p;switch(s){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}const h=Cr(t);return h&&(p[l]+=f*("end"===h?1:-1)*(n&&c?-1:1)),p}async function Hr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:l,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=_r(t,e),h=zr(p),m=a[f?"floating"===d?"reference":"floating":d],g=Vr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),b="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},O=Vr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(g.top-O.top+h.top)/y.y,bottom:(O.bottom-g.bottom+h.bottom)/y.y,left:(g.left-O.left+h.left)/y.x,right:(O.right-g.right+h.right)/y.x}}const qr=new Set(["left","top"]);function Br(e){const t=yn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=an(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=Or(n)!==i||Or(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function Wr(e){return ln(e)?e:e.contextElement}function Kr(e){const t=Wr(e);if(!an(t))return Sr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Br(t);let l=(i?Or(n.width):n.width)/r,a=(i?Or(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const Gr=Sr(0);function Ur(e){const t=nn(e);return bn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Gr}function Yr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Wr(e);let l=Sr(1);t&&(r?ln(r)&&(l=Kr(r)):l=Kr(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===nn(e)}(i,n,r)?Ur(i):Sr(0);let s=(o.left+a.x)/l.x,c=(o.top+a.y)/l.y,u=o.width/l.x,d=o.height/l.y;if(i&&r){const e=nn(i),t=ln(r)?nn(r):r;let n=e,o=Pn(n);for(;o&&t!==n;){const e=Kr(o),t=o.getBoundingClientRect(),r=yn(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,c*=e.y,u*=e.x,d*=e.y,s+=i,c+=l,n=nn(o),o=Pn(n)}}return Vr({width:u,height:d,x:s,y:c})}function Jr(e,t){const n=On(e).scrollLeft;return t?t.left+n:Yr(rn(e)).left+n}function Qr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jr(e,n),y:n.top+t.scrollTop}}function Zr(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=nn(e),i=rn(e),l=o.visualViewport;let a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(l){const e=!bn()||"fixed"===t;r?e||(c=-l.offsetLeft,u=-l.offsetTop):(a=l.width,s=l.height,e&&(c=l.offsetLeft,u=l.offsetTop))}if(Jr(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:s,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=On(e),n=e.ownerDocument.body,r=yr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=yr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Jr(e);const l=-t.scrollTop;return"rtl"===yn(n).direction&&(i+=yr(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:l}}(rn(e));else if(ln(t))r=function(e,t){const n=Yr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Kr(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ur(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Vr(r)}function Xr(e,t,n){const r=an(t),o=rn(t),i="fixed"===n,l=Yr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const s=Sr(0);if((r||!i)&&(("body"!==tn(t)||cn(o))&&(a=On(t)),r)){const e=Yr(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!r&&o&&(s.x=Jr(o));const c=!o||r||i?Sr(0):Qr(o,a);return{x:l.left+a.scrollLeft-s.x-c.x,y:l.top+a.scrollTop-s.y-c.y,width:l.width,height:l.height}}function $r(e){return"static"===yn(e).position}function eo(e,t){if(!an(e)||"fixed"===yn(e).position)return null;if(t)return t(e);let n=e.offsetParent;return rn(e)===n&&(n=n.ownerDocument.body),n}function to(e,t){const n=nn(e);if(dn(e))return n;if(!an(e)){let t=wn(e);for(;t&&!vn(t);){if(ln(t)&&!$r(t))return t;t=wn(t)}return n}let r=eo(e,t);for(;r&&un(r)&&$r(r);)r=eo(r,t);return r&&vn(r)&&$r(r)&&!gn(r)?n:r||function(e){let t=wn(e);for(;an(t)&&!vn(t);){if(gn(t))return t;if(dn(t))return null;t=wn(t)}return null}(e)||n}const no={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,l=rn(r),a=!!t&&dn(t.floating);if(r===l||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=Sr(1);const u=Sr(0),d=an(r);if((d||!i)&&(("body"!==tn(r)||cn(l))&&(s=On(r)),d)){const e=Yr(r);c=Kr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!l||d||i?Sr(0):Qr(l,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:rn,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?dn(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=jn(e,[],!1).filter(e=>ln(e)&&"body"!==tn(e)),o=null;const i="fixed"===yn(e).position;let l=i?wn(e):e;for(;ln(l)&&!vn(l);){const e=yn(l),t=gn(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=wn(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=Zr(t,i[0],o);let a=l.top,s=l.right,c=l.bottom,u=l.left;for(let e=1;e<i.length;e++){const n=Zr(t,i[e],o);a=yr(n.top,a),s=vr(n.right,s),c=vr(n.bottom,c),u=yr(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:to,getElementRects:async function(e){const t=this.getOffsetParent||to,n=this.getDimensions,r=await n(e.floating);return{reference:Xr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Br(e);return{width:t,height:n}},getScale:Kr,isElement:ln,isRTL:function(e){return"rtl"===yn(e).direction}};function ro(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function oo(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:s=!1}=r,c=Wr(e),u=o||i?[...c?jn(c):[],...t?jn(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t,n){let r,o=null;const i=rn(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,s){void 0===n&&(n=!1),void 0===s&&(s=1),l();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;const h={rootMargin:-wr(d)+"px "+-wr(i.clientWidth-(u+f))+"px "+-wr(i.clientHeight-(d+p))+"px "+-wr(u)+"px",threshold:yr(0,vr(1,s))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!ro(c,e.getBoundingClientRect()))return a();if(n!==s){if(!m)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,h)}o.observe(e)}const s=nn(e),c=()=>a(n);return s.addEventListener("resize",c),a(!0),()=>{s.removeEventListener("resize",c),l()}}(c,n,i):null;let f,p=-1,h=null;l&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!s&&h.observe(c),t&&h.observe(t));let m=s?Yr(e):null;return s&&function t(){const r=Yr(e);m&&!ro(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const io=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=_r(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const b=xr(o),v=Rr(a),y=xr(a)===a,O=await(null==s.isRTL?void 0:s.isRTL(c.floating)),w=f||(y||!m?[Tr(a)]:function(e){const t=Tr(e);return[Dr(e),t,Dr(t)]}(a)),S="none"!==h;!f&&S&&w.push(...function(e,t,n,r){const o=Cr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Lr:Mr:t?Mr:Lr;case"left":case"right":return t?Nr:Ir;default:return[]}}(xr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Dr)))),i}(a,m,h,O));const j=[a,...w],P=await s.detectOverflow(t,g),_=[];let x=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(P[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Cr(e),o=kr(e),i=Ar(o);let l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Tr(l)),[l,Tr(l)]}(o,l,O);_.push(P[e[0]],P[e[1]])}if(x=[...x,{placement:o,overflows:_}],!_.every(e=>e<=0)){var C,E;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=j[e];if(t&&("alignment"!==d||v===Rr(t)||x.every(e=>Rr(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:x},reset:{placement:t}};let n=null==(E=x.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:E.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=x.filter(e=>{if(S){const t=Rr(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},lo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=_r(e,t)||{};if(null==c)return{};const d=zr(u),f={x:n,y:r},p=kr(o),h=Ar(p),m=await l.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",O=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let j=S?S[y]:0;j&&await(null==l.isElement?void 0:l.isElement(S))||(j=a.floating[y]||i.floating[h]);const P=O/2-w/2,_=j/2-m[h]/2-1,x=vr(d[b],_),C=vr(d[v],_),E=j-m[h]-C,A=j/2-m[h]/2+P,R=Pr(x,A,E),k=!s.arrow&&null!=Cr(o)&&A!==R&&i.reference[h]/2-(A<x?x:C)-m[h]/2<0,D=k?A<x?A-x:A-E:0;return{[p]:f[p]+D,data:{[p]:R,centerOffset:A-R-D,...k&&{alignmentOffset:D}},reset:k}}}),ao=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...no,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:Hr},s=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Fr(c,r,s),f=r,p=0;const h={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:b}=m,{x:v,y,data:O,reset:w}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[g]={...h[g],...O},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Fr(c,f,s))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:i})};var so="undefined"!=typeof document?Pe.useLayoutEffect:function(){};function co(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!co(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||co(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function uo(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fo(e,t){const n=uo(e);return Math.round(t*n)/n}function po(e){const t=Pe.useRef(e);return so(()=>{t.current=e}),t}const ho=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:a}=t,s=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),l=xr(n),a=Cr(n),s="y"===Rr(n),c=qr.has(l)?-1:1,u=i&&s?-1:1,d=_r(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:i+s.y,data:{...s,placement:l}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},mo=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=_r(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),f=Rr(o),p=Er(f);let h=u[p],m=u[f];const g=(e,t)=>Pr(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);l&&(h=g(p,h)),a&&(m=g(f,m));const b=s.fn({...t,[p]:h,[f]:m});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[p]:l,[f]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},go=(e,t)=>{const n=io(e);return{name:n.name,fn:n.fn,options:[e,t]}},bo=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?lo({element:n.current,padding:r}).fn(t):{}:n?lo({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};function vo(e){const t=Pe.useRef(void 0),n=Pe.useCallback(t=>{const n=e.map(e=>{if(null!=e){if("function"==typeof e){const n=e,r=n(t);return"function"==typeof r?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>null==e?void 0:e())}},e);return Pe.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}const yo="data-floating-ui-focusable",Oo="active",wo="selected",So={...Pe};let jo=!1,Po=0;const _o=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Po++,xo=So.useId||function(){const[e,t]=Pe.useState(()=>jo?_o():void 0);return ar(()=>{null==e&&t(_o())},[]),Pe.useEffect(()=>{jo=!0},[]),e};const Co=Pe.createContext(null),Eo=Pe.createContext(null),Ao=()=>{var e;return(null==(e=Pe.useContext(Co))?void 0:e.id)||null},Ro=()=>Pe.useContext(Eo);function ko(e){return"data-floating-ui-"+e}function Do(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}const Mo=ko("safe-polygon");function Lo(e,t,n){if(n&&!lr(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){const n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function No(e){return"function"==typeof e?e():e}let Io=0;function To(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Io);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Io=requestAnimationFrame(i)}const zo={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Vo(e){return"inert"===e?zo.inert:"aria-hidden"===e?zo["aria-hidden"]:zo.none}let Fo=new WeakSet,Ho={},qo=0;function Bo(e){return e?sn(e)?e.host:Bo(e.parentNode):null}const Wo=(e,t)=>t.map(t=>{if(e.contains(t))return t;const n=Bo(t);return e.contains(n)?n:null}).filter(e=>null!=e);function Ko(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=(o=e[0],(null==o?void 0:o.ownerDocument)||document).body;var o;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,l=Wo(t,e),a=new Set,s=new Set(l),c=[];Ho[o]||(Ho[o]=new WeakMap);const u=Ho[o];return l.forEach(function e(t){t&&!a.has(t)&&(a.add(t),t.parentNode&&e(t.parentNode))}),function e(t){t&&!s.has(t)&&[].forEach.call(t.children,t=>{if("script"!==tn(t))if(a.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=Vo(i),l=(r.get(t)||0)+1,a=(u.get(t)||0)+1;r.set(t,l),u.set(t,a),c.push(t),1===l&&n&&Fo.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"inert"===i?"":"true")}})}(t),a.clear(),qo++,()=>{c.forEach(e=>{const t=Vo(i),n=(t.get(e)||0)-1,r=(u.get(e)||0)-1;t.set(e,n),u.set(e,r),n||(!Fo.has(e)&&i&&e.removeAttribute(i),Fo.delete(e)),r||e.removeAttribute(o)}),qo--,qo||(zo.inert=new WeakMap,zo["aria-hidden"]=new WeakMap,zo.none=new WeakMap,Fo=new WeakSet,Ho={})}}(e.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,t,n)}const Go={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Uo=Pe.forwardRef(function(e,t){const[r,o]=Pe.useState();ar(()=>{Kn()&&o("button")},[]);const i={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[ko("focus-guard")]:"",style:Go};return n("span",{...e,...i})}),Yo={clipPath:"inset(50%)",position:"fixed",top:0,left:0},Jo=Pe.createContext(null),Qo=ko("portal");function Zo(e){const{children:t,id:i,root:l,preserveTabOrder:a=!0}=e,s=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=xo(),o=Xo(),[i,l]=Pe.useState(null),a=Pe.useRef(null);return ar(()=>()=>{null==i||i.remove(),queueMicrotask(()=>{a.current=null})},[i]),ar(()=>{if(!r)return;if(a.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Qo,""),e.appendChild(n),a.current=n,l(n)},[t,r]),ar(()=>{if(null===n)return;if(!r)return;if(a.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!on(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const s=document.createElement("div");s.id=r,s.setAttribute(Qo,""),e=i||e,e.appendChild(s),a.current=s,l(s)},[t,n,r,o]),i}({id:i,root:l}),[c,u]=Pe.useState(null),d=Pe.useRef(null),f=Pe.useRef(null),p=Pe.useRef(null),h=Pe.useRef(null),m=null==c?void 0:c.modal,g=null==c?void 0:c.open,b=!!c&&!c.modal&&c.open&&a&&!(!l&&!s);return Pe.useEffect(()=>{if(s&&a&&!m)return s.addEventListener("focusin",e,!0),s.addEventListener("focusout",e,!0),()=>{s.removeEventListener("focusin",e,!0),s.removeEventListener("focusout",e,!0)};function e(e){s&&mr(e)&&("focusin"===e.type?br:gr)(s)}},[s,a,m]),Pe.useEffect(()=>{s&&(g||br(s))},[g,s]),r(Jo.Provider,{value:Pe.useMemo(()=>({preserveTabOrder:a,beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:h,portalNode:s,setFocusManagerState:u}),[a,s]),children:[b&&s&&n(Uo,{"data-type":"outside",ref:d,onFocus:e=>{if(mr(e,s)){var t;null==(t=p.current)||t.focus()}else{const e=hr(c?c.domReference:null);null==e||e.focus()}}}),b&&s&&n("span",{"aria-owns":s.id,style:Yo}),s&&o(t,s),b&&s&&n(Uo,{"data-type":"outside",ref:f,onFocus:e=>{if(mr(e,s)){var t;null==(t=h.current)||t.focus()}else{const t=pr(c?c.domReference:null);null==t||t.focus(),(null==c?void 0:c.closeOnFocusOut)&&(null==c||c.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Xo=()=>Pe.useContext(Jo);function $o(e){return Pe.useMemo(()=>t=>{e.forEach(e=>{e&&(e.current=t)})},e)}let ei=[];function ti(){ei=ei.filter(e=>{var t;return null==(t=e.deref())?void 0:t.isConnected})}function ni(){ti();const e=ei[ei.length-1];return null==e?void 0:e.deref()}function ri(e,t){var n;if(!(t.current.includes("floating")||null!=(n=e.getAttribute("role"))&&n.includes("dialog")))return;const r=dr(),o=function(e,t){return(t=t||{}).getShadowRoot?kn([e],t.includeContainer,{filter:Tn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Rn(e,t.includeContainer,Tn.bind(null,t))}(e,r),i=o.filter(e=>{const t=e.getAttribute("data-tabindex")||"";return qn(e,r)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),l=e.getAttribute("tabindex");t.current.includes("floating")||0===i.length?"0"!==l&&e.setAttribute("tabindex","0"):("-1"!==l||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}const oi=Pe.forwardRef(function(e,t){return n("button",{...e,type:"button",ref:t,tabIndex:-1,style:Go})});function ii(e){const{context:o,children:i,disabled:l=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:u=!0,restoreFocus:d=!1,modal:f=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0,outsideElementsInert:m=!1,getInsideElements:g=()=>[]}=e,{open:b,onOpenChange:v,events:y,dataRef:O,elements:{domReference:w,floating:S}}=o,j=ur(()=>{var e;return null==(e=O.current.floatingContext)?void 0:e.nodeId}),P=ur(g),_="number"==typeof c&&c<0,x=tr(w)&&_,C="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,E=!C||s,A=!E||C&&m,R=sr(a),k=sr(c),D=sr(u),M=Ro(),L=Xo(),N=Pe.useRef(null),I=Pe.useRef(null),T=Pe.useRef(!1),z=Pe.useRef(!1),V=Pe.useRef(-1),F=Pe.useRef(-1),H=null!=L,q=nr(S),B=ur(function(e){return void 0===e&&(e=q),e?Hn(e,dr()):[]}),W=ur(e=>{const t=B(e);return R.current.map(e=>w&&"reference"===e?w:q&&"floating"===e?q:t).filter(Boolean).flat()});Pe.useEffect(()=>{if(l)return;if(!f)return;function e(e){if("Tab"===e.key){Qn(q,Jn($n(q)))&&0===B().length&&!x&&ir(e);const t=W(),n=Zn(e);"reference"===R.current[0]&&n===w&&(ir(e),e.shiftKey?To(t[t.length-1]):To(t[1])),"floating"===R.current[1]&&n===q&&e.shiftKey&&(ir(e),To(t[0]))}}const t=$n(q);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[l,w,q,f,R,x,B,W]),Pe.useEffect(()=>{if(!l&&S)return S.addEventListener("focusin",e),()=>{S.removeEventListener("focusin",e)};function e(e){const t=Zn(e),n=B().indexOf(t);-1!==n&&(V.current=n)}},[l,S,B]),Pe.useEffect(()=>{if(l)return;if(!h)return;function e(){z.current=!0,setTimeout(()=>{z.current=!1})}function t(e){const t=e.relatedTarget,n=e.currentTarget,r=Zn(e);queueMicrotask(()=>{const o=j(),i=!(Qn(w,t)||Qn(S,t)||Qn(t,S)||Qn(null==L?void 0:L.portalNode,t)||null!=t&&t.hasAttribute(ko("focus-guard"))||M&&(rr(M.nodesRef.current,o).find(e=>{var n,r;return Qn(null==(n=e.context)?void 0:n.elements.floating,t)||Qn(null==(r=e.context)?void 0:r.elements.domReference,t)})||or(M.nodesRef.current,o).find(e=>{var n,r,o;return[null==(n=e.context)?void 0:n.elements.floating,nr(null==(r=e.context)?void 0:r.elements.floating)].includes(t)||(null==(o=e.context)?void 0:o.elements.domReference)===t})));if(n===w&&q&&ri(q,R),d&&n!==w&&(null==r||!r.isConnected)&&Jn($n(q))===$n(q).body){an(q)&&q.focus();const e=V.current,t=B(),n=t[e]||t[t.length-1]||q;an(n)&&n.focus()}O.current.insideReactTree?O.current.insideReactTree=!1:!x&&f||!t||!i||z.current||t===ni()||(T.current=!0,v(!1,e,"focus-out"))})}const n=Boolean(!M&&L);function r(){Do(F),O.current.insideReactTree=!0,F.current=window.setTimeout(()=>{O.current.insideReactTree=!1})}return S&&an(w)?(w.addEventListener("focusout",t),w.addEventListener("pointerdown",e),S.addEventListener("focusout",t),n&&S.addEventListener("focusout",r,!0),()=>{w.removeEventListener("focusout",t),w.removeEventListener("pointerdown",e),S.removeEventListener("focusout",t),n&&S.removeEventListener("focusout",r,!0)}):void 0},[l,w,S,q,f,M,L,v,h,d,B,x,j,R,O]);const K=Pe.useRef(null),G=Pe.useRef(null),U=$o([K,null==L?void 0:L.beforeInsideRef]),Y=$o([G,null==L?void 0:L.afterInsideRef]);function J(e){return!l&&p&&f?n(oi,{ref:"start"===e?N:I,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}Pe.useEffect(()=>{var e,t;if(l)return;if(!S)return;const n=Array.from((null==L||null==(e=L.portalNode)?void 0:e.querySelectorAll("["+ko("portal")+"]"))||[]),r=null==(t=(M?or(M.nodesRef.current,j()):[]).find(e=>{var t;return tr((null==(t=e.context)?void 0:t.elements.domReference)||null)}))||null==(t=t.context)?void 0:t.elements.domReference,o=[S,r,...n,...P(),N.current,I.current,K.current,G.current,null==L?void 0:L.beforeOutsideRef.current,null==L?void 0:L.afterOutsideRef.current,R.current.includes("reference")||x?w:null].filter(e=>null!=e),i=f||x?Ko(o,!A,A):Ko(o);return()=>{i()}},[l,w,S,f,R,L,x,E,A,M,j,P]),ar(()=>{if(l||!an(q))return;const e=Jn($n(q));queueMicrotask(()=>{const t=W(q),n=k.current,r=("number"==typeof n?t[n]:n.current)||q,o=Qn(q,e);_||o||!b||To(r,{preventScroll:r===q})})},[l,b,q,_,W,k]),ar(()=>{if(l||!q)return;const e=$n(q);var t;function n(e){let{reason:t,event:n,nested:r}=e;if(["hover","safe-polygon"].includes(t)&&"mouseleave"===n.type&&(T.current=!0),"outside-press"===t)if(r)T.current=!1;else if(function(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Gn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}(n)||function(e){return!Un()&&(!Gn()&&0===e.width&&0===e.height||Gn()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}(n))T.current=!1;else{let e=!1;document.createElement("div").focus({get preventScroll(){return e=!0,!1}}),T.current=!e}}t=Jn(e),ti(),t&&"body"!==tn(t)&&(ei.push(new WeakRef(t)),ei.length>20&&(ei=ei.slice(-20))),y.on("openchange",n);const r=e.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,Go),H&&w&&w.insertAdjacentElement("afterend",r),()=>{y.off("openchange",n);const t=Jn(e),o=Qn(S,t)||M&&rr(M.nodesRef.current,j(),!1).some(e=>{var n;return Qn(null==(n=e.context)?void 0:n.elements.floating,t)}),i=function(){if("boolean"==typeof D.current){const e=w||ni();return e&&e.isConnected?e:r}return D.current.current||r}();queueMicrotask(()=>{const n=function(e){const t=dr();return qn(e,t)?e:Hn(e,t)[0]||e}(i);D.current&&!T.current&&an(n)&&(n===t||t===e.body||o)&&n.focus({preventScroll:!0}),r.remove()})}},[l,S,q,D,O,y,M,H,w,j]),Pe.useEffect(()=>(queueMicrotask(()=>{T.current=!1}),()=>{queueMicrotask(ti)}),[l]),ar(()=>{if(!l&&L)return L.setFocusManagerState({modal:f,closeOnFocusOut:h,open:b,onOpenChange:v,domReference:w}),()=>{L.setFocusManagerState(null)}},[l,L,f,b,v,h,w]),ar(()=>{l||q&&ri(q,R)},[l,q,R]);const Q=!l&&E&&(!f||!x)&&(H||f);return r(t,{children:[Q&&n(Uo,{"data-type":"inside",ref:U,onFocus:e=>{if(f){const e=W();To("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(T.current=!1,mr(e,L.portalNode)){const e=pr(w);null==e||e.focus()}else{var t;null==(t=L.beforeOutsideRef.current)||t.focus()}}}),!x&&J("start"),i,J("end"),Q&&n(Uo,{"data-type":"inside",ref:Y,onFocus:e=>{if(f)To(W()[0]);else if(null!=L&&L.preserveTabOrder&&L.portalNode)if(h&&(T.current=!0),mr(e,L.portalNode)){const e=hr(w);null==e||e.focus()}else{var t;null==(t=L.afterOutsideRef.current)||t.focus()}}})]})}function li(e){return an(e.target)&&"BUTTON"===e.target.tagName}function ai(e){return er(e)}function si(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:l=!0,event:a="click",toggle:s=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,f=Pe.useRef(),p=Pe.useRef(!1),h=Pe.useMemo(()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==a&&(lr(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===a&&f.current?f.current=void 0:lr(t,!0)&&c||(!n||!s||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!u||li(e)||(" "!==e.key||ai(i)||(e.preventDefault(),p.current=!0),function(e){return an(e.target)&&"A"===e.target.tagName}(e)||"Enter"===e.key&&r(!n||!s,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||li(e)||ai(i)||" "===e.key&&p.current&&(p.current=!1,r(!n||!s,e.nativeEvent,"click"))}}),[o,i,a,c,u,r,n,d,s]);return Pe.useMemo(()=>l?{reference:h}:{},[l,h])}const ci={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ui={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},di=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function fi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:l=!0,escapeKey:a=!0,outsidePress:s=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:p,capture:h}=t,m=Ro(),g=ur("function"==typeof s?s:()=>!1),b="function"==typeof s?g:s,v=Pe.useRef(!1),{escapeKey:y,outsidePress:O}=di(p),{escapeKey:w,outsidePress:S}=di(h),j=Pe.useRef(!1),P=ur(e=>{var t;if(!n||!l||!a||"Escape"!==e.key)return;if(j.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,s=m?rr(m.nodesRef.current,o):[];if(!y&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)}),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")}),_=ur(e=>{var t;const n=()=>{var t;P(e),null==(t=Zn(e))||t.removeEventListener("keydown",n)};null==(t=Zn(e))||t.addEventListener("keydown",n)}),x=ur(e=>{var t;const n=i.current.insideReactTree;i.current.insideReactTree=!1;const l=v.current;if(v.current=!1,"click"===c&&l)return;if(n)return;if("function"==typeof b&&!b(e))return;const a=Zn(e),s="["+ko("inert")+"]",u=$n(o.floating).querySelectorAll(s);let d=ln(a)?a:null;for(;d&&!vn(d);){const e=wn(d);if(vn(e)||!ln(e))break;d=e}if(u.length&&ln(a)&&!a.matches("html,body")&&!Qn(a,o.floating)&&Array.from(u).every(e=>!Qn(d,e)))return;if(an(a)&&A){const t=vn(a),n=yn(a),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),l=o&&a.clientWidth>0&&a.scrollWidth>a.clientWidth,s=i&&a.clientHeight>0&&a.scrollHeight>a.clientHeight,c="rtl"===n.direction,u=s&&(c?e.offsetX<=a.offsetWidth-a.clientWidth:e.offsetX>a.clientWidth),d=l&&e.offsetY>a.clientHeight;if(u||d)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,p=m&&rr(m.nodesRef.current,f).some(t=>{var n;return Xn(e,null==(n=t.context)?void 0:n.elements.floating)});if(Xn(e,o.floating)||Xn(e,o.domReference)||p)return;const h=m?rr(m.nodesRef.current,f):[];if(h.length>0){let e=!0;if(h.forEach(t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)}),!e)return}r(!1,e,"outside-press")}),C=ur(e=>{var t;const n=()=>{var t;x(e),null==(t=Zn(e))||t.removeEventListener(c,n)};null==(t=Zn(e))||t.addEventListener(c,n)});Pe.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=y,i.current.__outsidePressBubbles=O;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),j.current=!0}function u(){e=window.setTimeout(()=>{j.current=!1},bn()?5:0)}const d=$n(o.floating);a&&(d.addEventListener("keydown",w?_:P,w),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),b&&d.addEventListener(c,S?C:x,S);let p=[];return f&&(ln(o.domReference)&&(p=jn(o.domReference)),ln(o.floating)&&(p=p.concat(jn(o.floating))),!ln(o.reference)&&o.reference&&o.reference.contextElement&&(p=p.concat(jn(o.reference.contextElement)))),p=p.filter(e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)}),p.forEach(e=>{e.addEventListener("scroll",t)}),()=>{a&&(d.removeEventListener("keydown",w?_:P,w),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),b&&d.removeEventListener(c,S?C:x,S),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[i,o,a,b,c,n,r,f,l,y,O,P,w,_,x,S,C]),Pe.useEffect(()=>{i.current.insideReactTree=!1},[i,b,c]);const E=Pe.useMemo(()=>({onKeyDown:P,...u&&{[ci[d]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==d&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[P,r,u,d]),A=Pe.useMemo(()=>{function e(e){0===e.button&&(v.current=!0)}return{onKeyDown:P,onMouseDown:e,onMouseUp:e,[ui[c]]:()=>{i.current.insideReactTree=!0}}},[P,c,i]);return Pe.useMemo(()=>l?{reference:E,floating:A}:{},[l,E,A])}function pi(e){var t,n;let{elements:r,...o}=void 0===e?{}:e;const{nodeId:l}=o,a=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=xo(),i=Pe.useRef({}),[l]=Pe.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}()),a=null!=Ao(),[s,c]=Pe.useState(r.reference),u=ur((e,t,r)=>{i.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),d=Pe.useMemo(()=>({setPositionReference:c}),[]),f=Pe.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return Pe.useMemo(()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:l,floatingId:o,refs:d}),[t,u,f,l,o,d])}({...o,elements:{reference:null!=(t=null==r?void 0:r.reference)?t:null,floating:null!=(n=null==r?void 0:r.floating)?n:null}}),s=o.rootContext||a,c=s.elements,[u,d]=Pe.useState(null),[f,p]=Pe.useState(null),h=(null==c?void 0:c.domReference)||u,m=Pe.useRef(null),g=Ro();ar(()=>{h&&(m.current=h)},[h]);const b=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=Pe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Pe.useState(r);co(p,r)||h(r);const[m,g]=Pe.useState(null),[b,v]=Pe.useState(null),y=Pe.useCallback(e=>{e!==j.current&&(j.current=e,g(e))},[]),O=Pe.useCallback(e=>{e!==P.current&&(P.current=e,v(e))},[]),w=l||m,S=a||b,j=Pe.useRef(null),P=Pe.useRef(null),_=Pe.useRef(d),x=null!=c,C=po(c),E=po(o),A=po(u),R=Pe.useCallback(()=>{if(!j.current||!P.current)return;const e={placement:t,strategy:n,middleware:p};E.current&&(e.platform=E.current),ao(j.current,P.current,e).then(e=>{const t={...e,isPositioned:!1!==A.current};k.current&&!co(_.current,t)&&(_.current=t,i(()=>{f(t)}))})},[p,t,n,E,A]);so(()=>{!1===u&&_.current.isPositioned&&(_.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);const k=Pe.useRef(!1);so(()=>(k.current=!0,()=>{k.current=!1}),[]),so(()=>{if(w&&(j.current=w),S&&(P.current=S),w&&S){if(C.current)return C.current(w,S,R);R()}},[w,S,R,C,x]);const D=Pe.useMemo(()=>({reference:j,floating:P,setReference:y,setFloating:O}),[y,O]),M=Pe.useMemo(()=>({reference:w,floating:S}),[w,S]),L=Pe.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=fo(M.floating,d.x),r=fo(M.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...uo(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,d.x,d.y]);return Pe.useMemo(()=>({...d,update:R,refs:D,elements:M,floatingStyles:L}),[d,R,D,M,L])}({...o,elements:{...c,...f&&{reference:f}}}),v=Pe.useCallback(e=>{const t=ln(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;p(t),b.refs.setReference(t)},[b.refs]),y=Pe.useCallback(e=>{(ln(e)||null===e)&&(m.current=e,d(e)),(ln(b.refs.reference.current)||null===b.refs.reference.current||null!==e&&!ln(e))&&b.refs.setReference(e)},[b.refs]),O=Pe.useMemo(()=>({...b.refs,setReference:y,setPositionReference:v,domReference:m}),[b.refs,y,v]),w=Pe.useMemo(()=>({...b.elements,domReference:h}),[b.elements,h]),S=Pe.useMemo(()=>({...b,...s,refs:O,elements:w,nodeId:l}),[b,O,w,l,s]);return ar(()=>{s.dataRef.current.floatingContext=S;const e=null==g?void 0:g.nodesRef.current.find(e=>e.id===l);e&&(e.context=S)}),Pe.useMemo(()=>({...b,context:S,refs:O,elements:w}),[b,O,w,S])}function hi(){return Bn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints&&Kn()}function mi(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:l}=e,{enabled:a=!0,visibleOnly:s=!0}=t,c=Pe.useRef(!1),u=Pe.useRef(-1),d=Pe.useRef(!0);Pe.useEffect(()=>{if(!a)return;const e=nn(l.domReference);function t(){!n&&an(l.domReference)&&l.domReference===Jn($n(l.domReference))&&(c.current=!0)}function r(){d.current=!0}function o(){d.current=!1}return e.addEventListener("blur",t),hi()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),hi()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[l.domReference,n,a]),Pe.useEffect(()=>{if(a)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(c.current=!0)}},[o,a]),Pe.useEffect(()=>()=>{Do(u)},[]);const f=Pe.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Zn(e.nativeEvent);if(s&&ln(t))if(hi()&&!e.relatedTarget){if(!d.current&&!er(t))return}else if(!function(e){if(!e||Un())return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}(t))return;r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=ln(t)&&t.hasAttribute(ko("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout(()=>{var e;const a=Jn(l.domReference?l.domReference.ownerDocument:document);(t||a!==l.domReference)&&(Qn(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||Qn(l.domReference,a)||o||r(!1,n,"focus"))})}}),[i,l.domReference,r,s]);return Pe.useMemo(()=>a?{reference:f}:{},[a,f])}function gi(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Oo]:t,[wo]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[yo]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var l;o&&[Oo,wo].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function bi(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=Pe.useCallback(t=>gi(t,e,"reference"),t),i=Pe.useCallback(t=>gi(t,e,"floating"),n),l=Pe.useCallback(t=>gi(t,e,"item"),r);return Pe.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:l}),[o,i,l])}const vi=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function yi(e,t){var n,r;void 0===t&&(t={});const{open:o,elements:i,floatingId:l}=e,{enabled:a=!0,role:s="dialog"}=t,c=xo(),u=(null==(n=i.domReference)?void 0:n.id)||c,d=Pe.useMemo(()=>{var e;return(null==(e=nr(i.floating))?void 0:e.id)||l},[i.floating,l]),f=null!=(r=vi.get(s))?r:s,p=null!=Ao(),h=Pe.useMemo(()=>"tooltip"===f||"label"===s?{["aria-"+("label"===s?"labelledby":"describedby")]:o?d:void 0}:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===f?"dialog":f,"aria-controls":o?d:void 0,..."listbox"===f&&{role:"combobox"},..."menu"===f&&{id:u},..."menu"===f&&p&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},[f,d,p,o,u,s]),m=Pe.useMemo(()=>{const e={id:d,...f&&{role:f}};return"tooltip"===f||"label"===s?e:{...e,..."menu"===f&&{"aria-labelledby":u}}},[f,d,u,s]),g=Pe.useCallback(e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:d+"-fui-option"}};switch(s){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[d,s]);return Pe.useMemo(()=>a?{reference:h,floating:m,item:g}:{},[a,h,m,g])}const Oi=(0,Pe.createContext)(null);function wi(){return(0,Pe.useContext)(Oi)}function Si(e,t){return void 0!==e?e:t??void 0}const ji=(0,Pe.createContext)(null),Pi=["styles","style","children"],_i=["context"];function xi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach(function(t){Ei(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ei(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ai(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Ri=(0,Pe.forwardRef)(function(e,t){let{styles:o,style:i,children:l}=e,a=Ai(e,Pi);const s=wi(),c=(0,Pe.useContext)(ji);if(!c)return null;const{context:u}=c,d=Ai(c,_i),f=vo([d.refs.setFloating,t]);if(!u.open)return null;let p="",h=null,m=null;switch(d.placement){case"top":case"top-end":case"top-start":p="topArrow",m=!1;break;case"bottom":case"bottom-end":case"bottom-start":p="bottomArrow",m=!0;break;case"left":case"left-end":case"left-start":p="leftArrow",h=!0;break;case"right":case"right-end":case"right-start":p="rightArrow",h=!1}return n(Zo,{root:Si(d.root,s),children:r("div",Ci(Ci({ref:f,style:Ci(Ci({},d.floatingStyles),i)},d.getFloatingProps(a)),{},{children:[l,!d.withoutArrow&&n("div",{className:o&&je()(o.arrow,o[p]),ref:d.arrowRef,style:{position:"absolute",left:null===m&&!1===h?0:d.middlewareData.arrow?.x,right:null===m&&!0===h?0:d.middlewareData.arrow?.x,top:null===h&&!0===m?0:d.middlewareData.arrow?.y,bottom:null===h&&!1===m?0:d.middlewareData.arrow?.y}})]}))})});function ki(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Li=["children"],Ni=e=>{const{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Li),o=function(e={}){const{initialOpen:t=!1,placement:n="top",open:r,onOpenChange:o,withoutArrow:i,arrowRef:l,root:a}=e,[s,c]=(0,Pe.useState)(t),u=r??s,d=o??c,f=pi({placement:n,open:u,onOpenChange:d,whileElementsMounted:oo,middleware:[ho(12),go({crossAxis:n.includes("-"),fallbackAxisSideDirection:"start",padding:5}),mo({padding:5}),...!i&&l?.current?[bo({element:l})]:[]]}),{context:p}=f,h=function(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:l}=e,{enabled:a=!0,delay:s=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=Ro(),h=Ao(),m=sr(c),g=sr(s),b=sr(n),v=sr(d),y=Pe.useRef(),O=Pe.useRef(-1),w=Pe.useRef(),S=Pe.useRef(-1),j=Pe.useRef(!0),P=Pe.useRef(!1),_=Pe.useRef(()=>{}),x=Pe.useRef(!1),C=ur(()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});Pe.useEffect(()=>{if(a)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(Do(O),Do(S),j.current=!0,x.current=!1)}},[a,i]),Pe.useEffect(()=>{if(!a)return;if(!m.current)return;if(!n)return;function e(e){C()&&r(!1,e,"hover")}const t=$n(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[l.floating,n,r,a,m,C]);const E=Pe.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=Lo(g.current,"close",y.current);o&&!w.current?(Do(O),O.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(Do(O),r(!1,e,n))},[g,r]),A=ur(()=>{_.current(),w.current=void 0}),R=ur(()=>{if(P.current){const e=$n(l.floating).body;e.style.pointerEvents="",e.removeAttribute(Mo),P.current=!1}}),k=ur(()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type));Pe.useEffect(()=>{if(a&&ln(l.domReference)){const r=l.domReference,o=l.floating;return n&&r.addEventListener("mouseleave",i),f&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),o&&(o.addEventListener("mouseleave",i),o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c)),()=>{n&&r.removeEventListener("mouseleave",i),f&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),o&&(o.removeEventListener("mouseleave",i),o.removeEventListener("mouseenter",s),o.removeEventListener("mouseleave",c))}}function e(e){if(Do(O),j.current=!1,u&&!lr(y.current)||No(v.current)>0&&!Lo(g.current,"open"))return;const t=Lo(g.current,"open",y.current);t?O.current=window.setTimeout(()=>{b.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(k())return void R();_.current();const t=$n(l.floating);if(Do(S),x.current=!1,m.current&&o.current.floatingContext){n||Do(O),w.current=m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),A(),k()||E(e,!0,"safe-polygon")}});const r=w.current;return t.addEventListener("mousemove",r),void(_.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==y.current||!Qn(l.floating,e.relatedTarget))&&E(e)}function i(e){k()||o.current.floatingContext&&(null==m.current||m.current({...o.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){R(),A(),k()||E(e)}})(e))}function s(){Do(O)}function c(e){k()||E(e,!1)}},[l,a,e,u,f,E,A,R,r,n,b,p,g,m,o,k,v]),ar(()=>{var e;if(a&&n&&null!=(e=m.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&C()){P.current=!0;const e=l.floating;if(ln(l.domReference)&&e){var t;const n=$n(l.floating).body;n.setAttribute(Mo,"");const r=l.domReference,o=null==p||null==(t=p.nodesRef.current.find(e=>e.id===h))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}},[a,n,h,l,p,m,C]),ar(()=>{n||(y.current=void 0,x.current=!1,A(),R())},[n,A,R]),Pe.useEffect(()=>()=>{A(),Do(O),Do(S),R()},[a,l.domReference,A,R]);const D=Pe.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){j.current||b.current||r(!0,t,"hover")}u&&!lr(y.current)||n||0===No(v.current)||x.current&&e.movementX**2+e.movementY**2<2||(Do(S),"touch"===y.current?o():(x.current=!0,S.current=window.setTimeout(o,No(v.current))))}}},[u,r,n,b,v]);return Pe.useMemo(()=>a?{reference:D}:{},[a,D])}(p,{move:!1,enabled:null==r}),m=bi([h,mi(p,{enabled:null==r}),fi(p),yi(p,{role:"tooltip"})]);return(0,Pe.useMemo)(()=>Di(Di({open:u,setOpen:d,withoutArrow:i,arrowRef:l,root:a},m),f),[u,d,m,f,a])}(r);return n(ji.Provider,{value:o,children:t})},Ii=["children","wrapTrigger"];function Ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach(function(t){Vi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vi(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fi=(0,Pe.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ii);const l=(0,Pe.useContext)(ji),a=r.ref,s=vo([l?.refs.setReference,t,a]);return l?!o&&(0,Pe.isValidElement)(r)?(0,Pe.cloneElement)(r,l.getReferenceProps(zi(zi(zi({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",zi(zi({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Hi(e){const{label:o,clickable:i,initialOpen:l,placement:a,withoutArrow:s,wrapTrigger:c,alertType:u="default",root:d,children:f,classes:h}=e,[m,g]=(0,Pe.useState)(!1),b=(0,Pe.useRef)(null);return o?f?r(Ni,{placement:a,initialOpen:l,open:i?m:void 0,onOpenChange:i?g:void 0,withoutArrow:s,arrowRef:b,root:d,children:[n(Fi,{wrapTrigger:c,onClick:i?()=>g(e=>!e):void 0,className:c?je()(Xt,h?.trigger):void 0,children:f}),n(Ri,{className:je()(Kt,p[u],h?.content),styles:p,children:o})]}):null:f?n(t,{children:f}):null}var qi="fieldShell-module__arrow__aEobm",Bi="fieldShell-module__chips__sRJzx",Wi="fieldShell-module__end-icon__b8buW",Ki="fieldShell-module__input__uhnF8";const Gi=["variant","componentSize","fullWidth","label","error","labelExtra","inputId","onLabelClick","hasStartIcon","endIconCount","hasErrorIcon","hasClearButton","hasArrow","chipsMode","children","classes","className","style"];function Ui(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ui(Object(n),!0).forEach(function(t){Ji(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ji(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qi=(0,Pe.forwardRef)(function(e,t){let{variant:o="outlined",componentSize:i="medium",fullWidth:l,label:a,error:s,labelExtra:c,inputId:u,onLabelClick:d,hasStartIcon:f,endIconCount:p=0,hasErrorIcon:h,hasClearButton:m,hasArrow:g,chipsMode:b,children:v,classes:y,className:O,style:w}=e,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Gi);return r("div",{"data-size":i,className:je()("fieldShell-module__root__A1OLC",l&&"fieldShell-module__full-width__TtRHo",y?.root),children:[!!a&&r("div",{className:je()("fieldShell-module__label-row__UkRCm",y?.labelRow),children:[r(vt,{className:je()("fieldShell-module__label__MW9yk",y?.label),component:"label",variant:"caption",htmlFor:u,onClick:d,children:[a,c]}),!!s&&n(Hi,{label:s.description,alertType:"error",children:n("span",{className:je()("fieldShell-module__error-name__WExJs",y?.errorName),children:s.name})})]}),n("div",Yi(Yi({ref:t,"data-variant":o,"data-error":s?"":void 0,"data-start-icon":f?"":void 0,"data-end-icon":p>0?"":void 0,"data-error-icon":h?"":void 0,"data-clear":m?"":void 0,"data-arrow":g?"":void 0,"data-chips":b?"":void 0,className:je()("fieldShell-module__wrapper__OvvEL",O,y?.wrapper)},S),{},{style:Yi(Yi({},w),{},{"--end-icon-count":p}),children:v}))]})});function Zi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(n),!0).forEach(function(t){$i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $i(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const el=e=>n(Ot,Xi(Xi({},e),{},{children:n("path",{d:"M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function tl(e){return r(t,{children:[e.name,n("br",{}),e.description]})}function nl(e){const{error:t,componentSize:r="medium",className:o}=e,i="large"===r||"extraLarge"===r?24:20;return n(Hi,{label:tl(t),alertType:"error",children:n("span",{className:je()(Wi,"fieldShell-module__error-icon__aHf1B",o),children:n(el,{size:i})})})}function rl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rl(Object(n),!0).forEach(function(t){il(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function il(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ll=e=>n(Ot,ol(ol({},e),{},{children:n("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}));var al="inputChip-module__clickable__djl7f",sl="inputChip-module__disabled__YGtsQ",cl="inputChip-module__extraLarge__y0_Wa",ul="inputChip-module__filled__pktYJ",dl="inputChip-module__icon__o6UjH",fl="inputChip-module__large__zecCF",pl="inputChip-module__medium__T_uhi",hl="inputChip-module__outlined__L0tPF",ml="inputChip-module__remove__k2uuh",gl="inputChip-module__root__PCWqv",bl="inputChip-module__small__XM6yG",vl="inputChip-module__text__LQYEa",yl="inputChip-module__with-icon__J7ekZ";const Ol=["variant","componentSize","icon","disabled","onClick","onRemove","children","classes","className"];function wl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wl(Object(n),!0).forEach(function(t){jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pl=(0,Pe.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,disabled:a,onClick:s,onRemove:c,children:u,classes:d,className:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ol);return r("div",Sl(Sl({ref:t,className:je()(gl,h[o],h[i],!!l&&yl,a&&sl,s&&!a&&al,f,d?.root),tabIndex:s&&!a?0:void 0},p),{},{onClick:a?void 0:s,children:[!!l&&n("span",{className:je()(dl,d?.icon),children:l}),n("span",{className:je()(vl,d?.text),children:u}),!!c&&n("button",{type:"button",className:je()(ml,d?.remove),onClick:e=>{e.stopPropagation(),a||c?.()},disabled:a,"aria-label":"Удалить",children:n(ll,{})})]}))}),_l=(0,Pe.createContext)(null),xl=["style","children"],Cl=["context"];function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?El(Object(n),!0).forEach(function(t){Rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Dl=(0,Pe.forwardRef)(function(e,t){let{style:r,children:o}=e,i=kl(e,xl);const l=wi(),a=(0,Pe.useContext)(_l);if(!a)return null;const{context:s}=a,c=kl(a,Cl),u=vo([c.refs.setFloating,t]),d=yt();return(0,Pe.useLayoutEffect)(()=>(a.setDescriptionId(d),()=>a.setDescriptionId(void 0)),[d,a.setDescriptionId]),s.open?n(Zo,{root:Si(c.root,l),children:n(ii,{context:s,modal:c.modal,children:n("div",Al(Al({id:d,ref:u,style:Al(Al({},c.floatingStyles),r),"aria-describedby":c.descriptionId},c.getFloatingProps(i)),{},{children:o}))})}):null}),Ml=["update"];function Ll(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ll(Object(n),!0).forEach(function(t){Il(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ll(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Il(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tl=["children","modal"];function zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fl=e=>{const{children:t,modal:r=!1}=e,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Tl),i=function(e={}){const{initialOpen:t=!1,placement:n="bottom",modal:r,root:o,open:i,onOpenChange:l,containerOffset:a=12,layoutVersion:s}=e,[c,u]=(0,Pe.useState)(t),[d,f]=(0,Pe.useState)(),p=i??c,h=l??u,m=pi({placement:n,open:p,onOpenChange:h,whileElementsMounted:oo,middleware:[ho(a),go({crossAxis:n.includes("-"),fallbackAxisSideDirection:"end",padding:5}),mo({padding:5})]}),{update:g}=m,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(m,Ml),{context:v}=b;(0,Pe.useLayoutEffect)(()=>{p&&g()},[p,s,g]);const y=bi([si(v,{enabled:null==i}),fi(v),yi(v)]);return(0,Pe.useMemo)(()=>Nl(Nl(Nl({open:p,setOpen:h},y),b),{},{update:g,modal:r,root:o,descriptionId:d,setDescriptionId:f}),[p,h,y,b,g,r,o,d])}(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zl(Object(n),!0).forEach(function(t){Vl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({modal:r},o));return n(_l.Provider,{value:i,children:t})},Hl=["children","wrapTrigger"];function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ql(Object(n),!0).forEach(function(t){Wl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kl=(0,Pe.forwardRef)(function(e,t){let{children:r,wrapTrigger:o=!1}=e,i=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Hl);const l=(0,Pe.useContext)(_l),a=r.ref,s=vo([l?.refs.setReference,t,a]);return l?!o&&(0,Pe.isValidElement)(r)?(0,Pe.cloneElement)(r,l.getReferenceProps(Bl(Bl(Bl({ref:s},i),r.props),{},{"data-state":l.open?"open":"closed"}))):n("div",Bl(Bl({ref:s,"data-state":l.open?"open":"closed"},l.getReferenceProps(i)),{},{children:r})):null});function Gl(e){const{description:t,clickable:o,initialOpen:i,placement:l,wrapTrigger:a,containerOffset:s,root:c,open:u,onOpenChange:d,children:f,classes:p,contentStyle:h,layoutVersion:m}=e,[g,b]=(0,Pe.useState)(!1);return f?t?r(Fl,{placement:l,initialOpen:i,open:void 0!==u?u:o?g:void 0,onOpenChange:void 0!==d?d:o?b:void 0,containerOffset:s,root:c,layoutVersion:m,children:[n(Kl,{wrapTrigger:a,onClick:o?()=>b(e=>!e):void 0,className:je()(a?"popover-module__trigger__nPqWJ":void 0,p?.trigger),children:f}),n(Dl,{className:je()("popover-module__content__mHuYG",p?.content),style:h,children:t})]}):f:null}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach(function(t){Jl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jl(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ql=e=>n(Ot,Yl(Yl({},e),{},{children:n("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}));function Zl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zl(Object(n),!0).forEach(function(t){$l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $l(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ea=e=>n(Ot,Xl(Xl({},e),{},{children:n("path",{d:"M7 10l5 5 5-5z"})}));function ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function na(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ta(Object(n),!0).forEach(function(t){ra(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ra(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oa=e=>n(Ot,na(na({},e),{},{children:n("path",{d:"M7 14l5-5 5 5z"})}));function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function la(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach(function(t){aa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aa(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sa=e=>n(Ot,la(la({},e),{},{children:n("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"})}));function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){da(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function da(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fa=e=>n(Ot,ua(ua({},e),{},{children:n("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})}));function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ha(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach(function(t){ma(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ma(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ga=e=>n(Ot,ha(ha({},e),{},{children:n("path",{d:"M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44\n 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13\n 18.92V22c5-.47 8.53-4 9-9h-3.03c-.43 3-2.97 5.49-5.97 5.92z"})}));function ba(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ba(Object(n),!0).forEach(function(t){ya(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ya(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oa=e=>n(Ot,va(va({},e),{},{children:n("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0\n 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-7-2h2V7h-4v2h2z"})}));function wa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wa(Object(n),!0).forEach(function(t){ja(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ja(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pa=e=>n(Ot,Sa(Sa({},e),{},{children:n("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0\n .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M10 5.47l4\n 1.4v11.66l-4-1.4zm-5 .99 3-1.01v11.7l-3 1.16zm14 11.08-3 1.01V6.86l3-1.16z"})}));function _a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(n),!0).forEach(function(t){Ca(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ca(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ea=e=>r(Ot,xa(xa({},e),{},{children:[n("circle",{cx:"7",cy:"14",r:"3"}),n("circle",{cx:"11",cy:"6",r:"3"}),n("circle",{cx:"16.6",cy:"17.6",r:"3"})]}));function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach(function(t){ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ka(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Da=e=>n(Ot,Ra(Ra({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function Ma(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ma(Object(n),!0).forEach(function(t){Na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ma(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Na(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ia=e=>n(Ot,La(La({},e),{},{children:n("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})}));function Ta(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ta(Object(n),!0).forEach(function(t){Va(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Va(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fa=e=>n(Ot,za(za({},e),{},{children:n("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})}));function Ha(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ha(Object(n),!0).forEach(function(t){Ba(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ha(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ba(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wa=e=>n(Ot,qa(qa({},e),{},{children:n("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})}));function Ka(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach(function(t){Ua(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ua(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ya=e=>n(Ot,Ga(Ga({},e),{},{children:n("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"})}));function Ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ja(Object(n),!0).forEach(function(t){Za(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Za(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xa=e=>n(Ot,Qa(Qa({},e),{},{children:n("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"})}));function $a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach(function(t){ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ts(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ns=e=>n(Ot,es(es({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM16 9V19H8V9H16ZM6 7H18V19C18 20.1 17.1 21 16 21H8C6.9 21 6 20.1 6 19V7Z"})}));function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(t){is(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function is(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ls=e=>n(Ot,os(os({},e),{},{children:n("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})}));function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach(function(t){cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const us=e=>n(Ot,ss(ss({},e),{},{children:n("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM7 12C7 10.9 7.9 10 9 10C10.1 10 11 10.9 11 12C11 13.1 10.1 14 9 14C7.9 14 7 13.1 7 12ZM9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20ZM17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM13 18C13 16.9 13.9 16 15 16C16.1 16 17 16.9 17 18C17 19.1 16.1 20 15 20C13.9 20 13 19.1 13 18Z"})}));function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(t){ps(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ps(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hs=e=>n(Ot,fs(fs({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(t){bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vs=e=>n(Ot,gs(gs({},e),{},{children:n("path",{d:"M4.24993 5.61C6.26993 8.2 9.99993 13 9.99993 13V19C9.99993 19.55 10.4499\n 20 10.9999 20H12.9999C13.5499 20 13.9999 19.55 13.9999 19V13C13.9999 13 17.7199 8.2\n 19.7399 5.61C20.2499 4.95 19.7799 4 18.9499 4H5.03993C4.20993 4 3.73993 4.95 4.24993 5.61Z"})}));function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Os(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ws(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ss=e=>r(Ot,Os(Os({},e),{},{children:[n("g",{"clip-path":"url(#clip0_851_25267)",children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.00015 4L3.46792 0.467773L2.05371 1.88199L4.4002 4.22847C4.01467 4.55071 3.89485 5.1506 4.24984\n 5.61C6.26984 8.2 9.99984 13 9.99984 13V19C9.99984 19.55 10.4498 20 10.9998 20H12.9998C13.5498 20\n 13.9998 19.55 13.9998 19V13.8281L18.9708 18.7991L20.385 17.3849L20.3849 17.3847L14.8734 11.8733L7.00015\n 4ZM16.1091 10.2805C17.2922 8.75591 18.7289 6.90619 19.7398 5.61C20.2498 4.95 19.7798 4 18.9498\n 4H9.82861L16.1091 10.2805Z"})}),n("defs",{children:n("clipPath",{id:"clip0_851_25267",children:n("rect",{width:"24",height:"24",fill:"white"})})})]}));function js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?js(Object(n),!0).forEach(function(t){_s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _s(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xs=e=>n(Ot,Ps(Ps({},e),{},{children:n("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10\n 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})}));function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach(function(t){As(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function As(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Rs=e=>n(Ot,Es(Es({},e),{},{children:n("path",{d:"M23 21.5H1L12 2.5L23 21.5ZM4.47005 19.5H19.53L12 6.48959L4.47005 19.5ZM13 18.5H11V16.5H13V18.5ZM13 10.5V14.5H11V10.5H13Z"})}));function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ks(Object(n),!0).forEach(function(t){Ms(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ks(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ms(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ls=e=>n(Ot,Ds(Ds({},e),{},{children:n("path",{d:"M12 8.29498L6 14.295L7.41 15.705L12 11.125L16.59 15.705L18 14.295L12 8.29498Z"})}));function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Is(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(Object(n),!0).forEach(function(t){Ts(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ts(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zs=e=>n(Ot,Is(Is({},e),{},{children:n("path",{d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})}));function Vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vs(Object(n),!0).forEach(function(t){Hs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hs(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qs=e=>n(Ot,Fs(Fs({},e),{},{children:n("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})}));function Bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(t){Ks(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ks(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gs=e=>n(Ot,Ws(Ws({},e),{},{children:n("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})}));function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Us(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Qs=e=>n(Ot,Ys(Ys({},e),{},{children:n("g",{transform:"scale(1.5)",children:n("path",{d:"M11.498 5H9.705L10.973 3.732C11.168 3.537 11.168 3.22 10.973 3.025C10.778 2.83 10.461 2.83 10.266 3.025L8.998 4.293V2.5C8.998 2.224 8.774 2 8.498 2C8.222 2 7.998 2.224 7.998 2.5V4.293L6.73 3.025C6.535 2.83 6.218 2.83 6.023 3.025C5.828 3.22 5.828 3.537 6.023 3.732L7.291 5H5.498C5.222 5 4.998 5.224 4.998 5.5C4.998 5.776 5.222 6 5.498 6H7.291L6.023 7.268C5.828 7.463 5.828 7.78 6.023 7.975C6.121 8.073 6.249 8.121 6.377 8.121C6.505 8.121 6.633 8.072 6.731 7.975L7.999 6.707V8.5C7.999 8.776 8.223 9 8.499 9C8.775 9 8.999 8.776 8.999 8.5V6.707L10.267 7.975C10.365 8.073 10.493 8.121 10.621 8.121C10.749 8.121 10.877 8.072 10.975 7.975C11.17 7.78 11.17 7.463 10.975 7.268L9.707 6H11.5C11.776 6 12 5.776 12 5.5C12 5.224 11.776 5 11.5 5H11.498ZM5 12C5 12.552 4.552 13 4 13C3.448 13 3 12.552 3 12C3 11.448 3.448 11 4 11C4.552 11 5 11.448 5 12Z"})})}));function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(n),!0).forEach(function(t){$s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ec=e=>n(Ot,Xs(Xs({},e),{},{children:n("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"})}));function tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach(function(t){rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const oc=e=>n(Ot,nc(nc({},e),{},{children:n("path",{d:"M3 5h18v2H3V5zm0 6h18v2H3v-2zm0 6h10v2H3v-2z"})}));function ic(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ic(Object(n),!0).forEach(function(t){ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ic(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ac(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sc=e=>n(Ot,lc(lc({},e),{},{children:n("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"})}));function cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(n),!0).forEach(function(t){dc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fc=e=>n(Ot,uc(uc({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 18V16H21V18H3ZM3 6H9V8H3V6ZM15 11H3V13H15V11Z"})}));function pc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach(function(t){mc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gc=e=>n(Ot,hc(hc({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 6V8H21V6H3ZM3 18H9V16H3V18ZM15 13H3V11H15V13Z"})}));function bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bc(Object(n),!0).forEach(function(t){yc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Oc=e=>n(Ot,vc(vc({},e),{},{children:n("path",{d:"M20 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0\n 2v3H5V5h15zm-5 14h-5v-9h5v9zM5 10h3v9H5v-9zm12 9v-9h3v9h-3z"})}));function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach(function(t){jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pc=e=>n(Ot,Sc(Sc({},e),{},{children:n("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"})}));function _c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_c(Object(n),!0).forEach(function(t){Cc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ec=e=>n(Ot,xc(xc({},e),{},{children:n("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z"})}));function Ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(n),!0).forEach(function(t){kc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dc=e=>n(Ot,Rc(Rc({},e),{},{children:n("path",{d:"M18.3688 3.29L20.7088 5.63C21.0988 6.02 21.0988 6.65 20.7088 7.04L18.8788 8.87L15.1288 5.12L16.9588 3.29C17.1488 3.1 17.3988 3 17.6588 3C17.9188 3 18.1688 3.09 18.3688 3.29ZM2.99878 17.25V21H6.74878L17.8088 9.94L14.0588 6.19L2.99878 17.25ZM5.91878 19H4.99878V18.08L14.0588 9.02L14.9788 9.94L5.91878 19Z"})}));function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Lc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach(function(t){Nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ic=e=>n(Ot,Lc(Lc({},e),{},{children:n("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2\n 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"})}));function Tc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach(function(t){Vc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fc=e=>n(Ot,zc(zc({},e),{},{children:n("path",{d:"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"})}));function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach(function(t){Bc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wc=e=>n(Ot,qc(qc({},e),{},{children:n("path",{d:"M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15-5-2.18L7 18V5h10v13z"})}));function Kc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kc(Object(n),!0).forEach(function(t){Uc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yc=e=>n(Ot,Gc(Gc({},e),{},{children:n("path",{d:"M17 11v6.97l-5-2.14-5 2.14V5h6V3H7c-1.1 0-2\n .9-2 2v16l7-3 7 3V11h-2zm4-4h-2v2h-2V7h-2V5h2V3h2v2h2v2z"})}));function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(n),!0).forEach(function(t){Zc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zc(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xc=e=>n(Ot,Qc(Qc({},e),{},{children:n("path",{fill:"currentColor",d:"m16.2 20.5 2.8-2.8V20h1v-4h-4v1h2.3l-2.8 2.8zM5 21q-.824\n 0-1.412-.587A1.93 1.93 0 0 1 3 19V5Q3 4.176 3.588 3.588A1.93\n 1.93 0 0 1 5 3h14q.824 0 1.413.588Q21 4.175 21 5v6.7a8 8 0\n 0 0-.975-.387A6 6 0 0 0 19 11.075V5H5v14h6.05q.076.55.237\n 1.05.163.5.388.95zm0-3v1V5v8.075V11zm2-1h4.075q.076-.525.238-1.025T11.675\n 15H7zm0-4h6.1q.8-.75 1.787-1.25A7 7 0 0 1 17 11.075V11H7zm0-4h10V7H7zm15\n 14q-2.075 0-3.537-1.462Q13 20.074 13 18q0-2.075 1.463-3.537Q15.926 13\n 18 13q2.075 0 3.538 1.463T23 18t-1.462 3.538Q20.074 23 18 23"})}));function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach(function(t){tu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nu=e=>n(Ot,eu(eu({},e),{},{children:n("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"})}));function ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ru(Object(n),!0).forEach(function(t){iu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const lu=e=>n(Ot,ou(ou({},e),{},{children:n("path",{d:"M12 6.375C15.75 6.375 18.9525 8.7075 20.25 12C18.9525 15.2925 15.75 17.625 12 17.625C8.25\n 17.625 5.0475 15.2925 3.75 12C5.0475 8.7075 8.25 6.375 12 6.375ZM12 7.875C9.15755 7.87505\n 6.62225 9.47254 5.38477 12C6.62225 14.52746 9.15755 16.12495 12 16.125C14.8425\n 16.125 17.3777 14.5275 18.6152 12C17.3777 9.4725 14.8425 7.875 12 7.875ZM12\n 8.625C13.86 8.625 15.375 10.14 15.375 12C15.375 13.86 13.86 15.375 12 15.375C10.14 15.375\n 8.625 13.86 8.625 12C8.625 10.14 10.14 8.625 12 8.625ZM12 10.125C10.965 10.125 10.125 10.965\n 10.125 12C10.125 13.035 10.965 13.875 12 13.875C13.035 13.875 13.875 13.035\n 13.875 12C13.875 10.965 13.035 10.125 12 10.125Z"})}));function au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function su(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach(function(t){cu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uu=e=>n(Ot,su(su({},e),{},{children:n("path",{d:"M12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8V8Z"})}));function du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?du(Object(n),!0).forEach(function(t){pu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hu=e=>n(Ot,fu(fu({},e),{},{children:n("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3H17L21 7V19C21 20.1 20.1 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.89 3 5 3ZM19 19V7.83L16.17 5H5V19H19ZM12 12C10.34 12 9 13.34 9 15C9 16.66 10.34 18 12 18C13.66 18 15 16.66 15 15C15 13.34 13.66 12 12 12ZM15 6H6V10H15V6Z"})}));function mu(){const e=(0,Pe.useContext)(_l);return n(e?.open?oa:ea,{})}function gu(e,t,n){let r,o=n.initialDeps??[],i=!0;function l(){const l=e(),a=l.length!==o.length||l.some((e,t)=>o[t]!==e);return a?(o=l,r=t(...l),!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r):r}return l.updateDeps=e=>{o=e},l}function bu(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const vu=(e,t)=>Math.abs(e-t)<1.01,yu=(e,t,n)=>{let r;return Object.assign(function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)},{cancel:()=>{e.clearTimeout(r)}})};let Ou;const wu=()=>{if(void 0!==Ou)return Ou;if("undefined"==typeof navigator)return Ou=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Ou=!0;const e=navigator.maxTouchPoints;return Ou="MacIntel"===navigator.platform&&void 0!==e&&e>0},Su=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},ju=e=>e,Pu=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},_u=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(Su(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(Su(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},xu={passive:!0},Cu="undefined"==typeof window||"onscrollend"in window,Eu=(e,t)=>((e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&Cu;let l=0;const a=i?null:yu(o,()=>t(n(r),!1),e.options.isScrollingResetDelay),s=e=>()=>{l=n(r),null==a||a(),t(l,e)},c=s(!0),u=s(!1);return r.addEventListener("scroll",c,xu),i&&r.addEventListener("scrollend",u,xu),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u),null==a||a.cancel()}})(e,t,t=>{const{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r?-1:1):t.scrollTop}),Au=(e,t,n)=>{if(n.options.useCachedMeasurements){const t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},Ru=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class ku{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t;const n={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ju,rangeExtractor:Pu,onChange:()=>{},measureElement:Au,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const r=e[t];void 0!==r&&(n[t]=r)}const r=this.options;let o=null,i=null,l=!1;if(void 0!==r&&r.enabled&&n.enabled&&"end"===n.anchorTo&&null!==this.scrollElement){const e=r.count,a=n.count,s=this.getMeasurements(),c=(null==(t=this._singleLaneMeasurements)?void 0:t.items)??s,u=e=>{return"object"==typeof(t=c[e])?t.key:t;var t},d=e>0?u(0):null,f=e>0?u(e-1):null;if(a!==e||e>0&&a>0&&(n.getItemKey(0)!==d||n.getItemKey(a-1)!==f)){l=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;t&&(o=[t.key,this.getScrollOffset()-t.start]);const c=!0===n.followOnAppend?"auto":n.followOnAppend||null;c&&a>0&&this.isAtEnd(r.scrollEndThreshold)&&(0===e||n.getItemKey(a-1)!==f)&&(a>e||function(e,t,n,r){if(0===t)return!1;const o=r(0),i=new Set;let l=0;for(;l<e;){const e=n(l);if(e===o)break;i.add(e),l++}const a=e-l;if(0===a||a>=t)return!1;for(let e=0;e<a;e++)if(r(e)!==n(l+e))return!1;for(let e=a;e<t;e++)if(i.has(r(e)))return!1;return!0}(e,a,u,n.getItemKey))&&(i=c)}}this.options=n,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let a=!1,s=0;if(o&&null!==this.scrollOffset){const[e,t]=o,n=this.getMeasurements(),{count:r,getItemKey:l}=this.options;let c=0;for(;c<r&&l(c)!==e;)c++;if(c<r){const e=n[c];if(e){const n=Math.max(0,e.start+t);i||n===this.scrollOffset||(s=n-this.scrollOffset,this.scrollOffset=n,a=!0)}}}(a||i)&&(this.pendingScrollAnchor=[a?o[0]:null,a?o[1]:0,i,s])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=gu(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e,t;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n)return void this.maybeNotify();if(this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,null!==this._clampedAdjustment&&Math.abs(e-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,wu()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,xu),e.addEventListener("touchend",n,xu),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const r=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,r&&this.scrollElement&&this.options.enabled){const[e,n,o,i]=r;null===e||o||(wu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==i&&(this._iosDeferredAdjustment+=i):("smooth"!==(null==(t=this.scrollState)?void 0:t.behavior)||vu(this.getScrollOffset()-i,this.scrollState.lastTargetOffset))&&this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),o&&this.scrollToEnd({behavior:o})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(null===this._clampedAdjustment||!this.scrollElement||!this.options.enabled)return;const{target:e,maxAtWrite:t}=this._clampedAdjustment,n=this.getMaxScrollOffset();n>t+.5&&(this._clampedAdjustment=e>n+.5?{target:e,maxAtWrite:n}:null,this._scrollToOffset(e,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1)return void(this._iosDeferredAdjustment=0);const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=gu(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,l,a)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:a}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=gu(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:l,gap:a},s)=>{var c;const u=this.itemSizeCache;if(!o)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const d=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){const o=2*e;let i=null==(c=this._singleLaneMeasurements)?void 0:c.flat;if(!i||i.length<o){const e=new Float64Array(o);i&&d>0&&e.set(i.subarray(0,2*d)),i=e}const l=0===d?new Array(e):this._singleLaneMeasurements.items.slice();let s;if(0===d)s=t+n;else{const e=d-1;s=i[2*e]+i[2*e+1]+a}for(let t=d;t<e;t++){const e=r(t);l[t]=e;const n=u.get(e),o="number"==typeof n?n:this.options.estimateSize(t);i[2*t]=s,i[2*t+1]=o,s+=o+a}this._singleLaneMeasurements={flat:i,items:l};const f=function(e,t){const n=e.length;return new Proxy(e,{get(e,r,o){if("string"==typeof r){const o=r.charCodeAt(0);if(o>=48&&o<=57){const o=+r;if(Number.isInteger(o)&&o>=0&&o<n){let n=e[o];if("object"!=typeof n){const r=t[2*o];n=e[o]={index:o,key:n,start:r,size:t[2*o+1],end:r+t[2*o+1],lane:0}}return n}}if("length"===r)return n}return Reflect.get(e,r,o)}})}(l,i);return this.measurementsCache=f,f}const f=this.measurementsCache.slice(0,d),p=new Array(i).fill(void 0),h=new Float64Array(i);let m=0;for(let e=0;e<d;e++){const t=f[e];t&&(void 0===p[t.lane]&&m++,p[t.lane]=e,h[t.lane]=t.end)}for(let o=d;o<e;o++){const e=r(o),s=this.laneAssignments.get(o);let c,d;const g="estimate"===l||u.has(e);if(void 0!==s&&this.options.lanes>1){c=s;const e=p[c],r=void 0!==e?f[e]:void 0;d=r?r.end+a:t+n}else if(m===i){let e=0,t=h[0],n=p[0];for(let r=1;r<i;r++){const o=h[r];(o<t||o===t&&p[r]<n)&&(e=r,t=o,n=p[r])}c=e,d=t+a,g&&this.laneAssignments.set(o,c)}else c=o%this.options.lanes,d=t+n,g&&this.laneAssignments.set(o,c);const b=u.get(e),v="number"==typeof b?b:this.options.estimateSize(o),y=d+v;f[o]={index:o,start:d,size:v,end:y,key:e,lane:c},void 0===p[c]&&m++,p[c]=o,h[c]=y}return this.measurementsCache=f,f},{key:!1,debug:()=>this.options.debug}),this.calculateRange=gu(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){const e=function(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,i=e[2*o];if(i<n)r=o+1;else{if(!(i>n))return o;t=o-1}}return r>0?r-1:0}(o,i,n);let r=e;const l=n+t;for(;r<i&&o[2*r]+o[2*r+1]<l;)r++;return{startIndex:e,endIndex:r}}let l=Du(0,i,t=>e[t].start,n),a=l;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some(e=>e<n+t);){const t=e[a];o[t.lane]=t.end,a++}const s=Array(r).fill(n+t);for(;l>=0&&s.some(e=>e>=n);){const t=e[l];s[t.lane]=t.start,l--}l=Math.max(0,l-l%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:l,endIndex:a}}(e,t,n,r,1===r&&null!==this._singleLaneMeasurements?this._singleLaneMeasurements.flat:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=gu(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;const n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r,o;if(!this.isIndexInRange(e))return;let i,l,a;const s=null==(n=this._singleLaneMeasurements)?void 0:n.flat;if(1===this.options.lanes&&null!=s)a=this.options.getItemKey(e),l=s[2*e],i=s[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;a=t.key,l=t.start,i=t.size}const c=this.itemSizeCache.get(a)??i,u=t-c;if(0!==u){const n="end"===this.options.anchorTo&&"smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,s=n?this.getTotalSize():0,d=this.getScrollOffset()+this.scrollAdjustments,f=this.itemSizeCache.has(a)?l+c<=d&&"backward"!==this.scrollDirection:l<d,p="smooth"!==(null==(o=this.scrollState)?void 0:o.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:a,start:l,size:i,end:l+i,lane:0},u,this):f);(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(a,t),this.itemSizeCacheVersion++;let h=!1;n?h=this.applyScrollAdjustment(this.getTotalSize()-s):p&&(h=this.applyScrollAdjustment(u)),this.notify(h),this._retryClampedAdjustment()}},this.getVirtualItems=gu(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{var t;const n=this.getMeasurements();if(0===n.length)return;const r=null==(t=this._singleLaneMeasurements)?void 0:t.flat,o=1===this.options.lanes&&null!=r,i=Du(0,n.length-1,o?e=>r[2*e]:e=>bu(n[e]).start,e);return bu(n[i])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0;const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,l=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:l,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e,t;const n=this.getMeasurements();let r;if(0===n.length)r=this.options.paddingStart;else if(1===this.options.lanes){const o=n.length-1,i=null==(e=this._singleLaneMeasurements)?void 0:e.flat;r=null!=i?i[2*o]+i[2*o+1]:(null==(t=n[o])?void 0:t.end)??0}else{const e=Array(this.options.lanes).fill(null);let t=n.length-1;for(;t>=0&&e.some(e=>null===e);){const r=n[t];null===e[r.lane]&&(e[r.lane]=r.end),t--}r=Math.max(...e.filter(e=>null!==e))}return Math.max(r-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){if(0===e)return!1;if(wu()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=e,!1;{const n=this.getScrollOffset()+this.scrollAdjustments+e,r=this.scrollElement,o=null!==r&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=null!==o&&n>o+.5?{target:n,maxAtWrite:o}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&vu(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,n){const e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Du=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},Mu="undefined"!=typeof document?Pe.useLayoutEffect:Pe.useEffect;function Lu(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const o=Pe.useReducer(e=>e+1,0)[1],l=Pe.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});l.current.enabled=t,l.current.mode=n;const a=Pe.useRef(!1),s=e=>{const t=l.current;if(!t.enabled||!t.container)return;const n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;const r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}},c=e=>{const t=l.current;if(!t.enabled||!t.container)return;s(e);const n=!!e.options.horizontal,r="transform"===t.mode,o=n?"left":"top",i=e.options.scrollMargin,a=e.getVirtualItems();for(const l of a){const a=l.start-i,s=e.elementsCache.get(l.key);s&&t.lastPositions.get(s)!==a&&(t.lastPositions.set(s,a),r?s.style.transform=n?`translate3d(${a}px, 0, 0)`:`translate3d(0, ${a}px, 0)`:s.style[o]=`${a}px`)}},u={...r,onChange:(t,n)=>{var s;const u=l.current;let d=!0;if(u.enabled){c(t);const e=t.range,n=u.prevRange;d=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex),d&&(u.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}d&&(e&&n&&!a.current?i(o):o()),null==(s=r.onChange)||s.call(r,t,n)}},[d]=Pe.useState(()=>{const e=new ku(u),t=e.measureElement;return e.measureElement=e=>{a.current=!0;try{t(e)}finally{a.current=!1}},Object.assign(e,{containerRef:t=>{const n=l.current;if(n.container=t,n.lastSize=null,t&&n.enabled){const r=e.getTotalSize();n.lastSize=r;const o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return d.setOptions(u),Mu(()=>d._didMount(),[]),Mu(()=>(s(d),d._willUpdate())),Mu(()=>{c(d)}),d}({observeElementRect:_u,observeElementOffset:Eu,scrollToFn:Ru,...e})}const Nu=["children","fillEvenly","classes","className"];function Iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iu(Object(n),!0).forEach(function(t){zu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zu(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vu=(0,Pe.forwardRef)(function(e,t){let{children:r,fillEvenly:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nu);return n("div",Tu(Tu({ref:t,className:je()("buttonsGroup-module__root__ajMji",o&&"buttonsGroup-module__fill-evenly__nNjz0",l,i?.root)},a),{},{children:r}))});u();const Fu=(0,Pe.createContext)();class Hu{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const qu={},Bu=(e,t,n,r)=>{Uu(n)&&qu[n]||(Uu(n)&&(qu[n]=new Date),((e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Uu(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)})(e,t,n,r))},Wu=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ku=(e,t,n)=>{e.loadNamespaces(t,Wu(e,n))},Gu=(e,t,n,r)=>{if(Uu(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ku(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Wu(e,r))},Uu=e=>"string"==typeof e,Yu={t:(e,t)=>{if(Uu(t))return t;if("object"==typeof(n=t)&&null!==n&&Uu(t.defaultValue))return t.defaultValue;var n;if("function"==typeof e)return"";if(Array.isArray(e)){const t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},Ju=()=>()=>{},Qu=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=(0,Pe.useContext)(Fu)||{},i=n||r||be;i&&!i.reportNamespaces&&(i.reportNamespaces=new Hu),i||Bu(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const l=(0,Pe.useMemo)(()=>({...ve,...i?.options?.react,...t}),[i,t]),{useSuspense:a,keyPrefix:s}=l,u=e||o||i?.options?.defaultNS,d=Uu(u)?[u]:u||["translation"],f=(0,Pe.useMemo)(()=>d,d);i?.reportNamespaces?.addUsedNamespaces?.(f);const p=(0,Pe.useRef)(0),h=(0,Pe.useCallback)(e=>{if(!i)return Ju;const{bindI18n:t,bindI18nStore:n}=l,r=()=>{p.current+=1,e()};return t&&i.on(t,r),n&&i.store.on(n,r),()=>{t&&t.split(" ").forEach(e=>i.off(e,r)),n&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,l]),m=(0,Pe.useRef)(),g=(0,Pe.useCallback)(()=>{if(!i)return Yu;const e=!(!i.isInitialized&&!i.initializedStoreOnce)&&f.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(Bu(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,l)),n=t.lng||i.language,r=p.current,o=m.current;if(o&&o.ready===e&&o.lng===n&&o.keyPrefix===s&&o.revision===r)return o;const a={t:i.getFixedT(n,"fallback"===l.nsMode?f:f[0],s,{scopeNs:f}),ready:e,lng:n,keyPrefix:s,revision:r};return m.current=a,a},[i,f,s,l,t.lng]),[b,v]=(0,Pe.useState)(0),{t:y,ready:O}=(0,c().useSyncExternalStore)(h,g,g);(0,Pe.useEffect)(()=>{if(i&&!O&&!a){const e=()=>v(e=>e+1);t.lng?Gu(i,t.lng,f,e):Ku(i,f,e)}},[i,t.lng,f,O,a,b]);const w=i||{},S=(0,Pe.useRef)(null),j=(0,Pe.useRef)(),P=e=>{const t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;const n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,"__original"))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return n},_=(0,Pe.useMemo)(()=>{const e=w,t=e&&`${(n=e).language}|${n.resolvedLanguage}|${n.languages?.join(",")}`;var n;let r=e;e&&(S.current&&S.current.__original===e?j.current!==t?(r=P(e),S.current=r,j.current=t):r=S.current:(r=P(e),S.current=r,j.current=t));const o=O||a?y:(...e)=>(Bu(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),y(...e)),l=[o,r,O];return l.t=o,l.i18n=r,l.ready=O,l},[y,w,O,w.resolvedLanguage,w.language,w.languages]);if(i&&a&&!O){let e=!1;try{e=!1}catch(e){}throw e&&Bu(i,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{const n=()=>e();t.lng?Gu(i,t.lng,f,n):Ku(i,f,n)})}return _},Zu=()=>{const{t:e,i18n:t}=Qu();return{t:e,currentLanguage:t.language,changeLanguage:e=>{t.changeLanguage(e)}}};var Xu="infiniteListFooter-module__footer__f8lZM";function $u({loading:e=!1,hasMore:o=!1,empty:i=!1,sentinelRef:l}){const{t:a}=Zu(),s=i&&!e&&!o;return e||s||o?r(t,{children:[e&&n("div",{className:Xu,role:"status",children:n(vt,{variant:"caption",children:a("nntc_ui.common.list.loading")})}),s&&n("div",{className:Xu,role:"status",children:n(vt,{variant:"caption",children:a("nntc_ui.common.list.notFound")})}),o&&n("div",{ref:l,className:"infiniteListFooter-module__sentinel__O1XNW","aria-hidden":!0})]}):null}function ed({scrollRef:e,hasMore:t=!1,loading:n=!1,onLoadMore:r,itemCount:o,resetKey:i="",enabled:l=!0}){const a=(0,Pe.useRef)(null),s=(0,Pe.useRef)(!1),c=(0,Pe.useRef)(!1),u=(0,Pe.useRef)(r),d=(0,Pe.useRef)(t),f=(0,Pe.useRef)(n),p=(0,Pe.useRef)(l);u.current=r,d.current=t,f.current=n,p.current=l;const h=`${o}:${n}:${t}:${l}:${i}`,m=(0,Pe.useRef)(h);m.current!==h&&(m.current=h,s.current=!1,c.current=!1);const g=(0,Pe.useCallback)(()=>{const t=e.current;p.current&&u.current&&d.current&&!f.current&&!s.current&&t&&0!==t.clientHeight&&(s.current=!0,u.current())},[e]),b=(0,Pe.useCallback)(()=>{const t=e.current;t&&0!==t.clientHeight&&t.scrollHeight<=t.clientHeight+1&&g()},[g,e]);return(0,Pe.useLayoutEffect)(()=>{l&&t&&r&&!n&&b()},[l,t,r,n,o,i,b]),(0,Pe.useEffect)(()=>{const n=e.current;if(!(l&&t&&r&&n&&"undefined"!=typeof ResizeObserver))return;const o=new ResizeObserver(()=>{b()});return o.observe(n),()=>o.disconnect()},[l,t,r,o,i,b,e]),(0,Pe.useEffect)(()=>{const n=e.current,o=a.current;if(!(l&&t&&r&&n&&o))return;const i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)?c.current||(c.current=!0,g()):c.current=!1},{root:n,rootMargin:"48px"});return i.observe(o),()=>i.disconnect()},[l,t,r,o,i,n,g,e]),a}var td="menu-module__divider__kik9c",nd="menu-module__extraLarge__RIQUR",rd="menu-module__item__DO2AJ",od="menu-module__item-actions__ecU8y",id="menu-module__item-description__BxxnF",ld="menu-module__item-disabled__E7Z4s",ad="menu-module__item-icon___HDe4",sd="menu-module__item-selected__m9VFe",cd="menu-module__item-text-block__zgpGT",ud="menu-module__item-title__gcK7P",dd="menu-module__item-title-top__PSYWj",fd="menu-module__large__jYm_Q",pd="menu-module__medium__Jev6c",hd="menu-module__root__pR_5h",md="menu-module__small__uGqFV",gd="menu-module__state-layer__m8uMf",bd="menu-module__virtual-item___RvYR",vd="menu-module__virtual-space__SbY08",yd="menu-module__virtualized__PoNVi";const Od=["items","componentSize","descriptionPosition","virtualize","maxHeight","hasMore","loadingMore","onLoadMore","classes","className","style"];function wd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wd(Object(n),!0).forEach(function(t){jd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pd={small:4,medium:8,large:0,extraLarge:0},_d=(0,Pe.forwardRef)(function(e,o){let{items:i,componentSize:l="medium",descriptionPosition:a="right",virtualize:s=!1,maxHeight:c=250,hasMore:u=!1,loadingMore:d=!1,onLoadMore:f,classes:p,className:h,style:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Od);const v=(0,Pe.useRef)(null),y=Ye([o,v]),O=Pd[l],w=s&&!!f,S=(0,Pe.useCallback)(e=>t=>{e?.onClick?.(),t.currentTarget.blur()},[]),j=Lu({count:s?i.length:0,enabled:s,getScrollElement:()=>v.current,estimateSize:e=>function(e,t){return t&&"divider"!==t.type?"small"===e?28:"large"===e||"extraLarge"===e?48:36:32}(l,i[e]),overscan:6,paddingStart:s?O:0,paddingEnd:s?O:0,getItemKey:e=>{const t=i[e];return t?"divider"===t.type?`divider-${t.name??""}-${e}`:`item-${t.name}-${e}`:e}}),P=ed({scrollRef:v,hasMore:u,loading:d,onLoadMore:f,itemCount:i.length,enabled:w}),_=(e,o)=>{const i="item"===e.type&&e.subButtons?.length?"div":"button";return"item"===e.type?n(i,{tabIndex:-10,className:je()(rd,e.selected?sd:void 0,e.disabled?ld:void 0,p?.item,e.selected?p?.itemSelected:void 0,e.disabled?p?.itemDisabled:void 0),onClick:e.disabled?void 0:S(e),title:e.name,children:r("span",{className:je()(gd),children:[!!e.icon&&n("span",{className:je()(ad,p?.itemIcon,e.selected?p?.itemSelectedIcon:void 0,e.disabled?p?.itemDisabledIcon:void 0),children:e.icon}),"bottom"===a&&e.description?r("span",{className:je()(cd),children:[n("span",{className:je()(dd,ud,p?.itemTitle,e.selected?p?.itemSelectedTitle:void 0,e.disabled?p?.itemDisabledTitle:void 0),children:e.name}),n("span",{className:je()(id,p?.itemDescription,e.selected?p?.itemSelectedDescription:void 0,e.disabled?p?.itemDisabledDescription:void 0),children:e.description})]}):r(t,{children:[n("span",{className:je()(ud,p?.itemTitle,e.selected?p?.itemSelectedTitle:void 0,e.disabled?p?.itemDisabledTitle:void 0),children:e.name}),!!e.description&&n("span",{className:je()(id,p?.itemDescription,e.selected?p?.itemSelectedDescription:void 0,e.disabled?p?.itemDisabledDescription:void 0),children:e.description})]}),!!e.subButtons?.length&&n("div",{className:je()(od,p?.itemActions,e.selected?p?.itemSelectedActions:void 0,e.disabled?p?.itemDisabledActions:void 0),children:n(Vu,{children:e.subButtons.map((e,t)=>n(Ge,{variant:e.variant,componentSize:l,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]})},`menu-item-${e.name}-${o}`):n("div",{className:je()(td,p?.divider),children:e.name},`menu-divider-${e.name}-${o}`)};if(!s)return r("div",Sd(Sd({ref:y,className:je()(hd,m[l],h,p?.root),style:g},b),{},{children:[" ",i.map((e,t)=>_(e,t))]}));const x=j.getVirtualItems();return r("div",Sd(Sd({ref:y,className:je()(hd,m[l],yd,"styledScroll",h,p?.root),style:Sd({maxHeight:c},g)},b),{},{children:[x.length>0?n("div",{className:vd,style:{height:j.getTotalSize()},children:x.map(e=>{const t=i[e.index];return t?n("div",{"data-index":e.index,ref:j.measureElement,className:bd,style:{transform:`translateY(${e.start}px)`},children:_(t,e.index)},e.key):null})}):n("div",{style:{paddingTop:O,paddingBottom:O},children:i.map((e,t)=>_(e,t))}),n($u,{loading:d,hasMore:u&&w,sentinelRef:P})]}))});function xd(e){const{items:t,componentSize:r,selectedValue:o,changeSelectedItem:i,hasMore:l,loadingMore:a,onLoadMore:s,classes:c}=e,u=(0,Pe.useContext)(_l);return n(_d,{virtualize:!0,maxHeight:250,componentSize:r,classes:c?.menu,hasMore:l,loadingMore:a,onLoadMore:s,items:t.map(e=>"divider"===e.type?{type:"divider",name:e.name}:{type:"item",name:e.name,icon:e.icon,description:e.description,disabled:e.disabled,selected:e.value===o,onClick:()=>{i(e),u&&u.setOpen(!1)}})})}const Cd=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","loadingMore","defaultValue","onValueChange","selected","chips","classes","disabled","id"];function Ed(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach(function(t){Rd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rd(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kd=(0,Pe.forwardRef)(function(e,t){const{variant:o="filled",componentSize:i="medium",icon:l,fullWidth:a,label:s,error:c,placeholder:u,items:d,onLoadMore:f,hasMore:p=!1,loadingMore:h=!1,defaultValue:m,onValueChange:g,selected:b,chips:v,classes:y,disabled:O,id:w}=e,S=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cd),j=void 0!==f,P=(0,Pe.useMemo)(()=>j?d.filter(e=>"divider"!==e.type):d,[j,d]),_=m&&!b,[x,C]=(0,Pe.useState)(_?d.find(e=>"item"===e.type&&e.value===m):void 0),E=_?x:b,A=(0,Pe.useRef)(null),R=(0,Pe.useRef)(null),k=(0,Pe.useCallback)(e=>{e.preventDefault(),O||R?.current?.click()},[R]),D=e=>{_&&C(e),g?.(e)};(0,Pe.useEffect)(()=>{if(j||!E)return;const e=d.find(e=>"item"===e.type&&e.value===E.value);e||D(e)},[j,d,E]);const M=w??qt(),L=!!c&&!s;return r(Qi,{variant:o,componentSize:i,fullWidth:a,label:s,error:c,inputId:M,onLabelClick:k,hasStartIcon:!!l||!!E?.icon,hasArrow:!0,hasErrorIcon:L,chipsMode:v&&!!E,classes:Ad(Ad({},y),{},{wrapper:je()(l?"select-module__with-icon__fSXNX":void 0,E?.icon?"select-module__with-item-icon__DQCJ6":void 0,y?.wrapper)}),children:[n("input",Ad(Ad({ref:Ye([A,t]),id:M,className:je()(Ki,"select-module__input__wOpYo",y?.input),placeholder:v&&E?void 0:u},S),{},{value:v?"":E?.name??"",onChange:()=>{},onClick:k,disabled:O})),v&&!!E&&n("span",{className:je()(Bi,y?.chips),children:n(Pl,{componentSize:i,disabled:O,onClick:()=>R?.current?.click(),onRemove:()=>D(void 0),children:E.name})}),!!l&&n("span",{onClick:k,className:je()("select-module__icon___B0Xg",y?.icon),children:l}),!!E?.icon&&n("span",{onClick:k,className:je()("select-module__item-icon__yL747",y?.itemIcon),children:E?.icon}),n("span",{onClick:k,className:je()(qi,y?.arrow),children:n(mu,{})}),L&&c&&n(nl,{error:c,componentSize:i,className:y?.errorIcon}),n(Gl,{placement:"bottom-start",classes:Ad({content:je()("select-module__popover-content__mnDVQ",y?.popoverContent)},y?.popover),containerOffset:4,description:n(xd,{items:P,classes:y,componentSize:i,selectedValue:E?.value,changeSelectedItem:D,hasMore:p,loadingMore:h,onLoadMore:f}),children:n("div",{ref:R,className:je()("select-module__popover-target__sZm8R")})})]})});var Dd=s(353),Md=s.n(Dd),Ld="calendarPopover-module__button__OeuOB",Nd="calendarPopover-module__buttons-container__AfhIW",Id="calendarPopover-module__calendar-container__oaYLG",Td="calendarPopover-module__cell__SRzca",zd="calendarPopover-module__cell-circle__g39W8",Vd="calendarPopover-module__cell-data__JaucX",Fd="calendarPopover-module__cell-selection__HAjxx",Hd="calendarPopover-module__cell-selection-first__HX9vJ",qd="calendarPopover-module__cell-selection-last__fKUk_",Bd="calendarPopover-module__cells-container__FRgCG",Wd="calendarPopover-module__date-time-mode__VMAyh",Kd="calendarPopover-module__medium__z28wH",Gd="calendarPopover-module__month__PliR3",Ud="calendarPopover-module__month-cell-selection__qFg7g",Yd="calendarPopover-module__month-cell-selection-first__sP5vu",Jd="calendarPopover-module__month-cell-selection-last__qmLPc",Qd="calendarPopover-module__month-view__Lhg3K",Zd="calendarPopover-module__navigation-arrow__Iq9ex",Xd="calendarPopover-module__navigation-container__MnZVh",$d="calendarPopover-module__navigation-title__U0go2",ef="calendarPopover-module__navigation-value__abf_Q",tf="calendarPopover-module__root__WSPPf",nf="calendarPopover-module__small__vty_X",rf="calendarPopover-module__time-container___TvPa",of="calendarPopover-module__time-divider__xebBR",lf="calendarPopover-module__time-selection-marker__WznxQ",af="calendarPopover-module__year__DgFQi";const sf=(e,t,n,r=1,o=!1)=>e(o?Date.UTC(t,n,r):new Date(t,n,r));function cf(e){const{values:t,selectedValue:r,onSelect:o}=e,i=t.length,l=36*(i+r),a=(0,Pe.useRef)(null),s=(0,Pe.useMemo)(()=>{const e=[];for(let n=0;n<3;n+=1)e.push(...t);return e},[t]);(0,Pe.useEffect)(()=>{const e=a.current;e&&(Math.abs(e.scrollTop-l)<=1||(e.scrollTop=l))},[l]);const c=(0,Pe.useCallback)(e=>t[(e%i+i)%i],[t,i]),u=(0,Pe.useCallback)(()=>{const e=a.current;if(!e)return;const t=Math.round(e.scrollTop/36),n=c(t);n!==r&&o(n),(t<i||t>=2*i)&&(e.scrollTop=36*(i+n))},[c,o,r,i]),d=(0,Pe.useCallback)(e=>()=>{const t=a.current;t?(t.scrollTo({top:36*(i+e),behavior:"smooth"}),o(e)):o(e)},[o,i]);return n("div",{ref:a,className:je()("timeWheelColumn-module__time-wheel__fZDBM"),onScroll:u,tabIndex:-1,children:s.map((e,t)=>n("button",{type:"button",className:je()("timeWheelColumn-module__time-wheel-button__XHOTH","timeWheelColumn-module__time-wheel-item__YAUHz",e===r&&"timeWheelColumn-module__time-wheel-item-active__fHOGJ"),onClick:d(e),children:n(vt,{variant:"subtitle1",children:`${e}`.padStart(2,"0")})},`time-item-${e}-${t}`))})}function uf(e){const{dayjs:o,componentSize:i,isPeriod:l=!0,valueType:a="date",initStartDate:s,initEndDate:c,changeDates:u,onClear:d,useUtc:f=!1,classes:p}=e,h=o??Md(),m="dateTime"===a&&!l,[b,v]=(0,Pe.useState)("year"===a?"yearsRange":"month"),[y,O]=(0,Pe.useState)(()=>{if(s){const e=h(s);return{year:e.year(),month:e.month()}}const e=h();return{year:e.year(),month:e.month()}}),[w,S]=(0,Pe.useState)(s?m?h(s).second(0).millisecond(0).valueOf():h(s).startOf("D").valueOf():void 0),[j,P]=(0,Pe.useState)(c?h(c).startOf("D").valueOf():void 0),[_,x]=(0,Pe.useState)(m&&s?h(s).hour():0),[C,E]=(0,Pe.useState)(m&&s?h(s).minute():0),A=(0,Pe.useMemo)(()=>[...Array(24)].map((e,t)=>t),[]),R=(0,Pe.useMemo)(()=>[...Array(60)].map((e,t)=>t),[]),k=(0,Pe.useMemo)(()=>w?h(w).startOf("D").valueOf():void 0,[w,h]),D=(0,Pe.useMemo)(()=>j?h(j).startOf("D").valueOf():void 0,[j,h]),M=(0,Pe.useMemo)(()=>k?h(k).startOf("M").valueOf():void 0,[k,h]),L=(0,Pe.useMemo)(()=>D?h(D).startOf("M").valueOf():void 0,[D,h]),N=(0,Pe.useMemo)(()=>k?h(k).year():void 0,[k,h]),I=(0,Pe.useMemo)(()=>D?h(D).year():void 0,[D,h]),T=(0,Pe.useMemo)(()=>sf(h,y.year,y.month,1,f).startOf("month"===b?"M":"y"),[y,b,h,f]),z=T.daysInMonth();let V=T.startOf("M").day()-1;V<0&&(V=6),(0,Pe.useEffect)(()=>w||j?"year"===a?!l&&w?void u(h(w).format("YYYY")):l&&w&&j?void u(h(w).format("YYYY"),h(j).format("YYYY")):void 0:void(m&&w?u(h(w).second(0).millisecond(0).format()):l||!w?l&&w&&j&&u(h(w).format(),h(j).format()):u(h(w).format())):(d?.(),void u()),[w,j,l,a,m,h,u,d]);const F=(0,Pe.useCallback)((e,t,n)=>h(e).startOf("D").hour(t).minute(n).second(0).millisecond(0).valueOf(),[h]);(0,Pe.useEffect)(()=>{if(!m||!w)return;const e=F(w,_,C);e!==w&&S(e)},[m,w,_,C,F]);const H=(0,Pe.useCallback)(e=>()=>{const t=sf(h,y.year,y.month,1,f),n="yearsRange"===b?20*e:e,r="month"===b?"month":"year",o=t.add(n,r);O({month:o.month(),year:o.year()})},[b,y,h,f]),q=(0,Pe.useCallback)(()=>{"year"!==a&&v("month"===b?"year":"year"===b?"yearsRange":"month")},[b,a]),B=(0,Pe.useCallback)(e=>()=>{O({month:e.month(),year:e.year()}),v("month")},[]),W=(0,Pe.useCallback)(e=>()=>{const t=sf(h,e,0,1,f).startOf("y").valueOf();if(!l)return S(m&&k===t?void 0:m||w!==t?m?F(t,_,C):t:void 0),void P(void 0);w&&j?t===w?S(void 0):(t===j||S(t),P(void 0)):w?t===w?S(void 0):t<w?(P(w),S(t)):P(t):j?t===j?P(void 0):t<j?S(t):(S(j),P(t)):S(t)},[F,j,m,l,_,C,w,k,h,f]),K=(0,Pe.useMemo)(()=>{const e=T.year();return 20*Math.floor(e/20)},[T]),G=(0,Pe.useCallback)(e=>()=>{if(!l)return S(w===e?void 0:e),void P(void 0);w&&j?e===w?S(void 0):(e===j||S(e),P(void 0)):w?e===w?S(void 0):e<w?(P(w),S(e)):P(e):j?e===j?P(void 0):e<j?S(e):(S(j),P(e)):S(e)},[w,j,l]),U=(0,Pe.useCallback)(e=>{S(void 0),P(void 0),m&&(x(0),E(0)),e.currentTarget.blur()},[m]),Y=(0,Pe.useCallback)(e=>{const t=h();O({year:t.year(),month:t.month()}),e.currentTarget.blur()},[h]);return r("div",{className:je()(tf,g[i],m&&Wd,p?.root),children:[r("div",{className:je()(Id,"month"===b&&Qd),children:[n("div",{className:je()(Nd,p?.buttonsContainer),children:r(Vu,{fillEvenly:!0,children:[n(Ge,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:U,children:"Сбросить"}),"year"!==a&&n(Ge,{componentSize:"small",variant:"text",textSecondary:!0,tabIndex:-1,onClick:Y,children:"Сегодня"})]})}),r("div",{className:je()(Xd,p?.navigationContainer),children:[n("button",{type:"button",className:je()(Ld,Zd,p?.navigationArrow),onClick:H(-1),"aria-label":"Предыдущий период",children:n(Fa,{})}),n("button",{type:"button",className:je()(Ld,ef,p?.navigationValue),onClick:q,children:r(vt,{variant:"subtitle1",className:je()($d,p?.navigationTitle),children:["month"===b&&T.format("MMMM YYYY"),"year"===b&&T.format("YYYY"),"yearsRange"===b&&`${K} - ${K+19}`]})}),n("button",{type:"button",className:je()(Ld,Zd,p?.navigationArrow),onClick:H(1),"aria-label":"Следующий период",children:n(Wa,{})})]}),r("div",{className:je()(Bd,p?.cellsContainer),children:["yearsRange"===b&&n(t,{children:[...Array(20)].map((e,t)=>{const o=K+t,i="year"===a?W(o):()=>{O({month:0,year:o}),v("year")},s="year"===a&&void 0!==N&&(o===N||o===I);let c=!1,u=!1,d=!1;return void 0!==N&&(l?void 0!==I&&(N===I?o===N&&(c=!0):o>=N&&o<=I&&(c=!0,o===N?u=!0:o===I&&(d=!0))):"year"!==a&&o===N&&(c=!0)),r("button",{type:"button",className:je()(Ld,Td,af,p?.cell,p?.year),onClick:i,children:[s&&n("span",{className:je()(zd,p?.cellCircle)}),c&&n("span",{className:je()(Fd,p?.cellSelection,u&&Hd,u&&p?.cellSelectionFirst,d&&qd,d&&p?.cellSelectionLast)}),n(vt,{variant:"subtitle1",className:je()(Vd,p?.cellData),children:o})]},`cell-year-${o}`)})}),"year"===b&&n(t,{children:[...Array(12)].map((e,t)=>{const o=T.add(t,"M"),i=o.valueOf();let s=!1,c=!1,u=!1;return l&&"year"!==a&&void 0!==M&&void 0!==L?M===L?i===M&&(s=!0):i>=M&&i<=L&&(s=!0,i===M?c=!0:i===L&&(u=!0)):l||"year"===a||void 0===M?s=l?void 0!==M&&void 0!==L&&i>=M&&i<=L:void 0!==M&&i===M:i===M&&(s=!0),r("button",{type:"button",className:je()(Ld,Td,Gd,p?.cell,p?.month),onClick:B(o),children:[s&&n("span",{className:je()(Ud,p?.monthCellSelection,c&&Yd,c&&p?.monthCellSelectionFirst,u&&Jd,u&&p?.monthCellSelectionLast)}),n(vt,{variant:"subtitle1",className:je()(Vd,p?.cellData),children:o.format("MMMM")})]},`cell-month-${t}`)})}),"month"===b&&r(t,{children:[[...Array(V)].map((e,t)=>n("div",{className:je()(Td,p?.cell)},`empty-cell-${t}`)),[...Array(z)].map((e,t)=>{const o=T.add(t,"d").valueOf();return r("button",{type:"button",className:je()(Ld,Td,p?.cell),onClick:G(o),children:[(o===k||o===D)&&n("span",{className:je()(zd,p?.cellCircle)}),void 0!==k&&void 0!==D&&o>=k&&o<=D&&n("span",{className:je()(Fd,p?.cellSelection,o===k&&Hd,o===k&&p?.cellSelectionFirst,o===D&&qd,o===D&&p?.cellSelectionLast)}),n(vt,{variant:"subtitle1",className:je()(Vd,p?.cellData),children:`${t+1}`})]},`cell-${t}`)})]})]})]}),m&&r("div",{className:je()(rf),children:[n("div",{className:je()(lf)}),n(cf,{values:A,selectedValue:_,onSelect:x}),n(vt,{variant:"subtitle1",className:je()(of),children:":"}),n(cf,{values:R,selectedValue:C,onSelect:E})]})]})}const df=["variant","isPeriod","valueType","defaultOpen","componentSize","fullWidth","label","error","placeholder","defaultValues","values","onClear","onValueChange","dayjs","useUtc","classes","id","onFocus","onBlur"];function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ff(Object(n),!0).forEach(function(t){hf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hf(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mf=(0,Pe.forwardRef)((e,t)=>{let{variant:o="filled",isPeriod:i=!1,valueType:l="date",defaultOpen:a=!1,componentSize:s="medium",fullWidth:c,label:u,error:d,placeholder:f,defaultValues:p,values:h,onClear:m,onValueChange:g,dayjs:b,useUtc:v=!1,classes:y,id:O,onFocus:w,onBlur:S}=e,j=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,df);const P=b??Md(),[_,x]=(0,Pe.useState)(void 0!==h?h:p),[C,E]=(0,Pe.useState)(a),A=(0,Pe.useRef)(_);(0,Pe.useEffect)(()=>{void 0!==h&&x(h)},[h]),(0,Pe.useEffect)(()=>{void 0===h&&void 0!==p&&x(p)},[p,h]),(0,Pe.useEffect)(()=>{A.current=_},[_]);const R=i&&"dateTime"===l?"date":l,k=(0,Pe.useRef)(null),D=yt(),M=O??D,L=(0,Pe.useCallback)(e=>{E(!0),w?.(e)},[w]),N=(0,Pe.useCallback)(e=>{C||S?.(e)},[C,S]),I=(0,Pe.useCallback)(e=>{if(E(e),!e){const e=A.current;void 0!==e&&g?.(e);const t=k.current;if(!t)return;if(document.activeElement===t)return void t.blur();S?.({target:t,currentTarget:t})}},[S,g]),T=(0,Pe.useCallback)(()=>{k.current?.focus()},[]),z=!!d&&!u,V=(0,Pe.useCallback)((e,t)=>{const n=i?[e,t]:[e],r=A.current,o=(r?.length??0)===n.length&&r?.every((e,t)=>e===n[t]);o||(A.current=n,x(n))},[i]);return r(Qi,{variant:o,componentSize:s,fullWidth:c,label:u,error:d,inputId:M,hasArrow:!0,hasErrorIcon:z,classes:y,children:[n("input",pf(pf({ref:Ye([k,t]),id:M,className:je()(Ki,"dateTime-module__input__kmAiU",y?.input),placeholder:f},j),{},{value:_?.[0]?i&&_[1]?`${P(_[0]).format("year"===R?"YYYY":"DD.MM.YYYY")} - ${P(_[1]).format("year"===R?"YYYY":"DD.MM.YYYY")}`:`${P(_[0]).format("year"===R?"YYYY":"dateTime"===R?"DD.MM.YYYY HH:mm":"DD.MM.YYYY")}`:"",onChange:()=>{},onFocus:L,onBlur:N})),n("span",{onClick:T,className:je()(qi,y?.icon),children:n(Xa,{})}),z&&d&&n(nl,{error:d,componentSize:s,className:y?.errorIcon}),n(Gl,{placement:"bottom-start",open:C,onOpenChange:I,classes:pf(pf({},y?.popover),{},{content:"dateTime-module__popover-content__oLd5U"}),containerOffset:4,description:n(uf,{dayjs:P,useUtc:v,classes:y,componentSize:"small"===s||"medium"===s?s:"medium",isPeriod:i,valueType:R,initStartDate:_?.[0],initEndDate:_?.[1],changeDates:V,onClear:m}),children:n("div",{className:je()("dateTime-module__popover-target__KDRaS")})})]})});function gf(){return(gf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function bf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function vf(e){var t=(0,Pe.useRef)(e),n=(0,Pe.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var yf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},Of=function(e){return"touches"in e},wf=function(e){return e&&e.ownerDocument.defaultView||self},Sf=function(e,t,n){var r=e.getBoundingClientRect(),o=Of(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:yf((o.pageX-(r.left+wf(e).pageXOffset))/r.width),top:yf((o.pageY-(r.top+wf(e).pageYOffset))/r.height)}},jf=function(e){!Of(e)&&e.preventDefault()},Pf=Pe.default.memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,o=bf(e,["onMove","onKey","onEnd"]),i=(0,Pe.useRef)(null),l=vf(t),a=vf(n),s=vf(r),c=(0,Pe.useRef)(null),u=(0,Pe.useRef)(!1),d=(0,Pe.useMemo)(function(){var e=function(e){jf(e),(Of(e)?e.touches.length>0:e.buttons>0)&&i.current?l(Sf(i.current,e,c.current)):(n(!1),s())},t=function(){n(!1),s()};function n(n){var r=u.current,o=wf(i.current),l=n?o.addEventListener:o.removeEventListener;l(r?"touchmove":"mousemove",e),l(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(jf(t),!function(e,t){return t&&!Of(e)}(t,u.current)&&r)){if(Of(t)){u.current=!0;var o=t.changedTouches||[];o.length&&(c.current=o[0].identifier)}r.focus(),l(Sf(r,t,c.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&s()},n]},[a,l,s]),f=d[0],p=d[1],h=d[2],m=d[3];return(0,Pe.useEffect)(function(){return m},[m]),Pe.default.createElement("div",gf({},o,{onTouchStart:f,onMouseDown:f,className:"react-colorful__interactive",ref:i,onKeyDown:p,onKeyUp:h,tabIndex:0,role:"slider"}))}),_f=function(e){return e.filter(Boolean).join(" ")},xf=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=_f(["react-colorful__pointer",e.className]);return Pe.default.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},Pe.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Cf=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},Ef=(Math.PI,function(e){return Tf(Af(e))}),Af=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Cf(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Cf(parseInt(e.substring(6,8),16)/255,2):1}},Rf=function(e){return If(Lf(e))},kf=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Cf(e.h),s:Cf(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Cf(o/2),a:Cf(r,2)}},Df=function(e){var t=kf(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},Mf=function(e){var t=kf(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},Lf=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),l=r*(1-n),a=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:Cf(255*[r,a,l,l,s,r][c]),g:Cf(255*[s,r,r,a,l,l][c]),b:Cf(255*[l,l,s,r,r,a][c]),a:Cf(o,2)}},Nf=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},If=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?Nf(Cf(255*o)):"";return"#"+Nf(t)+Nf(n)+Nf(r)+i},Tf=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),l=i-Math.min(t,n,r),a=l?i===t?(n-r)/l:i===n?2+(r-t)/l:4+(t-n)/l:0;return{h:60*(a<0?a+6:a),s:i?l/i*100:0,v:i/255*100,a:o}},zf=Pe.default.memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,o=_f(["react-colorful__hue",e.className]);return Pe.default.createElement("div",{className:o},Pe.default.createElement(Pf,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:yf(t+360*e.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":Cf(t),"aria-valuemax":"360","aria-valuemin":"0"},Pe.default.createElement(xf,{className:"react-colorful__hue-pointer",left:t/360,color:Df({h:t,s:100,v:100,a:1})})))}),Vf=Pe.default.memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,o={backgroundColor:Df({h:t.h,s:100,v:100,a:1})};return Pe.default.createElement("div",{className:"react-colorful__saturation",style:o},Pe.default.createElement(Pf,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:yf(t.s+100*e.left,0,100),v:yf(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+Cf(t.s)+"%, Brightness "+Cf(t.v)+"%"},Pe.default.createElement(xf,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Df(t)})))}),Ff=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},Hf=function(e,t){return e.toLowerCase()===t.toLowerCase()||Ff(Af(e),Af(t))};function qf(e,t,n,r){var o=vf(n),i=vf(r),l=(0,Pe.useState)(function(){return e.toHsva(t)}),a=l[0],s=l[1],c=(0,Pe.useRef)({color:t,hsva:a}),u=(0,Pe.useRef)(!1);(0,Pe.useEffect)(function(){if(!e.equal(t,c.current.color)){var n=e.toHsva(t);c.current={hsva:n,color:t},s(n),u.current=!1}},[t,e]),(0,Pe.useEffect)(function(){var t;Ff(a,c.current.hsva)||e.equal(t=e.fromHsva(a),c.current.color)||(c.current={hsva:a,color:t},o(t),u.current=!0)},[a,e,o]);var d=(0,Pe.useCallback)(function(e){s(function(t){return Object.assign({},t,e)})},[]),f=(0,Pe.useCallback)(function(){u.current&&(u.current=!1,i(c.current.color))},[i]);return[a,d,f]}var Bf="undefined"!=typeof window?Pe.useLayoutEffect:Pe.useEffect,Wf=new WeakMap,Kf=function(e){Bf(function(){var t=e.current;if("undefined"!=typeof document&&t){var n=t.getRootNode?t.getRootNode():t.ownerDocument,r=n&&("head"in n||"host"in n)?n:t.ownerDocument;if(!Wf.has(r)){var o="head"in r?r.head:r,i=(o.ownerDocument||document).createElement("style");i.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}';var l=s.nc;l&&i.setAttribute("nonce",l),Wf.set(r,i),o.appendChild(i)}}},[])},Gf=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,l=e.onChangeEnd,a=bf(e,["className","colorModel","color","onChange","onChangeEnd"]),s=(0,Pe.useRef)(null);Kf(s);var c=qf(n,o,i,l),u=c[0],d=c[1],f=c[2],p=_f(["react-colorful",t]);return Pe.default.createElement("div",gf({},a,{ref:s,className:p}),Pe.default.createElement(Vf,{hsva:u,onChange:d,onChangeEnd:f}),Pe.default.createElement(zf,{hue:u.h,onChange:d,onChangeEnd:f,className:"react-colorful__last-control"}))},Uf={defaultColor:"000",toHsva:Ef,fromHsva:function(e){return Rf({h:e.h,s:e.s,v:e.v,a:1})},equal:Hf},Yf=function(e){return Pe.default.createElement(Gf,gf({},e,{colorModel:Uf}))},Jf=function(e){var t=e.className,n=e.hsva,r=e.onChange,o=e.onChangeEnd,i={backgroundImage:"linear-gradient(90deg, "+Mf(Object.assign({},n,{a:0}))+", "+Mf(Object.assign({},n,{a:1}))+")"},l=_f(["react-colorful__alpha",t]),a=Cf(100*n.a);return Pe.default.createElement("div",{className:l},Pe.default.createElement("div",{className:"react-colorful__alpha-gradient",style:i}),Pe.default.createElement(Pf,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:yf(n.a+e.left)})},onEnd:o,"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},Pe.default.createElement(xf,{className:"react-colorful__alpha-pointer",left:n.a,color:Mf(n)})))},Qf=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,l=e.onChangeEnd,a=bf(e,["className","colorModel","color","onChange","onChangeEnd"]),s=(0,Pe.useRef)(null);Kf(s);var c=qf(n,o,i,l),u=c[0],d=c[1],f=c[2],p=_f(["react-colorful",t]);return Pe.default.createElement("div",gf({},a,{ref:s,className:p}),Pe.default.createElement(Vf,{hsva:u,onChange:d,onChangeEnd:f}),Pe.default.createElement(zf,{hue:u.h,onChange:d,onChangeEnd:f}),Pe.default.createElement(Jf,{hsva:u,onChange:d,onChangeEnd:f,className:"react-colorful__last-control"}))},Zf={defaultColor:"0001",toHsva:Ef,fromHsva:Rf,equal:Hf},Xf=function(e){return Pe.default.createElement(Qf,gf({},e,{colorModel:Zf}))};const $f=["variant","componentSize","fullWidth","label","error","classes","placeholder","disabled","defaultValue","id","enableAlpha","disableLabel","onValueChange"];function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach(function(t){np(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function np(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rp=(0,Pe.forwardRef)(function(e,t){const{variant:o="outlined",componentSize:i="medium",fullWidth:l,label:a,error:s,classes:c,placeholder:u,disabled:d,defaultValue:f,id:p,enableAlpha:h=!1,disableLabel:m=!1,onValueChange:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,$f),[v,y]=(0,Pe.useState)(f?.toString()??"#AABBCC"),O=(0,Pe.useRef)(null),w=(0,Pe.useRef)(null),S=(0,Pe.useCallback)(e=>{y(e.toUpperCase()),g?.(e.toUpperCase())},[]),j=(0,Pe.useCallback)(e=>{e.preventDefault(),d||w?.current?.click()},[w,d]),P=p??qt(),_=!!s&&!a&&!m,x=n(Gl,{placement:"bottom-start",classes:tp({content:je()("colorPicker-module__popover-content___l9Cj",h&&"colorPicker-module__popover-content-alpha__qL4F7",c?.popoverContent)},c?.popover),containerOffset:4,description:n(h?Xf:Yf,{color:v,onChange:S}),children:n("div",{ref:w,className:je()("colorPicker-module__popover-target__EZe64")})}),C=n("span",{onClick:j,className:je()("colorPicker-module__swatch__CJpfS",h&&"colorPicker-module__swatch-alpha__fR5dI",m&&"colorPicker-module__swatch-only__Ssxwd",d&&"colorPicker-module__swatch-disabled__v7mTm",c?.icon),style:{"--swatch-color":v}});return m?r("div",{"data-size":i,className:je()("colorPicker-module__root-only__Bqjfa",c?.root),children:[n("input",tp(tp({ref:Ye([O,t]),id:P,className:"colorPicker-module__hidden-input__iEwws"},b),{},{value:v,onChange:()=>{},disabled:d,tabIndex:-1,"aria-hidden":!0})),C,x]}):r(Qi,{variant:o,componentSize:i,fullWidth:l,label:a,error:s,inputId:P,onLabelClick:j,hasStartIcon:!0,hasArrow:!0,hasErrorIcon:_,classes:tp(tp({},c),{},{root:je()("colorPicker-module__root__Ni1Qk",c?.root)}),children:[n("input",tp(tp({ref:Ye([O,t]),id:P,className:je()(Ki,"colorPicker-module__input__rwgTH",c?.input),placeholder:u},b),{},{value:v,onChange:()=>{},onClick:j,disabled:d})),C,n("span",{onClick:j,className:je()(qi,c?.arrow),children:n(mu,{})}),_&&s&&n(nl,{error:s,componentSize:i,className:c?.errorIcon}),x]})});var op="input-module__field-icon__t2MCN";const ip=["variant","componentSize","fullWidth","label","error","startIcon","endIcon","classes","placeholder","id","type","onChange"];function lp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(n),!0).forEach(function(t){sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const cp=(0,Pe.forwardRef)((e,o)=>{let{variant:i="outlined",componentSize:l="medium",fullWidth:a,label:s,error:c,startIcon:u,endIcon:d,classes:f,placeholder:p,id:h,type:m,onChange:g}=e,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ip);const v=(0,Pe.useRef)(null),[y,O]=(0,Pe.useState)(""),w=yt(),S=h??w,j="file"===m,P=!!c&&!j&&!s,_=j?[]:function(e){return null==e||!1===e||!0===e?[]:(Array.isArray(e)?e:[e]).filter(e=>null!=e&&!1!==e&&!0!==e)}(d),x=_.length+(P?1:0),C=()=>{v.current?.focus()};return r(Qi,{variant:i,componentSize:l,fullWidth:a,label:s,error:c,inputId:S,hasStartIcon:!j&&!!u,endIconCount:x,classes:f,children:[j?r(t,{children:[n("input",ap({ref:Ye([v,o]),id:S,className:je()("input-module__file-input__q2Nqj",f?.fileInput),type:"file",onChange:e=>{const t=e.target.files?.[0];O(t?.name??""),g?.(e)}},b)),r("div",{role:"button",tabIndex:0,className:je()(Ki,"input-module__file-display__nDbsE",f?.input),onClick:()=>v.current?.click(),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),v.current?.click())},children:[n("span",{className:je()("input-module__file-name__X3xkl",!y&&"input-module__placeholder__NSfNL"),children:y||p}),n(sa,{size:20,className:"input-module__attach-icon__l8K5u"})]})]}):n("input",ap({ref:Ye([v,o]),id:S,className:je()(Ki,"input-module__input__kODuu",f?.input),placeholder:p,type:m,autoComplete:"off",onChange:g},b)),!!u&&!j&&n("span",{onClick:C,className:je()("fieldShell-module__start-icon__fIKEA",op,f?.startIcon),children:u}),_.map((e,t)=>{const r=_.length-1-t+(P?1:0);return n("span",{onClick:C,className:je()(Wi,op,f?.endIcon),style:{right:`calc(var(--end-icon-edge) + ${r} * var(--end-icon-slot))`},children:e},t)}),P&&c&&n(nl,{error:c,componentSize:l,className:f?.errorIcon})]})});var up="wrapForLabel-module__medium__TMPJd",dp="wrapForLabel-module__root__n2E0p",fp="wrapForLabel-module__small__BWNtg";const pp=["componentSize","children","classes","className"];function hp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach(function(t){gp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bp=(0,Pe.forwardRef)(function(e,t){let{componentSize:r="medium",children:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,pp);return n("div",mp(mp({ref:t,className:je()(dp,b[r],l,i?.root)},a),{},{children:o}))});function vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Op=["items","selected","disableSearch","isDisabled","actionWithSelected","onChangeItem","onSearchChange","searchValue","hasMore","onSelectAll","loadingMore","onLoadMore","virtualize","classes","className"];function wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wp(Object(n),!0).forEach(function(t){jp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Pp=(0,Pe.forwardRef)(function(e,o){let{items:i,selected:l,disableSearch:a,isDisabled:s,actionWithSelected:c,onChangeItem:u,onSearchChange:d,searchValue:f,hasMore:p=!1,onSelectAll:h,loadingMore:m=!1,onLoadMore:g,virtualize:b=!1,classes:v,className:y}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Op);const{t:w}=Zu(),S=void 0!==d,j=!a||S,[P,_]=(0,Pe.useState)(f??""),x=(0,Pe.useRef)(null),C=(0,Pe.useRef)(d),E=(0,Pe.useRef)(!0);C.current=d;const A=(0,Pe.useRef)(!0);(0,Pe.useEffect)(()=>{void 0!==f&&_(f)},[f]),(0,Pe.useEffect)(()=>{A.current?A.current=!1:x.current?.scrollTo({top:0})},[P]),(0,Pe.useEffect)(()=>{if(!C.current)return;if(E.current)return void(E.current=!1);const e=window.setTimeout(()=>{C.current?.(P)},300);return()=>window.clearTimeout(e)},[P]);const R=(0,Pe.useMemo)(()=>S?i.filter(e=>!l[e.value]):((e,t,n)=>t?e.reduce((e,r)=>(r.name.toUpperCase().includes(t.toUpperCase())&&!n[r.value]&&e.push(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vp(Object(n),!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r)),e),[]):e.filter(e=>!n[e.value]))(i,P,l),[i,P,S,l]),k=(0,Pe.useMemo)(()=>i.filter(e=>!!l[e.value]),[i,l]),D=(!p||!!h)&&!s&&R.length>0,M=(0,Pe.useMemo)(()=>{const e=[];return k.length>0&&(e.push({type:"selected-header",key:"selected-header"}),k.forEach(t=>{e.push({type:"selected",key:`selected-${t.value}`,item:t})})),D&&e.push({type:"select-all",key:"select-all"}),R.forEach(t=>{e.push({type:"option",key:`option-${t.value}`,item:t})}),e},[R,k,D]),L=Lu({count:b?M.length:0,enabled:b,getScrollElement:()=>x.current,estimateSize:e=>{return(t=M[e])&&"option"!==t.type&&"selected"!==t.type?36:24;var t},overscan:8,getItemKey:e=>M[e]?.key??e}),N=ed({scrollRef:x,hasMore:p,loading:m,onLoadMore:g,itemCount:i.length,resetKey:P,enabled:!!g}),I=(0,Pe.useCallback)(e=>{const t=!l[e.value];u&&u(e);const n=Sp(Sp({},l),{},{[e.value]:t});c(n)},[l,u,c]),T=(0,Pe.useCallback)(()=>{if(h)return void h(P);const e=Sp({},l);R.forEach(t=>{e[t.value]=!0}),c(e)},[h,P,l,R,c]),z=(0,Pe.useCallback)(()=>{const e=Sp({},l);k.forEach(t=>{delete e[t.value]}),c(e)},[l,k,c]),V=(0,Pe.useCallback)(e=>{_(e.target.value)},[]),F=(0,Pe.useCallback)(e=>t=>{t.stopPropagation(),I(e)},[I]),H=(e,t)=>n(Vt,{label:e.name,checked:!!l[e.value],onChange:F(e),disabled:s,classes:v?.checkbox},`${t}-${e.value}`),q=D||0===R.length,B=()=>r("div",{className:je()("checklist-module__action-wrap___WNPp",!q&&"checklist-module__action-wrap-end__nwOQE",v?.actionWrap),children:[q&&n(vt,{className:je()(v?.typography),children:w("nntc_ui.common.checklist.selected")}),n(Ge,{variant:"text",componentSize:"small",compact:!0,disabled:s,onClick:z,className:je()(v?.button),children:w("nntc_ui.common.checklist.cancel")})]}),W=()=>n(Ge,{variant:"text",componentSize:"small",compact:!0,disabled:s,onClick:T,className:je()(v?.button),children:w("nntc_ui.common.checklist.selectAll")}),K=e=>"selected-header"===e.type?B():"select-all"===e.type?W():H(e.item,"selected"===e.type?"selected":"filtered"),G=b?L.getVirtualItems():[],U=b&&G.length>0,Y=S&&""!==P.trim()&&0===R.length;return r("div",Sp(Sp({ref:o,className:je()("checklist-module__root__rtLgn",y,v?.root)},O),{},{children:[" ",j&&n(cp,{variant:"outlined",startIcon:n(ec,{}),placeholder:w("nntc_ui.common.search.placeholder"),disabled:s,value:P,fullWidth:!0,classes:v?.searchInput,onChange:V}),r("div",{ref:x,className:je()("checklist-module__scrolled__t7xdx","styledScroll",v?.scrolled),children:[U?n("div",{className:"checklist-module__virtual-space__cTHv9",style:{height:L.getTotalSize()},children:G.map(e=>{const t=M[e.index];return t?n("div",{"data-index":e.index,ref:L.measureElement,className:"checklist-module__virtual-item___Q2fN",style:{transform:`translateY(${e.start}px)`},children:K(t)},e.key):null})}):r(t,{children:[k.length>0&&r(t,{children:[B(),n("div",{children:k.map(e=>H(e,"selected"))})]}),D&&W(),n("div",{children:R.map(e=>H(e,"filtered"))})]}),n($u,{loading:m,hasMore:p&&!!g,empty:Y,sentinelRef:N})]})]}))}),_p=["checklistWrapper"];function xp(e){const{items:t,selected:r,onSelectedChange:o,classes:i,enableSearch:l=!1,onSearchChange:a,searchValue:s,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,disabled:p}=e,h=(0,Pe.useMemo)(()=>t.map(e=>({name:e.name,value:e.value})),[t]),m=(0,Pe.useMemo)(()=>{const e={};return r?.forEach(t=>{e[t]=!0}),e},[r]),g=(0,Pe.useCallback)(e=>{const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const r=t.find(e=>e.value===n);r&&e.push(r)}return e},[]);o(n)},[o,t]),b=i??{},{checklistWrapper:v}=b,y=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(b,_p);return n("div",{className:je()(v),children:n(Pp,{virtualize:!0,disableSearch:!l,isDisabled:p,items:h,selected:m,actionWithSelected:g,onSearchChange:a,searchValue:s,hasMore:c,onSelectAll:u,loadingMore:d,onLoadMore:f,classes:y})})}const Cp=["variant","componentSize","icon","fullWidth","label","error","placeholder","items","onLoadMore","hasMore","onSelectAll","loadingMore","onSearchChange","searchValue","onValueChange","selected","classes","disabled","id","titleType","showSelectedCount","enableSearch","popoverInComponent"];function Ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ep(Object(n),!0).forEach(function(t){Rp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ep(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kp=(0,Pe.forwardRef)(function(e,t){const{variant:o="filled",componentSize:i="medium",icon:l,fullWidth:a,label:s,error:c,placeholder:u,items:d,onLoadMore:f,hasMore:p=!1,onSelectAll:h,loadingMore:m=!1,onSearchChange:g,searchValue:b,onValueChange:v,selected:y,classes:O,disabled:w,id:S,titleType:j="allValue",showSelectedCount:P=!1,enableSearch:_=!1,popoverInComponent:x=!1}=e,C=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Cp),E="chips"===j,{t:A}=Qu(),R=(0,Pe.useRef)(null),k=(0,Pe.useRef)(null),D=(0,Pe.useRef)(null),[M,L]=(0,Pe.useState)(!1),[N,I]=(0,Pe.useState)(),[T,z]=(0,Pe.useState)(0),V=void 0!==f||void 0!==g,{activeItems:F,remember:H}=function(e,t,n){const[r,o]=(0,Pe.useState)(()=>new Map);(0,Pe.useEffect)(()=>{n&&o(n=>{const r=new Set(e.map(e=>e.value)),o=new Set(t??[]);let i=!1;const l=new Map(n);return e.forEach(e=>{const t=l.get(e.value);t&&t.name===e.name&&t.description===e.description&&t.disabled===e.disabled||(l.set(e.value,e),i=!0)}),l.forEach((e,t)=>{o.has(t)||r.has(t)||(l.delete(t),i=!0)}),i?l:n})},[n,e,t]);const i=(0,Pe.useCallback)(e=>{n&&e.length&&o(t=>{const n=new Map(t);return e.forEach(e=>n.set(e.value,e)),n})},[n]);return{activeItems:(0,Pe.useMemo)(()=>{if(!t?.length)return[];if(!n)return e.filter(e=>t.includes(e.value));const o=new Map(e.map(e=>[e.value,e]));return t.map(e=>o.get(e)??r.get(e)??{name:e,value:e})},[n,e,r,t]),remember:i}}(d,y,V),q=(0,Pe.useRef)(F);q.current=F;const B=(0,Pe.useRef)(!1),W=(0,Pe.useRef)(""),K=(0,Pe.useMemo)(()=>{if(!V)return d;const e=new Set(d.map(e=>e.value)),t=F.filter(t=>!e.has(t.value));return t.length?[...t,...d]:d},[F,d,V]),G=(0,Pe.useCallback)(e=>{W.current=e,g?.(e)},[g]),U=(0,Pe.useCallback)(e=>{L(e),!e&&W.current&&(W.current="",g?.(""))},[g]);(0,Pe.useLayoutEffect)(()=>{const e=R.current;if(!e)return;const t=()=>{const{width:t}=e.getBoundingClientRect();I(t),z(e=>e+1)};if(t(),"undefined"==typeof ResizeObserver)return;const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}},[]),(0,Pe.useLayoutEffect)(()=>{E&&z(e=>e+1)},[E,F.length]);const Y=(0,Pe.useCallback)(e=>{e.preventDefault(),w||L(e=>!e)},[w]),J=(0,Pe.useCallback)(e=>{v?.(e)},[v]),Q=(0,Pe.useCallback)(e=>{h&&!B.current&&(B.current=!0,Promise.resolve(h(e)).then(e=>{if(!Array.isArray(e))return;H(e);const t=new Map(q.current.map(e=>[e.value,e]));e.forEach(e=>{t.has(e.value)||t.set(e.value,e)}),v?.([...t.values()])}).finally(()=>{B.current=!1}))},[h,v,H]),Z=(0,Pe.useMemo)(()=>F.length?((e,t,n)=>{switch(e){case"allValue":return t.map(e=>e.name).join(", ");case"numberValue":return`${n("nntc_ui.common.multiSelect.selectedItems")}: `+t.length;case"firstValue":return`${t[0]?.name} ${t.length>1?" +"+(t.length-1):""}`;case"chips":return""}})(j,F,A):"",[j,F,A]),X=S??qt(),$=!!c&&!s;return r(Qi,{variant:o,componentSize:i,fullWidth:a,label:s,error:c,labelExtra:P&&F.length>0?n("span",{className:je()("multiSelect-module__label-selected-count__vykag",O?.labelSelectedCount),children:` (${F.length})`}):void 0,inputId:X,onLabelClick:Y,ref:R,hasStartIcon:!!l,hasArrow:!0,hasErrorIcon:$,hasClearButton:!!F.length,chipsMode:E,classes:O,children:[n("input",Ap(Ap({ref:Ye([k,t]),id:X,className:je()(Ki,"multiSelect-module__input__vG33L",O?.input),placeholder:E&&F.length?void 0:u},C),{},{value:E?"":Z,onClick:Y,disabled:w,readOnly:!0,title:E?void 0:F.map(e=>e.name).join(", "),autoComplete:"off"})),E&&!!F.length&&n("span",{className:je()(Bi,"multiSelect-module__chips__jJlqe",O?.chips),children:F.map(e=>n(Pl,{componentSize:i,disabled:w,onClick:()=>{w||L(e=>!e)},onRemove:()=>{const t=F.filter(t=>t.value!==e.value);v?.(t.length?t:null)},children:e.name},e.value))}),!!l&&n("span",{onClick:Y,className:je()("multiSelect-module__icon__f8pIe",O?.icon),children:l}),!!F.length&&n("span",{onClick:()=>{v?.(null)},className:je()("multiSelect-module__clear__s8X8D",O?.clear),children:n(ll,{})}),n("span",{onClick:Y,className:je()(qi,O?.arrow),children:n(mu,{})}),$&&c&&n(nl,{error:c,componentSize:i,className:O?.errorIcon}),n(Gl,{placement:"bottom-start",open:M,onOpenChange:U,contentStyle:N?{width:N,minWidth:N,maxWidth:N}:void 0,classes:Ap({content:je()("multiSelect-module__popover-content__OYXE6",O?.popoverContent)},O?.popover),containerOffset:4,layoutVersion:T,root:x?R.current:void 0,description:n(xp,{items:K,classes:Ap({searchInput:Ap({root:"multiSelect-module__search-input-root__S2Us8"},O?.selectPopover?.searchInput),root:"multiSelect-module__checklist-root__SqDIN",checklistWrapper:je()("multiSelect-module__checklist-wrapper__Fw8O9"),scrolled:"multiSelect-module__checklist-scrolled__XQQba"},O?.selectPopover),componentSize:i,selected:y,onSelectedChange:J,enableSearch:_||void 0!==g,onSearchChange:g?G:void 0,searchValue:b,hasMore:p,onSelectAll:h?Q:void 0,loadingMore:m,onLoadMore:f,disabled:w}),children:n("div",{ref:D,className:je()("multiSelect-module__popover-target__CM0gG")})})]})});var Dp="radioButton-module__pressed__zYl50",Mp="radioButton-module__radio__HJxXO";const Lp=["label","componentSize","canUncheck","onUncheck","classes","id","onClick"];function Np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ip(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Np(Object(n),!0).forEach(function(t){Tp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tp(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zp=(0,Pe.forwardRef)(function(e,t){const{label:o,componentSize:i="medium",canUncheck:l,onUncheck:a,classes:s,id:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lp),f=(0,Pe.useRef)(null),p=(0,Pe.useRef)(!1),h=yt(),m=c??h;(0,Pe.useEffect)(()=>{const e=f.current;if(!e)return;const t=()=>e.classList.remove(Dp),n=()=>{e.classList.add(Dp),p.current=e.checked};return e.addEventListener("mousedown",n),e.addEventListener("mouseup",t),()=>{e.removeEventListener("mousedown",n),e.removeEventListener("mouseup",t)}},[]);const g=(0,Pe.useCallback)(e=>{l&&p.current&&(f.current.checked=!1,a?.()),u?.(e)},[l,a,u]),b="large"===i?"subtitle1":"subtitle2";return r("div",{className:je()("radioButton-module__root__stJhI",s?.root),children:[n("input",Ip({ref:Ye([f,t]),type:"radio",className:je()("radioButton-module__input__EBKKq",s?.input),id:m,title:o,onClick:g},d)),r("label",{htmlFor:m,className:je()("radioButton-module__label__E8YrK",s?.label),title:o,children:[n("span",{className:je()(Mp,"radioButton-module__deselected__phKEf",s?.radio),children:n(Da,{})}),n("span",{className:je()(Mp,"radioButton-module__selected__KErVW",s?.radio),children:n(Ia,{})}),!!o&&n(vt,{variant:b,className:je()("radioButton-module__label-text__JHs3s",s?.labelText),children:o})]})]})});function Vp(e,t){return"function"==typeof e?e(t):e}function Fp(e,t){return n=>{t.setState(t=>({...t,[e]:Vp(n,t[e])}))}}function Hp(e){return e instanceof Function}function qp(e,t,n){let r,o=[];return i=>{let l;n.key&&n.debug&&(l=Date.now());const a=e(i),s=a.length!==o.length||a.some((e,t)=>o[t]!==e);if(!s)return r;let c;if(o=a,n.key&&n.debug&&(c=Date.now()),r=t(...a),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){const e=Math.round(100*(Date.now()-l))/100,t=Math.round(100*(Date.now()-c))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function Bp(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}const Wp="debugHeaders";function Kp(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}const Gp={createTable:e=>{e.getHeaderGroups=qp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,l;const a=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],s=null!=(l=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?l:[];return Up(t,[...a,...n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),...s],e)},Bp(e.options,Wp)),e.getCenterHeaderGroups=qp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>Up(t,n=n.filter(e=>!(null!=r&&r.includes(e.id)||null!=o&&o.includes(e.id))),e,"center"),Bp(e.options,Wp)),e.getLeftHeaderGroups=qp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Up(t,i,e,"left")},Bp(e.options,Wp)),e.getRightHeaderGroups=qp(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[];return Up(t,i,e,"right")},Bp(e.options,Wp)),e.getFooterGroups=qp(()=>[e.getHeaderGroups()],e=>[...e].reverse(),Bp(e.options,Wp)),e.getLeftFooterGroups=qp(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),Bp(e.options,Wp)),e.getCenterFooterGroups=qp(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),Bp(e.options,Wp)),e.getRightFooterGroups=qp(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),Bp(e.options,Wp)),e.getFlatHeaders=qp(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),Bp(e.options,Wp)),e.getLeftFlatHeaders=qp(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),Bp(e.options,Wp)),e.getCenterFlatHeaders=qp(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),Bp(e.options,Wp)),e.getRightFlatHeaders=qp(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),Bp(e.options,Wp)),e.getCenterLeafHeaders=qp(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Bp(e.options,Wp)),e.getLeftLeafHeaders=qp(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Bp(e.options,Wp)),e.getRightLeafHeaders=qp(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),Bp(e.options,Wp)),e.getLeafHeaders=qp(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,l,a,s;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(l=t[0])?void 0:l.headers)?i:[],...null!=(a=null==(s=n[0])?void 0:s.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},Bp(e.options,Wp))}};function Up(e,t,n,r){var o,i;let l=0;const a=function(e,t){void 0===t&&(t=1),l=Math.max(l,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&a(e.columns,t+1)},0)};a(e);let s=[];const c=(e,t)=>{const o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{const l=[...i].reverse()[0];let a,s=!1;if(e.column.depth===o.depth&&e.column.parent?a=e.column.parent:(a=e.column,s=!0),l&&(null==l?void 0:l.column)===a)l.subHeaders.push(e);else{const o=Kp(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:s,placeholderId:s?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),s.push(o),t>0&&c(i,t-1)},u=t.map((e,t)=>Kp(n,e,{depth:l,index:t}));c(u,l-1),s.reverse();const d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],d(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return d(null!=(o=null==(i=s[0])?void 0:i.headers)?o:[]),s}const Yp=(e,t,n,r,o,i,l)=>{let a={id:t,index:r,original:n,depth:o,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(a._valuesCache.hasOwnProperty(t))return a._valuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?(a._valuesCache[t]=n.accessorFn(a.original,r),a._valuesCache[t]):void 0},getUniqueValues:t=>{if(a._uniqueValuesCache.hasOwnProperty(t))return a._uniqueValuesCache[t];const n=e.getColumn(t);return null!=n&&n.accessorFn?n.columnDef.getUniqueValues?(a._uniqueValuesCache[t]=n.columnDef.getUniqueValues(a.original,r),a._uniqueValuesCache[t]):(a._uniqueValuesCache[t]=[a.getValue(t)],a._uniqueValuesCache[t]):void 0},renderValue:t=>{var n;return null!=(n=a.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>function(e,t){const n=[],r=e=>{e.forEach(e=>{n.push(e);const o=t(e);null!=o&&o.length&&r(o)})};return r(e),n}(a.subRows,e=>e.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let e=[],t=a;for(;;){const n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:qp(()=>[e.getAllLeafColumns()],t=>t.map(t=>function(e,t,n,r){const o={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:qp(()=>[e,n,t,o],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),Bp(e.options,"debugCells"))};return e._features.forEach(r=>{null==r.createCell||r.createCell(o,n,t,e)},{}),o}(e,a,t,t.id)),Bp(e.options,"debugRows")),_getAllCellsByColumnId:qp(()=>[a.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),Bp(e.options,"debugRows"))};for(let t=0;t<e._features.length;t++){const n=e._features[t];null==n||null==n.createRow||n.createRow(a,e)}return a},Jp={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Qp=(e,t,n)=>{var r,o;const i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return Boolean(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};Qp.autoRemove=e=>lh(e);const Zp=(e,t,n)=>{var r;return Boolean(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};Zp.autoRemove=e=>lh(e);const Xp=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};Xp.autoRemove=e=>lh(e);const $p=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};$p.autoRemove=e=>lh(e);const eh=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});eh.autoRemove=e=>lh(e)||!(null!=e&&e.length);const th=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});th.autoRemove=e=>lh(e)||!(null!=e&&e.length);const nh=(e,t,n)=>e.getValue(t)===n;nh.autoRemove=e=>lh(e);const rh=(e,t,n)=>e.getValue(t)==n;rh.autoRemove=e=>lh(e);const oh=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};oh.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,l=null===n||Number.isNaN(o)?1/0:o;if(i>l){const e=i;i=l,l=e}return[i,l]},oh.autoRemove=e=>lh(e)||lh(e[0])&&lh(e[1]);const ih={includesString:Qp,includesStringSensitive:Zp,equalsString:Xp,arrIncludes:$p,arrIncludesAll:eh,arrIncludesSome:th,equals:nh,weakEquals:rh,inNumberRange:oh};function lh(e){return null==e||""===e}const ah={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Fp("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?ih.includesString:"number"==typeof r?ih.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?ih.equals:Array.isArray(r)?ih.arrIncludes:ih.weakEquals},e.getFilterFn=()=>{var n,r;return Hp(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:ih[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{const r=e.getFilterFn(),o=null==t?void 0:t.find(t=>t.id===e.id),i=Vp(n,o?o.value:void 0);var l;if(sh(r,i,e))return null!=(l=null==t?void 0:t.filter(t=>t.id!==e.id))?l:[];const a={id:e.id,value:i};var s;return o?null!=(s=null==t?void 0:t.map(t=>t.id===e.id?a:t))?s:[]:null!=t&&t.length?[...t,a]:[a]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=Vp(t,e))?void 0:r.filter(e=>{const t=n.find(t=>t.id===e.id);return!t||!sh(t.getFilterFn(),e.value,t)})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function sh(e,t,n){return!(!e||!e.autoRemove)&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}const ch={sum:(e,t,n)=>n.reduce((t,n)=>{const r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{const n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o=+o)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;const n=t.map(t=>t.getValue(e));if(!function(e){return Array.isArray(e)&&e.every(e=>"number"==typeof e)}(n))return;if(1===n.length)return n[0];const r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},uh={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Fp("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?ch.sum:"[object Date]"===Object.prototype.toString.call(r)?ch.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Hp(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:ch[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!(null==(t=n.subRows)||!t.length)}}},dh={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Fp("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=qp(e=>[vh(t,e)],t=>t.findIndex(t=>t.id===e.id),Bp(t.options,"debugColumns")),e.getIsFirstColumn=n=>{var r;return(null==(r=vh(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;const o=vh(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=qp(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){const t=[...e],n=[...r];for(;n.length&&t.length;){const e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;return function(e,t,n){if(null==t||!t.length||!n)return e;const r=e.filter(e=>!t.includes(e.id));if("remove"===n)return r;const o=t.map(t=>e.find(e=>e.id===t)).filter(Boolean);return[...o,...r]}(o,t,n)},Bp(e.options,"debugTable"))}},fh={getInitialState:e=>({columnPinning:{left:[],right:[]},...e}),getDefaultOptions:e=>({onColumnPinningChange:Fp("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,l,a,s;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(s=null==e?void 0:e.right)?s:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!l&&"right"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=qp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},Bp(t.options,"debugRows")),e.getLeftVisibleCells=qp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"}));return n},Bp(t.options,"debugRows")),e.getRightVisibleCells=qp(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>{const n=(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"}));return n},Bp(t.options,"debugRows"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?{left:[],right:[]}:null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:{left:[],right:[]})},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.left)?void 0:o.length)||(null==(i=r.right)?void 0:i.length))},e.getLeftLeafColumns=qp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Bp(e.options,"debugColumns")),e.getRightLeafColumns=qp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),Bp(e.options,"debugColumns")),e.getCenterLeafColumns=qp(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{const r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},Bp(e.options,"debugColumns"))}},ph={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},hh={getDefaultColumnDef:()=>ph,getInitialState:e=>({columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]},...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Fp("columnSizing",e),onColumnSizingInfoChange:Fp("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:ph.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:ph.size),null!=(o=e.columnDef.maxSize)?o:ph.maxSize)},e.getStart=qp(e=>[e,vh(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),Bp(t.options,"debugColumns")),e.getAfter=qp(e=>[e,vh(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),Bp(t.options,"debugColumns")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0;const n=e=>{var r;e.subHeaders.length?e.subHeaders.forEach(n):t+=null!=(r=e.column.getSize())?r:0};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{const r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o)return;if(null==i.persist||i.persist(),gh(i)&&i.touches&&i.touches.length>1)return;const l=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],s=gh(i)?Math.round(i.touches[0].clientX):i.clientX,c={},u=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;const i="rtl"===t.options.columnResizeDirection?-1:1,l=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,a=Math.max(l/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;c[t]=Math.round(100*Math.max(n+n*a,0))/100}),{...e,deltaOffset:l,deltaPercentage:a}}),"onChange"!==t.options.columnResizeMode&&"end"!==e||t.setColumnSizing(e=>({...e,...c})))},d=e=>u("move",e),f=e=>{u("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("undefined"!=typeof document?document:null),h={moveHandler:e=>d(e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",h.moveHandler),null==p||p.removeEventListener("mouseup",h.upHandler),f(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",m.moveHandler),null==p||p.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),f(null==(t=e.touches[0])?void 0:t.clientX)}},g=!!function(){if("boolean"==typeof mh)return mh;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch(t){e=!1}return mh=e,mh}()&&{passive:!1};gh(i)?(null==p||p.addEventListener("touchmove",m.moveHandler,g),null==p||p.addEventListener("touchend",m.upHandler,g)):(null==p||p.addEventListener("mousemove",h.moveHandler,g),null==p||p.addEventListener("mouseup",h.upHandler,g)),t.setColumnSizingInfo(e=>({...e,startOffset:s,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}:null!=(n=e.initialState.columnSizingInfo)?n:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]})},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}};let mh=null;function gh(e){return"touchstart"===e.type}const bh={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Fp("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;const o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=qp(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),Bp(t.options,"debugRows")),e.getVisibleCells=qp(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],Bp(t.options,"debugRows"))},createTable:e=>{const t=(t,n)=>qp(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),Bp(e.options,"debugColumns"));e.getVisibleFlatColumns=t(0,()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t(0,()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t(0,()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t(0,()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t(0,()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}};function vh(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const yh={getInitialState:e=>({...e,pagination:{pageIndex:0,pageSize:10,...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Fp("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}}else e._queue(()=>{t=!0})},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>Vp(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?{pageIndex:0,pageSize:10}:null!=(n=e.initialState.pagination)?n:{pageIndex:0,pageSize:10})},e.setPageIndex=t=>{e.setPagination(n=>{let r=Vp(t,n.pageIndex);const o=void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,o)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{const n=Math.max(1,Vp(t,e.pageSize)),r=e.pageSize*e.pageIndex,o=Math.floor(r/n);return{...e,pageIndex:o,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=Vp(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=qp(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...new Array(e)].fill(null).map((e,t)=>t)),t},Bp(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return-1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},Oh={getInitialState:e=>({rowPinning:{top:[],bottom:[]},...e}),getDefaultOptions:e=>({onRowPinningChange:Fp("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],l=o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...l,e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,l,s;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(l=null==e?void 0:e.top)?l:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(s=null==e?void 0:e.bottom)?s:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),l=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!l&&"bottom"},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?{top:[],bottom:[]}:null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:{top:[],bottom:[]})},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;var o,i;return t?Boolean(null==(n=r[t])?void 0:n.length):Boolean((null==(o=r.top)?void 0:o.length)||(null==(i=r.bottom)?void 0:i.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{const n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=qp(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),Bp(e.options,"debugRows")),e.getBottomRows=qp(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),Bp(e.options,"debugRows")),e.getCenterRows=qp(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{const r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},Bp(e.options,"debugRows"))}},wh={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Fp("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{Sh(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=qp(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?jh(e,n):{rows:[],flatRows:[],rowsById:{}},Bp(e.options,"debugTable")),e.getFilteredSelectedRowModel=qp(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?jh(e,n):{rows:[],flatRows:[],rowsById:{}},Bp(e.options,"debugTable")),e.getGroupedSelectedRowModel=qp(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?jh(e,n):{rows:[],flatRows:[],rowsById:{}},Bp(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=Boolean(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var l;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;const a={...i};return Sh(a,e.id,n,null==(l=null==r?void 0:r.selectChildren)||l,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Ph(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return"some"===_h(e,n)},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return"all"===_h(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},Sh=(e,t,n,r,o)=>{var i;const l=o.getRow(t,!0);n?(l.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),l.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=l.subRows)&&i.length&&l.getCanSelectSubRows()&&l.subRows.forEach(t=>Sh(e,t.id,n,r,o))};function jh(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;const l=Ph(e,n);if(l&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),l)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Ph(e,t){var n;return null!=(n=t[e.id])&&n}function _h(e,t,n){var r;if(null==(r=e.subRows)||!r.length)return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(Ph(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){const n=_h(e,t);"all"===n?i=!0:"some"===n?(i=!0,o=!1):o=!1}}),o?"all":!!i&&"some"}const xh=/([0-9]+)/gm;function Ch(e,t){return e===t?0:e>t?1:-1}function Eh(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function Ah(e,t){const n=e.split(xh).filter(Boolean),r=t.split(xh).filter(Boolean);for(;n.length&&r.length;){const e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),l=[o,i].sort();if(isNaN(l[0])){if(e>t)return 1;if(t>e)return-1}else{if(isNaN(l[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return-1}}return n.length-r.length}const Rh={alphanumeric:(e,t,n)=>Ah(Eh(e.getValue(n)).toLowerCase(),Eh(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>Ah(Eh(e.getValue(n)),Eh(t.getValue(n))),text:(e,t,n)=>Ch(Eh(e.getValue(n)).toLowerCase(),Eh(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>Ch(Eh(e.getValue(n)),Eh(t.getValue(n))),datetime:(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>Ch(e.getValue(n),t.getValue(n))},kh={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Fp("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const t of n){const n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return Rh.datetime;if("string"==typeof n&&(r=!0,n.split(xh).length>1))return Rh.alphanumeric}return r?Rh.text:Rh.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Hp(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:Rh[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=null!=n;t.setSorting(l=>{const a=null==l?void 0:l.find(t=>t.id===e.id),s=null==l?void 0:l.findIndex(t=>t.id===e.id);let c,u=[],d=i?n:"desc"===o;var f;return c=null!=l&&l.length&&e.getCanMultiSort()&&r?a?"toggle":"add":null!=l&&l.length&&s!==l.length-1?"replace":a?"toggle":"replace","toggle"===c&&(i||o||(c="remove")),"add"===c?(u=[...l,{id:e.id,desc:d}],u.splice(0,u.length-(null!=(f=t.options.maxMultiSortColCount)?f:Number.MAX_SAFE_INTEGER))):u="toggle"===c?l.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===c?l.filter(t=>t.id!==e.id):[{id:e.id,desc:d}],u})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),l=e.getIsSorted();return l?!!(l===i||null!=(r=t.options.enableSortingRemoval)&&!r||n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===l?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Dh=[Gp,bh,dh,fh,Jp,ah,{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Fp("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ih.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Hp(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:ih[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},kh,uh,{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Fp("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(t){if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}}else e._queue(()=>{t=!0})},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{const t=e.getState().expanded;return"boolean"==typeof t?!0===t:!!Object.keys(t).length&&!e.getRowModel().flatRows.some(e=>!e.getIsExpanded())},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{const n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=!0===r||!(null==r||!r[e.id]);let l={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{l[e]=!0}):l=r,n=null!=(o=n)?o:!i,!i&&n)return{...l,[e.id]:!0};if(i&&!n){const{[e.id]:t,...n}=l;return n}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!(null==(o=e.subRows)||!o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},yh,Oh,wh,hh];function Mh(e){var t,n;const r=[...Dh,...null!=(t=e._features)?t:[]];let o={_features:r};const i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{});let l={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;l=null!=(t=null==e.getInitialState?void 0:e.getInitialState(l))?t:l});const a=[];let s=!1;const c={_features:r,options:{...i,...e},initialState:l,_queue:e=>{a.push(e),s||(s=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();s=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{const t=Vp(e,o.options);o.options=(e=>o.options.mergeOptions?o.options.mergeOptions(i,e):{...i,...e})(t)},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&(n=o.getCoreRowModel().rowsById[e],!n))throw new Error;return n},_getDefaultColumnDef:qp(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{const t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},Bp(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:qp(()=>[o._getColumnDefs()],e=>{const t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{const i=function(e,t,n,r){var o,i;const l={...e._getDefaultColumnDef(),...t},a=l.accessorKey;let s,c=null!=(o=null!=(i=l.id)?i:a?"function"==typeof String.prototype.replaceAll?a.replaceAll(".","_"):a.replace(/\./g,"_"):void 0)?o:"string"==typeof l.header?l.header:void 0;if(l.accessorFn?s=l.accessorFn:a&&(s=a.includes(".")?e=>{let t=e;for(const e of a.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[l.accessorKey]),!c)throw new Error;let u={id:`${String(c)}`,accessorFn:s,parent:r,depth:n,columnDef:l,columns:[],getFlatColumns:qp(()=>[!0],()=>{var e;return[u,...null==(e=u.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},Bp(e.options,"debugColumns")),getLeafColumns:qp(()=>[e._getOrderColumnsFn()],e=>{var t;if(null!=(t=u.columns)&&t.length){let t=u.columns.flatMap(e=>e.getLeafColumns());return e(t)}return[u]},Bp(e.options,"debugColumns"))};for(const t of e._features)null==t.createColumn||t.createColumn(u,e);return u}(o,e,r,n),l=e;return i.columns=l.columns?t(l.columns,i,r+1):[],i})};return t(e)},Bp(e,"debugColumns")),getAllFlatColumns:qp(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),Bp(e,"debugColumns")),_getAllFlatColumnsById:qp(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),Bp(e,"debugColumns")),getAllLeafColumns:qp(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),Bp(e,"debugColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,c);for(let e=0;e<o._features.length;e++){const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}function Lh(e,t){return e?function(e){return"function"==typeof e&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}(n=e)||"function"==typeof n||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(n)?Pe.createElement(e,t):e:null;var n}const Nh=["open","onClose","root","children","classes","className","onClick"];function Ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Th(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ih(Object(n),!0).forEach(function(t){zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ih(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vh=(0,Pe.forwardRef)(function(e,t){let{open:r,onClose:i,root:l,children:a,classes:s,className:c,onClick:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Nh);const f=wi(),p=(0,Pe.useRef)(null),h=(0,Pe.useRef)(null);if(!r||!a)return null;const m=n("div",{ref:p,className:"modal-module__overlay__jUOz9",onClick:e=>{e.target!==p.current&&h.current?.contains(e.target)||(e.stopPropagation(),i?.())},children:n("div",Th(Th({},d),{},{ref:e=>{e&&(h.current=e),"function"==typeof t?t(e):t&&(t.current=e)},className:je()("modal-module__modal__MbFDb",c,s?.root),onClick:e=>{e.stopPropagation(),u?.(e)},children:a}))}),g=l&&"current"in l?l.current:l;return o(m,g??f??document.body)});var Fh="surface-module__medium__RDAZM",Hh="surface-module__modal__CR4M1",qh="surface-module__overlay1__mkcgW",Bh="surface-module__overlay2__SpRc6",Wh="surface-module__panel___5TWQ",Kh="surface-module__primary__eubsR",Gh="surface-module__root__NWwiS",Uh="surface-module__small__GMEm1";const Yh=["type","componentSize","children","classes","className"];function Jh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jh(Object(n),!0).forEach(function(t){Zh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zh(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xh=(0,Pe.forwardRef)(function(e,t){let{type:r="primary",componentSize:o="medium",children:i,classes:l,className:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Yh);return n("div",Qh(Qh({ref:t,className:je()(Gh,a,l?.root,v[r],v[o])},s),{},{children:i}))});var $h="virtualTable-module__align-center__rbiTV",em="virtualTable-module__align-left__h55vl",tm="virtualTable-module__align-right__D9XGD",nm="virtualTable-module__body-lock__g3lm6",rm="virtualTable-module__border-frame__cK6e3",om="virtualTable-module__border-spacer__bjkt2",im="virtualTable-module__borders-all__KkNTI",lm="virtualTable-module__borders-horizontal__jR33G",am="virtualTable-module__borders-vertical__uEuZ0",sm="virtualTable-module__bottom-border__WDi6q",cm="virtualTable-module__clickable__e1Fzm",um="virtualTable-module__editable__ykKJ7",dm="virtualTable-module__error__AlQbz",fm="virtualTable-module__even-row__G9kZ9",pm="virtualTable-module__first-th-row__gTB11",hm="virtualTable-module__input__woZy1",mm="virtualTable-module__label__MH9F1",gm="virtualTable-module__margin-left-changing__zOfJs",bm="virtualTable-module__medium__ir7ZQ",vm="virtualTable-module__modal-content__x3MRE",ym="virtualTable-module__page-loading-label__GmatN",Om="virtualTable-module__page-loading-lane__dNGr4",wm="virtualTable-module__page-loading-track__fGERG",Sm="virtualTable-module__page-loading-up__dNqWK",jm="virtualTable-module__right-border__VUcBZ",Pm="virtualTable-module__right-border-with-bottom__RUwY4",_m="virtualTable-module__root__T5DB8",xm="virtualTable-module__row-button-trigger__GOp1L",Cm="virtualTable-module__rowspan-content__tVYnk",Em="virtualTable-module__select-rows___j564",Am="virtualTable-module__selected__m1TlO",Rm="virtualTable-module__show-in-modal__CRX1n",km="virtualTable-module__small__Frhxm",Dm="virtualTable-module__sticky__IOXhs",Mm="virtualTable-module__success__xA9vR",Lm="virtualTable-module__table__DVtV1",Nm="virtualTable-module__table-container__Mg8RS",Im="virtualTable-module__td__xaUJu",Tm="virtualTable-module__th__e9Feh",zm="virtualTable-module__th-cell__p6rQ6",Vm="virtualTable-module__th-hidden-column__G4mQg",Fm="virtualTable-module__th-left-border__VLgUr",Hm="virtualTable-module__th-right-border__bNAS9",qm="virtualTable-module__tr__zZyk5",Bm="virtualTable-module__vertical-align-center__BgJQa",Wm="virtualTable-module__vertical-align-flex-end__tIx0q",Km="virtualTable-module__vertical-align-flex-start___IFqc",Gm="virtualTable-module__view-cell__eY5xo",Um="virtualTable-module__view-span__SezD2";function Ym(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ym(Object(n),!0).forEach(function(t){Qm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ym(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qm(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zm={cell:({getValue:e,row:{index:o,original:i},column:{id:l,columnDef:a},table:s})=>{const c=e(),{meta:u}=a,d=s.options.meta,[f,p]=(0,Pe.useState)(c),[h,m]=(0,Pe.useState)(!1),[g,b]=(0,Pe.useState)(!1),v=(0,Pe.useRef)();v.current=()=>{b(!1)},(0,Pe.useEffect)(()=>{p(c)},[c]);const O=d?.additionalColumnsViews?.(l,c,i[l]?.payload);if(h&&u?.editable){const e=()=>{d?.updateData(o,l,f,i),m(!1)},r=(e,t)=>{p(e),t&&(d?.updateData(o,l,e,i),m(!1))};return n(Hi,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:null!=O?.edit?O.edit(r,e):n(t,{children:n(cp,{classes:{input:hm},componentSize:"small",variant:"outlined",onChange:e=>r(e.target.value),onBlur:e,value:f??"",type:u.inputType,fullWidth:!0,autoFocus:!0})})})}const w=null!=O?.view?O.view:u?.valueFormat?u.valueFormat(c):void 0===u?.toFixed||Number.isNaN(parseFloat(c))?c:parseFloat(Number(c).toFixed(u.toFixed)),S=Boolean(u?.editable||u?.showInModal||u?.onClick&&i[l]?.payload);return n(Hi,{label:i[l]?.tooltip??"",alertType:"error"===i[l]?.fill?"error":"success"===i[l]?.fill?"success":"default",children:r("div",Jm(Jm({className:je()(Gm,u?.rowsAlign?y[`align${u?.rowsAlign}`]:void 0,u?.showInModal?Rm:void 0,u?.onClick&&i[l]?.payload?cm:void 0,i[l]?.fill?y[i[l].fill]:void 0,u?.editable?um:void 0,u?.verticalAlign?y[`verticalAlign${u?.verticalAlign}`]:void 0)},S?{"data-vt-cell-action":""}:void 0),{},{onClick:S?e=>{e.ctrlKey||e.metaKey||e.shiftKey||(u?.editable?m(!0):u?.showInModal?b(!0):u?.onClick&&i[l]?.payload&&u.onClick(i[l]?.payload??{}))}:void 0,children:[n("span",{className:Um,children:w}),g&&n(Vh,{root:d?.tableContainerRef?.current,open:g,onClose:()=>v.current?.(),children:n(Xh,{type:"panel",children:n("div",{className:vm,children:w})})})]}))})}},Xm=(e,t)=>{const n=e.match(/(\d+|\D+)/g)||[],r=t.match(/(\d+|\D+)/g)||[],o=Math.max(n.length,r.length);for(let e=0;e<o;e++){const t=n[e]||"",o=r[e]||"",i=/^\d+$/.test(t),l=/^\d+$/.test(o);if(i&&l){const e=parseInt(t,10),n=parseInt(o,10);if(e!==n)return e-n}else{const e=t.localeCompare(o);if(0!==e)return e}}return 0};function $m(e){const{defaultValues:t=[void 0,void 0],actionWithSelected:o}=e,[i,l]=(0,Pe.useState)(t);(0,Pe.useEffect)(()=>{o(i)},[i]);const a=(0,Pe.useCallback)(()=>{l([void 0,void 0]),o([void 0,void 0])},[]);return r("div",{className:je()("dateFiltration-module__root__q1XLM"),children:[n(mf,{isPeriod:!0,componentSize:"small",variant:"outlined",fullWidth:!0,values:i,onValueChange:e=>{l(e)},tabIndex:-1}),n(Hi,{label:"Сбросить",children:n(Ge,{onClick:a,className:je()("dateFiltration-module__button__qR5Az"),variant:"text",componentSize:"small",textSecondary:!0,icon:n(ll,{})})})]})}var eg="numberFiltration-module__input__a8GyD";const tg=[{type:"item",name:"От — до",value:"range"},{type:"item",name:"Больше",value:"more"},{type:"item",name:"Меньше",value:"less"},{type:"item",name:"Равно",value:"equal"}];function ng(e){const{defaultValues:o=[-1/0,1/0],actionWithSelected:i}=e,[l,a]=(0,Pe.useState)(o[0]===-1/0&&o[1]===1/0?tg[0]:o[0]===o[1]?tg[3]:o[0]===-1/0?tg[2]:o[1]===1/0?tg[1]:tg[0]),[s,c]=(0,Pe.useState)(o),u=(e,t)=>{c(n=>"equal"===e?[t.length?+t:-1/0,t.length?+t:1/0]:"more"===e?[t.length?+t:-1/0,n[1]]:[n[0],t.length?+t:1/0])},d=(0,Pe.useCallback)(()=>{c([-1/0,1/0]),i([-1/0,1/0])},[]);return r("div",{className:je()("numberFiltration-module__root__sSnKZ"),children:[n(kd,{items:tg,componentSize:"small",variant:"filled",selected:l,onValueChange:e=>{if(e){const t=[...s];switch(e.value){case"more":t[1]=1/0;break;case"less":t[0]=-1/0;break;case"equal":const e=t[0]!==-1/0?t[0]:t[1];t[0]=e,t[1]=e}c(t),i(t),a(e)}},classes:{root:"numberFiltration-module__select__KO1Ce"},tabIndex:-1}),n("div",{className:je()("numberFiltration-module__inputs-container__Eqfwf"),children:"range"===l.value?r(t,{children:[n(cp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:eg},value:s[0]>-1/0&&s[0]<1/0?s[0]:"",onChange:e=>{u("more",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}}),n(cp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:eg},value:s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u("less",e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})]}):n(cp,{componentSize:"small",variant:"outlined",type:"number",classes:{root:eg},value:"more"===l.value?s[0]>-1/0&&s[0]<1/0?s[0]:"":s[1]>-1/0&&s[1]<1/0?s[1]:"",onChange:e=>{u(l.value,e.target.value)},onBlur:()=>i(s),onKeyUp:e=>{"Enter"===e.key&&(e.preventDefault(),i(s))}})}),n(Hi,{label:"Сбросить",children:n(Ge,{onClick:d,className:je()("numberFiltration-module__button__PJOUL"),variant:"text",componentSize:"small",textSecondary:!0,icon:n(ll,{})})})]})}function rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rg(Object(n),!0).forEach(function(t){ig(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ig(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lg(e){const{headerMeta:{sortable:o=!1,selectUnique:i=!1,sortType:l,sortAnotherName:a,filtrationByNumber:s=!1,filtrationByDate:c=!1,filtrationByValue:u=!1,valueFormat:d,toFixed:f},sortBy:p,setSortBy:h,filterBy:m,setFilterBy:g,headerName:b,containerRef:v,showUniqueValuesCount:y,leftAdditionalContent:O,rightAdditionalContent:w,children:S,rows:j,rowsForUniqueCount:P,externalValues:_}=e,x=a??b,{t:C}=Zu(),E=(0,Pe.useMemo)(()=>{const e=C("nntc_ui.view.virtualTable.noValue"),t=e=>null==e||""===e,n=e=>t(e)?"":String(e),r=n=>t(n)?e:d?d(n)?.toString()||e:void 0===f||Number.isNaN(parseFloat(n))?String(n)||e:parseFloat(Number(n).toFixed(f)).toString(),o=t=>t.sort((t,n)=>{const r=t.name.toString(),o=n.name.toString();return r===e?-1:o===e?1:Xm(r,o)}),i=e=>({name:r(e),value:n(e)});if(_)return o([..._.map(i).reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]);const l=j.map(e=>i(e[x]?.value));o(l);return[...l.reduce((e,t)=>(e.set(t.value,t),e),new Map).values()]},[j,x,d,f,_,C]),A=(0,Pe.useMemo)(()=>{const e=new Set;_?_.forEach(t=>e.add(null==t||""===t?"":String(t))):(P??j).forEach(t=>{const n=t?.[x]?.value;e.add(null==n||""===n?"":String(n))});const t=m.find(e=>e.columnName===x&&"value"===e.type),n=(t?.values??[]).map(e=>null==e||""===e?"":String(e));if(n.length>0){const t=new Set(n);let r=0;return e.forEach(e=>{t.has(e)&&(r+=1)}),r}return e.size},[P,j,x,m,_]),R=(0,Pe.useMemo)(()=>{const e={};return m.find(e=>e.columnName===x)?.values.forEach(t=>{e[null==t||""===t?"":String(t)]=!0}),e},[m,x]),k=(0,Pe.useMemo)(()=>m.find(e=>e.columnName===x&&"numberRange"===e.type)?.values,[m,x]),D=(0,Pe.useMemo)(()=>m.find(e=>e.columnName===x&&"dateRange"===e.type)?.values,[m,x]),M=e=>()=>{h(t=>t.some(t=>t.columnName===x&&t.direction===e)?t.filter(t=>!(t.columnName===x&&t.direction===e)):t.some(e=>e.columnName===x)?t.map(t=>t.columnName===x?og(og({},t),{},{direction:e}):og({},t)):t.concat([{columnName:x,direction:e,sortType:l}]))},L=m.some(e=>e.columnName===x&&"value"===e.type&&e.uniqueFirstPerValue),N=Object.keys(R).length>0||L,I=p.some(e=>e.columnName===x&&"desc"===e.direction),T=p.some(e=>e.columnName===x&&"asc"===e.direction),z=[];return i&&(z.push({type:"divider",name:C("nntc_ui.view.virtualTable.uniqueValues")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.uniqueOnly"),icon:n(oc,{}),selected:L,onClick:()=>{g(e=>{const t=e.findIndex(e=>e.columnName===x&&"value"===e.type);if(-1!==t){const n=e[t],r=!n.uniqueFirstPerValue;return r||0!==n.values.length?e.map((e,n)=>n!==t?e:r?og(og({},e),{},{uniqueFirstPerValue:!0}):{columnName:e.columnName,type:e.type,values:e.values}):e.filter((e,n)=>n!==t)}return[...e,{columnName:x,type:"value",values:[],uniqueFirstPerValue:!0}]})}})),o&&(z.push({type:"divider",name:C("nntc_ui.view.virtualTable.sort")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.AZ"),icon:n(fc,{}),selected:p.some(e=>e.columnName===x&&"asc"===e.direction),onClick:M("asc")}),z.push({type:"item",name:C("nntc_ui.view.virtualTable.ZA"),icon:n(gc,{}),selected:p.some(e=>e.columnName===x&&"desc"===e.direction),onClick:M("desc")})),r("div",{className:je()("headerDropdown-module__root__WMUvA"),children:[O?.(x),S?.(y&&n("div",{children:`(${A})`})),w?.(x),(o||i||u||c||s)&&n(Gl,{placement:"bottom-end",wrapTrigger:!0,root:v,description:r(t,{children:[s&&n(ng,{defaultValues:k,actionWithSelected:e=>{g(t=>{if(e[0]===-1/0&&e[1]===1/0)return[...t.filter(e=>!(e.columnName===x&&"numberRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"numberRange"===e.type);return-1!==r?n[r]=og(og({},n[r]),{},{values:e}):n.push({columnName:x,type:"numberRange",values:e}),n}})}}),c&&n($m,{defaultValues:D,actionWithSelected:e=>{g(t=>{if(void 0===e[0]||void 0===e[1])return[...t.filter(e=>!(e.columnName===x&&"dateRange"===e.type))];{const n=[...t],r=n.findIndex(e=>e.columnName===x&&"dateRange"===e.type);return-1!==r?n[r]=og(og({},n[r]),{},{values:e}):n.push({columnName:x,type:"dateRange",values:e}),n}})}}),u&&n("div",{className:je()("headerDropdown-module__checklist-wrap__P7ADR"),children:n(Pp,{items:E,selected:R,actionWithSelected:e=>{Object.entries(e).forEach(([t,n])=>{n||delete e[t]});const t=Object.keys(e).map(e=>""===e?null:e);g(e=>{if(0===t.length)return e.map(e=>e.columnName!==x||"value"!==e.type?e:e.uniqueFirstPerValue?og(og({},e),{},{values:[]}):null).filter(e=>null!==e);const n=[...e],r=n.findIndex(e=>e.columnName===x&&"value"===e.type);return-1!==r?n[r]=og(og({},n[r]),{},{values:t}):n.push({columnName:x,type:"value",values:t}),n})}})}),(o||i)&&n("div",{children:n(_d,{items:z})})]}),children:n(Hi,{label:C("nntc_ui.view.virtualTable.sortAndFiltration"),placement:"bottom-end",root:v,children:n(Ge,{componentSize:"small",variant:"text",textSecondary:!N&&!I&&!T,icon:n(N?vs:I?gc:T?fc:ea,{})})})})]})}function ag(e,t){const n=new Set,r=[];return e.forEach(e=>{const o=e[t]?(e[t].value||"")?.toString():"";n.has(o)||(n.add(o),r.push(e))}),r}const sg=e=>{if(e)return{editable:e.editable,sortable:e.sortable,sortType:e.sortType,sortAnotherName:e.sortAnotherName,filtrationByNumber:e.filtrationByNumber,filtrationByDate:e.filtrationByDate,filtrationByValue:e.filtrationByValue,selectUnique:e.selectUnique,width:e.width,headerAlign:e.headerAlign,rowsAlign:e.rowsAlign,valueFormat:e.valueFormat,showInModal:e.showInModal,onClick:e.onClick,label:e.label,verticalAlign:e.verticalAlign,toFixed:e.toFixed,inputType:e.inputType}},cg=(e,t)=>e.map(e=>({id:e.id,accessorKey:e.accessorKey,accessorFn:e.accessorKey?t=>t[e.accessorKey]?.value:void 0,header:()=>e.label,meta:sg(t?.accessorKey?t:e),columns:e.columns?cg(e.columns,e):void 0})),ug=(e,t,n)=>e[t+1]&&e[t].column.columnDef.id===e[t+1].column.columnDef.id&&t<n?[e[t+1]].concat(ug(e,t+1,n)):[],dg=(e,t,n)=>e[t-1]&&!e[t-1].headers[n].column.columnDef.meta?.label&&e[t-1].headers[n].column.columnDef.id!==e[t].headers[n].column.columnDef.id?[e[t-1].headers[n]].concat(dg(e,t-1,n)):[],fg=(e,t,n)=>e[t+1]&&dg(e,t+1,n).length?[e[t+1].headers[n]].concat(fg(e,t+1,n)):[],pg=(e,t)=>e[t-1]&&e[t-1].column.columnDef.id===e[t].column.columnDef.id?[e[t-1]].concat(pg(e,t-1)):[];function hg(e,t){const n=e[t.columnName],r=n?.value;if("dateRange"===t.type){const e=Md()(t.values[0]),n=Md()(t.values[1]);if(!e.isValid()||!n.isValid())return!1;if(null==r||""===r)return!1;const o=Md()(r);return!!o.isValid()&&!o.isBefore(e,"day")&&!o.isAfter(n,"day")}const o=t.values.some(e=>null==e||""===e);return n&&null!=r&&""!==r?"numberRange"===t.type?r>=t.values[0]&&r<=t.values[1]:t.values.includes(r.toString())||t.values.includes(r):o}const mg=(e,t)=>{if(t.length){const n=t[t.length-1],r=n.values.length?e.filter(e=>hg(e,n)||1===e.isNew?.value):e;return mg(r,t.slice(0,t.length-1))}return e},gg=(e,t)=>{if(t.length){const n=t[t.length-1],r=e.sort((e,t)=>{const r=e[n.columnName]?.value?.toString()??"",o=t[n.columnName]?.value?.toString()??"";if("alphanumeric"===n.sortType){const e=Xm(r,o);return"asc"===n.direction?e:-e}const i=r.localeCompare(o);return"asc"===n.direction?i:-i});return gg(r,t.slice(0,t.length-1))}return e},bg=(e,t)=>{const n=Math.min(e,t),r=Math.max(e,t),o=[];for(let e=n;e<=r;e+=1)o.push(e);return o},vg=e=>e instanceof Element&&Boolean(e.closest(["button","a","input","textarea","select",'[role="menuitem"]','[role="menu"]','[role="listbox"]','[role="dialog"]',"[data-floating-ui-portal]",'[contenteditable="true"]'].join(", ")));function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Og(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(n),!0).forEach(function(t){wg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Sg=(0,Pe.forwardRef)((e,o)=>{const{rows:i,columns:l,additionalColumnsViews:a,onChangeCell:s,cellWidth:c,rowButtons:u,fixedColumnsCount:d=0,headerRowHeight:f=[32],bodyRowHeight:p=32,rowActionWidth:h=77,classes:m,dynamicRowHeight:g=!1,height:b,scrollToBottom:v,useTableContainerAsRootForPopup:O,componentSize:w="small",borders:S="horizontal",showUniqueValuesCount:j=!1,globalFilters:P,globalSorts:_,onFiltersChange:x,onSortsChange:C,leftAdditionalHeaderContent:E,rightAdditionalHeaderContent:A,showRowsNumbers:R,stripedRows:k=!0,enableSelectRows:D=!1,onSelectRowsChange:M,globalSelectedRows:L,manualRows:N=!1,externalFilterValues:I,windowed:T=!1,totalCount:z,page:V,pageSize:F,onRequestPage:H,loadingPage:q=!1,lockBody:B=!1}=e,{t:W}=Zu(),K=d+(R?1:0),[G,U]=(0,Pe.useState)(P??[]),[Y,J]=(0,Pe.useState)([..._??[],{columnName:"isNew",direction:"desc"}]),[Q,Z]=(0,Pe.useState)(()=>new Set),X=(0,Pe.useRef)(null),$=(0,Pe.useRef)(null),ee=(0,Pe.useRef)("down"),te=(0,Pe.useRef)(0),ne=(0,Pe.useRef)("down"),re=(0,Pe.useRef)(Q),oe=(0,Pe.useRef)(D?L??[]:[]),ie=(0,Pe.useRef)([]),le=(0,Pe.useRef)(null),ae=(0,Pe.useRef)(null),se=(0,Pe.useRef)(null),ce=(0,Pe.useRef)(M),ue=(0,Pe.useRef)(D);re.current=Q,ce.current=M,ue.current=D;const de=Boolean(T&&F&&F>0),fe=de?(V??0)*F:0,pe=de?Math.max(0,z??0):0,he=(0,Pe.useMemo)(()=>R?`rowNumber_${qt()}`:null,[R]),me=(0,Pe.useMemo)(()=>{if(!he)return cg(l);const e=t=>Og(Og({id:he},t?.columns?.length?void 0:{accessorKey:he}),{},{label:"#",columns:t?.columns?.map(t=>e(t))}),t=[e(l[0]),...l];return cg(t)},[l,he]),ge=(0,Pe.useMemo)(()=>{if(N)return i;const e=[...i],t=G.filter(e=>!("value"!==e.type||!e.uniqueFirstPerValue||0!==e.values.length)||i.some(t=>hg(t,e))),n=t.length?mg(e,t):G.some(e=>"numberRange"===e.type&&e.values.some(e=>e!==1/0&&e!==-1/0)||"dateRange"===e.type&&e.values.some(e=>!Md()(e).isSame(Md()(0))&&!Md()(e).isSame(Md()(Number.MAX_SAFE_INTEGER))))?[]:e;let r=Y.length?gg(n,Y):n;for(const e of t)"value"===e.type&&e.uniqueFirstPerValue&&(r=ag(r,e.columnName));return r},[i,Y,G,N]),be=(0,Pe.useMemo)(()=>{const e=he?ge.map((e,t)=>Og(Og({},e),{},{[he]:{value:fe+t+1}})):ge;return N&&de&&0===e.length&&pe>0||window.dispatchEvent(new CustomEvent("filteringRows",{detail:e})),e},[ge,he,fe,N,de,pe]);ie.current=ge;const ve=(0,Pe.useCallback)((e,t)=>{const n=ie.current,r=[...e].filter(e=>e>=0&&e<n.length).sort((e,t)=>e-t),o=new Set(r),i=r.map(e=>n[e]),l=re.current,a=o.size===l.size&&r.every(e=>l.has(e));a||(Z(o),re.current=o,oe.current=i,ce.current?.(i)),null!==t&&n[t]?(le.current=t,ae.current=n[t]):null===t&&(le.current=null,ae.current=null)},[]);(0,Pe.useEffect)(()=>{const e=ae.current;if(e){const t=ge.indexOf(e);le.current=-1===t?null:t,-1===t&&(ae.current=null)}if(0===oe.current.length)return void(re.current.size>0&&ve(new Set,le.current));const t=((e,t)=>{if(0===t.length)return new Set;const n=new Set(t),r=new Set;return e.forEach((e,t)=>{n.has(e)&&r.add(t)}),r})(ge,oe.current),n=t.size>0?Math.max(...t):null;ve(t,le.current??n)},[ge,ve]),(0,Pe.useEffect)(()=>{!D&&re.current.size>0&&ve(new Set,null)},[D,ve]);const ye=(0,Pe.useMemo)(()=>{if(N)return[];const e=[...i];return Array.from({length:G.length+1},(t,n)=>mg(e,G.slice(0,n)))},[i,G,N]),Oe=(0,Pe.useMemo)(()=>c??(e=>he&&0===e?8*(de?pe:be.length).toString().length+24:me[e]?.meta?.width??200),[c,me,be,he,de,pe]),we=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=Pe.useState(()=>({current:Mh(t)})),[r,o]=Pe.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:be,columns:me,defaultColumn:Zm,manualSorting:!0,enableColumnPinning:!0,getCoreRowModel:e=>qp(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);const l=[];for(let s=0;s<t.length;s++){const c=Yp(e,e._getRowId(t[s],s,i),t[s],s,o,void 0,null==i?void 0:i.id);var a;n.flatRows.push(c),n.rowsById[c.id]=c,l.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(t[s],s),null!=(a=c.originalSubRows)&&a.length&&(c.subRows=r(c.originalSubRows,o+1,c)))}return l};return n.rows=r(t),n},Bp(e.options,"debugTable",0,()=>e._autoResetPageIndex())),initialState:{columnPinning:{left:me.filter((e,t)=>t<K).map(e=>e.id).filter(e=>e).map(e=>e)??[]}},meta:{updateData:(e,t,n,r)=>{s?.(e,t,n,r)},tableContainerRef:X,additionalColumnsViews:a}}),{rows:Se}=we.getRowModel(),_e=we.getHeaderGroups(),xe=Lu({count:de?pe:Se.length,getScrollElement:()=>X?.current,estimateSize:()=>p,overscan:5}),Ce=Lu({horizontal:!0,count:_e[0]?.headers.length??1,rangeExtractor:(0,Pe.useCallback)(e=>{const t=[...Array(K)].map((e,t)=>t);return[...new Set([...t,...Pu(e)])].sort((e,t)=>e-t)},[]),getScrollElement:()=>X?.current,estimateSize:Oe,overscan:5}),Ee=(0,Pe.useMemo)(()=>[...Array(K)].reduce((e,t,n)=>e+Oe(n),0),[K,Oe]),Ae=(0,Pe.useMemo)(()=>{const e=_e.length-f.length,t=[...f];if(e>0)for(let n=0;n<e;n++)t.push(32);return t},[f,_e]),Re=(0,Pe.useMemo)(()=>Ae.reduce((e,t,n)=>n<_e.length?e+t:e,0),[Ae,_e]),ke=(0,Pe.useCallback)(e=>Ae.reduce((t,n,r)=>r<e?t+n:t,0),[Ae,_e]),De=xe.getTotalSize(),Me=Ce.getTotalSize(),Le=De+Re,Ne=Me+(u?h:0),Ie=()=>{U([])},Te=()=>{J([{columnName:"isNew",direction:"desc"}])};(0,Pe.useImperativeHandle)(o,()=>({resetFilters:Ie,resetSorts:Te})),(0,Pe.useEffect)(()=>{const e=function(){const e=this.querySelectorAll(`.${gm}`);e?.forEach(e=>e.style.marginLeft=`${this.scrollLeft}px`)};return X?.current&&(X.current.addEventListener("scroll",e),v&&X.current.scrollTo(0,X.current.scrollHeight)),()=>{X?.current&&X.current.removeEventListener("scroll",e)}},[X,v]);const ze=xe.getVirtualItems();(0,Pe.useEffect)(()=>{if(!de||!H||q||!F||pe<=0||0===ze.length)return;const e=X.current;if(!e)return;const{scrollTop:t}=e;t>te.current+1?ne.current="down":t<te.current-1&&(ne.current="up"),te.current=t;const n="up"===ne.current,r=Math.max(0,e.clientHeight-Re),o=n?1/3:1-1/3,i=Math.max(0,t+r*o-xe.options.scrollMargin),l=xe.getVirtualItemForOffset(i);if(!l)return;const a=Math.floor(l.index/F);a!==(V??0)&&(ee.current=a<(V??0)?"up":"down",H(a))},[de,H,q,F,pe,V,Re,ze,xe]),(0,Pe.useLayoutEffect)(()=>{if(!q)return;const e=X.current,t=$.current;if(!e||!t)return;const n=()=>{t.style.width=`${e.clientWidth}px`};n();const r=new ResizeObserver(n);return r.observe(e),()=>r.disconnect()},[q]);const Ve=Ce.getVirtualItems(),Fe=Ve[Ve.length-1]?.index,He=(0,Pe.useMemo)(()=>new Map(ze.map(e=>[e.index,e.size])),[ze]),qe=(0,Pe.useCallback)(e=>He.get(e)??p,[p,He]),Be=(0,Pe.useCallback)((e,t)=>{const n=Math.max(1,Math.floor(t)),r=de?pe:Se.length,o=Math.min(r-1,e+n-1),i=o-e+1;let l=0;for(let t=e;t<=o;t+=1)l+=qe(t);const a="all"===S||"horizontal"===S?Math.max(0,i-1):0;return Math.max(0,l-a)},[S,qe,de,Se.length,pe]),We=(0,Pe.useCallback)((e,t)=>{for(let n=e-1;n>=0;n-=1){const r=Se[n]?.original?.[t];if(n+Math.max(1,r?.rowspan??1)-1>=e)return!0}return!1},[Se]),Ke=(0,Pe.useCallback)(e=>{const t=X.current,n=de?pe:ie.current.length;if(!t||0===n)return null;const r=e-t.getBoundingClientRect().top+t.scrollTop-Re;let o;if(r<0)o=0;else if(r>=xe.getTotalSize())o=n-1;else{const e=xe.measurementsCache;if(o=-1,e.length>0){let t=0,i=e.length-1;for(;t<=i;){const l=t+i>>1,a=e[l];if(r<a.start)i=l-1;else{if(!(r>=a.end)){o=Math.min(n-1,a.index);break}t=l+1}}}if(-1===o)if(g){const e=xe.getVirtualItems();if(0===e.length)return null;o=r<e[0].start?e[0].index:e[e.length-1].index}else o=Math.max(0,Math.min(n-1,Math.floor(r/p)))}if(!de)return o;const i=o-fe,l=ie.current.length;return i>=0&&i<l?i:null},[p,g,de,fe,xe,Re,pe]),Ue=(e,t)=>{const n=se.current;if(!n)return;const r=(e=>{const{startIndex:t,currentIndex:n,ctrl:r,shift:o,anchorIndex:i,baseIndexes:l,isDrag:a}=e;if(o&&null!==i){const e=bg(i,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:i}}if(a){const e=bg(t,n);return{indexes:r?new Set([...l,...e]):new Set(e),anchor:t}}if(r){const e=new Set(l);return e.has(t)?e.delete(t):e.add(t),{indexes:e,anchor:t}}return 1===l.size&&l.has(t)?{indexes:new Set,anchor:null}:{indexes:new Set([t]),anchor:t}})({startIndex:n.startIndex,currentIndex:e,ctrl:n.ctrl,shift:n.shift,anchorIndex:n.anchorIndex,baseIndexes:n.baseIndexes,isDrag:t});ve(r.indexes,r.anchor)},Ye=e=>{const t=se.current;t&&e.pointerId===t.pointerId&&(t.isDragCapable||t.hasDragged||Ue(t.startIndex,!1),se.current=null,e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId))},Je=(0,Pe.useCallback)((e,t)=>1===e?.isNew?.value||Q.has(t)?"var(--theme-table-selected-row)":t%2!=0?"var(--theme-table-even-row)":"var(--theme-table-background)",[Q]),Qe=(0,Pe.useMemo)(()=>{const e=Se.length,t=new Map;return Se.forEach((n,r)=>{const o=(n.getAllCells().reduce((e,t)=>Math.max(e,Math.max(1,n.original?.[t.column.id]?.rowspan??1)),1)-1)*(e+1)+(e-r+1);t.set(r,o)}),t},[Se]),Ze=(0,Pe.useMemo)(()=>Se.length*Se.length+Se.length+10,[Se.length]),Xe=e=>{const o=e.column.columnDef.meta?.label;if("string"==typeof o){const i=o.split(/\r\n|\\r\\n|\n|\\n/);if(i.length>1)return n(t,{children:i.map((t,o)=>r(Pe.Fragment,{children:[t,o<i.length-1&&n("br",{})]},`${e.id}_${o}`))})}return Lh(e.column.columnDef.header,e.getContext())},$e=(()=>{if(!q||!de||0===Se.length)return null;const e=ee.current,t="up"===e?fe:fe+Se.length-1,n=xe.measurementsCache[t],r=n?.start??t*p;return{direction:e,top:Re+("up"===e?r:r+(n?.size??p))-xe.options.scrollMargin}})(),[et,tt]=Ve.length>0?[K&&Ve[K].index!==K?Ve[K].start-Ee:Ve[0].start,Me-Ve[Ve.length-1].end]:[0,0];return(0,Pe.useEffect)(()=>{x?.(G)},[G]),(0,Pe.useEffect)(()=>{C?.(Y.filter(e=>"isNew"!==e.columnName))},[Y]),r("div",{className:je()(_m,y[w],y[`borders${nt=S,nt[0].toUpperCase()+nt.substring(1)}`],m?.root),style:b?{height:b}:void 0,children:[n("div",{ref:X,className:je()(Nm,"styledScroll",D&&Em),onPointerDown:D?e=>{if(!ue.current||0!==e.button)return;const t=(e=>{if(!(e instanceof Element))return null;const t=e.closest(`.${qm}`);if(!t)return null;const n=Number(t.getAttribute("data-index"));if(!Number.isFinite(n))return null;if(!de)return n;const r=n-fe,o=ie.current.length;return r>=0&&r<o?r:null})(e.target);if(null===t){if(vg(e.target)||(e=>{const t=e.currentTarget;if(!(t instanceof HTMLElement)||e.target!==t)return!1;const n=t.getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,i=t.offsetWidth-t.clientWidth>0&&r>=t.clientWidth,l=t.offsetHeight-t.clientHeight>0&&o>=t.clientHeight;return i||l})(e)||e.target instanceof Element&&Boolean(e.target.closest(`.${Tm}`)))return;return void(re.current.size>0&&ve(new Set,null))}if(vg(e.target))return;const n=e.target instanceof Element&&null!==e.target.closest("[data-vt-cell-action]"),r=e.ctrlKey||e.metaKey||e.shiftKey;if(n&&!r)return;const o="mouse"===e.pointerType||"pen"===e.pointerType;se.current={pointerId:e.pointerId,startIndex:t,startX:e.clientX,startY:e.clientY,baseIndexes:new Set(re.current),ctrl:e.ctrlKey||e.metaKey,shift:e.shiftKey,anchorIndex:le.current,isDragCapable:o&&!n,hasDragged:!1},n?Ue(t,!1):o&&(e.currentTarget.setPointerCapture(e.pointerId),Ue(t,!1))}:void 0,onPointerMove:D?e=>{const t=se.current;if(!t||!t.isDragCapable||e.pointerId!==t.pointerId)return;const n=e.clientX-t.startX,r=e.clientY-t.startY,o=n*n+r*r;if(!t.hasDragged&&o<16)return;t.hasDragged=!0,e.preventDefault(),(e=>{const t=X.current;if(!t)return;const n=t.getBoundingClientRect(),r=e-n.top;r<32+Re?t.scrollTop-=20:r>n.height-32&&(t.scrollTop+=20)})(e.clientY);const i=Ke(e.clientY);null!==i&&Ue(i,!0)}:void 0,onPointerUp:D?Ye:void 0,onPointerCancel:D?Ye:void 0,onDragStart:D?e=>e.preventDefault():void 0,children:r("div",{className:Lm,style:{width:`${Ne}px`,height:`${Le}px`},children:[n("div",{style:{position:"sticky",top:0,zIndex:Ze},children:_e.map((e,t)=>{const o=e=>{const t=e.column.columnDef.meta,o=t?.sortAnotherName??e.column.columnDef.id??e.id,i=G.findIndex(e=>e.columnName===o),l=N?I?.[o]??[]:void 0,a=l?[]:-1===i?be:ye[i];return n("div",{className:je()(zm),children:e.column.columnDef.id===e.column.columnDef.accessorKey&&e.column.columnDef.id!==he&&(t?.sortable||t?.selectUnique||t?.filtrationByValue||t?.filtrationByDate||t?.filtrationByNumber||t&&j)?n(lg,{headerMeta:t,sortBy:Y,setSortBy:J,filterBy:G,setFilterBy:U,rows:a,rowsForUniqueCount:be,externalValues:l,headerName:e.column.columnDef.id??e.id,containerRef:O?X:void 0,showUniqueValuesCount:j,leftAdditionalContent:E,rightAdditionalContent:A,children:n=>r("div",{className:je()(mm,t?.headerAlign?y[`align${t?.headerAlign}`]:em),children:[Xe(e),n]})}):n("div",{className:je()(mm,t?.headerAlign?y[`align${t?.headerAlign}`]:em),children:Xe(e)})})};return r(Pe.Fragment,{children:[[...Array(K)].map((r,i)=>{const l=e.headers[i],a=ug(e.headers,i,Fe),s=fg(_e,t,i);return n("div",{className:je()(Tm,0===t?pm:void 0,!s.length&&i!==e.headers.length-1&&Hm,0===i&&Fm,s.length&&!a.length&&Vm,gm),style:{zIndex:Ze+1,width:`${Oe(i)}px`,height:`${Ae[t]}px`,transform:`translateX(${Array.from({length:i},(e,t)=>Oe(t)).reduce((e,t)=>e+t,0)}px) translateY(${ke(t)}px)`},children:o(l)},`${e.id}-${l.id}`)}),Ve.map(r=>{if(r.index>K-1){const i=e.headers[r.index],l=ug(e.headers,r.index,Fe),a=pg(e.headers,r.index),s=fg(_e,t,r.index),c=dg(_e,t,r.index),u=l.length||a.length?r.size+l.reduce((e,t)=>e+(t.column.columnDef.meta?.width??0),0):r.size,d=l.length||a.length?Ze+l.length+2:void 0,f=c.length?Ae[t]+c.reduce((e,n,r)=>e+(Ae[t-r-1]??0),0):Ae[t],p=c.length?ke(t)-c.reduce((e,n,r)=>e+(Ae[t-r-1]??0),0):ke(t);return n("div",{className:je()(Tm,0===t&&pm,!s.length&&r.index!==e.headers.length-1&&Hm,0===r.index&&Fm,s.length&&!l.length&&Vm),style:{width:`${u}px`,zIndex:d,height:`${f}px`,transform:`translateX(${r.start+(K?-1:0)}px) translateY(${p}px)`,borderTop:"none"!==S&&0===p?"1px solid var(--border-color)":void 0},children:o(i)},`${e.id}-${i.id}`)}return null}),!!u&&n("div",{className:je()(Tm,0===t?pm:void 0),style:{width:`${h}px`,height:`${Ae[t]}px`,transform:`translateX(${Me+(K?-2:0)}px) translateY(${ke(t)}px)`}})]},e.id)})}),ze.map(e=>{const t=e.index-fe,o=t>=0&&t<Se.length?Se[t]:void 0;return o?r("div",{"data-index":e.index,ref:g?xe.measureElement:void 0,className:je()(qm,k&&e.index%2!=0&&fm,(1===o.original?.isNew?.value||Q.has(t))&&Am),style:Og(Og({zIndex:Qe.get(t)??1},!g&&{height:e.size}),{},{transform:"translateY("+(Re+e.start-xe.options.scrollMargin)+"px)"}),children:[n("div",{style:{width:`${et}px`}}),Ve.map(r=>{const i=o.getAllCells()[r.index],l="left"===i.column.getIsPinned(),a=o.original?.[i.column.id],s=Math.max(1,a?.rowspan??1),c=We(t,i.column.id),u=s>1&&!c;return n("div",{"data-col-index":r.index,className:je()(Im,l&&Dm),style:Og(Og({},l&&{left:r.start,marginLeft:0===r.index?-1:0}),{},{width:`${r.size}px`},!g&&!u&&{overflow:"hidden"}),"data-index":e.index,children:!c&&(u?n("div",{className:Cm,style:{height:`${Be(e.index,s)}px`,backgroundColor:Je(o.original,t)},children:Lh(i.column.columnDef.cell,i.getContext())}):Lh(i.column.columnDef.cell,i.getContext()))},`cell-${e.key}-${r.key}`)}),!!u&&n("div",{className:je()(Im),style:Og({width:`${h}px`,justifyContent:"flex-start",padding:"4px"},!g&&{overflow:"hidden"}),children:u?.(o.original)?.map(e=>n(Pe.Fragment,{children:e.template?e.template(e):n(Hi,{label:e.title,placement:"top",wrapTrigger:!0,classes:{trigger:xm},children:n(Ge,{onClick:()=>e.onClick?.(t,o.original),componentSize:"small",variant:"text",icon:e.icon})})},e.title))}),n("div",{style:{width:`${tt}px`}})]},`row-${e.key}`):n("div",{"data-index":e.index,className:je()(qm,k&&e.index%2!=0&&fm),style:{height:e.size,transform:"translateY("+(Re+e.start-xe.options.scrollMargin)+"px)"}},`row-${e.key}`)}),$e&&n("div",{className:wm,style:{top:$e.top,zIndex:Ze-1},children:n("div",{ref:$,className:je()(Om,"up"===$e.direction&&Sm),children:n("div",{className:ym,role:"status",children:W("nntc_ui.view.virtualTable.loadingData")})})}),("all"===S||"vertical"===S||"horizontal"===S)&&r("div",{className:rm,style:{zIndex:Ze+2},children:[n("div","all"===S||"vertical"===S?{className:je()(jm,"all"===S&&Pm)}:{className:om}),("all"===S||"horizontal"===S)&&n("div",{className:sm})]})]})}),B&&n("div",{className:nm,style:{"--body-lock-top":`${Re}px`}})]});var nt});var jg="treeViewItem-module__selectable__ZflaR",Pg="treeViewItem-module__selected__JQfHF";const _g=(0,Pe.memo)(function e({title:t,value:o,searchValue:i,selected:l,onSelect:a,type:s,isSelectable:c,startIcons:u,children:d}){const[f,p]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{p(!!i)},[i]);const h=!!d?.length,m=s&&u?.[s],g=l[o];return r("div",{children:[r("div",{className:je()("treeViewItem-module__item__x24lD",{[jg]:c}),onClick:()=>{c&&a?a(o):p(!f)},children:[h&&n(zs,{}),r("div",{className:je()("treeViewItem-module__title__LS87U",{[Pg]:g}),children:[m,n(vt,{variant:"subtitle2",children:t}),c&&n("span",{className:"treeViewItem-module__select-icon__Psa6v",children:n(g?ls:Ql,{})})]})]}),f&&h&&n("div",{className:"treeViewItem-module__children__zgXjR",children:d.map(t=>n(e,{title:t.name,value:t.id,children:t.children,selected:l,searchValue:i,type:t.type,isSelectable:t.isSelectable,startIcons:u,onSelect:a},t.id))})]})});function xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach(function(t){Eg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Eg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ag=["data","selected","startIcons","onSelect","withSearch","className"];function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rg(Object(n),!0).forEach(function(t){Dg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Mg=(0,Pe.forwardRef)(function(e,t){let{data:o,selected:i,startIcons:l,onSelect:a,withSearch:s=!1,className:c}=e,u=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ag);const[d,f]=(0,Pe.useState)(""),p=(0,Pe.useCallback)(e=>f(e.target.value),[]),h=(0,Pe.useMemo)(()=>i.reduce((e,t)=>(e[t]=!0,e),{}),[i]),m=(0,Pe.useMemo)(()=>((e,t)=>{const n=t.toLowerCase(),r=(e,t)=>{if(t.name.toLowerCase().includes(n))return e.push(t),e;if(Array.isArray(t.children)){const n=t.children.reduce(r,[]);n.length&&e.push(Cg(Cg({},t),{},{children:n}))}return e};return e.reduce(r,[])})(o,d),[o,d]);return r("div",kg(kg({ref:t,className:c},u),{},{children:[s&&n(cp,{variant:"outlined",startIcon:n(ec,{}),value:d,fullWidth:!0,onChange:p,classes:{root:"treeView-module__search__dvz4l"}}),n("div",{className:"styledScroll",children:m.map(({id:e,name:t,children:r})=>n(_g,{title:t,value:e,searchValue:d,children:r,startIcons:l,onSelect:a,selected:h},e))})]}))}),Lg=(0,Pe.memo)(Mg);var Ng="pairs-module__labels-with-borders__R7DHF",Ig="pairs-module__row-container-borders__aZqF4",Tg="pairs-module__values-with-borders__IoG1U";function zg(e){const{label:t}=e,[r,o]=(0,Pe.useState)(t);return n(Hi,{label:r,children:n(vt,{style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"},onMouseEnter:e=>{o(e.currentTarget.scrollWidth>e.currentTarget.clientWidth?t:"")},children:t})})}const Vg=["pairs","column1Width","column2Width","showBorder","minRowHeight","classes","className","style"];function Fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fg(Object(n),!0).forEach(function(t){qg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qg(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bg=(0,Pe.forwardRef)(function(e,o){let{pairs:i,column1Width:l="50%",column2Width:a="50%",showBorder:s,minRowHeight:c,classes:u,className:d,style:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Vg);return n("div",Hg(Hg({ref:o,className:je()(d,u?.root),style:f},p),{},{children:i.map((e,o)=>n("div",{style:{minHeight:c,display:"flex"},className:je()(u?.rowContainer,{[Ig]:s}),children:e&&r(t,{children:[n("div",{className:je()("pairs-module__labels-container__Sr8b_",u?.labelsContainer,{[Ng]:s}),style:{width:l,minWidth:l},children:n(vt,{className:"pairs-module__dim-typography__WR4xl",children:e.label})}),n("div",{style:{width:a,minWidth:a},className:je()("pairs-module__values-container__jB2cJ",u?.valuesContainer,{[Tg]:s}),children:n(zg,{label:e.value})})]})},o))}))});var Wg="chip-module__clickable__TUTgS",Kg="chip-module__filled__EHPO6",Gg="chip-module__icon__lCVDX",Ug="chip-module__icon-clickable__pVkQ_",Yg="chip-module__icon-left__ErNwI",Jg="chip-module__icon-right__CrocA",Qg="chip-module__icon-right-slot__wpFIw",Zg="chip-module__label__zdrBP",Xg="chip-module__medium__UhEci",$g="chip-module__outlined__r71l2",eb="chip-module__root__PRr_w",tb="chip-module__secondary__A_nQw",nb="chip-module__small__dtqpK",rb="chip-module__with-icon__wzJU8";const ob=["variant","componentSize","icon","iconPlacement","secondary","onClick","onIconClick","children","classes","className"];function ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ib(Object(n),!0).forEach(function(t){ab(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ab(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sb=(0,Pe.forwardRef)(function(e,t){let{variant:o="filled",componentSize:i="medium",icon:l,iconPlacement:a="right",secondary:s,onClick:c,onIconClick:u,children:d,classes:f,className:p}=e,h=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ob);const m=e=>{e.stopPropagation(),u?.()},g=u?"button":"span",b=!!l&&"left"===a,v=!!l&&"right"===a;return r("div",lb(lb({ref:t,className:je()(eb,O[o],O[i],!!l&&rb,b&&Yg,v&&Jg,s&&tb,c&&Wg,p,f?.root),tabIndex:c?0:void 0,role:c?"button":void 0},h),{},{onClick:c,children:[b&&n(g,{className:je()(Gg,u&&Ug,f?.icon),onClick:u?m:void 0,"aria-label":u?"Удалить":void 0,children:l}),d&&n("span",{className:je()(Zg,f?.label),children:d}),v&&n(g,{className:je()(Gg,Qg,u&&Ug,f?.icon),onClick:u?m:void 0,"aria-label":u?"Удалить":void 0,children:l})]}))}),cb=["width","height","className","classes","alt"];function ub(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function db(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fb=(0,Pe.forwardRef)(function(e,t){let{width:r=60,height:o=1.5*r,className:i,classes:l,alt:a="loading"}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,cb);return n("img",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ub(Object(n),!0).forEach(function(t){db(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({ref:t,src:"data:image/gif;base64,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",alt:a,width:r,height:o,className:je()("loader-module__root__RU8Ov",i,l?.root)},s))});var pb="alert-module__default__Wedqm",hb="alert-module__error__hMcQT",mb="alert-module__icon__E2Ch1",gb="alert-module__info___t4NH",bb="alert-module__medium__Z731x",vb="alert-module__message__RhPdI",yb="alert-module__root__OeAcB",Ob="alert-module__small__m75_f",wb="alert-module__success__frW1w",Sb="alert-module__warning__p4tWV";const jb=["alertType","componentSize","icon","children","classes","className","role"];function Pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pb(Object(n),!0).forEach(function(t){xb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cb={success:n(ls,{}),warning:n(Rs,{}),error:n(el,{}),info:n(xs,{}),default:null},Eb=(0,Pe.forwardRef)(function(e,t){let{alertType:o="info",componentSize:i="medium",icon:l,children:a,classes:s,className:c,role:u}=e,d=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,jb);const f=!1===l?null:l??Cb[o];return r("div",_b(_b({ref:t,role:u??"alert",className:je()(yb,w[o],w[i],c,s?.root)},d),{},{children:[null!=f&&n("span",{className:je()(mb,s?.icon),"aria-hidden":!0,children:f}),null!=a&&!1!==a&&n("div",{className:je()(vb,s?.message),children:a})]}))});var Ab="card-module__actions__ZJ6UM",Rb="card-module__body-full-size__RmpRw",kb="card-module__body-padded__l5QS5",Db="card-module__body-padded-no-header__ZbnPS",Mb="card-module__header__n_G4u",Lb="card-module__header-overlay__uPDfl",Nb="card-module__medium__pVsKH",Ib="card-module__root__GQS7Y",Tb="card-module__small__wzZOs";const zb=["surfaceType","componentSize","title","actions","children","classes","className","headerOverlay","fullSizeBody"];function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vb(Object(n),!0).forEach(function(t){Hb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hb(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qb=(0,Pe.forwardRef)(function(e,t){let{surfaceType:o="primary",componentSize:i="medium",title:l,actions:a,children:s,classes:c,className:u,headerOverlay:d=!0,fullSizeBody:f=!1}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,zb);const h=!!l||!!a;return r(Xh,Fb(Fb({ref:t,type:o,className:u,classes:{root:je()(Ib,S[i],c?.root)}},p),{},{children:[h&&r("div",{className:je()(Mb,d&&Lb,c?.header),children:[l??n("div",{}),!!a&&n("div",{className:je()(Ab,c?.actions),children:a})]}),n("div",{className:je()(f?Rb:h?kb:Db,c?.body),children:s})]}))});var Bb="collapse-module__content__RPGR6",Wb="collapse-module__header__O2tiZ",Kb="collapse-module__icon__nZ6Ep",Gb="collapse-module__medium__L7bmb",Ub="collapse-module__root__FEBYR",Yb="collapse-module__small__oMCcw",Jb="collapse-module__title__lBHNR";const Qb=["title","componentSize","defaultOpen","open","onOpenChange","disabled","children","classes","className"];function Zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Xb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zb(Object(n),!0).forEach(function(t){$b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $b(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ev=(0,Pe.forwardRef)(function(e,t){let{title:o,componentSize:i="medium",defaultOpen:l=!1,open:a,onOpenChange:s,disabled:c=!1,children:u,classes:d,className:f}=e,p=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Qb);const h=yt(),m=`${h}-header`,g=void 0!==a,[b,v]=(0,Pe.useState)(l),y=g?a:b,O=y?Ls:zs;return r("div",Xb(Xb({ref:t,className:je()(Ub,j[i],f,d?.root)},p),{},{children:[r("button",{type:"button",id:m,className:je()(Wb,j[i],d?.header),"aria-expanded":y,"aria-controls":h,disabled:c,onClick:()=>{if(c)return;const e=!y;g||v(e),s?.(e)},children:[n(vt,{variant:"small"===i?"overline":"subtitle3",className:je()(Jb,j[i],d?.title),children:o}),n("span",{className:je()(Kb,d?.icon),"aria-hidden":!0,children:n(O,{size:16})})]}),y&&n("div",{id:h,role:"region","aria-labelledby":m,className:je()(Bb,j[i],d?.content),children:u})]}))});var tv="tabs-module__disable-border__Vw9nt",nv="tabs-module__disabled__e_X85",rv="tabs-module__extraLarge__Vr50m",ov="tabs-module__filled__Kzrnb",iv="tabs-module__filled-tabs___LvVq",lv="tabs-module__has-actions__OD8xm",av="tabs-module__icon-only__qDPjH",sv="tabs-module__large__v3OJM",cv="tabs-module__medium__dvN0f",uv="tabs-module__root__m7YiQ",dv="tabs-module__scrollable__eR0BR",fv="tabs-module__selected__YEXTT",pv="tabs-module__selected-filled__MkMIt",hv="tabs-module__selected-item-filled__eUWV8",mv="tabs-module__small__hiwdI",gv="tabs-module__tab__NoNie",bv="tabs-module__tab-actions__YBrq0",vv="tabs-module__tab-border__tvFwj",yv="tabs-module__tab-border-vertical__TVo15",Ov="tabs-module__tab-filled__Gmwpo",wv="tabs-module__tab-icon__Kj5Oa",Sv="tabs-module__tab-item-filled__JTGlH",jv="tabs-module__tab-title__XsuJP",Pv="tabs-module__tab-vertical__WQDkd",_v="tabs-module__vertical__sPO6h",xv="tabs-module__vertical-label__bjXkb",Cv="tabs-module__vertical-text__XcIh7";const Ev=["items","defaultSelected","onChange","componentSize","filled","filledTabs","isVertical","verticalText","disableBorder","allowDeselect","showTooltips","scrollable","useExternalState","value","classes","className"];function Av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Av(Object(n),!0).forEach(function(t){kv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dv(e,t){let{items:o,defaultSelected:i,onChange:l,componentSize:a="medium",filled:s=!1,filledTabs:c=!1,isVertical:u=!1,verticalText:d=!1,disableBorder:f=!1,allowDeselect:p,showTooltips:h=!1,scrollable:m=!1,useExternalState:g=!1,value:b,classes:v,className:y}=e,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ev);const[w,S]=(0,Pe.useState)(!1),[j,_]=(0,Pe.useState)(i),x=g?b:j,C=u||d,E=p??d,A=e=>()=>{e.isDisabled||(e.onClick?e.onClick():g?E&&x===e.value?l?.(void 0):l?.(e.value):E&&j===e.value?_(void 0):_(e.value))};return(0,Pe.useEffect)(()=>{w&&!g&&l?.(j),w||S(!0)},[j,g]),n("div",Rv(Rv({ref:t,className:je()(uv,s&&ov,c&&iv,C&&_v,d&&Cv,m&&dv,m&&"styledScrollThin",f&&tv,P[a],y,v?.root)},O),{},{children:o.map(e=>{const t=!e.onClick&&x===e.value,o=!!e.subButtons?.length,i=!!e.icon&&(h||null==e.name||""===e.name),l=r("div",{className:je()(gv,s&&Ov,c&&Sv,C&&Pv,f&&tv,t?fv:void 0,t&&s?pv:void 0,t&&c?hv:void 0,e.isDisabled&&nv,v?.tab,t?v?.tabSelected:void 0,e.isDisabled?v?.tabDisabled:void 0),onClick:A(e),children:[r("div",{className:je()(jv,i&&av,o&&lv,v?.tabTitle,t?v?.tabSelectedTitle:void 0),children:[e.icon&&n("span",{className:wv,children:"string"==typeof e.icon?n("span",{className:wv,dangerouslySetInnerHTML:{__html:e.icon}}):e.icon}),!h&&("string"==typeof e.name?n("span",{className:je()(d&&xv),title:e.name,children:e.name}):null!=e.name&&n("span",{className:je()(d&&xv),children:e.name})),o&&n("div",{className:je()(bv,v?.tabActions),children:n(Vu,{children:e.subButtons?.map((e,t)=>n(Ge,{variant:e.variant,componentSize:a,textSecondary:e.textSecondary,isActive:e.isActive,icon:e.icon,compact:e.compact,disabled:e.disabled,onClick:t=>{t.stopPropagation(),e.onClick?.()}},`subButton-${t}`))})})]}),!d&&n("div",{className:je()(vv,C&&yv,f&&tv,v?.tabBorder,t?v?.tabSelectedBorder:void 0)})]},`tab-${e.value}`);return h&&e.name?n(Hi,{label:e.name,placement:C?"right":"top",children:l},`tab-${e.value}`):l})}))}const Mv=(0,Pe.forwardRef)(Dv),Lv=["withoutHeader","children","classes","className"];function Nv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Iv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nv(Object(n),!0).forEach(function(t){Tv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zv=(0,Pe.forwardRef)(function(e,t){let{withoutHeader:r,children:o,classes:i,className:l}=e,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Lv);return n("div",Iv(Iv({ref:t,className:je()("layout-module__root__I9KVI",r?void 0:"layout-module__with-header___aKcB",l,i?.root)},a),{},{children:o}))}),Vv=["thickness","width","classes","className","style"];function Fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fv(Object(n),!0).forEach(function(t){qv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qv(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bv=(0,Pe.forwardRef)(function(e,t){let{thickness:r=1,width:o,classes:i,className:l,style:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Vv);const c=Hv(Hv({},a),{},{height:r});return void 0!==o&&(c.width=`${o}%`),n("hr",Hv({ref:t,className:je()("divider-module__root__IiJ2k",void 0!==o&&"divider-module__centered__iULqz",l,i?.root),style:c},s))});function Wv(e,t){return function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot}(t)?e.replace(/:root\b/g,":host"):e}function Kv(e,t){const n=e.querySelector(`#${t}`);if(n)return n;const r=document.createElement("style");return r.id=t,e.appendChild(r),r}const Gv=(0,Pe.createContext)(void 0);function Uv(){return(0,Pe.useContext)(Gv)??null}function Yv(){return Uv()??{theme:"light",toggleTheme:()=>{},setTheme:()=>{}}}function Jv({children:e,styleContainer:t,portalContainer:r=null}){const[o,i]=(0,Pe.useState)(()=>function(){if("undefined"==typeof window)return"light";try{const e=localStorage.getItem("theme");if("light"===e||"dark"===e||"darkBlue"===e)return e}catch{}return window.matchMedia?.("(prefers-color-scheme: dark)")?.matches?"dark":"light"}());(0,Pe.useEffect)(()=>{const e=t??document.head;Kv(e,"nntc-ui-base-styles").textContent=Wv(":root {\n --text-headline1-size: 96px;\n --text-headline1-weight: 300;\n --text-headline1-height: 112px;\n --text-headline1-letter: -1.5px;\n\n --text-headline2-size: 60px;\n --text-headline2-weight: 300;\n --text-headline2-height: 72px;\n --text-headline2-letter: -0.5px;\n\n --text-headline3-size: 48px;\n --text-headline3-weight: 400;\n --text-headline3-height: 56px;\n --text-headline3-letter: normal;\n\n --text-headline4-size: 34px;\n --text-headline4-weight: 400;\n --text-headline4-height: 36px;\n --text-headline4-letter: normal;\n\n --text-headline5-size: 24px;\n --text-headline5-weight: 400;\n --text-headline5-height: 24px;\n --text-headline5-letter: 0.18px;\n\n --text-headline6-size: 20px;\n --text-headline6-weight: 500;\n --text-headline6-height: 24px;\n --text-headline6-letter: 0.15px;\n\n --text-headline7-size: 20px;\n --text-headline7-weight: 400;\n --text-headline7-height: 24px;\n --text-headline7-letter: 0.15px;\n\n --text-subtitle1-size: 16px;\n --text-subtitle1-weight: 400;\n --text-subtitle1-height: 24px;\n --text-subtitle1-letter: 0.15px;\n\n --text-subtitle2-size: 14px;\n --text-subtitle2-weight: 400;\n --text-subtitle2-height: 24px;\n --text-subtitle2-letter: 0.1px;\n\n --text-subtitle3-size: 12px;\n --text-subtitle3-weight: 400;\n --text-subtitle3-height: 20px;\n --text-subtitle3-letter: normal;\n\n --text-body1-size: 16px;\n --text-body1-weight: 400;\n --text-body1-height: 24px;\n --text-body1-letter: 0.5px;\n\n --text-body2-size: 14px;\n --text-body2-weight: 400;\n --text-body2-height: 20px;\n --text-body2-letter: 0.25px;\n\n --text-body3-size: 12px;\n --text-body3-weight: 300;\n --text-body3-height: 20px;\n --text-body3-letter: normal;\n\n --text-button-size: 14px;\n --text-button-weight: 500;\n --text-button-height: 20px;\n --text-button-letter: 0.1px;\n\n --text-caption-size: 12px;\n --text-caption-weight: 300;\n --text-caption-height: 16px;\n --text-caption-letter: 0.4px;\n\n --text-caption2-size: 10px;\n --text-caption2-weight: 300;\n --text-caption2-height: 12px;\n --text-caption2-letter: normal;\n\n --text-double-caption-size: 10px;\n --text-double-caption-weight: 400;\n --text-double-caption-height: 12px;\n --text-double-caption-letter: 0.4px;\n\n --text-overline-size: 10px;\n --text-overline-weight: 500;\n --text-overline-height: 12px;\n --text-overline-letter: 1.5px;\n\n --text-label-size: 12px;\n --text-label-weight: 400;\n --text-label-height: 12px;\n --text-label-letter: normal;\n\n --scroll-size: 16px;\n --scroll-size-thin: 8px;\n}\n\n* {\n box-sizing: border-box;\n}\n\ninput[type='password']::-ms-reveal {\n display: none;\n height: 100%;\n opacity: 1;\n}\n\n.styledScroll,\n.styledScrollThin {\n overflow: auto;\n}\n\n.styledScroll {\n --scroll-thickness: var(--scroll-size);\n}\n\n.styledScrollThin {\n --scroll-thickness: var(--scroll-size-thin);\n}\n\n@supports not selector(::-webkit-scrollbar) {\n .styledScroll,\n .styledScrollThin {\n scrollbar-color: var(--theme-thumb) transparent;\n scrollbar-width: auto;\n }\n\n .styledScrollThin {\n scrollbar-width: thin;\n }\n}\n\n/* общая зона скроллбара / thumb / track */\n.styledScroll::-webkit-scrollbar,\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScroll::-webkit-scrollbar-track,\n.styledScrollThin::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-track {\n background-color: transparent;\n background-clip: content-box;\n border: calc(var(--scroll-thickness) / 4) solid transparent;\n border-radius: calc(var(--scroll-thickness) * 0.75);\n}\n\n.styledScroll::-webkit-scrollbar,\n.styledScrollThin::-webkit-scrollbar {\n width: var(--scroll-thickness);\n height: var(--scroll-thickness);\n}\n\n.styledScroll::-webkit-scrollbar-button,\n.styledScrollThin::-webkit-scrollbar-button {\n display: none;\n width: 0;\n height: 0;\n}\n\n/* зона перетаскивания */\n.styledScroll::-webkit-scrollbar-thumb,\n.styledScrollThin::-webkit-scrollbar-thumb {\n background-color: var(--theme-thumb);\n}\n\n/* уголок между горизонтальным и вертикальным скроллбарами */\n.styledScroll::-webkit-scrollbar-corner,\n.styledScrollThin::-webkit-scrollbar-corner {\n background: transparent;\n}\n",e)},[t]),(0,Pe.useEffect)(()=>{const e={light:":root {\n --theme-surface-layout: #f8f8f8;\n --theme-surface-panel: #ffffff;\n --theme-surface-primary: #ffffff;\n --theme-surface-modal: #ffffff;\n --theme-surface-dropdown: #ffffff;\n --theme-surface-overlay-1: rgba(0, 0, 0, 0.04);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(0, 0, 0, 0.5);\n --theme-modal-background: #ffffff;\n\n --theme-divider: rgba(0, 0, 0, 0.12);\n\n --theme-text-primary: rgba(0, 0, 0, 0.87);\n --theme-text-secondary: rgba(0, 0, 0, 0.64);\n --theme-text-inactive: rgba(0, 0, 0, 0.32);\n --theme-text-button-primary: rgba(0, 0, 0, 0.72);\n --theme-text-button-invert: #ffffff;\n\n --theme-icon-primary: rgba(0, 0, 0, 0.64);\n --theme-icon-secondary: rgba(0, 0, 0, 0.32);\n --theme-icon-hover: #eeeeee;\n --theme-icon-hover-on-selected: #e0e0e0;\n\n --theme-accent: #03a9f4;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #03a9f4;\n\n --theme-table-background: #ffffff;\n --theme-table-header: #f5f5f5;\n --theme-table-even-row: #f5f5f5;\n --theme-table-hover-row: #f5f5f5;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n --theme-table-loader: rgba(255, 255, 255, 0.58);\n\n --theme-tooltip-background: rgba(215, 215, 215, 0.9);\n\n --theme-alert-default-color: rgba(0, 0, 0, 0.87);\n --theme-alert-default-background: #ffffff;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(0, 0, 0, 0.04);\n --theme-overlay-8: rgba(0, 0, 0, 0.08);\n --theme-overlay-10: rgba(0, 0, 0, 0.1);\n --theme-overlay-12: rgba(0, 0, 0, 0.12);\n --theme-overlay-24: rgba(0, 0, 0, 0.24);\n\n --theme-button-elevated: rgba(3, 169, 244, 0.04);\n --theme-button-elevated-subtle: rgba(3, 169, 244, 0.04);\n --theme-button-tonal: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-subtle: rgba(3, 169, 244, 0.16);\n --theme-button-tonal-text: rgba(0, 0, 0, 0.72);\n --theme-button-outlined-border: #757575;\n --theme-button-filled-focus: #03a9f4;\n --theme-button-filled-pressed: #03a9f4;\n --theme-button-filled-hover-layer: rgba(255, 255, 255, 0.08);\n --theme-button-filled-focus-layer: rgba(255, 255, 255, 0.12);\n --theme-button-filled-pressed-layer: rgba(255, 255, 255, 0.12);\n --theme-button-state-hover: rgba(3, 169, 244, 0.08);\n --theme-button-state-focus: rgba(3, 169, 244, 0.12);\n --theme-button-state-pressed: rgba(3, 169, 244, 0.12);\n\n --theme-input-filled: #f5f5f5;\n --theme-input-filled-hover: #e0e0e0;\n --theme-input-filled-focus: #eeeeee;\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border-hover: rgba(0, 0, 0, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(0, 0, 0, 0.56);\n\n --theme-input-border: rgba(0, 0, 0, 0.4);\n --theme-input-border-hover: rgba(0, 0, 0, 0.8);\n\n --theme-selection-border: rgba(0, 0, 0, 0.6);\n --theme-selection-border-disabled: rgba(0, 0, 0, 0.32);\n --theme-selection-hover: rgba(0, 0, 0, 0.04);\n --theme-selection-focused: rgba(0, 0, 0, 0.12);\n --theme-selection-pressed: rgba(0, 0, 0, 0.1);\n --theme-selection-selected-hover: rgba(3, 169, 244, 0.04);\n --theme-selection-selected-focused: rgba(3, 169, 244, 0.12);\n --theme-selection-selected-pressed: rgba(3, 169, 244, 0.1);\n\n --theme-date-range: rgba(3, 169, 244, 0.12);\n\n --theme-thumb: rgba(0, 0, 0, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(0, 0, 0, 0.08);\n --theme-chip-subtle-hover: rgba(0, 0, 0, 0.12);\n --theme-chip-subtle-focus: rgba(0, 0, 0, 0.16);\n --theme-chip-subtle-disabled-bg: rgba(0, 0, 0, 0.08);\n\n --theme-input-chip-bg: var(--theme-chip-accent-bg);\n --theme-input-chip-hover: var(--theme-chip-accent-hover);\n --theme-input-chip-focus: var(--theme-chip-accent-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",dark:":root {\n --theme-surface-layout: #373737;\n --theme-surface-panel: #424242;\n --theme-surface-primary: #2b2b2b;\n --theme-surface-modal: #373737;\n --theme-surface-dropdown: #515151;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(0, 0, 0, 0.12);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #373737;\n\n --theme-divider: rgba(255, 255, 255, 0.24);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.24);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #424242;\n --theme-table-header: #515151;\n --theme-table-even-row: #494949;\n --theme-table-hover-row: #494949;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n --theme-table-loader: rgba(0, 0, 0, 0.45);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #424242;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n",darkBlue:":root {\n --theme-surface-layout: #0f161a;\n --theme-surface-panel: #14212e;\n --theme-surface-primary: rgba(255, 255, 255, 0.08);\n --theme-surface-modal: #14212e;\n --theme-surface-dropdown: #183043;\n --theme-surface-overlay-1: rgba(255, 255, 255, 0.08);\n --theme-surface-overlay-2: rgba(255, 255, 255, 0.04);\n\n --theme-legend-background: rgba(0, 0, 0, 0.12);\n\n --theme-modal-shadow-background: rgba(81, 81, 81, 0.5);\n --theme-modal-background: #14212e;\n\n --theme-divider: rgba(255, 255, 255, 0.12);\n\n --theme-text-primary: rgba(255, 255, 255, 0.87);\n --theme-text-secondary: rgba(255, 255, 255, 0.64);\n --theme-text-inactive: rgba(255, 255, 255, 0.32);\n --theme-text-button-primary: #fcfcff;\n --theme-text-button-invert: rgba(0, 0, 0, 0.72);\n\n --theme-icon-primary: rgba(255, 255, 255, 0.64);\n --theme-icon-secondary: rgba(255, 255, 255, 0.32);\n --theme-icon-hover: rgba(255, 255, 255, 0.12);\n --theme-icon-hover-on-selected: rgba(255, 255, 255, 0.12);\n\n --theme-accent: #7bd3f6;\n\n --theme-success: #4caf50;\n --theme-warning: #ff9800;\n --theme-info: #03a9f4;\n --theme-error: #ef5350;\n --theme-focus: #7bd3f6;\n\n --theme-table-background: #14212e;\n --theme-table-header: #28323e;\n --theme-table-even-row: #1f2a36;\n --theme-table-hover-row: #1f2a36;\n --theme-table-selected-row: rgba(3, 169, 244, 0.08);\n --theme-table-hover-selected-row: rgba(3, 169, 244, 0.16);\n --theme-table-success: rgba(76, 175, 80, 0.08);\n --theme-table-error: rgba(239, 83, 80, 0.08);\n --theme-table-loader: rgba(0, 0, 0, 0.45);\n\n --theme-tooltip-background: rgba(40, 40, 40, 0.9);\n\n --theme-alert-default-color: rgba(255, 255, 255, 0.87);\n --theme-alert-default-background: #6d6d6d;\n --theme-alert-success-color: #1e4620;\n --theme-alert-success-background: #edf7ed;\n --theme-alert-warning-color: #663c00;\n --theme-alert-warning-background: #fff4e5;\n --theme-alert-error-color: #5f2120;\n --theme-alert-error-background: #fdeded;\n --theme-alert-info-color: #014361;\n --theme-alert-info-background: #e5f6fd;\n\n --theme-grey-300: #e0e0e0;\n --theme-grey-400: #bdbdbd;\n --theme-grey-500: #9e9e9e;\n --theme-grey-600: #757575;\n --theme-grey-700: #616161;\n\n --theme-overlay-4: rgba(123, 211, 246, 0.04);\n --theme-overlay-8: rgba(123, 211, 246, 0.08);\n --theme-overlay-10: rgba(123, 211, 246, 0.1);\n --theme-overlay-12: rgba(123, 211, 246, 0.12);\n --theme-overlay-24: rgba(123, 211, 246, 0.24);\n\n --theme-button-elevated: #14212e;\n --theme-button-elevated-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal: #435864;\n --theme-button-tonal-subtle: rgba(123, 211, 246, 0.12);\n --theme-button-tonal-text: #def2fe;\n --theme-button-outlined-border: #9e9e9e;\n --theme-button-filled-focus: #aee6fc;\n --theme-button-filled-pressed: #4ac4f6;\n --theme-button-filled-hover-layer: transparent;\n --theme-button-filled-focus-layer: transparent;\n --theme-button-filled-pressed-layer: transparent;\n --theme-button-state-hover: rgba(123, 211, 246, 0.08);\n --theme-button-state-focus: rgba(123, 211, 246, 0.12);\n --theme-button-state-pressed: rgba(123, 211, 246, 0.12);\n\n --theme-input-filled: rgba(255, 255, 255, 0.08);\n --theme-input-filled-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-focus: rgba(255, 255, 255, 0.16);\n --theme-input-filled-black: rgba(0, 0, 0, 0.12);\n --theme-input-filled-black-border: rgba(255, 255, 255, 0.12);\n --theme-input-filled-black-border-hover: rgba(255, 255, 255, 0.24);\n --theme-input-filled-black-error-overlay: rgba(239, 83, 80, 0.02);\n --theme-input-label: rgba(255, 255, 255, 0.56);\n\n --theme-input-border: rgba(255, 255, 255, 0.4);\n --theme-input-border-hover: rgba(255, 255, 255, 0.8);\n\n --theme-selection-border: rgba(255, 255, 255, 0.6);\n --theme-selection-border-disabled: rgba(255, 255, 255, 0.38);\n --theme-selection-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-pressed: rgba(255, 255, 255, 0.1);\n --theme-selection-selected-hover: rgba(255, 255, 255, 0.04);\n --theme-selection-selected-focused: rgba(255, 255, 255, 0.12);\n --theme-selection-selected-pressed: rgba(255, 255, 255, 0.1);\n\n --theme-date-range: rgba(255, 255, 255, 0.12);\n\n --theme-thumb: rgba(255, 255, 255, 0.16);\n\n --theme-chip-accent-bg: rgba(3, 169, 244, 0.08);\n --theme-chip-accent-hover: rgba(3, 169, 244, 0.16);\n --theme-chip-accent-focus: rgba(3, 169, 244, 0.24);\n --theme-chip-accent-active: rgba(3, 169, 244, 0.16);\n\n --theme-chip-subtle-bg: rgba(255, 255, 255, 0.12);\n --theme-chip-subtle-hover: rgba(255, 255, 255, 0.24);\n --theme-chip-subtle-focus: rgba(255, 255, 255, 0.32);\n --theme-chip-subtle-disabled-bg: rgba(255, 255, 255, 0.16);\n\n --theme-input-chip-bg: var(--theme-chip-subtle-bg);\n --theme-input-chip-hover: var(--theme-chip-subtle-hover);\n --theme-input-chip-focus: var(--theme-chip-subtle-focus);\n --theme-input-chip-disabled-bg: var(--theme-chip-subtle-disabled-bg);\n}\n\ninput::placeholder,\ntextarea::placeholder {\n color: var(--theme-text-inactive);\n}\n"},n=t??document.head;Kv(n,"nntc-ui-theme-styles").textContent=Wv(e[o]??e.light,n)},[o,t]),(0,Pe.useEffect)(()=>{let e=null;try{e=localStorage.getItem("theme")}catch{}if("light"===e||"dark"===e||"darkBlue"===e)return;const t=window.matchMedia?.("(prefers-color-scheme: dark)");if(!t)return;const n=e=>{i(e.matches?"dark":"light")};return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},[]);const l={theme:o,toggleTheme:()=>{i(e=>{const t="light"===e?"dark":"dark"===e?"darkBlue":"light";try{localStorage.setItem("theme",t)}catch{}return t})},setTheme:e=>{i(e);try{localStorage.setItem("theme",e)}catch{}}};return n(Gv.Provider,{value:l,children:n(Oi.Provider,{value:r,children:e})})}export{Ql as AddIcon,Eb as Alert,Rs as AlertIcon,ea as ArrowDropDownIcon,oa as ArrowDropUpIcon,sa as AttachIcon,fa as BarChartIcon,Yc as BookmarkAddIcon,Wc as BookmarkIcon,Ge as Button,Vu as ButtonsGroup,qb as Card,Vt as Checkbox,Pt as CheckboxDeselectedIcon,Et as CheckboxIcon,Dt as CheckboxSeveralIcon,Pp as Checklist,zs as ChevronDownIcon,Fa as ChevronLeftIcon,Wa as ChevronRightIcon,Ls as ChevronUpIcon,sb as Chip,Ya as CircleFilledIcon,ll as CloseIcon,ev as Collapse,rp as ColorPicker,Xa as DateRangeIcon,mf as DateTime,ns as DeleteIcon,Bv as Divider,ls as DoneIcon,ga as DonutIcon,nu as DownloadIcon,us as DragIcon,Dc as EditIcon,el as ErrorOutlineIcon,Xc as ExportTableIcon,hs as FileUploadIcon,Ss as FilterClearIcon,vs as FilterIcon,Fc as FullScreenOffIcon,Ic as FullScreenOnIcon,xs as InfoIcon,cp as Input,Pl as InputChip,zv as Layout,qs as ListIcon,fb as Loader,Oa as LooksOneIcon,Pa as MapIcon,_d as Menu,Vh as Modal,Gs as MoreVerticalIcon,kp as MultiSelect,Bg as Pairs,uu as PointIcon,Gl as Popover,zp as RadioButton,Da as RadioDeselectedIcon,Ia as RadioSelectedIcon,Qs as RegexIcon,hu as SaveIcon,Ea as ScatterPlotIcon,ec as SearchIcon,kd as Select,oc as SelectUniqueIcon,sc as SettingsIcon,fc as SortDownIcon,gc as SortUpIcon,Xh as Surface,Oc as TableChartIcon,Mv as Tabs,Jv as ThemeProvider,Hi as Tooltip,Lg as TreeView,vt as Typography,Pc as UploadIcon,Sg as VirtualTable,lu as VisibilityIcon,Ec as WellIcon,bp as WrapForLabel,sf as createCalendarDate,wi as usePortalContainer,Uv as useTheme,Yv as useThemeWithFallback};export const virtualTableDefaultRowHeight=32;
|
|
3
3
|
//# sourceMappingURL=index.mjs.map
|