@akinon/ui-shell-dev 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{browser-ponyfill-BxfB6fPc.js → browser-ponyfill-Cdu83Cfw.js} +1 -1
- package/dist/assets/index-BQ2dqvVN.css +1 -0
- package/dist/assets/{index-9EiNW7dc.js → index-C1-YnYpJ.js} +12 -12
- package/dist/assets/{index-C07EeqR3.js → index-C_pjNOx-.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +10 -10
- package/dist/assets/index-bXolNybC.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function ay(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var
|
|
1
|
+
function ay(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var iZ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var w4={exports:{}},Hs={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ function ay(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var lv;function Rw(){if(lv)return Hs;lv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:i}}return Hs.Fragment=t,Hs.jsx=n,Hs.jsxs=n,Hs}var sv;function Tw(){return sv||(sv=1,w4.exports=Rw()),w4.exports}var ve=Tw(),O3={exports:{}},I3={exports:{}},Pw=I3.exports,cv;function zi(){return cv||(cv=1,(function(e,t){(function(n,r){e.exports=r()})(Pw,(function(){var n=1e3,r=6e4,a=36e5,i="millisecond",s="second",c="minute",u="hour",h="day",v="week",g="month",p="quarter",b="year",y="date",x="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|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,$={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(W){var G=["th","st","nd","rd"],N=W%100;return"["+W+(G[(N-20)%10]||G[N]||G[0])+"]"}},E=function(W,G,N){var k=String(W);return!k||k.length>=G?W:""+Array(G+1-k.length).join(N)+W},I={s:E,z:function(W){var G=-W.utcOffset(),N=Math.abs(G),k=Math.floor(N/60),U=N%60;return(G<=0?"+":"-")+E(k,2,"0")+":"+E(U,2,"0")},m:function W(G,N){if(G.date()<N.date())return-W(N,G);var k=12*(N.year()-G.year())+(N.month()-G.month()),U=G.clone().add(k,g),D=N-U<0,R=G.clone().add(k+(D?-1:1),g);return+(-(k+(N-U)/(D?U-R:R-U))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:g,y:b,w:v,d:h,D:y,h:u,m:c,s,ms:i,Q:p}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},w="en",O={};O[w]=$;var T="$isDayjsObject",_=function(W){return W instanceof q||!(!W||!W[T])},j=function W(G,N,k){var U;if(!G)return w;if(typeof G=="string"){var D=G.toLowerCase();O[D]&&(U=D),N&&(O[D]=N,U=D);var R=G.split("-");if(!U&&R.length>1)return W(R[0])}else{var B=G.name;O[B]=G,U=B}return!k&&U&&(w=U),U||!k&&w},A=function(W,G){if(_(W))return W.clone();var N=typeof G=="object"?G:{};return N.date=W,N.args=arguments,new q(N)},H=I;H.l=j,H.i=_,H.w=function(W,G){return A(W,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var q=(function(){function W(N){this.$L=j(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[T]=!0}var G=W.prototype;return G.parse=function(N){this.$d=(function(k){var U=k.date,D=k.utc;if(U===null)return new Date(NaN);if(H.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var R=U.match(S);if(R){var B=R[2]-1||0,L=(R[7]||"0").substring(0,3);return D?new Date(Date.UTC(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,L)):new Date(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,L)}}return new Date(U)})(N),this.init()},G.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},G.$utils=function(){return H},G.isValid=function(){return this.$d.toString()!==x},G.isSame=function(N,k){var U=A(N);return this.startOf(k)<=U&&U<=this.endOf(k)},G.isAfter=function(N,k){return A(N)<this.startOf(k)},G.isBefore=function(N,k){return this.endOf(k)<A(N)},G.$g=function(N,k,U){return H.u(N)?this[k]:this.set(U,N)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(N,k){var U=this,D=!!H.u(k)||k,R=H.p(N),B=function(fe,ye){var se=H.w(U.$u?Date.UTC(U.$y,ye,fe):new Date(U.$y,ye,fe),U);return D?se:se.endOf(h)},L=function(fe,ye){return H.w(U.toDate()[fe].apply(U.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ye)),U)},P=this.$W,X=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(R){case b:return D?B(1,0):B(31,11);case g:return D?B(1,X):B(0,X+1);case v:var le=this.$locale().weekStart||0,ne=(P<le?P+7:P)-le;return B(D?Y-ne:Y+(6-ne),X);case h:case y:return L(Q+"Hours",0);case u:return L(Q+"Minutes",1);case c:return L(Q+"Seconds",2);case s:return L(Q+"Milliseconds",3);default:return this.clone()}},G.endOf=function(N){return this.startOf(N,!1)},G.$set=function(N,k){var U,D=H.p(N),R="set"+(this.$u?"UTC":""),B=(U={},U[h]=R+"Date",U[y]=R+"Date",U[g]=R+"Month",U[b]=R+"FullYear",U[u]=R+"Hours",U[c]=R+"Minutes",U[s]=R+"Seconds",U[i]=R+"Milliseconds",U)[D],L=D===h?this.$D+(k-this.$W):k;if(D===g||D===b){var P=this.clone().set(y,1);P.$d[B](L),P.init(),this.$d=P.set(y,Math.min(this.$D,P.daysInMonth())).$d}else B&&this.$d[B](L);return this.init(),this},G.set=function(N,k){return this.clone().$set(N,k)},G.get=function(N){return this[H.p(N)]()},G.add=function(N,k){var U,D=this;N=Number(N);var R=H.p(k),B=function(X){var Y=A(D);return H.w(Y.date(Y.date()+Math.round(X*N)),D)};if(R===g)return this.set(g,this.$M+N);if(R===b)return this.set(b,this.$y+N);if(R===h)return B(1);if(R===v)return B(7);var L=(U={},U[c]=r,U[u]=a,U[s]=n,U)[R]||1,P=this.$d.getTime()+N*L;return H.w(P,this)},G.subtract=function(N,k){return this.add(-1*N,k)},G.format=function(N){var k=this,U=this.$locale();if(!this.isValid())return U.invalidDate||x;var D=N||"YYYY-MM-DDTHH:mm:ssZ",R=H.z(this),B=this.$H,L=this.$m,P=this.$M,X=U.weekdays,Y=U.months,Q=U.meridiem,le=function(ye,se,ie,ce){return ye&&(ye[se]||ye(k,D))||ie[se].slice(0,ce)},ne=function(ye){return H.s(B%12||12,ye,"0")},fe=Q||function(ye,se,ie){var ce=ye<12?"AM":"PM";return ie?ce.toLowerCase():ce};return D.replace(M,(function(ye,se){return se||(function(ie){switch(ie){case"YY":return String(k.$y).slice(-2);case"YYYY":return H.s(k.$y,4,"0");case"M":return P+1;case"MM":return H.s(P+1,2,"0");case"MMM":return le(U.monthsShort,P,Y,3);case"MMMM":return le(Y,P);case"D":return k.$D;case"DD":return H.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return le(U.weekdaysMin,k.$W,X,2);case"ddd":return le(U.weekdaysShort,k.$W,X,3);case"dddd":return X[k.$W];case"H":return String(B);case"HH":return H.s(B,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return fe(B,L,!0);case"A":return fe(B,L,!1);case"m":return String(L);case"mm":return H.s(L,2,"0");case"s":return String(k.$s);case"ss":return H.s(k.$s,2,"0");case"SSS":return H.s(k.$ms,3,"0");case"Z":return R}return null})(ye)||R.replace(":","")}))},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(N,k,U){var D,R=this,B=H.p(k),L=A(N),P=(L.utcOffset()-this.utcOffset())*r,X=this-L,Y=function(){return H.m(R,L)};switch(B){case b:D=Y()/12;break;case g:D=Y();break;case p:D=Y()/3;break;case v:D=(X-P)/6048e5;break;case h:D=(X-P)/864e5;break;case u:D=X/a;break;case c:D=X/r;break;case s:D=X/n;break;default:D=X}return U?D:H.a(D)},G.daysInMonth=function(){return this.endOf(g).$D},G.$locale=function(){return O[this.$L]},G.locale=function(N,k){if(!N)return this.$L;var U=this.clone(),D=j(N,k,!0);return D&&(U.$L=D),U},G.clone=function(){return H.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()},W})(),V=q.prototype;return A.prototype=V,[["$ms",i],["$s",s],["$m",c],["$H",u],["$W",h],["$M",g],["$y",b],["$D",y]].forEach((function(W){V[W[1]]=function(G){return this.$g(G,W[0],W[1])}})),A.extend=function(W,G){return W.$i||(W(G,q,A),W.$i=!0),A},A.locale=j,A.isDayjs=_,A.unix=function(W){return A(1e3*W)},A.en=O[w],A.Ls=O,A.p={},A}))})(I3)),I3.exports}var _w=O3.exports,uv;function Nw(){return uv||(uv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(_w,(function(n){function r(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var a=r(n),i="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),s={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},u={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:i,monthsShort:i,weekStart:6,meridiem:function(h){return h>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(h){return h.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(v){return c[v]})).replace(/،/g,",")},postformat:function(h){return h.replace(/\d/g,(function(v){return s[v]})).replace(/,/g,"،")},ordinal:function(h){return h},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return a.default.locale(u,null,!0),u}))})(O3)),O3.exports}Nw();var R3={exports:{}},jw=R3.exports,dv;function Aw(){return dv||(dv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(jw,(function(n){function r(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var a=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function s(u,h,v){var g=i[v];return Array.isArray(g)&&(g=g[h?0:1]),g.replace("%d",u)}var c={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return a.default.locale(c,null,!0),c}))})(R3)),R3.exports}Aw();var T3={exports:{}},Dw=T3.exports,fv;function Lw(){return fv||(fv=1,(function(e,t){(function(n,r){e.exports=r()})(Dw,(function(){return{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(n){var r=["th","st","nd","rd"],a=n%100;return"["+n+(r[(a-20)%10]||r[a]||r[0])+"]"}}}))})(T3)),T3.exports}Lw();var P3={exports:{}},Bw=P3.exports,hv;function Hw(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Bw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(s){return s+"º"}};return a.default.locale(i,null,!0),i}))})(P3)),P3.exports}Hw();var _3={exports:{}},Fw=_3.exports,vv;function kw(){return vv||(vv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Fw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return a.default.locale(i,null,!0),i}))})(_3)),_3.exports}kw();var N3={exports:{}},Vw=N3.exports,mv;function Uw(){return mv||(mv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Vw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(s){return s+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(i,null,!0),i}))})(N3)),N3.exports}Uw();var j3={exports:{}},Ww=j3.exports,gv;function qw(){return gv||(gv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Ww,(function(n){function r(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var a=r(n),i="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),c="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),u="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),h=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function v(y,x,S){var M,$;return S==="m"?x?"минута":"минуту":y+" "+(M=+y,$={mm:x?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[S].split("_"),M%10==1&&M%100!=11?$[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?$[1]:$[2])}var g=function(y,x){return h.test(x)?i[y.month()]:s[y.month()]};g.s=s,g.f=i;var p=function(y,x){return h.test(x)?c[y.month()]:u[y.month()]};p.s=u,p.f=c;var b={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:g,monthsShort:p,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:v,mm:v,h:"час",hh:v,d:"день",dd:v,M:"месяц",MM:v,y:"год",yy:v},ordinal:function(y){return y},meridiem:function(y){return y<4?"ночи":y<12?"утра":y<17?"дня":"вечера"}};return a.default.locale(b,null,!0),b}))})(j3)),j3.exports}qw();var A3={exports:{}},Gw=A3.exports,pv;function Xw(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Gw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(s){return s+"."}};return a.default.locale(i,null,!0),i}))})(A3)),A3.exports}Xw();var Kw=zi();const ja=fo(Kw);var D3={exports:{}},Yw=D3.exports,bv;function Qw(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(Yw,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,i){var s=a.prototype,c=s.format;i.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,v=(function(g,p){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,y,x){var S=x&&x.toUpperCase();return y||p[x]||n[x]||p[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(M,$,E){return $||E.slice(1)}))}))})(u,h===void 0?{}:h);return c.call(this,v)}}}))})(D3)),D3.exports}var Zw=Qw();const Jw=fo(Zw);var L3={exports:{}},eE=L3.exports,yv;function tE(){return yv||(yv=1,(function(e,t){(function(n,r){e.exports=r()})(eE,(function(){return function(n,r){r.prototype.weekday=function(a){var i=this.$locale().weekStart||0,s=this.$W,c=(s<i?s+7:s)-i;return this.$utils().u(a)?c:this.subtract(c,"day").add(a,"day")}}}))})(L3)),L3.exports}var nE=tE();const rE=fo(nE);ja.locale("en");ja.extend(Jw);ja.extend(rE);const oy={setLocale(e){ja.locale(e)},formatIsoDate:(e,t)=>ja(e).format(t||"L LT"),toIsoDate:e=>{if(e){if(typeof e=="string"){const t=ja(e);return t.isValid()?t.toISOString():void 0}if(ja.isDayjs(e)){const t=e;return t.isValid()?t.toISOString():void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e.toISOString();if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{return t.call(e)}catch(n){console.warn("akidate: failed to convert value with toISOString",n);return}}}},parse:e=>{if(e){if(ja.isDayjs(e)){const t=e;return t.isValid()?t:void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:ja(e);if(typeof e=="string"){const t=ja(e);return t.isValid()?t:void 0}if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{const n=t.call(e),r=ja(n);return r.isValid()?r:void 0}catch(n){console.warn("akidate: failed to parse object with toISOString",n);return}}}}},Ft=e=>typeof e=="string",Fs=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},Sv=e=>e==null?"":""+e,aE=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},oE=/###/g,Cv=e=>e&&e.indexOf("###")>-1?e.replace(oE,"."):e,xv=e=>!e||Ft(e),h2=(e,t,n)=>{const r=Ft(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(xv(e))return{};const i=Cv(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return xv(e)?{}:{obj:e,k:Cv(r[a])}},Mv=(e,t,n)=>{const{obj:r,k:a}=h2(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),c=h2(e,s,Object);for(;c.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),c=h2(e,s,Object),c?.obj&&typeof c.obj[`${c.k}.${i}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${i}`]=n},iE=(e,t,n,r)=>{const{obj:a,k:i}=h2(e,t,Object);a[i]=a[i]||[],a[i].push(n)},n0=(e,t)=>{const{obj:n,k:r}=h2(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},lE=(e,t,n)=>{const r=n0(e,n);return r!==void 0?r:n0(t,n)},iy=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):iy(e[r],t[r],n):e[r]=t[r]);return e},K1=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var sE={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const cE=e=>Ft(e)?e.replace(/[&<>"'\/]/g,t=>sE[t]):e;class uE{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const dE=[" ",",","?","!",";"],fE=new uE(20),hE=(e,t,n)=>{t=t||"",n=n||"";const r=dE.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const a=fE.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!a.test(e);if(!i){const s=e.indexOf(n);s>0&&!a.test(e.substring(0,s))&&(i=!0)}return i},Y5=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let s,c="";for(let u=i;u<r.length;++u)if(u!==i&&(c+=n),c+=r[u],s=a[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<r.length-1)continue;i+=u-i+1;break}a=s}return a},y2=e=>e?.replace("_","-"),vE={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 r0{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||vE,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ft(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new r0(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new r0(this.logger,t)}}var ao=new r0;class P0{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a.apply(a,[t,...n])})}}class $v extends P0{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Ft(r)&&i?c.push(...r.split(i)):c.push(r)));const u=n0(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!s||!Ft(r)?u:Y5(this.data?.[t]?.[n],r,i)}addResource(t,n,r,a,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),Mv(this.data,c,a),i.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const i in r)(Ft(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i,s={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let u=n0(this.data,c)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?iy(u,r,i):u={...u,...r},Mv(this.data,c,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var ly={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,a)??t}),t}};const sy=Symbol("i18next/PATH_KEY");function mE(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===sy?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Q5(e,t){const{[sy]:n}=e(mE());return n.join(t?.keySeparator??".")}const zv={},wv=e=>!Ft(e)&&typeof e!="boolean"&&typeof e!="number";class a0 extends P0{constructor(t,n={}){super(),aE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ao.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hE(t,r,a);if(s&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Ft(i)?[i]:i};const h=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(h[0])>-1)&&(i=h.shift()),t=h.join(a)}return{key:t,namespaces:Ft(i)?[i]:i}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=Q5(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(t[t.length-1],a),h=u[u.length-1];let v=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const g=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return p?i?{res:`${h}${v}${c}`,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${v}${c}`:i?{res:c,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:c;const b=this.resolve(t,a);let y=b?.res;const x=b?.usedKey||c,S=b?.exactUsedKey||c,M=["[object Number]","[object Function]","[object RegExp]"],$=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,I=a.count!==void 0&&!Ft(a.count),w=a0.hasDefaultValue(a),O=I?this.pluralResolver.getSuffix(g,a.count,a):"",T=a.ordinal&&I?this.pluralResolver.getSuffix(g,a.count,{ordinal:!1}):"",_=I&&!a.ordinal&&a.count===0,j=_&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${O}`]||a[`defaultValue${T}`]||a.defaultValue;let A=y;E&&!y&&w&&(A=j);const H=wv(A),q=Object.prototype.toString.apply(A);if(E&&A&&H&&M.indexOf(q)<0&&!(Ft($)&&Array.isArray(A))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,{...a,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return i?(b.res=V,b.usedParams=this.getUsedParamsDetails(a),b):V}if(s){const V=Array.isArray(A),W=V?[]:{},G=V?S:x;for(const N in A)if(Object.prototype.hasOwnProperty.call(A,N)){const k=`${G}${s}${N}`;w&&!y?W[N]=this.translate(k,{...a,defaultValue:wv(j)?j[N]:void 0,joinArrays:!1,ns:u}):W[N]=this.translate(k,{...a,joinArrays:!1,ns:u}),W[N]===k&&(W[N]=A[N])}y=W}}else if(E&&Ft($)&&Array.isArray(y))y=y.join($),y&&(y=this.extendTranslation(y,t,a,r));else{let V=!1,W=!1;!this.isValidLookup(y)&&w&&(V=!0,y=j),this.isValidLookup(y)||(W=!0,y=c);const N=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&W?void 0:y,k=w&&j!==y&&this.options.updateMissing;if(W||V||k){if(this.logger.log(k?"updateKey":"missingKey",g,h,c,k?j:y),s){const B=this.resolve(c,{...a,keySeparator:!1});B&&B.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 U=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let B=0;B<D.length;B++)U.push(D[B]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(a.lng||this.language):U.push(a.lng||this.language);const R=(B,L,P)=>{const X=w&&P!==y?P:N;this.options.missingKeyHandler?this.options.missingKeyHandler(B,h,L,X,k,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(B,h,L,X,k,a),this.emit("missingKey",B,h,L,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?U.forEach(B=>{const L=this.pluralResolver.getSuffixes(B,a);_&&a[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(P=>{R([B],c+P,a[`defaultValue${P}`]||j)})}):R(U,c,j))}y=this.extendTranslation(y,t,a,b,r),W&&y===c&&this.options.appendNamespaceToMissingKey&&(y=`${h}${v}${c}`),(W||V)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${v}${c}`:c,V?y:void 0,a))}return i?(b.res=y,b.usedParams=this.getUsedParamsDetails(a),b):y}extendTranslation(t,n,r,a,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Ft(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(u){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let v=r.replace&&!Ft(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,r.lng||this.language||a.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),p=g&&g.length;h<p&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>i?.[0]===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=Ft(s)?[s]:s;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=ly.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,i,s,c;return Ft(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(u,n),v=h.key;a=v;let g=h.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Ft(n.count),b=p&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(Ft(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(S=>{this.isValidLookup(r)||(c=S,!zv[`${x[0]}-${S}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(zv[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),x.forEach(M=>{if(this.isValidLookup(r))return;s=M;const $=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys($,v,M,S,n);else{let I;p&&(I=this.pluralResolver.getSuffix(M,n.count,n));const w=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&I.indexOf(O)===0&&$.push(v+I.replace(O,this.options.pluralSeparator)),$.push(v+I),b&&$.push(v+w)),y){const T=`${v}${this.options.contextSeparator||"_"}${n.context}`;$.push(T),p&&(n.ordinal&&I.indexOf(O)===0&&$.push(T+I.replace(O,this.options.pluralSeparator)),$.push(T+I),b&&$.push(T+w))}}let E;for(;E=$.pop();)this.isValidLookup(r)||(i=E,r=this.getResource(M,S,E,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ft(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Ev{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ao.create("languageUtils")}getScriptPartFromCode(t){if(t=y2(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=y2(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ft(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ft(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Ft(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Ft(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{a.indexOf(s)<0&&i(this.formatLanguageCode(s))}),a}}const Ov={zero:0,one:1,two:2,few:3,many:4,other:5},Iv={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class gE{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ao.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=y2(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Iv;if(!t.match(/-|_/))return Iv;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>Ov[a]-Ov[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Rv=(e,t,n,r=".",a=!0)=>{let i=lE(e,t,n);return!i&&a&&Ft(n)&&(i=Y5(e,n,r),i===void 0&&(i=Y5(t,n,r))),i},E4=e=>e.replace(/\$/g,"$$$$");class pE{constructor(t={}){this.logger=ao.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:s,suffix:c,suffixEscaped:u,formatSeparator:h,unescapeSuffix:v,unescapePrefix:g,nestingPrefix:p,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:x,nestingOptionsSeparator:S,maxReplaces:M,alwaysFormat:$}=t.interpolation;this.escape=n!==void 0?n:cE,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?K1(i):s||"{{",this.suffix=c?K1(c):u||"}}",this.formatSeparator=h||",",this.unescapePrefix=v?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=p?K1(p):b||K1("$t("),this.nestingSuffix=y?K1(y):x||K1(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=M||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let i,s,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=b=>{if(b.indexOf(this.formatSeparator)<0){const M=Rv(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,r,{...a,...n,interpolationkey:b}):M}const y=b.split(this.formatSeparator),x=y.shift().trim(),S=y.join(this.formatSeparator).trim();return this.format(Rv(n,u,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...a,...n,interpolationkey:x})};this.resetRegExp();const v=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>E4(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?E4(this.escape(b)):E4(b)}].forEach(b=>{for(c=0;i=b.regex.exec(t);){const y=i[1].trim();if(s=h(y),s===void 0)if(typeof v=="function"){const S=v(t,i,a);s=Ft(S)?S:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))s="";else if(g){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!Ft(s)&&!this.useRawValueToEscape&&(s=Sv(s));const x=b.safeValue(s);if(t=t.replace(i[0],x),g?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=i[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,i,s;const c=(u,h)=>{const v=this.nestingOptionsSeparator;if(u.indexOf(v)<0)return u;const g=u.split(new RegExp(`${v}[ ]*{`));let p=`{${g[1]}`;u=g[0],p=this.interpolate(p,s);const b=p.match(/'/g),y=p.match(/"/g);((b?.length??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),h&&(s={...h,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,x),`${u}${v}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!Ft(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const h=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(h!==-1&&(u=a[1].slice(h).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),a[1]=a[1].slice(0,h)),i=n(c.call(this,a[1].trim(),s),s),i&&a[0]===t&&!Ft(i))return i;Ft(i)||(i=Sv(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),u.length&&(i=u.reduce((v,g)=>this.format(v,g,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const bE=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(s=>{if(s){const[c,...u]=s.split(":"),h=u.join(":").trim().replace(/^'+|'+$/g,""),v=c.trim();n[v]||(n[v]=h),h==="false"&&(n[v]=!1),h==="true"&&(n[v]=!0),isNaN(h)||(n[v]=parseInt(h,10))}})}return{formatName:t,formatOptions:n}},Tv=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const s=r+JSON.stringify(i);let c=t[s];return c||(c=e(y2(r),a),t[s]=c),c(n)}},yE=e=>(t,n,r)=>e(y2(n),r)(t);class SE{constructor(t={}){this.logger=ao.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Tv:yE;this.formats={number:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return c=>s.format(c)}),currency:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return c=>s.format(c)}),datetime:r((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return c=>s.format(c)}),relativetime:r((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return c=>s.format(c,i.range||"day")}),list:r((a,i)=>{const s=new Intl.ListFormat(a,{...i});return c=>s.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tv(n)}format(t,n,r,a={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(c=>c.indexOf(")")>-1)){const c=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,c)].join(this.formatSeparator)}return i.reduce((c,u)=>{const{formatName:h,formatOptions:v}=bE(u);if(this.formats[h]){let g=c;try{const p=a?.formatParams?.[a.interpolationkey]||{},b=p.locale||p.lng||a.locale||a.lng||r;g=this.formats[h](c,b,{...v,...a,...p})}catch(p){this.logger.warn(p)}return g}else this.logger.warn(`there was no format function for ${h}`);return c},t)}}const CE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class xE extends P0{constructor(t,n,r,a={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=ao.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const i={},s={},c={},u={};return t.forEach(h=>{let v=!0;n.forEach(g=>{const p=`${h}|${g}`;!r.reload&&this.store.hasResourceBundle(h,g)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,v=!1,s[p]===void 0&&(s[p]=!0),i[p]===void 0&&(i[p]=!0),u[g]===void 0&&(u[g]=!0)))}),v||(c[h]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const a=t.split("|"),i=a[0],s=a[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{iE(u.loaded,[i],s),CE(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(h=>{c[h]||(c[h]={});const v=u.loaded[h];v.length&&v.forEach(g=>{c[h][g]===void 0&&(c[h][g]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,a=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:s});return}this.readingCalls++;const c=(h,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(h&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,i*2,s)},i);return}s(h,v)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const h=u(t,n);h&&typeof h.then=="function"?h.then(v=>c(null,v)).catch(c):c(null,h)}catch(h){c(h)}return}return u(t,n,c)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ft(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ft(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,c),this.loaded(t,s,c)})}saveMissing(t,n,r,a,i,s={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...s,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let v;h.length===5?v=h(t,n,r,a,u):v=h(t,n,r,a),v&&typeof v.then=="function"?v.then(g=>c(null,g)).catch(c):c(null,v)}catch(v){c(v)}else h(t,n,r,a,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const Pv=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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(typeof e[1]=="object"&&(t=e[1]),Ft(e[1])&&(t.defaultValue=e[1]),Ft(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_v=e=>(Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),s3=()=>{},ME=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class S2 extends P0{constructor(t={},n){if(super(),this.options=_v(t),this.services={},this.logger=ao,this.modules={external:[]},ME(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ft(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Pv();this.options={...r,...this.options,..._v(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ao.init(a(this.modules.logger),this.options):ao.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=SE;const v=new Ev(this.options);this.store=new $v(this.options.resources,this.options);const g=this.services;g.logger=ao,g.resourceStore=this.store,g.languageUtils=v,g.pluralResolver=new gE(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(h),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new pE(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new xE(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new a0(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=s3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=(...v)=>this.store[h](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...v)=>(this.store[h](...v),this)});const c=Fs(),u=()=>{const h=(v,g)=>{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),c.resolve(g),n(v,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(t,n=s3){let r=n;const a=Ft(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&i.indexOf(h)<0&&i.push(h)})};a?s(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(c=>s(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=Fs();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=s3),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ly.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Fs();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?this.isLanguageChangingTo===t&&(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...h)=>this.t(...h)),n&&n(c,(...h)=>this.t(...h))},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=Ft(c)?c:c&&c[0],h=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Ft(c)?[c]:c);h&&(this.language||a(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector?.cacheUserLanguage?.(h)),this.loadResources(h,v=>{i(v,h)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r){const a=(i,s,...c)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([i,s].concat(c)):u={...s},u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||a.keyPrefix);const h=this.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(i)?v=i.map(g=>(typeof g=="function"&&(g=Q5(g,{...this.options,...s})),`${u.keyPrefix}${h}${g}`)):(typeof i=="function"&&(i=Q5(i,{...this.options,...s})),v=u.keyPrefix?`${u.keyPrefix}${h}${i}`:i),this.t(v,u)};return Ft(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(c,u)=>{const h=this.services.backendConnector.state[`${c}|${u}`];return h===-1||h===0||h===2};if(n.precheck){const c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!a||s(i,t)))}loadNamespaces(t,n){const r=Fs();return this.options.ns?(Ft(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Fs();Ft(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(s=>a.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const i=a.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new Ev(Pv());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new S2(t,n)}cloneInstance(t={},n=s3){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new S2(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(c=>{i[c]=this[c]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const c=Object.keys(this.store.data).reduce((u,h)=>(u[h]={...this.store.data[h]},u[h]=Object.keys(u[h]).reduce((v,g)=>(v[g]={...u[h][g]},v),u[h]),u),{});i.store=new $v(c,a),i.services.resourceStore=i.store}return i.translator=new a0(i.services,a),i.translator.on("*",(c,...u)=>{i.emit(c,...u)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ir=S2.createInstance();Ir.createInstance=S2.createInstance;Ir.createInstance;Ir.dir;Ir.init;Ir.loadResources;Ir.reloadResources;Ir.use;Ir.changeLanguage;Ir.getFixedT;Ir.t;Ir.exists;Ir.setDefaultNamespace;Ir.hasLoadedNamespace;Ir.loadNamespaces;Ir.loadLanguages;const cy="locale";function Z5(e){"@babel/helpers - typeof";return Z5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z5(e)}function uy(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Z5(XMLHttpRequest))==="object"}function $E(e){return!!e&&typeof e.then=="function"}function zE(e){return $E(e)?e:Promise.resolve(e)}const wE="modulepreload",EE=function(e){return"/"+e},Nv={},J5=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),c=s?.nonce||s?.getAttribute("nonce");a=u(n.map(h=>{if(h=EE(h),h in Nv)return;Nv[h]=!0;const v=h.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":wE,v||(p.as="script"),p.crossOrigin="",p.href=h,c&&p.setAttribute("nonce",c),document.head.appendChild(p),v)return new Promise((b,y)=>{p.addEventListener("load",b),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${h}`)))})}))}function i(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return a.then(s=>{for(const c of s||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(n),!0).forEach(function(r){OE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OE(e,t,n){return(t=IE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IE(e){var t=RE(e,"string");return s1(t)=="symbol"?t:t+""}function RE(e,t){if(s1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(s1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s1(e){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s1(e)}var Mi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Mi=global.fetch:typeof window<"u"&&window.fetch&&(Mi=window.fetch);var C2;uy()&&(typeof global<"u"&&global.XMLHttpRequest?C2=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(C2=window.XMLHttpRequest));var o0;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?o0=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(o0=window.ActiveXObject));typeof Mi!="function"&&(Mi=void 0);if(!Mi&&!C2&&!o0)try{J5(()=>import("./browser-ponyfill-BxfB6fPc.js").then(e=>e.b),[]).then(function(e){Mi=e.default}).catch(function(){})}catch{}var ed=function(t,n){if(n&&s1(n)==="object"){var r="";for(var a in n)r+="&"+encodeURIComponent(a)+"="+encodeURIComponent(n[a]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Dv=function(t,n,r,a){var i=function(u){if(!u.ok)return r(u.statusText||"Error",{status:u.status});u.text().then(function(h){r(null,{status:u.status,data:h})}).catch(r)};if(a){var s=a(t,n);if(s instanceof Promise){s.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Mi(t,n).then(i).catch(r)},Lv=!1,TE=function(t,n,r,a){t.queryStringParams&&(n=ed(n,t.queryStringParams));var i=Av({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=Av({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Lv?{}:s),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Dv(n,c,a,u)}catch(h){if(!s||Object.keys(s).length===0||!h.message||h.message.indexOf("not implemented")<0)return a(h);try{Object.keys(s).forEach(function(v){delete c[v]}),Dv(n,c,a,u),Lv=!0}catch(v){a(v)}}},PE=function(t,n,r,a){r&&s1(r)==="object"&&(r=ed("",r).slice(1)),t.queryStringParams&&(n=ed(n,t.queryStringParams));try{var i=C2?new C2:new o0("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var c in s)i.setRequestHeader(c,s[c]);i.onreadystatechange=function(){i.readyState>3&&a(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(u){console&&console.log(u)}},_E=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Mi&&n.indexOf("file:")!==0)return TE(t,n,r,a);if(uy()||typeof ActiveXObject=="function")return PE(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function Bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function O4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(r){dy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fy(r.key),r)}}function AE(e,t,n){return t&&jE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dy(e,t,n){return(t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fy(e){var t=DE(e,"string");return yl(t)=="symbol"?t:t+""}function DE(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LE=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return dy({},r,a||"")},parseLoadPayload:function(n,r){},request:_E,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},hy=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};NE(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return AE(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=O4(O4(O4({},LE()),this.options||{}),a),this.allOptions=i,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);yl(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,i,s){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,a)),u=zE(u),u.then(function(h){if(!h)return s(null,{});var v=c.services.interpolator.interpolate(h,{lng:n.join("+"),ns:a.join("+")});c.loadUrl(v,s,r,i)})}},{key:"loadUrl",value:function(n,r,a,i){var s=this,c=typeof a=="string"?[a]:a,u=typeof i=="string"?[i]:i,h=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,h,function(v,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&v&&v.message){var p=v.message.toLowerCase(),b=["failed","fetch","network","load"].find(function(S){return p.indexOf(S)>-1});if(b)return r("failed loading "+n+": "+v.message,!0)}if(v)return r(v,!1);var y,x;try{typeof g.data=="string"?y=s.options.parse(g.data,a,i):y=g.data}catch{x="failed parsing "+n+" to json"}if(x)return r(x,!1);r(null,y)})}},{key:"create",value:function(n,r,a,i,s){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,a,i),h=0,v=[],g=[];n.forEach(function(p){var b=c.options.addPath;typeof c.options.addPath=="function"&&(b=c.options.addPath(p,r));var y=c.services.interpolator.interpolate(b,{lng:p,ns:r});c.options.request(c.options,y,u,function(x,S){h+=1,v.push(x),g.push(S),h===n.length&&typeof s=="function"&&s(v,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,i=r.languageUtils,s=r.logger,c=a.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],h=function(g){var p=i.toResolveHierarchy(g);p.forEach(function(b){u.indexOf(b)<0&&u.push(b)})};h(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return h(v)}),u.forEach(function(v){n.allOptions.ns.forEach(function(g){a.read(v,g,"read",null,null,function(p,b){p&&s.warn("loading namespace ".concat(g," for language ").concat(v," failed"),p),!p&&b&&s.log("loaded namespace ".concat(g," for language ").concat(v),b),a.loaded("".concat(v,"|").concat(g),p,b)})})})}}}])})();hy.type="backend";var I4={exports:{}},qt={};/**
|
|
9
|
+
*/var lv;function Rw(){if(lv)return Hs;lv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var c in a)c!=="key"&&(i[c]=a[c])}else i=a;return a=i.ref,{$$typeof:e,type:r,key:s,ref:a!==void 0?a:null,props:i}}return Hs.Fragment=t,Hs.jsx=n,Hs.jsxs=n,Hs}var sv;function Tw(){return sv||(sv=1,w4.exports=Rw()),w4.exports}var ve=Tw(),O3={exports:{}},I3={exports:{}},Pw=I3.exports,cv;function zi(){return cv||(cv=1,(function(e,t){(function(n,r){e.exports=r()})(Pw,(function(){var n=1e3,r=6e4,a=36e5,i="millisecond",s="second",c="minute",u="hour",h="day",v="week",g="month",p="quarter",b="year",y="date",x="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,M=/\[([^\]]+)]|Y{1,4}|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,$={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(W){var G=["th","st","nd","rd"],N=W%100;return"["+W+(G[(N-20)%10]||G[N]||G[0])+"]"}},E=function(W,G,N){var k=String(W);return!k||k.length>=G?W:""+Array(G+1-k.length).join(N)+W},I={s:E,z:function(W){var G=-W.utcOffset(),N=Math.abs(G),k=Math.floor(N/60),U=N%60;return(G<=0?"+":"-")+E(k,2,"0")+":"+E(U,2,"0")},m:function W(G,N){if(G.date()<N.date())return-W(N,G);var k=12*(N.year()-G.year())+(N.month()-G.month()),U=G.clone().add(k,g),D=N-U<0,R=G.clone().add(k+(D?-1:1),g);return+(-(k+(N-U)/(D?U-R:R-U))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:g,y:b,w:v,d:h,D:y,h:u,m:c,s,ms:i,Q:p}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},w="en",O={};O[w]=$;var T="$isDayjsObject",_=function(W){return W instanceof q||!(!W||!W[T])},j=function W(G,N,k){var U;if(!G)return w;if(typeof G=="string"){var D=G.toLowerCase();O[D]&&(U=D),N&&(O[D]=N,U=D);var R=G.split("-");if(!U&&R.length>1)return W(R[0])}else{var B=G.name;O[B]=G,U=B}return!k&&U&&(w=U),U||!k&&w},A=function(W,G){if(_(W))return W.clone();var N=typeof G=="object"?G:{};return N.date=W,N.args=arguments,new q(N)},H=I;H.l=j,H.i=_,H.w=function(W,G){return A(W,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var q=(function(){function W(N){this.$L=j(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[T]=!0}var G=W.prototype;return G.parse=function(N){this.$d=(function(k){var U=k.date,D=k.utc;if(U===null)return new Date(NaN);if(H.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var R=U.match(S);if(R){var B=R[2]-1||0,L=(R[7]||"0").substring(0,3);return D?new Date(Date.UTC(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,L)):new Date(R[1],B,R[3]||1,R[4]||0,R[5]||0,R[6]||0,L)}}return new Date(U)})(N),this.init()},G.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},G.$utils=function(){return H},G.isValid=function(){return this.$d.toString()!==x},G.isSame=function(N,k){var U=A(N);return this.startOf(k)<=U&&U<=this.endOf(k)},G.isAfter=function(N,k){return A(N)<this.startOf(k)},G.isBefore=function(N,k){return this.endOf(k)<A(N)},G.$g=function(N,k,U){return H.u(N)?this[k]:this.set(U,N)},G.unix=function(){return Math.floor(this.valueOf()/1e3)},G.valueOf=function(){return this.$d.getTime()},G.startOf=function(N,k){var U=this,D=!!H.u(k)||k,R=H.p(N),B=function(fe,ye){var se=H.w(U.$u?Date.UTC(U.$y,ye,fe):new Date(U.$y,ye,fe),U);return D?se:se.endOf(h)},L=function(fe,ye){return H.w(U.toDate()[fe].apply(U.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ye)),U)},P=this.$W,X=this.$M,Y=this.$D,Q="set"+(this.$u?"UTC":"");switch(R){case b:return D?B(1,0):B(31,11);case g:return D?B(1,X):B(0,X+1);case v:var le=this.$locale().weekStart||0,ne=(P<le?P+7:P)-le;return B(D?Y-ne:Y+(6-ne),X);case h:case y:return L(Q+"Hours",0);case u:return L(Q+"Minutes",1);case c:return L(Q+"Seconds",2);case s:return L(Q+"Milliseconds",3);default:return this.clone()}},G.endOf=function(N){return this.startOf(N,!1)},G.$set=function(N,k){var U,D=H.p(N),R="set"+(this.$u?"UTC":""),B=(U={},U[h]=R+"Date",U[y]=R+"Date",U[g]=R+"Month",U[b]=R+"FullYear",U[u]=R+"Hours",U[c]=R+"Minutes",U[s]=R+"Seconds",U[i]=R+"Milliseconds",U)[D],L=D===h?this.$D+(k-this.$W):k;if(D===g||D===b){var P=this.clone().set(y,1);P.$d[B](L),P.init(),this.$d=P.set(y,Math.min(this.$D,P.daysInMonth())).$d}else B&&this.$d[B](L);return this.init(),this},G.set=function(N,k){return this.clone().$set(N,k)},G.get=function(N){return this[H.p(N)]()},G.add=function(N,k){var U,D=this;N=Number(N);var R=H.p(k),B=function(X){var Y=A(D);return H.w(Y.date(Y.date()+Math.round(X*N)),D)};if(R===g)return this.set(g,this.$M+N);if(R===b)return this.set(b,this.$y+N);if(R===h)return B(1);if(R===v)return B(7);var L=(U={},U[c]=r,U[u]=a,U[s]=n,U)[R]||1,P=this.$d.getTime()+N*L;return H.w(P,this)},G.subtract=function(N,k){return this.add(-1*N,k)},G.format=function(N){var k=this,U=this.$locale();if(!this.isValid())return U.invalidDate||x;var D=N||"YYYY-MM-DDTHH:mm:ssZ",R=H.z(this),B=this.$H,L=this.$m,P=this.$M,X=U.weekdays,Y=U.months,Q=U.meridiem,le=function(ye,se,ie,ce){return ye&&(ye[se]||ye(k,D))||ie[se].slice(0,ce)},ne=function(ye){return H.s(B%12||12,ye,"0")},fe=Q||function(ye,se,ie){var ce=ye<12?"AM":"PM";return ie?ce.toLowerCase():ce};return D.replace(M,(function(ye,se){return se||(function(ie){switch(ie){case"YY":return String(k.$y).slice(-2);case"YYYY":return H.s(k.$y,4,"0");case"M":return P+1;case"MM":return H.s(P+1,2,"0");case"MMM":return le(U.monthsShort,P,Y,3);case"MMMM":return le(Y,P);case"D":return k.$D;case"DD":return H.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return le(U.weekdaysMin,k.$W,X,2);case"ddd":return le(U.weekdaysShort,k.$W,X,3);case"dddd":return X[k.$W];case"H":return String(B);case"HH":return H.s(B,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return fe(B,L,!0);case"A":return fe(B,L,!1);case"m":return String(L);case"mm":return H.s(L,2,"0");case"s":return String(k.$s);case"ss":return H.s(k.$s,2,"0");case"SSS":return H.s(k.$ms,3,"0");case"Z":return R}return null})(ye)||R.replace(":","")}))},G.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},G.diff=function(N,k,U){var D,R=this,B=H.p(k),L=A(N),P=(L.utcOffset()-this.utcOffset())*r,X=this-L,Y=function(){return H.m(R,L)};switch(B){case b:D=Y()/12;break;case g:D=Y();break;case p:D=Y()/3;break;case v:D=(X-P)/6048e5;break;case h:D=(X-P)/864e5;break;case u:D=X/a;break;case c:D=X/r;break;case s:D=X/n;break;default:D=X}return U?D:H.a(D)},G.daysInMonth=function(){return this.endOf(g).$D},G.$locale=function(){return O[this.$L]},G.locale=function(N,k){if(!N)return this.$L;var U=this.clone(),D=j(N,k,!0);return D&&(U.$L=D),U},G.clone=function(){return H.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()},W})(),V=q.prototype;return A.prototype=V,[["$ms",i],["$s",s],["$m",c],["$H",u],["$W",h],["$M",g],["$y",b],["$D",y]].forEach((function(W){V[W[1]]=function(G){return this.$g(G,W[0],W[1])}})),A.extend=function(W,G){return W.$i||(W(G,q,A),W.$i=!0),A},A.locale=j,A.isDayjs=_,A.unix=function(W){return A(1e3*W)},A.en=O[w],A.Ls=O,A.p={},A}))})(I3)),I3.exports}var _w=O3.exports,uv;function Nw(){return uv||(uv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(_w,(function(n){function r(h){return h&&typeof h=="object"&&"default"in h?h:{default:h}}var a=r(n),i="يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),s={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},c={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},u={name:"ar",weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),months:i,monthsShort:i,weekStart:6,meridiem:function(h){return h>12?"م":"ص"},relativeTime:{future:"بعد %s",past:"منذ %s",s:"ثانية واحدة",m:"دقيقة واحدة",mm:"%d دقائق",h:"ساعة واحدة",hh:"%d ساعات",d:"يوم واحد",dd:"%d أيام",M:"شهر واحد",MM:"%d أشهر",y:"عام واحد",yy:"%d أعوام"},preparse:function(h){return h.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(v){return c[v]})).replace(/،/g,",")},postformat:function(h){return h.replace(/\d/g,(function(v){return s[v]})).replace(/,/g,"،")},ordinal:function(h){return h},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"}};return a.default.locale(u,null,!0),u}))})(O3)),O3.exports}Nw();var R3={exports:{}},jw=R3.exports,dv;function Aw(){return dv||(dv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(jw,(function(n){function r(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var a=r(n),i={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function s(u,h,v){var g=i[v];return Array.isArray(g)&&(g=g[h?0:1]),g.replace("%d",u)}var c={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(u){return u+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return a.default.locale(c,null,!0),c}))})(R3)),R3.exports}Aw();var T3={exports:{}},Dw=T3.exports,fv;function Lw(){return fv||(fv=1,(function(e,t){(function(n,r){e.exports=r()})(Dw,(function(){return{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(n){var r=["th","st","nd","rd"],a=n%100;return"["+n+(r[(a-20)%10]||r[a]||r[0])+"]"}}}))})(T3)),T3.exports}Lw();var P3={exports:{}},Bw=P3.exports,hv;function Hw(){return hv||(hv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Bw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(s){return s+"º"}};return a.default.locale(i,null,!0),i}))})(P3)),P3.exports}Hw();var _3={exports:{}},Fw=_3.exports,vv;function kw(){return vv||(vv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Fw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return a.default.locale(i,null,!0),i}))})(_3)),_3.exports}kw();var N3={exports:{}},Vw=N3.exports,mv;function Uw(){return mv||(mv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Vw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"pt",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sa".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(s){return s+"º"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return a.default.locale(i,null,!0),i}))})(N3)),N3.exports}Uw();var j3={exports:{}},Ww=j3.exports,gv;function qw(){return gv||(gv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Ww,(function(n){function r(y){return y&&typeof y=="object"&&"default"in y?y:{default:y}}var a=r(n),i="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),s="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),c="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),u="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),h=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function v(y,x,S){var M,$;return S==="m"?x?"минута":"минуту":y+" "+(M=+y,$={mm:x?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[S].split("_"),M%10==1&&M%100!=11?$[0]:M%10>=2&&M%10<=4&&(M%100<10||M%100>=20)?$[1]:$[2])}var g=function(y,x){return h.test(x)?i[y.month()]:s[y.month()]};g.s=s,g.f=i;var p=function(y,x){return h.test(x)?c[y.month()]:u[y.month()]};p.s=u,p.f=c;var b={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:g,monthsShort:p,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:v,mm:v,h:"час",hh:v,d:"день",dd:v,M:"месяц",MM:v,y:"год",yy:v},ordinal:function(y){return y},meridiem:function(y){return y<4?"ночи":y<12?"утра":y<17?"дня":"вечера"}};return a.default.locale(b,null,!0),b}))})(j3)),j3.exports}qw();var A3={exports:{}},Gw=A3.exports,pv;function Xw(){return pv||(pv=1,(function(e,t){(function(n,r){e.exports=r(zi())})(Gw,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=r(n),i={name:"tr",weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(s){return s+"."}};return a.default.locale(i,null,!0),i}))})(A3)),A3.exports}Xw();var Kw=zi();const ja=fo(Kw);var D3={exports:{}},Yw=D3.exports,bv;function Qw(){return bv||(bv=1,(function(e,t){(function(n,r){e.exports=r()})(Yw,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,a,i){var s=a.prototype,c=s.format;i.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var h=this.$locale().formats,v=(function(g,p){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(b,y,x){var S=x&&x.toUpperCase();return y||p[x]||n[x]||p[S].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(M,$,E){return $||E.slice(1)}))}))})(u,h===void 0?{}:h);return c.call(this,v)}}}))})(D3)),D3.exports}var Zw=Qw();const Jw=fo(Zw);var L3={exports:{}},eE=L3.exports,yv;function tE(){return yv||(yv=1,(function(e,t){(function(n,r){e.exports=r()})(eE,(function(){return function(n,r){r.prototype.weekday=function(a){var i=this.$locale().weekStart||0,s=this.$W,c=(s<i?s+7:s)-i;return this.$utils().u(a)?c:this.subtract(c,"day").add(a,"day")}}}))})(L3)),L3.exports}var nE=tE();const rE=fo(nE);ja.locale("en");ja.extend(Jw);ja.extend(rE);const oy={setLocale(e){ja.locale(e)},formatIsoDate:(e,t)=>ja(e).format(t||"L LT"),toIsoDate:e=>{if(e){if(typeof e=="string"){const t=ja(e);return t.isValid()?t.toISOString():void 0}if(ja.isDayjs(e)){const t=e;return t.isValid()?t.toISOString():void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:e.toISOString();if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{return t.call(e)}catch(n){console.warn("akidate: failed to convert value with toISOString",n);return}}}},parse:e=>{if(e){if(ja.isDayjs(e)){const t=e;return t.isValid()?t:void 0}if(e instanceof Date)return Number.isNaN(e.getTime())?void 0:ja(e);if(typeof e=="string"){const t=ja(e);return t.isValid()?t:void 0}if(typeof e=="object"&&e!==null){const t=e.toISOString;if(typeof t=="function")try{const n=t.call(e),r=ja(n);return r.isValid()?r:void 0}catch(n){console.warn("akidate: failed to parse object with toISOString",n);return}}}}},Ft=e=>typeof e=="string",Fs=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},Sv=e=>e==null?"":""+e,aE=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},oE=/###/g,Cv=e=>e&&e.indexOf("###")>-1?e.replace(oE,"."):e,xv=e=>!e||Ft(e),h2=(e,t,n)=>{const r=Ft(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(xv(e))return{};const i=Cv(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return xv(e)?{}:{obj:e,k:Cv(r[a])}},Mv=(e,t,n)=>{const{obj:r,k:a}=h2(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),c=h2(e,s,Object);for(;c.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),c=h2(e,s,Object),c?.obj&&typeof c.obj[`${c.k}.${i}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${i}`]=n},iE=(e,t,n,r)=>{const{obj:a,k:i}=h2(e,t,Object);a[i]=a[i]||[],a[i].push(n)},n0=(e,t)=>{const{obj:n,k:r}=h2(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},lE=(e,t,n)=>{const r=n0(e,n);return r!==void 0?r:n0(t,n)},iy=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?Ft(e[r])||e[r]instanceof String||Ft(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):iy(e[r],t[r],n):e[r]=t[r]);return e},K1=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var sE={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const cE=e=>Ft(e)?e.replace(/[&<>"'\/]/g,t=>sE[t]):e;class uE{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const dE=[" ",",","?","!",";"],fE=new uE(20),hE=(e,t,n)=>{t=t||"",n=n||"";const r=dE.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(r.length===0)return!0;const a=fE.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!a.test(e);if(!i){const s=e.indexOf(n);s>0&&!a.test(e.substring(0,s))&&(i=!0)}return i},Y5=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let s,c="";for(let u=i;u<r.length;++u)if(u!==i&&(c+=n),c+=r[u],s=a[c],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<r.length-1)continue;i+=u-i+1;break}a=s}return a},y2=e=>e?.replace("_","-"),vE={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 r0{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||vE,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(Ft(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new r0(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new r0(this.logger,t)}}var ao=new r0;class P0{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a.apply(a,[t,...n])})}}class $v extends P0{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):Ft(r)&&i?c.push(...r.split(i)):c.push(r)));const u=n0(this.data,c);return!u&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),u||!s||!Ft(r)?u:Y5(this.data?.[t]?.[n],r,i)}addResource(t,n,r,a,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),Mv(this.data,c,a),i.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const i in r)(Ft(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i,s={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let u=n0(this.data,c)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?iy(u,r,i):u={...u,...r},Mv(this.data,c,u),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var ly={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{t=this.processors[i]?.process(t,n,r,a)??t}),t}};const sy=Symbol("i18next/PATH_KEY");function mE(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===sy?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Q5(e,t){const{[sy]:n}=e(mE());return n.join(t?.keySeparator??".")}const zv={},wv=e=>!Ft(e)&&typeof e!="boolean"&&typeof e!="number";class a0 extends P0{constructor(t,n={}){super(),aE(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ao.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};return t==null?!1:this.resolve(t,r)?.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hE(t,r,a);if(s&&!c){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Ft(i)?[i]:i};const h=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(h[0])>-1)&&(i=h.shift()),t=h.join(a)}return{key:t,namespaces:Ft(i)?[i]:i}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=Q5(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:c,namespaces:u}=this.extractFromKey(t[t.length-1],a),h=u[u.length-1];let v=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;v===void 0&&(v=":");const g=a.lng||this.language,p=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return p?i?{res:`${h}${v}${c}`,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:`${h}${v}${c}`:i?{res:c,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:h,usedParams:this.getUsedParamsDetails(a)}:c;const b=this.resolve(t,a);let y=b?.res;const x=b?.usedKey||c,S=b?.exactUsedKey||c,M=["[object Number]","[object Function]","[object RegExp]"],$=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,I=a.count!==void 0&&!Ft(a.count),w=a0.hasDefaultValue(a),O=I?this.pluralResolver.getSuffix(g,a.count,a):"",T=a.ordinal&&I?this.pluralResolver.getSuffix(g,a.count,{ordinal:!1}):"",_=I&&!a.ordinal&&a.count===0,j=_&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${O}`]||a[`defaultValue${T}`]||a.defaultValue;let A=y;E&&!y&&w&&(A=j);const H=wv(A),q=Object.prototype.toString.apply(A);if(E&&A&&H&&M.indexOf(q)<0&&!(Ft($)&&Array.isArray(A))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,A,{...a,ns:u}):`key '${c} (${this.language})' returned an object instead of string.`;return i?(b.res=V,b.usedParams=this.getUsedParamsDetails(a),b):V}if(s){const V=Array.isArray(A),W=V?[]:{},G=V?S:x;for(const N in A)if(Object.prototype.hasOwnProperty.call(A,N)){const k=`${G}${s}${N}`;w&&!y?W[N]=this.translate(k,{...a,defaultValue:wv(j)?j[N]:void 0,joinArrays:!1,ns:u}):W[N]=this.translate(k,{...a,joinArrays:!1,ns:u}),W[N]===k&&(W[N]=A[N])}y=W}}else if(E&&Ft($)&&Array.isArray(y))y=y.join($),y&&(y=this.extendTranslation(y,t,a,r));else{let V=!1,W=!1;!this.isValidLookup(y)&&w&&(V=!0,y=j),this.isValidLookup(y)||(W=!0,y=c);const N=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&W?void 0:y,k=w&&j!==y&&this.options.updateMissing;if(W||V||k){if(this.logger.log(k?"updateKey":"missingKey",g,h,c,k?j:y),s){const B=this.resolve(c,{...a,keySeparator:!1});B&&B.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 U=[];const D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&D&&D[0])for(let B=0;B<D.length;B++)U.push(D[B]);else this.options.saveMissingTo==="all"?U=this.languageUtils.toResolveHierarchy(a.lng||this.language):U.push(a.lng||this.language);const R=(B,L,P)=>{const X=w&&P!==y?P:N;this.options.missingKeyHandler?this.options.missingKeyHandler(B,h,L,X,k,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(B,h,L,X,k,a),this.emit("missingKey",B,h,L,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?U.forEach(B=>{const L=this.pluralResolver.getSuffixes(B,a);_&&a[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(P=>{R([B],c+P,a[`defaultValue${P}`]||j)})}):R(U,c,j))}y=this.extendTranslation(y,t,a,b,r),W&&y===c&&this.options.appendNamespaceToMissingKey&&(y=`${h}${v}${c}`),(W||V)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${v}${c}`:c,V?y:void 0,a))}return i?(b.res=y,b.usedParams=this.getUsedParamsDetails(a),b):y}extendTranslation(t,n,r,a,i){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=Ft(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(u){const g=t.match(this.interpolator.nestingRegexp);h=g&&g.length}let v=r.replace&&!Ft(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,r.lng||this.language||a.usedLng,r),u){const g=t.match(this.interpolator.nestingRegexp),p=g&&g.length;h<p&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>i?.[0]===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=Ft(s)?[s]:s;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=ly.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,i,s,c;return Ft(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(u,n),v=h.key;a=v;let g=h.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const p=n.count!==void 0&&!Ft(n.count),b=p&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(Ft(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(S=>{this.isValidLookup(r)||(c=S,!zv[`${x[0]}-${S}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(zv[`${x[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),x.forEach(M=>{if(this.isValidLookup(r))return;s=M;const $=[v];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys($,v,M,S,n);else{let I;p&&(I=this.pluralResolver.getSuffix(M,n.count,n));const w=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(n.ordinal&&I.indexOf(O)===0&&$.push(v+I.replace(O,this.options.pluralSeparator)),$.push(v+I),b&&$.push(v+w)),y){const T=`${v}${this.options.contextSeparator||"_"}${n.context}`;$.push(T),p&&(n.ordinal&&I.indexOf(O)===0&&$.push(T+I.replace(O,this.options.pluralSeparator)),$.push(T+I),b&&$.push(T+w))}}let E;for(;E=$.pop();)this.isValidLookup(r)||(i=E,r=this.getResource(M,S,E,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!Ft(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class Ev{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ao.create("languageUtils")}getScriptPartFromCode(t){if(t=y2(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=y2(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Ft(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Ft(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Ft(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):Ft(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{a.indexOf(s)<0&&i(this.formatLanguageCode(s))}),a}}const Ov={zero:0,one:1,two:2,few:3,many:4,other:5},Iv={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class gE{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ao.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=y2(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Iv;if(!t.match(/-|_/))return Iv;const u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>Ov[a]-Ov[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const Rv=(e,t,n,r=".",a=!0)=>{let i=lE(e,t,n);return!i&&a&&Ft(n)&&(i=Y5(e,n,r),i===void 0&&(i=Y5(t,n,r))),i},E4=e=>e.replace(/\$/g,"$$$$");class pE{constructor(t={}){this.logger=ao.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:s,suffix:c,suffixEscaped:u,formatSeparator:h,unescapeSuffix:v,unescapePrefix:g,nestingPrefix:p,nestingPrefixEscaped:b,nestingSuffix:y,nestingSuffixEscaped:x,nestingOptionsSeparator:S,maxReplaces:M,alwaysFormat:$}=t.interpolation;this.escape=n!==void 0?n:cE,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?K1(i):s||"{{",this.suffix=c?K1(c):u||"}}",this.formatSeparator=h||",",this.unescapePrefix=v?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":v||"",this.nestingPrefix=p?K1(p):b||K1("$t("),this.nestingSuffix=y?K1(y):x||K1(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=M||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let i,s,c;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=b=>{if(b.indexOf(this.formatSeparator)<0){const M=Rv(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(M,void 0,r,{...a,...n,interpolationkey:b}):M}const y=b.split(this.formatSeparator),x=y.shift().trim(),S=y.join(this.formatSeparator).trim();return this.format(Rv(n,u,x,this.options.keySeparator,this.options.ignoreJSONStructure),S,r,{...a,...n,interpolationkey:x})};this.resetRegExp();const v=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>E4(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?E4(this.escape(b)):E4(b)}].forEach(b=>{for(c=0;i=b.regex.exec(t);){const y=i[1].trim();if(s=h(y),s===void 0)if(typeof v=="function"){const S=v(t,i,a);s=Ft(S)?S:""}else if(a&&Object.prototype.hasOwnProperty.call(a,y))s="";else if(g){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),s="";else!Ft(s)&&!this.useRawValueToEscape&&(s=Sv(s));const x=b.safeValue(s);if(t=t.replace(i[0],x),g?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=i[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,i,s;const c=(u,h)=>{const v=this.nestingOptionsSeparator;if(u.indexOf(v)<0)return u;const g=u.split(new RegExp(`${v}[ ]*{`));let p=`{${g[1]}`;u=g[0],p=this.interpolate(p,s);const b=p.match(/'/g),y=p.match(/"/g);((b?.length??0)%2===0&&!y||y.length%2!==0)&&(p=p.replace(/'/g,'"'));try{s=JSON.parse(p),h&&(s={...h,...s})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,x),`${u}${v}${p}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u};for(;a=this.nestingRegexp.exec(t);){let u=[];s={...r},s=s.replace&&!Ft(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const h=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(h!==-1&&(u=a[1].slice(h).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),a[1]=a[1].slice(0,h)),i=n(c.call(this,a[1].trim(),s),s),i&&a[0]===t&&!Ft(i))return i;Ft(i)||(i=Sv(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),u.length&&(i=u.reduce((v,g)=>this.format(v,g,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const bE=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(s=>{if(s){const[c,...u]=s.split(":"),h=u.join(":").trim().replace(/^'+|'+$/g,""),v=c.trim();n[v]||(n[v]=h),h==="false"&&(n[v]=!1),h==="true"&&(n[v]=!0),isNaN(h)||(n[v]=parseInt(h,10))}})}return{formatName:t,formatOptions:n}},Tv=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const s=r+JSON.stringify(i);let c=t[s];return c||(c=e(y2(r),a),t[s]=c),c(n)}},yE=e=>(t,n,r)=>e(y2(n),r)(t);class SE{constructor(t={}){this.logger=ao.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?Tv:yE;this.formats={number:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return c=>s.format(c)}),currency:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return c=>s.format(c)}),datetime:r((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return c=>s.format(c)}),relativetime:r((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return c=>s.format(c,i.range||"day")}),list:r((a,i)=>{const s=new Intl.ListFormat(a,{...i});return c=>s.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Tv(n)}format(t,n,r,a={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(c=>c.indexOf(")")>-1)){const c=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,c)].join(this.formatSeparator)}return i.reduce((c,u)=>{const{formatName:h,formatOptions:v}=bE(u);if(this.formats[h]){let g=c;try{const p=a?.formatParams?.[a.interpolationkey]||{},b=p.locale||p.lng||a.locale||a.lng||r;g=this.formats[h](c,b,{...v,...a,...p})}catch(p){this.logger.warn(p)}return g}else this.logger.warn(`there was no format function for ${h}`);return c},t)}}const CE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class xE extends P0{constructor(t,n,r,a={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=ao.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const i={},s={},c={},u={};return t.forEach(h=>{let v=!0;n.forEach(g=>{const p=`${h}|${g}`;!r.reload&&this.store.hasResourceBundle(h,g)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?s[p]===void 0&&(s[p]=!0):(this.state[p]=1,v=!1,s[p]===void 0&&(s[p]=!0),i[p]===void 0&&(i[p]=!0),u[g]===void 0&&(u[g]=!0)))}),v||(c[h]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(u)}}loaded(t,n,r){const a=t.split("|"),i=a[0],s=a[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(u=>{iE(u.loaded,[i],s),CE(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(h=>{c[h]||(c[h]={});const v=u.loaded[h];v.length&&v.forEach(g=>{c[h][g]===void 0&&(c[h][g]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(u=>!u.done)}read(t,n,r,a=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:s});return}this.readingCalls++;const c=(h,v)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(h&&v&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,i*2,s)},i);return}s(h,v)},u=this.backend[r].bind(this.backend);if(u.length===2){try{const h=u(t,n);h&&typeof h.then=="function"?h.then(v=>c(null,v)).catch(c):c(null,h)}catch(h){c(h)}return}return u(t,n,c)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ft(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Ft(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(s,c)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,s),!s&&c&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,c),this.loaded(t,s,c)})}saveMissing(t,n,r,a,i,s={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const u={...s,isUpdate:i},h=this.backend.create.bind(this.backend);if(h.length<6)try{let v;h.length===5?v=h(t,n,r,a,u):v=h(t,n,r,a),v&&typeof v.then=="function"?v.then(g=>c(null,g)).catch(c):c(null,v)}catch(v){c(v)}else h(t,n,r,a,c,u)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const Pv=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",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(typeof e[1]=="object"&&(t=e[1]),Ft(e[1])&&(t.defaultValue=e[1]),Ft(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),_v=e=>(Ft(e.ns)&&(e.ns=[e.ns]),Ft(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Ft(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),s3=()=>{},ME=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class S2 extends P0{constructor(t={},n){if(super(),this.options=_v(t),this.services={},this.logger=ao,this.modules={external:[]},ME(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Ft(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=Pv();this.options={...r,...this.options,..._v(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const a=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?ao.init(a(this.modules.logger),this.options):ao.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=SE;const v=new Ev(this.options);this.store=new $v(this.options.resources,this.options);const g=this.services;g.logger=ao,g.resourceStore=this.store,g.languageUtils=v,g.pluralResolver=new gE(v,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),h&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(h),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new pE(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new xE(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new a0(this.services,this.options),this.translator.on("*",(b,...y)=>{this.emit(b,...y)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=s3),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[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(h=>{this[h]=(...v)=>this.store[h](...v)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=(...v)=>(this.store[h](...v),this)});const c=Fs(),u=()=>{const h=(v,g)=>{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),c.resolve(g),n(v,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),c}loadResources(t,n=s3){let r=n;const a=Ft(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],s=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&i.indexOf(h)<0&&i.push(h)})};a?s(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload?.forEach?.(c=>s(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=Fs();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=s3),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ly.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Fs();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?this.isLanguageChangingTo===t&&(a(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,r.resolve((...h)=>this.t(...h)),n&&n(c,(...h)=>this.t(...h))},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=Ft(c)?c:c&&c[0],h=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Ft(c)?[c]:c);h&&(this.language||a(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector?.cacheUserLanguage?.(h)),this.loadResources(h,v=>{i(v,h)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r){const a=(i,s,...c)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([i,s].concat(c)):u={...s},u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||r||a.keyPrefix);const h=this.options.keySeparator||".";let v;return u.keyPrefix&&Array.isArray(i)?v=i.map(g=>(typeof g=="function"&&(g=Q5(g,{...this.options,...s})),`${u.keyPrefix}${h}${g}`)):(typeof i=="function"&&(i=Q5(i,{...this.options,...s})),v=u.keyPrefix?`${u.keyPrefix}${h}${i}`:i),this.t(v,u)};return Ft(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(c,u)=>{const h=this.services.backendConnector.state[`${c}|${u}`];return h===-1||h===0||h===2};if(n.precheck){const c=n.precheck(this,s);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!a||s(i,t)))}loadNamespaces(t,n){const r=Fs();return this.options.ns?(Ft(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Fs();Ft(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(s=>a.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const i=a.getTextInfo();if(i&&i.direction)return i.direction}}catch{}const n=["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"],r=this.services?.languageUtils||new Ev(Pv());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new S2(t,n)}cloneInstance(t={},n=s3){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new S2(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(c=>{i[c]=this[c]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const c=Object.keys(this.store.data).reduce((u,h)=>(u[h]={...this.store.data[h]},u[h]=Object.keys(u[h]).reduce((v,g)=>(v[g]={...u[h][g]},v),u[h]),u),{});i.store=new $v(c,a),i.services.resourceStore=i.store}return i.translator=new a0(i.services,a),i.translator.on("*",(c,...u)=>{i.emit(c,...u)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ir=S2.createInstance();Ir.createInstance=S2.createInstance;Ir.createInstance;Ir.dir;Ir.init;Ir.loadResources;Ir.reloadResources;Ir.use;Ir.changeLanguage;Ir.getFixedT;Ir.t;Ir.exists;Ir.setDefaultNamespace;Ir.hasLoadedNamespace;Ir.loadNamespaces;Ir.loadLanguages;const cy="locale";function Z5(e){"@babel/helpers - typeof";return Z5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z5(e)}function uy(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Z5(XMLHttpRequest))==="object"}function $E(e){return!!e&&typeof e.then=="function"}function zE(e){return $E(e)?e:Promise.resolve(e)}const wE="modulepreload",EE=function(e){return"/"+e},Nv={},J5=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let u=function(h){return Promise.all(h.map(v=>Promise.resolve(v).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),c=s?.nonce||s?.getAttribute("nonce");a=u(n.map(h=>{if(h=EE(h),h in Nv)return;Nv[h]=!0;const v=h.endsWith(".css"),g=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const p=document.createElement("link");if(p.rel=v?"stylesheet":wE,v||(p.as="script"),p.crossOrigin="",p.href=h,c&&p.setAttribute("nonce",c),document.head.appendChild(p),v)return new Promise((b,y)=>{p.addEventListener("load",b),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${h}`)))})}))}function i(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return a.then(s=>{for(const c of s||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(n),!0).forEach(function(r){OE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OE(e,t,n){return(t=IE(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IE(e){var t=RE(e,"string");return s1(t)=="symbol"?t:t+""}function RE(e,t){if(s1(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(s1(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s1(e){"@babel/helpers - typeof";return s1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s1(e)}var Mi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Mi=global.fetch:typeof window<"u"&&window.fetch&&(Mi=window.fetch);var C2;uy()&&(typeof global<"u"&&global.XMLHttpRequest?C2=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(C2=window.XMLHttpRequest));var o0;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?o0=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(o0=window.ActiveXObject));typeof Mi!="function"&&(Mi=void 0);if(!Mi&&!C2&&!o0)try{J5(()=>import("./browser-ponyfill-Cdu83Cfw.js").then(e=>e.b),[]).then(function(e){Mi=e.default}).catch(function(){})}catch{}var ed=function(t,n){if(n&&s1(n)==="object"){var r="";for(var a in n)r+="&"+encodeURIComponent(a)+"="+encodeURIComponent(n[a]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Dv=function(t,n,r,a){var i=function(u){if(!u.ok)return r(u.statusText||"Error",{status:u.status});u.text().then(function(h){r(null,{status:u.status,data:h})}).catch(r)};if(a){var s=a(t,n);if(s instanceof Promise){s.then(i).catch(r);return}}typeof fetch=="function"?fetch(t,n).then(i).catch(r):Mi(t,n).then(i).catch(r)},Lv=!1,TE=function(t,n,r,a){t.queryStringParams&&(n=ed(n,t.queryStringParams));var i=Av({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var s=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,c=Av({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Lv?{}:s),u=typeof t.alternateFetch=="function"&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{Dv(n,c,a,u)}catch(h){if(!s||Object.keys(s).length===0||!h.message||h.message.indexOf("not implemented")<0)return a(h);try{Object.keys(s).forEach(function(v){delete c[v]}),Dv(n,c,a,u),Lv=!0}catch(v){a(v)}}},PE=function(t,n,r,a){r&&s1(r)==="object"&&(r=ed("",r).slice(1)),t.queryStringParams&&(n=ed(n,t.queryStringParams));try{var i=C2?new C2:new o0("MSXML2.XMLHTTP.3.0");i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var s=t.customHeaders;if(s=typeof s=="function"?s():s,s)for(var c in s)i.setRequestHeader(c,s[c]);i.onreadystatechange=function(){i.readyState>3&&a(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(u){console&&console.log(u)}},_E=function(t,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Mi&&n.indexOf("file:")!==0)return TE(t,n,r,a);if(uy()||typeof ActiveXObject=="function")return PE(t,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function Bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function O4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(r){dy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fy(r.key),r)}}function AE(e,t,n){return t&&jE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dy(e,t,n){return(t=fy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fy(e){var t=DE(e,"string");return yl(t)=="symbol"?t:t+""}function DE(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LE=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return dy({},r,a||"")},parseLoadPayload:function(n,r){},request:_E,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},hy=(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};NE(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return AE(e,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=O4(O4(O4({},LE()),this.options||{}),a),this.allOptions=i,this.services&&this.options.reloadInterval){var s=setInterval(function(){return r.reload()},this.options.reloadInterval);yl(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,i,s){var c=this,u=this.options.loadPath;typeof this.options.loadPath=="function"&&(u=this.options.loadPath(n,a)),u=zE(u),u.then(function(h){if(!h)return s(null,{});var v=c.services.interpolator.interpolate(h,{lng:n.join("+"),ns:a.join("+")});c.loadUrl(v,s,r,i)})}},{key:"loadUrl",value:function(n,r,a,i){var s=this,c=typeof a=="string"?[a]:a,u=typeof i=="string"?[i]:i,h=this.options.parseLoadPayload(c,u);this.options.request(this.options,n,h,function(v,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&v&&v.message){var p=v.message.toLowerCase(),b=["failed","fetch","network","load"].find(function(S){return p.indexOf(S)>-1});if(b)return r("failed loading "+n+": "+v.message,!0)}if(v)return r(v,!1);var y,x;try{typeof g.data=="string"?y=s.options.parse(g.data,a,i):y=g.data}catch{x="failed parsing "+n+" to json"}if(x)return r(x,!1);r(null,y)})}},{key:"create",value:function(n,r,a,i,s){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var u=this.options.parsePayload(r,a,i),h=0,v=[],g=[];n.forEach(function(p){var b=c.options.addPath;typeof c.options.addPath=="function"&&(b=c.options.addPath(p,r));var y=c.services.interpolator.interpolate(b,{lng:p,ns:r});c.options.request(c.options,y,u,function(x,S){h+=1,v.push(x),g.push(S),h===n.length&&typeof s=="function"&&s(v,g)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,i=r.languageUtils,s=r.logger,c=a.language;if(!(c&&c.toLowerCase()==="cimode")){var u=[],h=function(g){var p=i.toResolveHierarchy(g);p.forEach(function(b){u.indexOf(b)<0&&u.push(b)})};h(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(v){return h(v)}),u.forEach(function(v){n.allOptions.ns.forEach(function(g){a.read(v,g,"read",null,null,function(p,b){p&&s.warn("loading namespace ".concat(g," for language ").concat(v," failed"),p),!p&&b&&s.log("loaded namespace ".concat(g," for language ").concat(v),b),a.loaded("".concat(v,"|").concat(g),p,b)})})})}}}])})();hy.type="backend";var I4={exports:{}},qt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -64,7 +64,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
64
64
|
`);else if($._keyframe)y($);else{var E=g.reduce(function(I,w){var O;return(w==null||(O=w.visit)===null||O===void 0?void 0:O.call(w,I))||I},$);Object.keys(E).forEach(function(I){var w=E[I];if(lt(w)==="object"&&w&&(I!=="animationName"||!w._keyframe)&&!lR(w)){var O=!1,T=I.trim(),_=!1;(a||i)&&c?T.startsWith("@")?O=!0:T==="&"?T=hm("",c,h):T=hm(I,c,h):a&&!c&&(T==="&"||T==="")&&(T="",_=!0);var j=e(w,n,{root:_,injectHash:O,parentSelectors:[].concat(De(s),[T])}),A=me(j,2),H=A[0],q=A[1];b=Z(Z({},b),q),p+="".concat(T).concat(H)}else{let G=function(N,k){var U=N.replace(/[A-Z]/g,function(R){return"-".concat(R.toLowerCase())}),D=k;!BI[N]&&typeof D=="number"&&D!==0&&(D="".concat(D,"px")),N==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(y(k),D=k.getName(c)),p+="".concat(U,":").concat(D,";")};var V,W=(V=w?.value)!==null&&V!==void 0?V:w;lt(w)==="object"&&w!==null&&w!==void 0&&w[Ky]&&Array.isArray(W)?W.forEach(function(N){G(I,N)}):G(I,W)}})}}),a?u&&(p&&(p="@layer ".concat(u.name," {").concat(p,"}")),u.dependencies&&(b["@layer ".concat(u.name)]=u.dependencies.map(function(M){return"@layer ".concat(M,", ").concat(u.name,";")}).join(`
|
|
65
65
|
`))):p="{".concat(p,"}"),[p,b]};function Yy(e,t){return z2("".concat(e.join("%")).concat(t))}function cR(){return null}var Qy="style";function br(e,t){var n=e.token,r=e.path,a=e.hashId,i=e.layer,s=e.nonce,c=e.clientOnly,u=e.order,h=u===void 0?0:u,v=f.useContext(d1),g=v.autoClear;v.mock;var p=v.defaultCache,b=v.hashPriority,y=v.container,x=v.ssrInline,S=v.transformers,M=v.linters,$=v.cache,E=v.layer,I=n._tokenKey,w=[I];E&&w.push("layer"),w.push.apply(w,De(r));var O=hd,T=E8(Qy,w,function(){var q=w.join("|");if(aR(q)){var V=oR(q),W=me(V,2),G=W[0],N=W[1];if(G)return[G,I,N,{},c,h]}var k=t(),U=sR(k,{hashId:a,hashPriority:b,layer:E?i:void 0,path:r.join("-"),transformers:S,linters:M}),D=me(U,2),R=D[0],B=D[1],L=U3(R),P=Yy(w,L);return[L,I,P,B,c,h]},function(q,V){var W=me(q,3),G=W[2];(V||g)&&hd&&w2(G,{mark:Ba,attachTo:y})},function(q){var V=me(q,4),W=V[0];V[1];var G=V[2],N=V[3];if(O&&W!==Gy){var k={mark:Ba,prepend:E?!1:"queue",attachTo:y,priority:h},U=typeof s=="function"?s():s;U&&(k.csp={nonce:U});var D=[],R=[];Object.keys(N).forEach(function(L){L.startsWith("@layer")?D.push(L):R.push(L)}),D.forEach(function(L){No(U3(N[L]),"_layer-".concat(L),Z(Z({},k),{},{prepend:!0}))});var B=No(W,G,k);B[bi]=$.instanceId,B.setAttribute(Cl,I),R.forEach(function(L){No(U3(N[L]),"_effect-".concat(L),k)})}}),_=me(T,3),j=_[0],A=_[1],H=_[2];return function(q){var V;return!x||O||!p?V=f.createElement(cR,null):V=f.createElement("style",Le({},J(J({},Cl,A),Ba,H),{dangerouslySetInnerHTML:{__html:j}})),f.createElement(f.Fragment,null,V,q)}}var uR=function(t,n,r){var a=me(t,6),i=a[0],s=a[1],c=a[2],u=a[3],h=a[4],v=a[5],g=r||{},p=g.plain;if(h)return null;var b=i,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)};return b=c0(i,s,c,y,p),u&&Object.keys(u).forEach(function(x){if(!n[x]){n[x]=!0;var S=U3(u[x]),M=c0(S,s,"_effect-".concat(x),y,p);x.startsWith("@layer")?b=M+b:b+=M}}),[v,c,b]},Zy="cssVar",dR=function(t,n){var r=t.key,a=t.prefix,i=t.unitless,s=t.ignore,c=t.token,u=t.scope,h=u===void 0?"":u,v=f.useContext(d1),g=v.cache.instanceId,p=v.container,b=c._tokenKey,y=[].concat(De(t.path),[r,h,b]),x=E8(Zy,y,function(){var S=n(),M=Ly(S,r,{prefix:a,unitless:i,ignore:s,scope:h}),$=me(M,2),E=$[0],I=$[1],w=Yy(y,I);return[E,I,w,r]},function(S){var M=me(S,3),$=M[2];hd&&w2($,{mark:Ba,attachTo:p})},function(S){var M=me(S,3),$=M[1],E=M[2];if($){var I=No($,E,{mark:Ba,prepend:"queue",attachTo:p,priority:-999});I[bi]=g,I.setAttribute(Cl,r)}});return x},fR=function(t,n,r){var a=me(t,4),i=a[1],s=a[2],c=a[3],u=r||{},h=u.plain;if(!i)return null;var v=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(v)},p=c0(i,c,s,g,h);return[v,s,p]};J(J(J({},Qy,uR),Hy,LI),Zy,fR);var Ut=(function(){function e(t,n){Wn(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=n}return qn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function Y1(e){return e.notSplit=!0,e}Y1(["borderTop","borderBottom"]),Y1(["borderTop"]),Y1(["borderBottom"]),Y1(["borderLeft","borderRight"]),Y1(["borderLeft"]),Y1(["borderRight"]);var R8=f.createContext({});function Jy(e){return Ty(e)||Ey(e)||M8(e)||Py()}function oo(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function eS(e,t,n,r){if(!t.length)return n;var a=Jy(t),i=a[0],s=a.slice(1),c;return!e&&typeof i=="number"?c=[]:Array.isArray(e)?c=De(e):c=Z({},e),r&&n===void 0&&s.length===1?delete c[i][s[0]]:c[i]=eS(c[i],s,n,r),c}function Aa(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!oo(e,t.slice(0,-1))?e:eS(e,t,n,r)}function hR(e){return lt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function vm(e){return Array.isArray(e)?[]:{}}var vR=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ul(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=vm(t[0]);return t.forEach(function(a){function i(s,c){var u=new Set(c),h=oo(a,s),v=Array.isArray(h);if(v||hR(h)){if(!u.has(h)){u.add(h);var g=oo(r,s);v?r=Aa(r,s,[]):(!g||lt(g)!=="object")&&(r=Aa(r,s,vm(h))),vR(h).forEach(function(p){i([].concat(De(s),[p]),u)})}}else r=Aa(r,s,h)}i([])}),r}function mR(){}const gR=f.createContext({}),U2=()=>{const e=()=>{};return e.deprecated=mR,e},pR=f.createContext(void 0);var tS={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},bR={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},yR=Z(Z({},bR),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const nS={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},mm={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},yR),timePickerLocale:Object.assign({},nS)},ua="${label} is not a valid ${type}",jo={locale:"en",Pagination:tS,DatePicker:mm,TimePicker:nS,Calendar:mm,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:ua,method:ua,array:ua,object:ua,number:ua,date:ua,boolean:ua,integer:ua,float:ua,regexp:ua,email:ua,url:ua,hex:ua},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let W3=Object.assign({},jo.Modal),q3=[];const gm=()=>q3.reduce((e,t)=>Object.assign(Object.assign({},e),t),jo.Modal);function SR(e){if(e){const t=Object.assign({},e);return q3.push(t),W3=gm(),()=>{q3=q3.filter(n=>n!==t),W3=gm()}}W3=Object.assign({},jo.Modal)}function rS(){return W3}const T8=f.createContext(void 0),ho=(e,t)=>{const n=f.useContext(T8),r=f.useMemo(()=>{var i;const s=t||jo[e],c=(i=n?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),c||{})},[e,t,n]),a=f.useMemo(()=>{const i=n?.locale;return n?.exist&&!i?jo.locale:i},[n]);return[r,a]},CR="internalMark",xR=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;f.useEffect(()=>SR(t?.Modal),[t]);const a=f.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return f.createElement(T8.Provider,{value:a},n)},P8={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$l=Object.assign(Object.assign({},P8),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
66
66
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
67
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),pr=Math.round;function H4(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const pm=(e,t,n)=>n===0?e:e/100;function Vs(e,t){const n=t||255;return e>n?n:e<0?0:e}class un{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof un)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Vs(t.r),this.g=Vs(t.g),this.b=Vs(t.b),this.a=typeof t.a=="number"?Vs(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,i=c=>(r[c]-this[c])*a+this[c],s={r:pr(i("r")),g:pr(i("g")),b:pr(i("b")),a:pr(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>pr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=pr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=pr(this.getSaturation()*100),r=pr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=Vs(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,i){return parseInt(n[a]+n[i||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const p=pr(r*255);this.r=p,this.g=p,this.b=p}let i=0,s=0,c=0;const u=t/60,h=(1-Math.abs(2*r-1))*n,v=h*(1-Math.abs(u%2-1));u>=0&&u<1?(i=h,s=v):u>=1&&u<2?(i=v,s=h):u>=2&&u<3?(s=h,c=v):u>=3&&u<4?(s=v,c=h):u>=4&&u<5?(i=v,c=h):u>=5&&u<6&&(i=h,c=v);const g=r-h/2;this.r=pr((i+g)*255),this.g=pr((s+g)*255),this.b=pr((c+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const i=pr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const s=t/60,c=Math.floor(s),u=s-c,h=pr(r*(1-n)*255),v=pr(r*(1-n*u)*255),g=pr(r*(1-n*(1-u))*255);switch(c){case 0:this.g=g,this.b=h;break;case 1:this.r=v,this.b=h;break;case 2:this.r=h,this.b=g;break;case 3:this.r=h,this.g=v;break;case 4:this.r=g,this.g=h;break;case 5:default:this.g=h,this.b=v;break}}fromHsvString(t){const n=H4(t,pm);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=H4(t,pm);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=H4(t,(r,a)=>a.includes("%")?pr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var u3=2,bm=.16,MR=.05,$R=.05,zR=.15,aS=5,oS=4,wR=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ym(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-u3*t:Math.round(e.h)+u3*t:r=n?Math.round(e.h)+u3*t:Math.round(e.h)-u3*t,r<0?r+=360:r>=360&&(r-=360),r}function Sm(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-bm*t:t===oS?r=e.s+bm:r=e.s+MR*t,r>1&&(r=1),n&&t===aS&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Cm(e,t,n){var r;return n?r=e.v+$R*t:r=e.v-zR*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function f1(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new un(e),a=r.toHsv(),i=aS;i>0;i-=1){var s=new un({h:ym(a,i,!0),s:Sm(a,i,!0),v:Cm(a,i,!0)});n.push(s)}n.push(r);for(var c=1;c<=oS;c+=1){var u=new un({h:ym(a,c),s:Sm(a,c),v:Cm(a,c)});n.push(u)}return t.theme==="dark"?wR.map(function(h){var v=h.index,g=h.amount;return new un(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(h){return h.toHexString()})}var ml={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pd.primary=pd[5];var bd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bd.primary=bd[5];var yd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yd.primary=yd[5];var u0=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];u0.primary=u0[5];var Sd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Sd.primary=Sd[5];var Cd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cd.primary=Cd[5];var xd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xd.primary=xd[5];var Md=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Md.primary=Md[5];var zl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zl.primary=zl[5];var $d=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$d.primary=$d[5];var zd=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zd.primary=zd[5];var wd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wd.primary=wd[5];var Ed=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ed.primary=Ed[5];var F4={red:pd,volcano:bd,orange:yd,gold:u0,yellow:Sd,lime:Cd,green:xd,cyan:Md,blue:zl,geekblue:$d,purple:zd,magenta:wd,grey:Ed};function iS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:h}=e,v=t(c),g=t(r),p=t(a),b=t(i),y=t(s),x=n(u,h),S=e.colorLink||e.colorInfo,M=t(S),$=new un(b[1]).mix(new un(b[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:$,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:M[4],colorLink:M[6],colorLinkActive:M[7],colorBgMask:new un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ER=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function OR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},ER(r))}const lS=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function G3(e){return(e+8)/e}function IR(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,i=e*Math.pow(Math.E,a/5),s=r>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:G3(n)}))}const sS=e=>{const t=IR(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),a=n[1],i=n[0],s=n[2],c=r[1],u=r[0],h=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:h,lineHeightSM:u,fontHeight:Math.round(c*a),fontHeightLG:Math.round(h*s),fontHeightSM:Math.round(u*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function RR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ma=(e,t)=>new un(e).setA(t).toRgbString(),Us=(e,t)=>new un(e).darken(t).toHexString(),TR=e=>{const t=f1(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},PR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ma(r,.88),colorTextSecondary:Ma(r,.65),colorTextTertiary:Ma(r,.45),colorTextQuaternary:Ma(r,.25),colorFill:Ma(r,.15),colorFillSecondary:Ma(r,.06),colorFillTertiary:Ma(r,.04),colorFillQuaternary:Ma(r,.02),colorBgSolid:Ma(r,1),colorBgSolidHover:Ma(r,.75),colorBgSolidActive:Ma(r,.95),colorBgLayout:Us(n,4),colorBgContainer:Us(n,0),colorBgElevated:Us(n,0),colorBgSpotlight:Ma(r,.85),colorBgBlur:"transparent",colorBorder:Us(n,15),colorBorderSecondary:Us(n,6)}};function B0(e){ml.pink=ml.magenta,F4.pink=F4.magenta;const t=Object.keys(P8).map(n=>{const r=e[n]===ml[n]?F4[n]:f1(e[n]);return Array.from({length:10},()=>1).reduce((a,i,s)=>(a[`${n}-${s+1}`]=r[s],a[`${n}${s+1}`]=r[s],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),iS(e,{generateColorPalettes:TR,generateNeutralColorPalettes:PR})),sS(e.fontSize)),RR(e)),lS(e)),OR(e))}const _8=s0(B0),O2={token:$l,override:{override:$l},hashed:!0},N8=ae.createContext(O2),I2="ant",H0="anticon",_R=["outlined","borderless","filled","underlined"],NR=(e,t)=>t||(e?`${I2}-${e}`:I2),ht=f.createContext({getPrefixCls:NR,iconPrefixCls:H0}),{Consumer:sZ}=ht,xm={};function qr(e){const t=f.useContext(ht),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:xm,styles:xm},i),{getPrefixCls:n,direction:r,getPopupContainer:a})}const jR=`-ant-${Date.now()}-${Math.random()}`;function AR(e,t){const n={},r=(s,c)=>{let u=s.clone();return u=c?.(u)||u,u.toRgbString()},a=(s,c)=>{const u=new un(s),h=f1(u.toRgbString());n[`${c}-color`]=r(u),n[`${c}-color-disabled`]=h[1],n[`${c}-color-hover`]=h[4],n[`${c}-color-active`]=h[6],n[`${c}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=h[0],n[`${c}-color-deprecated-border`]=h[2]};if(t.primaryColor){a(t.primaryColor,"primary");const s=new un(t.primaryColor),c=f1(s.toRgbString());c.forEach((h,v)=>{n[`primary-${v+1}`]=h}),n["primary-color-deprecated-l-35"]=r(s,h=>h.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,h=>h.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,h=>h.tint(20)),n["primary-color-deprecated-t-50"]=r(s,h=>h.tint(50)),n["primary-color-deprecated-f-12"]=r(s,h=>h.setA(h.a*.12));const u=new un(c[0]);n["primary-color-active-deprecated-f-30"]=r(u,h=>h.setA(h.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,h=>h.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
67
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),pr=Math.round;function H4(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const pm=(e,t,n)=>n===0?e:e/100;function Vs(e,t){const n=t||255;return e>n?n:e<0?0:e}class un{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof un)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Vs(t.r),this.g=Vs(t.g),this.b=Vs(t.b),this.a=typeof t.a=="number"?Vs(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=pr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,i=c=>(r[c]-this[c])*a+this[c],s={r:pr(i("r")),g:pr(i("g")),b:pr(i("b")),a:pr(i("a")*100)/100};return this._c(s)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),a=i=>pr((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=pr(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=pr(this.getSaturation()*100),r=pr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const a=this.clone();return a[t]=Vs(n,r),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(a,i){return parseInt(n[a]+n[i||a],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const p=pr(r*255);this.r=p,this.g=p,this.b=p}let i=0,s=0,c=0;const u=t/60,h=(1-Math.abs(2*r-1))*n,v=h*(1-Math.abs(u%2-1));u>=0&&u<1?(i=h,s=v):u>=1&&u<2?(i=v,s=h):u>=2&&u<3?(s=h,c=v):u>=3&&u<4?(s=v,c=h):u>=4&&u<5?(i=v,c=h):u>=5&&u<6&&(i=h,c=v);const g=r-h/2;this.r=pr((i+g)*255),this.g=pr((s+g)*255),this.b=pr((c+g)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const i=pr(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const s=t/60,c=Math.floor(s),u=s-c,h=pr(r*(1-n)*255),v=pr(r*(1-n*u)*255),g=pr(r*(1-n*(1-u))*255);switch(c){case 0:this.g=g,this.b=h;break;case 1:this.r=v,this.b=h;break;case 2:this.r=h,this.b=g;break;case 3:this.r=h,this.g=v;break;case 4:this.r=g,this.g=h;break;case 5:default:this.g=h,this.b=v;break}}fromHsvString(t){const n=H4(t,pm);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=H4(t,pm);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=H4(t,(r,a)=>a.includes("%")?pr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var u3=2,bm=.16,MR=.05,$R=.05,zR=.15,aS=5,oS=4,wR=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function ym(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-u3*t:Math.round(e.h)+u3*t:r=n?Math.round(e.h)+u3*t:Math.round(e.h)-u3*t,r<0?r+=360:r>=360&&(r-=360),r}function Sm(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-bm*t:t===oS?r=e.s+bm:r=e.s+MR*t,r>1&&(r=1),n&&t===aS&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Cm(e,t,n){var r;return n?r=e.v+$R*t:r=e.v-zR*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function f1(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new un(e),a=r.toHsv(),i=aS;i>0;i-=1){var s=new un({h:ym(a,i,!0),s:Sm(a,i,!0),v:Cm(a,i,!0)});n.push(s)}n.push(r);for(var c=1;c<=oS;c+=1){var u=new un({h:ym(a,c),s:Sm(a,c),v:Cm(a,c)});n.push(u)}return t.theme==="dark"?wR.map(function(h){var v=h.index,g=h.amount;return new un(t.backgroundColor||"#141414").mix(n[v],g).toHexString()}):n.map(function(h){return h.toHexString()})}var ml={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pd=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pd.primary=pd[5];var bd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bd.primary=bd[5];var yd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yd.primary=yd[5];var u0=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];u0.primary=u0[5];var Sd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Sd.primary=Sd[5];var Cd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Cd.primary=Cd[5];var xd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];xd.primary=xd[5];var Md=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Md.primary=Md[5];var zl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];zl.primary=zl[5];var $d=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];$d.primary=$d[5];var zd=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];zd.primary=zd[5];var wd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];wd.primary=wd[5];var Ed=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ed.primary=Ed[5];var F4={red:pd,volcano:bd,orange:yd,gold:u0,yellow:Sd,lime:Cd,green:xd,cyan:Md,blue:zl,geekblue:$d,purple:zd,magenta:wd,grey:Ed};function iS(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:h}=e,v=t(c),g=t(r),p=t(a),b=t(i),y=t(s),x=n(u,h),S=e.colorLink||e.colorInfo,M=t(S),$=new un(b[1]).mix(new un(b[3]),50).toHexString();return Object.assign(Object.assign({},x),{colorPrimaryBg:v[1],colorPrimaryBgHover:v[2],colorPrimaryBorder:v[3],colorPrimaryBorderHover:v[4],colorPrimaryHover:v[5],colorPrimary:v[6],colorPrimaryActive:v[7],colorPrimaryTextHover:v[8],colorPrimaryText:v[9],colorPrimaryTextActive:v[10],colorSuccessBg:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:$,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:M[4],colorLink:M[6],colorLinkActive:M[7],colorBgMask:new un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ER=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function OR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},ER(r))}const lS=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function G3(e){return(e+8)/e}function IR(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,i=e*Math.pow(Math.E,a/5),s=r>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:G3(n)}))}const sS=e=>{const t=IR(e),n=t.map(v=>v.size),r=t.map(v=>v.lineHeight),a=n[1],i=n[0],s=n[2],c=r[1],u=r[0],h=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:s,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:h,lineHeightSM:u,fontHeight:Math.round(c*a),fontHeightLG:Math.round(h*s),fontHeightSM:Math.round(u*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function RR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Ma=(e,t)=>new un(e).setA(t).toRgbString(),Us=(e,t)=>new un(e).darken(t).toHexString(),TR=e=>{const t=f1(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},PR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ma(r,.88),colorTextSecondary:Ma(r,.65),colorTextTertiary:Ma(r,.45),colorTextQuaternary:Ma(r,.25),colorFill:Ma(r,.15),colorFillSecondary:Ma(r,.06),colorFillTertiary:Ma(r,.04),colorFillQuaternary:Ma(r,.02),colorBgSolid:Ma(r,1),colorBgSolidHover:Ma(r,.75),colorBgSolidActive:Ma(r,.95),colorBgLayout:Us(n,4),colorBgContainer:Us(n,0),colorBgElevated:Us(n,0),colorBgSpotlight:Ma(r,.85),colorBgBlur:"transparent",colorBorder:Us(n,15),colorBorderSecondary:Us(n,6)}};function B0(e){ml.pink=ml.magenta,F4.pink=F4.magenta;const t=Object.keys(P8).map(n=>{const r=e[n]===ml[n]?F4[n]:f1(e[n]);return Array.from({length:10},()=>1).reduce((a,i,s)=>(a[`${n}-${s+1}`]=r[s],a[`${n}${s+1}`]=r[s],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),iS(e,{generateColorPalettes:TR,generateNeutralColorPalettes:PR})),sS(e.fontSize)),RR(e)),lS(e)),OR(e))}const _8=s0(B0),O2={token:$l,override:{override:$l},hashed:!0},N8=ae.createContext(O2),I2="ant",H0="anticon",_R=["outlined","borderless","filled","underlined"],NR=(e,t)=>t||(e?`${I2}-${e}`:I2),ht=f.createContext({getPrefixCls:NR,iconPrefixCls:H0}),{Consumer:lZ}=ht,xm={};function qr(e){const t=f.useContext(ht),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:xm,styles:xm},i),{getPrefixCls:n,direction:r,getPopupContainer:a})}const jR=`-ant-${Date.now()}-${Math.random()}`;function AR(e,t){const n={},r=(s,c)=>{let u=s.clone();return u=c?.(u)||u,u.toRgbString()},a=(s,c)=>{const u=new un(s),h=f1(u.toRgbString());n[`${c}-color`]=r(u),n[`${c}-color-disabled`]=h[1],n[`${c}-color-hover`]=h[4],n[`${c}-color-active`]=h[6],n[`${c}-color-outline`]=u.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=h[0],n[`${c}-color-deprecated-border`]=h[2]};if(t.primaryColor){a(t.primaryColor,"primary");const s=new un(t.primaryColor),c=f1(s.toRgbString());c.forEach((h,v)=>{n[`primary-${v+1}`]=h}),n["primary-color-deprecated-l-35"]=r(s,h=>h.lighten(35)),n["primary-color-deprecated-l-20"]=r(s,h=>h.lighten(20)),n["primary-color-deprecated-t-20"]=r(s,h=>h.tint(20)),n["primary-color-deprecated-t-50"]=r(s,h=>h.tint(50)),n["primary-color-deprecated-f-12"]=r(s,h=>h.setA(h.a*.12));const u=new un(c[0]);n["primary-color-active-deprecated-f-30"]=r(u,h=>h.setA(h.a*.3)),n["primary-color-active-deprecated-d-02"]=r(u,h=>h.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),`
|
|
68
68
|
:root {
|
|
69
69
|
${Object.keys(n).map(s=>`--${e}-${s}: ${n[s]};`).join(`
|
|
70
70
|
`)}
|
|
@@ -372,21 +372,21 @@ html body {
|
|
|
372
372
|
${n}-eye,
|
|
373
373
|
${n}-download,
|
|
374
374
|
${n}-delete
|
|
375
|
-
`]:{zIndex:10,width:r,margin:`0 ${ee(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ee(i(e.paddingXS).mul(2).equal())})`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ee(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},bG=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},yG=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},_n(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},SG=e=>({actionsColor:e.colorIcon}),CG=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:i}=e,s=Wt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(a).mul(2.55).equal()});return[yG(s),hG(s),gG(s),pG(s),vG(s),mG(s),bG(s),ZS(s)]},SG);var xG={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},MG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:xG}))},$G=f.forwardRef(MG),zG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},wG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:zG}))},EG=f.forwardRef(wG),OG={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},IG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:OG}))},RG=f.forwardRef(IG);function x3(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function M3(e,t){const n=De(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function I5(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function TG(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const PG=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},VM=e=>e.indexOf("image/")===0,_G=e=>{if(e.type&&!e.thumbUrl)return VM(e.type);const t=e.thumbUrl||e.url||"",n=PG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},fi=200;function NG(e){return new Promise(t=>{if(!e.type||!VM(e.type)){t("");return}const n=document.createElement("canvas");n.width=fi,n.height=fi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${fi}px; height: ${fi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:s}=a;let c=fi,u=fi,h=0,v=0;i>s?(u=s*(fi/i),v=-(u-c)/2):(c=i*(fi/s),h=-(c-u)/2),r.drawImage(a,h,v,c,u);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var jG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},AG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:jG}))},DG=f.forwardRef(AG);const LG=f.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:s,progress:c,iconRender:u,actionIconRender:h,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:y,previewIcon:x,removeIcon:S,downloadIcon:M,extra:$,onPreview:E,onDownload:I,onClose:w},O)=>{var T,_;const{status:j}=i,[A,H]=f.useState(j);f.useEffect(()=>{j!=="removed"&&H(j)},[j]);const[q,V]=f.useState(!1);f.useEffect(()=>{const ie=setTimeout(()=>{V(!0)},300);return()=>{clearTimeout(ie)}},[]);const W=u(i);let G=f.createElement("div",{className:`${e}-icon`},W);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(A==="uploading"||!i.thumbUrl&&!i.url){const ie=te(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:A!=="uploading"});G=f.createElement("div",{className:ie},W)}else{const ie=g?.(i)?f.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):W,ce=te(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(i)});G=f.createElement("a",{className:ce,onClick:ge=>E(i,ge),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ie)}const N=te(`${e}-list-item`,`${e}-list-item-${A}`),k=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,U=(typeof b=="function"?b(i):b)?h((typeof S=="function"?S(i):S)||f.createElement(vq,null),()=>w(i),e,r.removeFile,!0):null,D=(typeof y=="function"?y(i):y)&&A==="done"?h((typeof M=="function"?M(i):M)||f.createElement(DG,null),()=>I(i),e,r.downloadFile):null,R=a!=="picture-card"&&a!=="picture-circle"&&f.createElement("span",{key:"download-delete",className:te(`${e}-list-item-actions`,{picture:a==="picture"})},D,U),B=typeof $=="function"?$(i):$,L=B&&f.createElement("span",{className:`${e}-list-item-extra`},B),P=te(`${e}-list-item-name`),X=i.url?f.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:P,title:i.name},k,{href:i.url,onClick:ie=>E(i,ie)}),i.name,L):f.createElement("span",{key:"view",className:P,onClick:ie=>E(i,ie),title:i.name},i.name,L),Y=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?f.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ie=>E(i,ie),title:r.previewFile},typeof x=="function"?x(i):x||f.createElement($M,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&A!=="uploading"&&f.createElement("span",{className:`${e}-list-item-actions`},Y,A==="done"&&D,U),{getPrefixCls:le}=f.useContext(ht),ne=le(),fe=f.createElement("div",{className:N},G,X,R,Q,q&&f.createElement(Ga,{motionName:`${ne}-fade`,visible:A==="uploading",motionDeadline:2e3},({className:ie})=>{const ce="percent"in i?f.createElement(KW,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},c)):null;return f.createElement("div",{className:te(`${e}-list-item-progress`,ie)},ce)})),ye=i.response&&typeof i.response=="string"?i.response:((T=i.error)===null||T===void 0?void 0:T.statusText)||((_=i.error)===null||_===void 0?void 0:_.message)||r.uploadError,se=A==="error"?f.createElement(Oi,{title:ye,getPopupContainer:ie=>ie.parentNode},fe):fe;return f.createElement("div",{className:te(`${e}-list-item-container`,t),style:n,ref:O},v?v(se,i,s,{download:I.bind(null,i),preview:E.bind(null,i),remove:w.bind(null,i)}):se)}),BG=(e,t)=>{const{listType:n="text",previewFile:r=NG,onPreview:a,onDownload:i,onRemove:s,locale:c,iconRender:u,isImageUrl:h=_G,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:b=!0,showDownloadIcon:y=!1,removeIcon:x,previewIcon:S,downloadIcon:M,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:w=!0,itemRender:O,disabled:T}=e,_=fx(),[j,A]=f.useState(!1),H=["picture-card","picture-circle"].includes(n);f.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(P=>{!(P.originFileObj instanceof File||P.originFileObj instanceof Blob)||P.thumbUrl!==void 0||(P.thumbUrl="",r?.(P.originFileObj).then(X=>{P.thumbUrl=X||"",_()}))})},[n,g,r]),f.useEffect(()=>{A(!0)},[]);const q=(P,X)=>{if(a)return X?.preventDefault(),a(P)},V=P=>{typeof i=="function"?i(P):P.url&&window.open(P.url)},W=P=>{s?.(P)},G=P=>{if(u)return u(P,n);const X=P.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?f.createElement(Ol,null):c.uploading,Q=h?.(P)?f.createElement(RG,null):f.createElement($G,null);return X?Y:Q}return X?f.createElement(Ol,null):f.createElement(EG,null)},N=(P,X,Y,Q,le)=>{const ne={type:"text",size:"small",title:Q,onClick:fe=>{var ye,se;X(),f.isValidElement(P)&&((se=(ye=P.props).onClick)===null||se===void 0||se.call(ye,fe))},className:`${Y}-list-item-action`,disabled:le?T:!1};return f.isValidElement(P)?f.createElement(Va,Object.assign({},ne,{icon:Ur(P,Object.assign(Object.assign({},P.props),{onClick:()=>{}}))})):f.createElement(Va,Object.assign({},ne),f.createElement("span",null,P))};f.useImperativeHandle(t,()=>({handlePreview:q,handleDownload:V}));const{getPrefixCls:k}=f.useContext(ht),U=k("upload",v),D=k(),R=te(`${U}-list`,`${U}-list-${n}`),B=f.useMemo(()=>Hn(GS(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),L=Object.assign(Object.assign({},H?{}:B),{motionDeadline:2e3,motionName:`${U}-${H?"animate-inline":"animate"}`,keys:De(g.map(P=>({key:P.uid,file:P}))),motionAppear:j});return f.createElement("div",{className:R},f.createElement(OS,Object.assign({},L,{component:!1}),({key:P,file:X,className:Y,style:Q})=>f.createElement(LG,{key:P,locale:c,prefixCls:U,className:Y,style:Q,file:X,items:g,progress:E,listType:n,isImgUrl:h,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:y,removeIcon:x,previewIcon:S,downloadIcon:M,extra:$,iconRender:G,actionIconRender:N,itemRender:O,onPreview:q,onDownload:V,onClose:W})),I&&f.createElement(Ga,Object.assign({},L,{visible:w,forceRender:!0}),({className:P,style:X})=>Ur(I,Y=>({className:te(Y.className,P),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:P?"none":void 0}),Y.style)}))))},HG=f.forwardRef(BG);var FG=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(v){try{h(r.next(v))}catch(g){s(g)}}function u(v){try{h(r.throw(v))}catch(g){s(g)}}function h(v){v.done?i(v.value):a(v.value).then(c,u)}h((r=r.apply(e,[])).next())})};const f2=`__LIST_IGNORE_${Date.now()}__`,kG=(e,t)=>{const n=qr("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:s=!0,listType:c="text",onPreview:u,onDownload:h,onChange:v,onDrop:g,previewFile:p,disabled:b,locale:y,iconRender:x,isImageUrl:S,progress:M,prefixCls:$,className:E,type:I="select",children:w,style:O,itemRender:T,maxCount:_,data:j={},multiple:A=!1,hasControlInside:H=!0,action:q="",accept:V="",supportServerRender:W=!0,rootClassName:G}=e,N=f.useContext(Fa),k=b??N,U=e.customRequest||n.customRequest,[D,R]=Yn(a||[],{value:r,postState:we=>we??[]}),[B,L]=f.useState("drop"),P=f.useRef(null),X=f.useRef(null);f.useMemo(()=>{const we=Date.now();(r||[]).forEach((Ee,nt)=>{!Ee.uid&&!Object.isFrozen(Ee)&&(Ee.uid=`__AUTO__${we}_${nt}__`)})},[r]);const Y=(we,Ee,nt)=>{let Ke=De(Ee),Rt=!1;_===1?Ke=Ke.slice(-1):_&&(Rt=Ke.length>_,Ke=Ke.slice(0,_)),so.flushSync(()=>{R(Ke)});const Tt={file:we,fileList:Ke};nt&&(Tt.event=nt),(!Rt||we.status==="removed"||Ke.some(Gt=>Gt.uid===we.uid))&&so.flushSync(()=>{v?.(Tt)})},Q=(we,Ee)=>FG(void 0,void 0,void 0,function*(){const{beforeUpload:nt,transformFile:Ke}=e;let Rt=we;if(nt){const Tt=yield nt(we,Ee);if(Tt===!1)return!1;if(delete we[f2],Tt===f2)return Object.defineProperty(we,f2,{value:!0,configurable:!0}),!1;typeof Tt=="object"&&Tt&&(Rt=Tt)}return Ke&&(Rt=yield Ke(Rt)),Rt}),le=we=>{const Ee=we.filter(Rt=>!Rt.file[f2]);if(!Ee.length)return;const nt=Ee.map(Rt=>x3(Rt.file));let Ke=De(D);nt.forEach(Rt=>{Ke=M3(Rt,Ke)}),nt.forEach((Rt,Tt)=>{let Gt=Rt;if(Ee[Tt].parsedFile)Rt.status="uploading";else{const{originFileObj:nn}=Rt;let kt;try{kt=new File([nn],nn.name,{type:nn.type})}catch{kt=new Blob([nn],{type:nn.type}),kt.name=nn.name,kt.lastModifiedDate=new Date,kt.lastModified=new Date().getTime()}kt.uid=Rt.uid,Gt=kt}Y(Gt,Ke)})},ne=(we,Ee,nt)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!I5(Ee,D))return;const Ke=x3(Ee);Ke.status="done",Ke.percent=100,Ke.response=we,Ke.xhr=nt;const Rt=M3(Ke,D);Y(Ke,Rt)},fe=(we,Ee)=>{if(!I5(Ee,D))return;const nt=x3(Ee);nt.status="uploading",nt.percent=we.percent;const Ke=M3(nt,D);Y(nt,Ke,we)},ye=(we,Ee,nt)=>{if(!I5(nt,D))return;const Ke=x3(nt);Ke.error=we,Ke.response=Ee,Ke.status="error";const Rt=M3(Ke,D);Y(Ke,Rt)},se=we=>{let Ee;Promise.resolve(typeof i=="function"?i(we):i).then(nt=>{var Ke;if(nt===!1)return;const Rt=TG(we,D);Rt&&(Ee=Object.assign(Object.assign({},we),{status:"removed"}),D?.forEach(Tt=>{const Gt=Ee.uid!==void 0?"uid":"name";Tt[Gt]===Ee[Gt]&&!Object.isFrozen(Tt)&&(Tt.status="removed")}),(Ke=P.current)===null||Ke===void 0||Ke.abort(Ee),Y(Ee,Rt))})},ie=we=>{L(we.type),we.type==="drop"&&g?.(we)};f.useImperativeHandle(t,()=>({onBatchStart:le,onSuccess:ne,onProgress:fe,onError:ye,fileList:D,upload:P.current,nativeElement:X.current}));const{getPrefixCls:ce,direction:ge,upload:ue}=f.useContext(ht),re=ce("upload",$),pe=Object.assign(Object.assign({onBatchStart:le,onError:ye,onProgress:fe,onSuccess:ne},e),{customRequest:U,data:j,multiple:A,action:q,accept:V,supportServerRender:W,prefixCls:re,disabled:k,beforeUpload:Q,onChange:void 0,hasControlInside:H});delete pe.className,delete pe.style,(!w||k)&&delete pe.id;const $e=`${re}-wrapper`,[Oe,_e,Ne]=CG(re,$e),[Te]=ho("Upload",jo.Upload),{showRemoveIcon:Ie,showPreviewIcon:ze,showDownloadIcon:qe,removeIcon:Ue,previewIcon:et,downloadIcon:tt,extra:Be}=typeof s=="boolean"?{}:s,bt=typeof Ie>"u"?!k:Ie,it=(we,Ee)=>s?f.createElement(HG,{prefixCls:re,listType:c,items:D,previewFile:p,onPreview:u,onDownload:h,onRemove:se,showRemoveIcon:bt,showPreviewIcon:ze,showDownloadIcon:qe,removeIcon:Ue,previewIcon:et,downloadIcon:tt,iconRender:x,extra:Be,locale:Object.assign(Object.assign({},Te),y),isImageUrl:S,progress:M,appendAction:we,appendActionVisible:Ee,itemRender:T,disabled:k}):we,ct=te($e,E,G,_e,Ne,ue?.className,{[`${re}-rtl`]:ge==="rtl",[`${re}-picture-card-wrapper`]:c==="picture-card",[`${re}-picture-circle-wrapper`]:c==="picture-circle"}),Xe=Object.assign(Object.assign({},ue?.style),O);if(I==="drag"){const we=te(_e,re,`${re}-drag`,{[`${re}-drag-uploading`]:D.some(Ee=>Ee.status==="uploading"),[`${re}-drag-hover`]:B==="dragover",[`${re}-disabled`]:k,[`${re}-rtl`]:ge==="rtl"});return Oe(f.createElement("span",{className:ct,ref:X},f.createElement("div",{className:we,style:Xe,onDrop:ie,onDragOver:ie,onDragLeave:ie},f.createElement(u8,Object.assign({},pe,{ref:P,className:`${re}-btn`}),f.createElement("div",{className:`${re}-drag-container`},w))),it()))}const Fe=te(re,`${re}-select`,{[`${re}-disabled`]:k,[`${re}-hidden`]:!w}),Qe=f.createElement("div",{className:Fe,style:Xe},f.createElement(u8,Object.assign({},pe,{ref:P})));return Oe(c==="picture-card"||c==="picture-circle"?f.createElement("span",{className:ct,ref:X},it(Qe,!!w)):f.createElement("span",{className:ct,ref:X},Qe,it()))},UM=f.forwardRef(kG);var VG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const UG=f.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:a=!1}=e,i=VG(e,["style","height","hasControlInside"]);return f.createElement(UM,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),I7=UM;I7.Dragger=UG;I7.LIST_IGNORE=f2;const WG={50:"#ffffff",60:"#fdfdfd","60-88":"#fdfdfde0",75:"#fbfcfd",80:"#fafafa",90:"#f6f7f9",100:"#f5f6f6",150:"#f1f3f9",200:"#e5e5e5",250:"#d6e1e3",300:"#d4d4d4",350:"#c8daec",380:"#b6c2cf",375:"#bfbfbf",400:"#a3a3a3",500:"#737373",550:"#626262",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a",1e3:"#000000"},qG={25:"#6c7ebe",50:"#677084",100:"#5c6880",125:"#5c5e81",150:"#58669a",175:"#495679",200:"#515c7c",300:"#465178",350:"#43464f",375:"#3f4b5c",400:"#3d4561",450:"#333b57",475:"#2b344c",500:"#293245",550:"#262e47",600:"#232b3b",625:"#252c40",700:"#1d2331",800:"#171d27",825:"#1d2843",850:"#131826",900:"#11171e",950:"#0c111a",951:"#000000bf",960:"#1e1e2d"},GG={100:"#f5f5f5","100-50":"#f5f5f580",125:"#eaeff0",150:"#e9f0f7",200:"#e5e5e5",250:"#d4d6f0",300:"#d4d4d4",400:"#a3a3a3",500:"#788195",600:"#525252",700:"#404040",750:"#292b2c",800:"#262626",850:"#30363e",900:"#3b404c",925:"#36373b",950:"#171717"},XG={50:"#fffaf5",100:"#fcf3eb",200:"#fce0cf",300:"#fac7b1",400:"#f58d7a",410:"#e27575",425:"#ff5163","425-10":"#ff516310",450:"#f05050",500:"#ef4444",600:"#d93636",700:"#b32525",800:"#8f1818",900:"#6b0e0e",950:"#450606",951:"#e33030",952:"#f6b5b5"},KG={50:"#fafcf2",100:"#f5fae6",200:"#e5f5c1",300:"#d2ed9d",400:"#a9e05c",500:"#7ed321",600:"#6abf1b",700:"#529e13",800:"#3d800d",900:"#275e07",950:"#163d03",951:"#67b50c",952:"#71d200","952-10":"#71d20010","952-15":"#71d20015",953:"#e3f6cc",954:"#7bd500"},YG={50:"#f5fcff",100:"#ebf8ff",200:"#cceafc",250:"#a6c5e2",251:"#9ca9c2","250-10":"#a6c5e228","250-20":"#a6c5e25c",300:"#afd9fa",400:"#74b4f7",500:"#3b82f6",600:"#306fdb",700:"#2153b8",800:"#153b94",900:"#0c286e",950:"#051647",951:"#126a6f",952:"#75e2e7",953:"#c6f0f2",954:"#363d51",955:"#062a4a"},QG={50:"#fbf7fc",100:"#f5eff8",200:"#ebdef0",300:"#dbc4e3",400:"#c7a1d1",500:"#ad7abb",600:"#915c9d",700:"#72467b",800:"#633e6a",900:"#543659",950:"#341b37",951:"#7667b6",952:"#9387c7",953:"#eae7f4"},ZG={50:"#fff7fd",100:"#fcebf7",200:"#facfec",300:"#f7b2df",400:"#f27ec0",500:"#ec4899",600:"#d63c87",700:"#b32965",800:"#8f1b49",900:"#6b0f31",950:"#45061a"},JG={50:"#eef5ff",90:"#dae6ff",100:"#d9e8ff",200:"#bcd8ff",300:"#8ec0ff",400:"#599cff",450:"#e27575",500:"#4482ff","500-20":"#4482ff33",600:"#1b55f5",700:"#1440e1",800:"#1734b6",900:"#19318f",950:"#142057"},eX={50:"#fffcf2",100:"#fff8e6",200:"#ffebbf",300:"#fcd997",400:"#fcb44e",425:"#ffaa49",450:"#ce8d0b",475:"#ffa6a6",500:"#f98003",600:"#e06e02",700:"#ba5202",800:"#963d02",900:"#702900",950:"#471700",951:"#ff7041",952:"#ff7041",953:"#fce0ce",954:"#ffc76b"},tX={50:"#fcf2f7",100:"#fae6ef",200:"#f5c4d7",300:"#eda1b9",400:"#de5f77",500:"#d2282e",600:"#bd2025",700:"#9c161a",800:"#7d0e11",950:"#3d0405"},nX={50:"#e8e8fd","50-05":"#e8e8fd0d","50-08":"#e8e8fd14",100:"#eeeef6","100-11":"#eeeef61c","100-15":"#eeeef626",300:"#c8c8ff","300-40":"#c8c8ff66"},rX={tag:"#800000",attr:"#ff0000",value:"#0000ff",comment:"#008000",string:"#a31515",border:"#d9d9d9",imageUploadBg:"#ffffff05"},rr=16,de={akinon:tX,azure:JG,blue:YG,orange:eX,red:XG,green:KG,pink:ZG,purple:QG,gray:GG,ebonyClay:qG,neutral:WG,indigo:nX,editor:rX},b2={cssVar:!0,algorithm:Pl.darkAlgorithm,colors:de,token:{colorTextBase:de.neutral[100],colorText:de.neutral[100],colorTextSecondary:de.gray[500],colorTextPlaceholder:de.gray[500],colorPrimary:de.azure[500],colorError:de.red[500],colorBgLayout:de.ebonyClay[500],colorBgContainer:de.ebonyClay[600],colorBgElevated:de.ebonyClay[400],controlItemBgHover:de.ebonyClay[200],controlItemBgActive:de.ebonyClay[300],controlItemBgActiveHover:de.ebonyClay[300],colorBgSpotlight:de.ebonyClay[600],colorBorder:de.ebonyClay[700],fontFamily:"'Jost Variable',"+Pl.getDesignToken().fontFamily,fontSize:rr*.875},CustomTokens:{layout:{displayFlex:"flex",displayGrid:"grid",displayBlock:"block",displayInline:"inline",displayInlineBlock:"inline-block",displayNone:"none",displayContents:"contents",positionAbsolute:"absolute",positionRelative:"relative",positionFixed:"fixed",positionSticky:"sticky",positionStatic:"static",flexStart:"start",flexCenter:"center",flexDirectionRow:"row",flexDirectionRowReverse:"row-reverse",flexDirectionColumn:"column",flexDirectionColumnReverse:"column-reverse"},ai:{gradientStart:de.azure[450],gradientEnd:de.azure[500],textColor:de.orange[475]},typography:{textTransformUppercase:"uppercase",textTransformLowercase:"lowercase",textTransformCapitalize:"capitalize",textAlignLeft:"left",textAlignCenter:"center",textAlignRight:"right",textAlignJustify:"justify",whiteSpaceNormal:"normal",whiteSpaceNoWrap:"nowrap",whiteSpacePre:"pre",whiteSpacePreLine:"pre-line",whiteSpacePreWrap:"pre-wrap",whiteSpaceBreakSpaces:"break-spaces",wordBreak:"break-word",textDecorationUnderline:"underline",textDecorationOverline:"overline",textDecorationLineThrough:"line-through",fontWeightBold:"600",fontWeightMedium:"500"},sizing:{sizeMaxContent:"max-content",sizeMinContent:"min-content",sizeFitContent:"fit-content",valueFull:"100%",valueThreeQuarter:"75%",valueHalf:"50%",valueQuarter:"25%",valueZero:"0",valueAuto:"auto",valueInherit:"inherit"},others:{colorTransparent:"transparent",valueHidden:"hidden",valueUnset:"unset",emptyContent:'""',lineHeightShort:"1",lineHeightTall:"2",cursorNotAllowed:"not-allowed",cursorPointer:"pointer",verticalAlignMiddle:"middle",opacityFull:"1",opacityNone:"0"},border:{borderNone:"none",borderSolid:"solid",borderDashed:"dashed",borderDotted:"dotted",borderWidthThin:"1px",borderWidthThick:"2px",borderRadiusSm:"0.125rem"},overflow:{overflowVisible:"visible",overflowHidden:"hidden",overflowScroll:"scroll"}},NavCardTokens:{shadow:"2px 2px 4px 0 rgba(0, 0, 0, 0.2)"},components:{Button:{colorPrimary:de.azure[500],colorPrimaryHover:de.azure[600],colorPrimaryActive:de.azure[700],colorPrimaryText:de.neutral[50],defaultBg:de.neutral[50],defaultColor:de.azure[500],defaultHoverBg:de.neutral[100],defaultHoverColor:de.azure[500],defaultActiveBg:de.neutral[50],defaultActiveColor:de.azure[500],defaultBorderColor:de.azure[500],defaultBgSm:de.gray[750],defaultBgSmHover:de.gray[800],colorError:de.red[450],colorErrorHover:de.red[500],colorErrorActive:de.red[600],colorErrorBorder:de.red[500],colorErrorBgSM:de.red[425],colorErrorBgSMHover:de.red[450],colorErrorSMHover:de.neutral[50],colorSuccessBg:de.green[500],colorSuccessBorder:de.green[500],colorSuccessHover:de.green[600],colorSuccessActive:de.green[700],colorWarningBg:de.neutral[50],colorWarningBorder:de.neutral[50],colorWarningHover:de.neutral[100],colorWarningActive:de.neutral[50],colorWarningText:de.orange[450],colorBgContainerDisabled:de.neutral[100],colorTextDisabled:de.neutral[350],borderColorDisabled:de.neutral[350],defaultGhostColor:de.azure[500],contentFontSizeSM:rr*.75,borderRadiusSM:11,paddingBlockSM:1,paddingInlineSM:20,colorText:de.neutral[50],colorTextHover:de.neutral[50],controlHeight:40,borderRadius:5,paddingBlock:10,paddingInline:45,contentLineHeight:"normal",fontWeight:600,defaultShadow:"none",primaryShadow:"none",dangerShadow:"none"},Checkbox:{colorPrimary:de.ebonyClay[25],colorBgContainer:de.gray[150],colorText:de.neutral[350],colorChecked:de.neutral[50],controlInteractiveSize:20},Badge:{colorText:de.neutral[50]},Radio:{radioSize:14,dotSize:5,colorPrimary:de.azure[500],colorBgContainer:de.gray[150],colorText:de.neutral[350],colorChecked:de.neutral[50],colorBorder:de.neutral[550],buttonBg:de.ebonyClay[600],buttonColor:de.neutral[50],buttonSolidCheckedBg:de.ebonyClay[600],buttonSolidCheckedColor:de.neutral[50],buttonSolidCheckedBorder:de.azure[500],borderRadiusSM:100},Layout:{headerBg:de.ebonyClay[500],siderBg:de.ebonyClay[500],mainBorder:`1px solid ${de.gray[900]}`},Dropdown:{colorPrimary:de.neutral[100],controlPaddingHorizontal:rr},Menu:{minWidth:"249px",darkItemBg:de.ebonyClay[500],darkSubMenuItemBg:de.ebonyClay[600],darkItemSelectedBg:de.ebonyClay[700],darkItemColor:de.gray[500],lightItemBg:`${de.neutral[50]} !important`,lightItemMainIconColor:`${de.azure[500]} !important`,lightItemMainTitle:`${de.ebonyClay[500]} !important`,LightSubItemBg:`${de.neutral[90]} !important`,lightSubTitleColor:`${de.gray[500]} !important`,lightSubIconColor:`${de.ebonyClay[125]} !important`,lightchildItemBg:`${de.neutral[350]} !important`,lightChildItemColor:`${de.ebonyClay[500]} !important`,itemHeight:rr*3.25,mainBorder:`1px solid ${de.gray[900]}`,mainMenuIconSize:"12px !important",mainMenuExpandIconSize:"16px !important",mainMenuColor:`${de.neutral[50]} !important`,subMenuTitleColor:`${de.gray[500]} !important`,subMenuTitleIconMargin:"-25px !important",subMenuOnlyChildSize:"6px !important",subMenuItemSelectedChildColor:`${de.neutral[50]} !important`,subMenuOnlyChildBgColor:`${de.ebonyClay[125]} !important`,subMenuOnlyChildMargin:"-23px !important",subMenuIconSize:"10px !important",childMenuItemSelectedChildWidth:"10px !important",childMenuItemSelectedChildHeight:"2px !important",childMenuItemSelectedChildRadius:"1px !important",childMenuItemSelectedChildMargin:"-17px !important",childMenuItemSelectedChildBgColor:`${de.ebonyClay[125]} !important`},Breadcrumb:{fontSize:rr*.625,itemColor:de.azure[500],lastItemColor:de.gray[500],paddingBottom:rr*.5,borderBottom:"1px solid var(--color-gray-900)",paddingLeft:20,paddingRight:20,marginLeft:8,marginRight:8,fontWeight:600,lineHeight:1.5,separatorColor:de.azure[500],letterSpacing:rr*.03},Tag:{defaultColorSuccess:de.green[951],defaultBorderColorSuccess:de.green[952],defaultBgSuccess:de.green[953],defaultColorWaiting1:de.orange[951],defaultBorderColorWaiting1:de.orange[952],defaultBgWaiting1:de.orange[953],defaultColorWaiting2:de.blue[951],defaultBorderColorWaiting2:de.blue[952],defaultBgWaiting2:de.blue[953],defaultColorWaiting3:de.purple[951],defaultBorderColorWaiting3:de.purple[952],defaultBgWaiting3:de.purple[953],defaultColorFailed:de.red[951],defaultBorderColorFailed:de.red[450],defaultBgFailed:de.red[952],defaultColorEmpty:de.ebonyClay[400],defaultBorderColorEmpty:de.neutral[350],defaultBgEmpty:de.neutral[200],borderRadius:5,fontSize:rr*.8125,paddingLeft:15,paddingRight:15,fontSizeClose:rr*.6875},Tooltip:{bgColor:de.ebonyClay[951]},Flex:{},Spin:{},Alert:{defaultColorSuccess:de.green[951],defaultBorderColorSuccess:de.green[952],defaultBgSuccess:de.green[953],defaultColorWaiting1:de.orange[951],defaultBorderColorWaiting1:de.orange[952],defaultBgWaiting1:de.orange[953],defaultColorWaiting2:de.blue[951],defaultBorderColorWaiting2:de.blue[952],defaultBgWaiting2:de.blue[953],defaultColorWaiting3:de.purple[951],defaultBorderColorWaiting3:de.purple[952],defaultBgWaiting3:de.purple[953],defaultColorFailed:de.red[951],defaultBorderColorFailed:de.red[450],defaultBgFailed:de.red[952]},Grid:{rowMaxWidth:1368,gutter:24},Card:{colorBgContainer:de.ebonyClay[450],colorTextDescription:de.neutral[100],headerFontSize:rr*1.25,fontSize:rr*.875,borderRadiusLG:10,paddingLG:40,padding:24,headerHeight:rr*1.25,lineHeight:1,colorBorderSecondary:de.ebonyClay[550],lineWidth:2},Collapse:{headerPadding:"0 0 12px",contentPadding:"0 0 24px !important",fontSizeIcon:rr*1.65,fontSize:rr},Form:{itemMarginBottom:16,labelColor:de.neutral[100],verticalLabelPadding:"7px 0",lineHeight:"normal",fontWeight:600,colorError:de.red[425],verticalErrorPadding:"7px 0"},Pagination:{marginXS:0,marginSM:0,margin:0,colorText:de.gray[500],colorTextBase:de.ebonyClay[950],lineWidth:0,marginXXS:0,borderRadius:0,colorBorder:de.neutral[350],boxShadow:de.gray[150],itemInputBg:de.neutral[75],itemSizeSM:"auto",itemSize:42},Select:{colorTextDisabled:de.ebonyClay[350],colorBgContainerDisabled:de.gray[925],colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,fontWeight:600,paddingXXS:0,borderRadiusSM:0,colorBorder:de.ebonyClay[550],lineWidth:2,colorBgElevated:de.neutral[50],optionOddColor:de.gray["100-50"],optionSelectedBg:de.azure["500-20"],optionSelectedColor:de.azure[500],optionActiveColor:de.azure[500],optionActiveBg:de.azure["500-20"],colorText:de.neutral[50],selectItemColor:de.neutral[500],colorTextPlaceholder:de.gray[500],selectorBg:de.ebonyClay[475],colorFillTertiary:de.neutral[50],colorFillSecondary:de.neutral[100],multipleItemBg:de.neutral[50]},Table:{headerBorderRadius:0,headerBg:"transparent",headerColor:"#9b9b9b",headerSplitColor:"transparent",colorBgContainer:"transparent",rowHoverBg:"unset",borderColor:de.neutral[350],cellPaddingInline:0,fontSize:rr},Tabs:{textColor:de.neutral[50],menuGap:"170px",separatorColor:de?.gray["900"],separatorHeight:"1px",navWrapperPadding:"0px 0px 20px 50px",tabIconWrapperSize:"38px !important",tabIconSize:"18px !important",tabIconFill:`${de.neutral[1e3]} !important`,tabIconBg:de.neutral[50],tabIconActiveFill:`${de.neutral[50]} !important`,tabIconActiveBg:`${de.orange[425]} !important`,tabIconFillTransition:"fill 0.3s ease",tabIconBgTransition:"background 0.3s ease",tabLabelTransform:"translateY(calc(100% + 11px))"},Input:{colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,colorBorder:de.ebonyClay[550],lineWidth:2,activeShadow:"unset",errorActiveShadow:"unset",warningActiveShadow:"unset",fontWeight:600,colorBgContainerDisabled:de.gray[850],colorTextDisabled:de.ebonyClay[375]},InputNumber:{colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,colorBorder:de.ebonyClay[550],lineWidth:2,fontWeight:600},Modal:{titleFontSize:rr*1.25,padding:"20px 35px",borderBottom:`1px solid ${de.blue[954]}`,footerPadding:"0 35px 20px 35px",closeIconColor:de.neutral[100],closeTop:20,closeRight:27,badgeColorTop:27,badgeColorWidth:4,badgeColorHeight:16,badgeColorBackgroundColor:de.red[425]},Progress:{strokeColor:de.ebonyClay[625],trailColor:de.neutral[50],height:"18px !important",successBgColor:"repeating-linear-gradient(60deg, rgba(36, 180, 19, 1) 0, rgba(36, 180, 19, 1) 5px, rgba(72, 192, 62, 1) 5px, rgba(72, 192, 62, 1) 10px) !important"},Steps:{rowGap:"10px",iconWidthHeight:"38px !important",iconSize:"18px !important",paddingInlineEnd:"16px",tailTop:"16px",tailHeight:"3px",titleFontSize:"14px",iconColor:de.neutral[50],tailColor:"linear-gradient(to right, #343639 50%, transparent 50%)",tailLastChildColor:"linear-gradient(to right, #4482ff 50%, transparent 50%)",tailFirstChildColor:"linear-gradient(to right, transparent 50%, #4482ff 50%)",tailProcessFirstChildColor:"linear-gradient(to right, transparent 50%, #3b404c 50%)",tailProcessColor:"linear-gradient(to right, #4482ff 50%, #3b404c 50%)",tailWaitLastChildColor:"linear-gradient(to right, #3b404c 50%, transparent 50%)",tailWaitMiddleChildColor:"linear-gradient(to right, #4482ff 50%, #3b404c 50%)",tailErrorChildColor:`linear-gradient(to right, ${de.red[450]} 50%, #3b404c 50%) !important`,finishIconBgColor:`${de.green[952]}`,finishTailColor:`${de.azure[500]}`,processIconBgColor:`${de.orange[425]}`,waitIconBgColor:`${de.neutral[50]}`,waitIconColor:`${de.ebonyClay[951]}`,waitTitleColor:`${de.neutral[50]}`,waitTailColor:`${de.gray[900]}`,errorIconBgColor:`${de.red[450]}`,manyItemsTransform:"rotate(-40deg)",manyItemsWidth:"90px",manyItemsHeight:"80px",manyItemsMarginInlineStart:"40px",manyItemsIconWidthHeight:"22px",manyItemsTailHeight:"4px",manyItemsTailBottom:"10px"},Switch:{colorPrimary:de.green[952],colorPrimaryHover:de.green[951],colorPrimaryActive:de.green[954],trackHeight:26,trackMinWidth:57,handleSize:22,colorTextQuaternary:de.gray[250],colorTextTertiary:de.gray[300],handleBg:de.neutral[80],handleShadow:"1px 1px 2px 0 rgba(156, 169, 194, 0.5)",fontSizeSM:rr*.5625},Divider:{colorSplit:de.ebonyClay[175],colorText:de.gray[500],colorTextHeading:de.gray[500],fontWeight:500,textPaddingInline:8,margin:48},DatePicker:{general:{fontSize:"14px",fontColor:de.gray[500],bgDarkBlue:de.ebonyClay[475],wideBorder:`2px solid ${de.ebonyClay[550]}`,inputMarginBottom:"7px",inputPadding:"7px 16px !important",lightThemeBorder:`1px solid ${de.neutral[350]}`},title:{lightColor:`${de.ebonyClay[500]}`},pickerPanel:{shadow:"0 3px 6px 0 rgba(0, 0, 0, 0.2)",width:"292px",header:{marginY:"20px",padding:"0 22px",textSize:"16px",textColor:de.neutral[380],arrawWidth:"10.2px",arrowPaddingLeft:"12px",arrowPaddingRight:"20px",datePickerarrowPadding:"0.2px 0.2px 0.2px 0"},body:{padding:"0 20px"},content:{tableHeaderBorder:`1px solid ${de.blue["250-10"]}`,tableHeaderFontSize:"12px",tableHeaderFontColor:de.neutral[380],tableHeaderWidth:"36px",tableHeaderPaddingBottom:"6px"},row:{marginY:"5px",previousCellWidth:"36px",cellLineHeight:"1.43",cellFontWeight:"normal",cellTextColor:de.neutral[380],cellBg:de.ebonyClay[825],cellBorder:`2px solid ${de.blue["250-10"]}`,cellBorderRadius:"3px"},separator:{width:"6px",height:"2px",backgroundColor:de.ebonyClay[550]},range:{iconPosition:"10px",iconTransform:"translateY(-50%)",inputPadding:"10px 16px !important",inputRadius:"5px"},footer:{margin:"4px 20px 0",lineHeight:"normal",fontSize:"12px",padding:"0 27px",border:`1px solid ${de.azure[500]}`,borderRadius:"11px",datePickerBorderTop:`1px solid ${de.blue["250-10"]}`,datePickerPadding:"28px 0 23px",rangeColGap:"50px",rangeBorder:`1px solid ${de.blue["250-20"]}`,rangePadding:"13px 20px 16px",rangeCol:"12px",rangeInputPadding:"10px 12px 10px 16px",rangeInputRadius:"5px"}}},Upload:{borderRadiusLG:5,colorFillAlter:de.ebonyClay[475],colorError:de.red[450],lineWidth:0,controlHeightLG:30,paddingXS:0,svgColor:de.neutral[1e3]}}},hi={layout:{displayFlex:"flex",displayGrid:"grid",displayBlock:"block",displayInline:"inline",displayInlineBlock:"inline-block",displayNone:"none",displayContents:"contents",positionAbsolute:"absolute",positionRelative:"relative",positionFixed:"fixed",positionSticky:"sticky",positionStatic:"static",flexStart:"start",flexCenter:"center",flexDirectionRow:"row",flexDirectionRowReverse:"row-reverse",flexDirectionColumn:"column",flexDirectionColumnReverse:"column-reverse"},typography:{textTransformUppercase:"uppercase",textTransformLowercase:"lowercase",textTransformCapitalize:"capitalize",textAlignLeft:"left",textAlignCenter:"center",textAlignRight:"right",textAlignJustify:"justify",whiteSpaceNormal:"normal",whiteSpaceNoWrap:"nowrap",whiteSpacePre:"pre",whiteSpacePreLine:"pre-line",whiteSpacePreWrap:"pre-wrap",whiteSpaceBreakSpaces:"break-spaces",wordBreak:"break-word",textDecorationUnderline:"underline",textDecorationOverline:"overline",textDecorationLineThrough:"line-through",fontWeightBold:"600",fontWeightMedium:"500"},ai:{gradientStart:de.azure[450],gradientEnd:de.azure[500],textColor:de.orange[475]},sizing:{sizeMaxContent:"max-content",sizeMinContent:"min-content",sizeFitContent:"fit-content",valueFull:"100%",valueThreeQuarter:"75%",valueHalf:"50%",valueQuarter:"25%",valueZero:"0",valueAuto:"auto",valueInherit:"inherit"},others:{colorTransparent:"transparent",valueHidden:"hidden",valueUnset:"unset",emptyContent:'""',lineHeightShort:"1",lineHeightTall:"2",cursorNotAllowed:"not-allowed",cursorPointer:"pointer",verticalAlignMiddle:"middle",opacityFull:"1",opacityNone:"0"},border:{borderNone:"none",borderSolid:"solid",borderDashed:"dashed",borderDotted:"dotted",borderWidthThin:"1px",borderWidthThick:"2px",borderRadiusSm:"0.125rem"},overflow:{overflowVisible:"visible",overflowHidden:"hidden",overflowScroll:"scroll"}};function Wl(e){const t=e?.CustomTokens;return t?{layout:{...hi.layout,...t.layout},ai:{...hi.ai,...t.ai},typography:{...hi.typography,...t.typography},sizing:{...hi.sizing,...t.sizing},others:{...hi.others,...t.others},border:{...hi.border,...t.border},overflow:{...hi.overflow,...t.overflow}}:hi}const Gr=Pl.useToken,aX=()=>{const{colors:e,token:t}=b2;let n="--color";const r={};for(const[a,i]of Object.entries(e))for(const[s,c]of Object.entries(i)){const u=`${n}-${a}-${s}`;r[u]=c}if(n="--token",t)for(const[a,i]of Object.entries(t)){const s=`${n}-${a}`;(typeof i=="string"||typeof i=="number")&&(r[s]=i)}return r},oX=e=>ve.jsx(Lo.Paragraph,{...e}),$3=e=>ve.jsx(Lo.Text,{...e}),iX=e=>ve.jsx(Lo.Title,{...e}),lX=e=>{const{onAnyItemClick:t,items:n}=e,{getPrefixCls:r,theme:a}=f.useContext(En.ConfigContext),{token:i,hashId:s}=Gr(),c=i.Breadcrumb,u=br({token:i,path:["Breadcrumb"]},()=>{const h=`:where(.${s}).${r()}-breadcrumb`,v=`.${r()}-breadcrumb`,g=Wl(a);return{[h]:{paddingBottom:c.paddingBottom,color:c.itemColor,"li:last-child":{color:c.lastItemColor}},[v]:{borderBottom:c.borderBottom,fontWeight:c.fontWeight,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,paddingLeft:c.paddingLeft,paddingRight:c.paddingRight,[`li ${v}-link`]:{"&:hover":{cursor:g.others.cursorPointer}},[`li:last-child ${v}-link`]:{"&:hover":{cursor:g.others.valueUnset}},a:{color:c.itemColor,paddingLeft:g.sizing.valueZero,paddingRight:g.sizing.valueZero,marginInline:g.sizing.valueZero,height:g.sizing.valueAuto,"&:hover":{color:g.others.valueUnset,backgroundColor:g.others.valueUnset}},[`${v}-separator`]:{marginRight:c.marginRight,marginLeft:c.marginLeft,color:c.separatorColor,"&:nth-last-child(2)":{color:c.lastItemColor}}}}});if(t){const h=n?.map((g,p)=>p===n.length-1?{title:g.title}:{...g,href:null,onClick:()=>{g.href&&t({href:g.href})}}),v={...e,items:h};return u(ve.jsx(M0,{...v}))}return u(ve.jsx(M0,{...e}))},sX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Tooltip;return br({token:a,path:["Tooltip"]},()=>{const u=`:where(.${i}).${n()}-tooltip`,h=`.${n()}-tooltip`;return{[u]:{},[h]:{}}})(ve.jsx(Oi,{color:s.bgColor,...t,children:e}))},d8=({iconSize:e,...t})=>{const{getPrefixCls:n,theme:r}=ae.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Button,c=Wl(r),u=br({token:a,path:["Button"]},()=>{const v=`:where(.${i}).${n()}-btn`,g=`.${n()}-btn`,p=r,b=p.colors?.azure?.["500"],y=p.colors?.red?.["410"],x=`linear-gradient(to right, ${b},${y},${b})`,S="175%",M=p.colors?.gray?.["750"]??p.colors?.ebonyClay?.["600"]??"#292b2c",$=p.colors?.neutral?.["950"]??p.colors?.gray?.["900"],E={"&:disabled, &-disabled":{backgroundColor:s.colorBgContainerDisabled??a.colorBgContainerDisabled,color:s.colorTextDisabled??a.colorTextDisabled,borderColor:s.borderColorDisabled,cursor:c.others.cursorNotAllowed,boxShadow:c.layout.displayNone}};return{[`${v}`]:{"> *":{verticalAlign:c.others.verticalAlignMiddle},"> span":{alignSelf:`${c.layout.flexCenter} !important`}},[`${v}-default`]:{[`&:not(:disabled)${v}-sm`]:{backgroundColor:s.defaultBgSm,color:s.colorText,borderColor:c.others.colorTransparent,"&:hover":{backgroundColor:s.defaultBgSmHover,borderColor:c.others?.colorTransparent??"transparent",color:s.colorTextHover},[`&${v}-dangerous`]:{backgroundColor:s.colorErrorBgSM,"&:hover:not(:disabled)":{color:s.colorErrorSMHover,backgroundColor:s.colorErrorBgSMHover}},span:{lineHeight:"normal !important"}}},[`${v}-ai`]:{border:"none",backgroundImage:x,backgroundSize:S,backgroundPosition:"0",textShadow:"0 1px 0 rgba(0, 0, 0, 0.2)",fontWeight:c.typography.fontWeightBold??600,color:s.colorTextLightSolid??a.colorTextLightSolid,transition:"all 0.3s ease","&:hover:not(:disabled)":{backgroundImage:x,backgroundSize:S,backgroundPosition:"-125%",color:s.colorTextLightSolid??a.colorTextLightSolid},"&:active:not(:disabled), &:focus:not(:disabled)":{backgroundImage:x,backgroundSize:S,backgroundPosition:"0",color:s.colorTextLightSolid??a.colorTextLightSolid},"&:disabled":{backgroundImage:x,backgroundSize:S,backgroundPosition:"0",color:s.colorTextLightSolid??a.colorTextLightSolid,opacity:.6}},[`${v}-ai-black`]:{backgroundColor:M,color:s.colorTextLightSolid??a.colorTextLightSolid,border:"none",fontWeight:c.typography.fontWeightBold??600,"&:hover:not(:disabled), &:focus:not(:disabled)":{backgroundColor:$,color:s.colorTextLightSolid??a.colorTextLightSolid,opacity:.8},"&:disabled":{opacity:.6}},[`${v}-success`]:{backgroundColor:s.colorSuccessBg??a.colorSuccessBg,"&:hover:not(:disabled)":{backgroundColor:s.colorSuccessHover??a.colorSuccessHover},...E},[`${v}-warning`]:{backgroundColor:s.colorWarningBg??a.colorWarningBg,color:s.colorWarningText??a.colorWarningText,"&:hover:not(:disabled)":{backgroundColor:s.colorWarningHover??a.colorWarningHover,borderColor:s.colorWarningBorder??a.colorWarningBorder},...E},[`${v}-icon`]:{lineHeight:1,"> *":{backgroundColor:c.others.colorTransparent,color:"currentcolor",verticalAlign:c.others.verticalAlignMiddle,"&:hover:not(:disabled)":{color:"currentcolor"},"&:active":{boxShadow:c.layout.displayNone}},"&:disabled":{opacity:.4},[`&${g}-dangerous > *`]:{color:"red","&:hover:not(:disabled)":{color:s.colorErrorHover??a.colorErrorHover}}}}}),h=()=>ve.jsx(Va,{...t,icon:t.icon?ve.jsx(ad,{icon:t.icon,size:e??12,style:{lineHeight:0}}):void 0,children:t.children});if(t.tooltip){const v=typeof t.tooltip=="string"?{title:t.tooltip}:t.tooltip;return u(ve.jsx(sX,{...v,children:h()}))}return u(h())},Po=e=>`${e}px`,z3=({children:e,inner:t,width:n,padding:r,...a})=>{const{getPrefixCls:i,theme:s}=f.useContext(En.ConfigContext),c=f.useRef(null),{token:u,hashId:h}=Gr(),v=u.Card,g=Wl(s),p=`.${i()}-card`,b=`:where(.${h})${p}`,y=f.useCallback(br({token:u,path:["Card"]},()=>({[`${b}`]:{[`${p}-head`]:{borderBottom:g.border.borderNone,padding:`${v?.paddingLG}px 0 0`,marginBottom:-16,"&-wrapper":{paddingInline:v?.paddingLG,"--card-wrapper-transform-translate-x":`-${v?.paddingLG-2}px`,"&:before":{content:g.others.emptyContent,display:g.layout.displayBlock,height:"16px",width:"4px",marginInlineStart:"-4px",background:b2?.colors.red["425"],transform:"translateX(var(--card-wrapper-transform-translate-x))"}}},[`&>${p}-body`]:{padding:v?.paddingLG},"&-small":{[`${p}-head`]:{padding:`${v?.padding}px 0`,marginBottom:-24,"&-wrapper":{paddingInline:v?.padding,"--card-small-wrapper-transform-translate-x":`-${v?.padding-2}px`,"&:before":{transform:"translateX(var(--card-small-wrapper-transform-translate-x))"}}},[`&>${p}-body`]:{padding:v?.padding}}}})),[r,v?.padding,v?.paddingLG]),x=()=>{if(typeof r!="number")return;const S=c.current?.querySelector(`${p}-head`);S&&(S.style.paddingTop=Po(r));const M=S?.querySelector(`${p}-head-wrapper`);M&&(M.style.paddingInline=Po(r),M.style.setProperty("--card-wrapper-transform-translate-x",`-${Po(r-2)}`,"important"));const $=c.current?.querySelector(`& > ${p}-body`);$&&($.style.padding=Po(r));const E=c.current?.querySelector(`${p}-small`),I=E?.querySelector(`${p}-head`);I&&(I.style.paddingTop=Po(r));const w=I?.querySelector(`${p}-head-wrapper`);w&&(w.style.paddingInline=Po(r),w.style.setProperty("--card-small-wrapper-transform-translate-x",`-${Po(r-2)}`,"important"));const O=E?.querySelector(`${p}-body`);O&&(O.style.padding=Po(r))};return f.useEffect(()=>{c?.current&&x()},[c?.current,r]),y(ve.jsx(g6,{style:{width:typeof n=="number"?Po(n):n},...t?{type:"inner"}:null,...a,ref:c,children:e}))};g6.Meta;S7.Group;var R5={exports:{}},T5,Jp;function cX(){if(Jp)return T5;Jp=1;function e(D){return D&&typeof D=="object"&&"default"in D?D.default:D}var t=e(_0()),n=y8();function r(D,R){for(var B=Object.getOwnPropertyNames(R),L=0;L<B.length;L++){var P=B[L],X=Object.getOwnPropertyDescriptor(R,P);X&&X.configurable&&D[P]===void 0&&Object.defineProperty(D,P,X)}return D}function a(){return(a=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var B=arguments[R];for(var L in B)Object.prototype.hasOwnProperty.call(B,L)&&(D[L]=B[L])}return D}).apply(this,arguments)}function i(D,R){D.prototype=Object.create(R.prototype),r(D.prototype.constructor=D,R)}function s(D,R){if(D==null)return{};var B,L,P={},X=Object.keys(D);for(L=0;L<X.length;L++)B=X[L],0<=R.indexOf(B)||(P[B]=D[B]);return P}function c(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}var u=function(D,R,B,L,P,X,Y,Q){if(!D){var le;if(R===void 0)le=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ne=[B,L,P,X,Y,Q],fe=0;(le=new Error(R.replace(/%s/g,function(){return ne[fe++]}))).name="Invariant Violation"}throw le.framesToPop=1,le}},h=u;function v(D,R,B){if("selectionStart"in D&&"selectionEnd"in D)D.selectionStart=R,D.selectionEnd=B;else{var L=D.createTextRange();L.collapse(!0),L.moveStart("character",R),L.moveEnd("character",B-R),L.select()}}function g(D){var R=0,B=0;if("selectionStart"in D&&"selectionEnd"in D)R=D.selectionStart,B=D.selectionEnd;else{var L=document.selection.createRange();L.parentElement()===D&&(R=-L.moveStart("character",-D.value.length),B=-L.moveEnd("character",-D.value.length))}return{start:R,end:B,length:B-R}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},b="_";function y(D,R,B){var L="",P="",X=null,Y=[];if(R===void 0&&(R=b),B==null&&(B=p),!D||typeof D!="string")return{maskChar:R,formatChars:B,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var Q=!1;return D.split("").forEach(function(le){Q=!Q&&le==="\\"||(Q||!B[le]?(Y.push(L.length),L.length===Y.length-1&&(P+=le)):X=L.length+1,L+=le,!1)}),{maskChar:R,formatChars:B,prefix:P,mask:L,lastEditablePosition:X,permanents:Y}}function x(D,R){return D.permanents.indexOf(R)!==-1}function S(D,R,B){var L=D.mask,P=D.formatChars;if(!B)return!1;if(x(D,R))return L[R]===B;var X=P[L[R]];return new RegExp(X).test(B)}function M(D,R){return R.split("").every(function(B,L){return x(D,L)||!S(D,L,B)})}function $(D,R){var B=D.maskChar,L=D.prefix;if(!B){for(;R.length>L.length&&x(D,R.length-1);)R=R.slice(0,R.length-1);return R.length}for(var P=L.length,X=R.length;X>=L.length;X--){var Y=R[X];if(!x(D,X)&&S(D,X,Y)){P=X+1;break}}return P}function E(D,R){return $(D,R)===D.mask.length}function I(D,R){var B=D.maskChar,L=D.mask,P=D.prefix;if(!B){for((R=O(D,"",R,0)).length<P.length&&(R=P);R.length<L.length&&x(D,R.length);)R+=L[R.length];return R}if(R)return O(D,I(D,""),R,0);for(var X=0;X<L.length;X++)x(D,X)?R+=L[X]:R+=B;return R}function w(D,R,B,L){var P=B+L,X=D.maskChar,Y=D.mask,Q=D.prefix,le=R.split("");if(X)return le.map(function(fe,ye){return ye<B||P<=ye?fe:x(D,ye)?Y[ye]:X}).join("");for(var ne=P;ne<le.length;ne++)x(D,ne)&&(le[ne]="");return B=Math.max(Q.length,B),le.splice(B,P-B),R=le.join(""),I(D,R)}function O(D,R,B,L){var P=D.mask,X=D.maskChar,Y=D.prefix,Q=B.split(""),le=E(D,R);return!X&&L>R.length&&(R+=P.slice(R.length,L)),Q.every(function(ne){for(;ie=ne,x(D,se=L)&&ie!==P[se];){if(L>=R.length&&(R+=P[L]),fe=ne,ye=L,X&&x(D,ye)&&fe===X)return!0;if(++L>=P.length)return!1}var fe,ye,se,ie;return!S(D,L,ne)&&ne!==X||(L<R.length?R=X||le||L<Y.length?R.slice(0,L)+ne+R.slice(L+1):(R=R.slice(0,L)+ne+R.slice(L),I(D,R)):X||(R+=ne),++L<P.length)}),R}function T(D,R,B,L){var P=D.mask,X=D.maskChar,Y=B.split(""),Q=L;return Y.every(function(le){for(;fe=le,x(D,ne=L)&&fe!==P[ne];)if(++L>=P.length)return!1;var ne,fe;return(S(D,L,le)||le===X)&&L++,L<P.length}),L-Q}function _(D,R){for(var B=R;0<=B;--B)if(!x(D,B))return B;return null}function j(D,R){for(var B=D.mask,L=R;L<B.length;++L)if(!x(D,L))return L;return null}function A(D){return D||D===0?D+"":""}function H(D,R,B,L,P){var X=D.mask,Y=D.prefix,Q=D.lastEditablePosition,le=R,ne="",fe=0,ye=0,se=Math.min(P.start,B.start);return B.end>P.start?ye=(fe=T(D,L,ne=le.slice(P.start,B.end),se))?P.length:0:le.length<L.length&&(ye=L.length-le.length),le=L,ye&&(ye===1&&!P.length&&(se=P.start===B.start?j(D,B.start):_(D,B.start)),le=w(D,le,se,ye)),le=O(D,le,ne,se),(se+=fe)>=X.length?se=X.length:se<Y.length&&!fe?se=Y.length:se>=Y.length&&se<Q&&fe&&(se=j(D,se)),ne||(ne=null),{value:le=I(D,le),enteredString:ne,selection:{start:se,end:se}}}function q(){var D=new RegExp("windows","i"),R=new RegExp("phone","i"),B=navigator.userAgent;return D.test(B)&&R.test(B)}function V(D){return typeof D=="function"}function W(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function G(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function N(D){return(G()?W():function(){return setTimeout(D,1e3/60)})(D)}function k(D){(G()||clearTimeout)(D)}var U=(function(D){function R(L){var P=D.call(this,L)||this;P.focused=!1,P.mounted=!1,P.previousSelection=null,P.selectionDeferId=null,P.saveSelectionLoopDeferId=null,P.saveSelectionLoop=function(){P.previousSelection=P.getSelection(),P.saveSelectionLoopDeferId=N(P.saveSelectionLoop)},P.runSaveSelectionLoop=function(){P.saveSelectionLoopDeferId===null&&P.saveSelectionLoop()},P.stopSaveSelectionLoop=function(){P.saveSelectionLoopDeferId!==null&&(k(P.saveSelectionLoopDeferId),P.saveSelectionLoopDeferId=null,P.previousSelection=null)},P.getInputDOMNode=function(){if(!P.mounted)return null;var ce=n.findDOMNode(c(c(P))),ge=typeof window<"u"&&ce instanceof window.Element;if(ce&&!ge)return null;if(ce.nodeName!=="INPUT"&&(ce=ce.querySelector("input")),!ce)throw new Error("react-input-mask: inputComponent doesn't contain input node");return ce},P.getInputValue=function(){var ce=P.getInputDOMNode();return ce?ce.value:null},P.setInputValue=function(ce){var ge=P.getInputDOMNode();ge&&(P.value=ce,ge.value=ce)},P.setCursorToEnd=function(){var ce=$(P.maskOptions,P.value),ge=j(P.maskOptions,ce);ge!==null&&P.setCursorPosition(ge)},P.setSelection=function(ce,ge,ue){ue===void 0&&(ue={});var re=P.getInputDOMNode(),pe=P.isFocused();re&&pe&&(ue.deferred||v(re,ce,ge),P.selectionDeferId!==null&&k(P.selectionDeferId),P.selectionDeferId=N(function(){P.selectionDeferId=null,v(re,ce,ge)}),P.previousSelection={start:ce,end:ge,length:Math.abs(ge-ce)})},P.getSelection=function(){return g(P.getInputDOMNode())},P.getCursorPosition=function(){return P.getSelection().start},P.setCursorPosition=function(ce){P.setSelection(ce,ce)},P.isFocused=function(){return P.focused},P.getBeforeMaskedValueChangeConfig=function(){var ce=P.maskOptions,ge=ce.mask,ue=ce.maskChar,re=ce.permanents,pe=ce.formatChars;return{mask:ge,maskChar:ue,permanents:re,alwaysShowMask:!!P.props.alwaysShowMask,formatChars:pe}},P.isInputAutofilled=function(ce,ge,ue,re){var pe=P.getInputDOMNode();try{if(pe.matches(":-webkit-autofill"))return!0}catch{}return!P.focused||re.end<ue.length&&ge.end===ce.length},P.onChange=function(ce){var ge=c(c(P)).beforePasteState,ue=c(c(P)).previousSelection,re=P.props.beforeMaskedValueChange,pe=P.getInputValue(),$e=P.value,Oe=P.getSelection();P.isInputAutofilled(pe,Oe,$e,ue)&&($e=I(P.maskOptions,""),ue={start:0,end:0,length:0}),ge&&(ue=ge.selection,$e=ge.value,Oe={start:ue.start+pe.length,end:ue.start+pe.length,length:0},pe=$e.slice(0,ue.start)+pe+$e.slice(ue.end),P.beforePasteState=null);var _e=H(P.maskOptions,pe,Oe,$e,ue),Ne=_e.enteredString,Te=_e.selection,Ie=_e.value;if(V(re)){var ze=re({value:Ie,selection:Te},{value:$e,selection:ue},Ne,P.getBeforeMaskedValueChangeConfig());Ie=ze.value,Te=ze.selection}P.setInputValue(Ie),V(P.props.onChange)&&P.props.onChange(ce),P.isWindowsPhoneBrowser?P.setSelection(Te.start,Te.end,{deferred:!0}):P.setSelection(Te.start,Te.end)},P.onFocus=function(ce){var ge=P.props.beforeMaskedValueChange,ue=P.maskOptions,re=ue.mask,pe=ue.prefix;if(P.focused=!0,P.mounted=!0,re){if(P.value)$(P.maskOptions,P.value)<P.maskOptions.mask.length&&P.setCursorToEnd();else{var $e=I(P.maskOptions,pe),Oe=I(P.maskOptions,$e),_e=$(P.maskOptions,Oe),Ne=j(P.maskOptions,_e),Te={start:Ne,end:Ne};if(V(ge)){var Ie=ge({value:Oe,selection:Te},{value:P.value,selection:null},null,P.getBeforeMaskedValueChangeConfig());Oe=Ie.value,Te=Ie.selection}var ze=Oe!==P.getInputValue();ze&&P.setInputValue(Oe),ze&&V(P.props.onChange)&&P.props.onChange(ce),P.setSelection(Te.start,Te.end)}P.runSaveSelectionLoop()}V(P.props.onFocus)&&P.props.onFocus(ce)},P.onBlur=function(ce){var ge=P.props.beforeMaskedValueChange,ue=P.maskOptions.mask;if(P.stopSaveSelectionLoop(),P.focused=!1,ue&&!P.props.alwaysShowMask&&M(P.maskOptions,P.value)){var re="";V(ge)&&(re=ge({value:re,selection:null},{value:P.value,selection:P.previousSelection},null,P.getBeforeMaskedValueChangeConfig()).value);var pe=re!==P.getInputValue();pe&&P.setInputValue(re),pe&&V(P.props.onChange)&&P.props.onChange(ce)}V(P.props.onBlur)&&P.props.onBlur(ce)},P.onMouseDown=function(ce){if(!P.focused&&document.addEventListener){P.mouseDownX=ce.clientX,P.mouseDownY=ce.clientY,P.mouseDownTime=new Date().getTime();var ge=function ue(re){if(document.removeEventListener("mouseup",ue),P.focused){var pe=Math.abs(re.clientX-P.mouseDownX),$e=Math.abs(re.clientY-P.mouseDownY),Oe=Math.max(pe,$e),_e=new Date().getTime()-P.mouseDownTime;(Oe<=10&&_e<=200||Oe<=5&&_e<=300)&&P.setCursorToEnd()}};document.addEventListener("mouseup",ge)}V(P.props.onMouseDown)&&P.props.onMouseDown(ce)},P.onPaste=function(ce){V(P.props.onPaste)&&P.props.onPaste(ce),ce.defaultPrevented||(P.beforePasteState={value:P.getInputValue(),selection:P.getSelection()},P.setInputValue(""))},P.handleRef=function(ce){P.props.children==null&&V(P.props.inputRef)&&P.props.inputRef(ce)};var X=L.mask,Y=L.maskChar,Q=L.formatChars,le=L.alwaysShowMask,ne=L.beforeMaskedValueChange,fe=L.defaultValue,ye=L.value;P.maskOptions=y(X,Y,Q),fe==null&&(fe=""),ye==null&&(ye=fe);var se=A(ye);if(P.maskOptions.mask&&(le||se)&&(se=I(P.maskOptions,se),V(ne))){var ie=L.value;L.value==null&&(ie=fe),se=ne({value:se,selection:null},{value:ie=A(ie),selection:null},null,P.getBeforeMaskedValueChangeConfig()).value}return P.value=se,P}i(R,D);var B=R.prototype;return B.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=q(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},B.componentDidUpdate=function(){var L=this.previousSelection,P=this.props,X=P.beforeMaskedValueChange,Y=P.alwaysShowMask,Q=P.mask,le=P.maskChar,ne=P.formatChars,fe=this.maskOptions,ye=Y||this.isFocused(),se=this.props.value!=null,ie=se?A(this.props.value):this.value,ce=L?L.start:null;if(this.maskOptions=y(Q,le,ne),this.maskOptions.mask){!fe.mask&&this.isFocused()&&this.runSaveSelectionLoop();var ge=this.maskOptions.mask&&this.maskOptions.mask!==fe.mask;if(fe.mask||se||(ie=this.getInputValue()),(ge||this.maskOptions.mask&&(ie||ye))&&(ie=I(this.maskOptions,ie)),ge){var ue=$(this.maskOptions,ie);(ce===null||ue<ce)&&(ce=E(this.maskOptions,ie)?ue:j(this.maskOptions,ue))}!this.maskOptions.mask||!M(this.maskOptions,ie)||ye||se&&this.props.value||(ie="");var re={start:ce,end:ce};if(V(X)){var pe=X({value:ie,selection:re},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ie=pe.value,re=pe.selection}this.value=ie;var $e=this.getInputValue()!==this.value;$e?(this.setInputValue(this.value),this.forceUpdate()):ge&&this.forceUpdate();var Oe=!1;re.start!=null&&re.end!=null&&(Oe=!L||L.start!==re.start||L.end!==re.end),(Oe||$e)&&this.setSelection(re.start,re.end)}else fe.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},B.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&k(this.selectionDeferId),this.stopSaveSelectionLoop()},B.render=function(){var L,P=this.props,X=(P.mask,P.alwaysShowMask,P.maskChar,P.formatChars,P.inputRef,P.beforeMaskedValueChange,P.children),Y=s(P,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(X){V(X)||h(!1);var Q=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],le=a({},Y);Q.forEach(function(fe){return delete le[fe]}),L=X(le),Q.filter(function(fe){return L.props[fe]!=null&&L.props[fe]!==Y[fe]}).length&&h(!1)}else L=t.createElement("input",a({ref:this.handleRef},Y));var ne={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(ne.onChange=this.onChange,ne.onPaste=this.onPaste,ne.onMouseDown=this.onMouseDown),Y.value!=null&&(ne.value=this.value)),L=t.cloneElement(L,ne)},R})(t.Component);return T5=U,T5}var eb;function uX(){return eb||(eb=1,R5.exports=cX()),R5.exports}uX();const dX=({children:e,plainOffset:t,...n})=>{const{getPrefixCls:r,theme:a}=f.useContext(En.ConfigContext),{token:i,hashId:s}=Gr(),c=i.Divider;return br({token:i,path:["Divider"]},()=>{const h=`.${r()}-divider`,v=`:where(.${s})${h}`,g=Wl(a);return{[`${v}-plain`]:{[`&${v}-horizontal${h}-with-text-left`]:{"&:before":{width:t?`${t-c.textPaddingInline}px`:g.sizing.valueAuto,marginInlineStart:t?`-${t}px`:"-40px"},"&:after":{width:g.sizing.valueFull,marginInlineStart:g.sizing.valueZero,marginInlineEnd:t?`-${t}px`:"-40px"}},[`${h}-with-text`]:{fontWeight:c?.fontWeight}}}})(ve.jsx(cV,{...n,children:e}))},fX=({children:e,...t})=>ve.jsx(yM,{...t,children:e});Ho.OTP;Ho.Password;Ho.Search;Ho.TextArea;const hX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Layout"]},()=>{const c=`:where(.${i}).${n()}-layout`,u=`.${n()}-layout`;return{[c]:{},[u]:{}}})(ve.jsx(vo,{...t,children:e}))},{Content:vX}=vo,mX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Content"]},()=>{const c=`:where(.${i}).${n()}-content`,u=`.${n()}-content`;return{[c]:{},[u]:{}}})(ve.jsx(vX,{...t,children:e}))},{Footer:gX}=vo,pX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Footer"]},()=>{const c=`:where(.${i}).${n()}-footer`,u=`.${n()}-footer`;return{[c]:{},[u]:{}}})(ve.jsx(gX,{...t,children:e}))},{Header:bX}=vo,yX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Header"]},()=>{const c=`:where(.${i}).${n()}-header`,u=`.${n()}-header`;return{[c]:{},[u]:{}}})(ve.jsx(bX,{...t,children:e}))},{Sider:SX}=vo,CX=({children:e,collapsed:t,iconUrl:n,brandImageUrl:r,position:a="left",...i})=>{const{getPrefixCls:s,theme:c}=f.useContext(En.ConfigContext),{token:u,hashId:h}=Gr(),v=u.Layout,g=br({token:u,path:["Sider"]},()=>{const b=`:where(.${h}).${s()}-layout-sider`,y=`.${s()}-layout-sider`;return{[b]:{"&-left":{borderInlineEnd:v.mainBorder},"&-right":{borderInlineStart:v.mainBorder}},[y]:{}}});let p;return n&&r&&(p=ve.jsxs("div",{className:`logo-container ${t?"collapsed":""}`,children:[ve.jsx("img",{className:"logo",src:n,alt:"icon",width:20,height:20}),ve.jsx("img",{className:"brand-image",src:r,alt:"brand-image",height:20})]})),g(ve.jsxs(SX,{className:`${s()}-layout-sider-${a}`,collapsible:!0,collapsed:t,trigger:null,width:250,collapsedWidth:56,...i,children:[p,e]}))},xX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Flex"]},()=>{const c=`:where(.${i}).${n()}-flex`,u=`.${n()}-flex`;return{[c]:{},[u]:{}}})(ve.jsx(MM,{...t,children:e}))},MX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Grid;return br({token:a,path:["Row"]},()=>{const u=`:where(.${i}).${n()}-row`,h=`.${n()}-row`;return{[u]:{maxWidth:s?.rowMaxWidth},[h]:{}}})(ve.jsx(dM,{gutter:[s?.gutter,s?.gutter],...t,children:e}))},$X=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Col"]},()=>{const c=`:where(.${i}).${n()}-col`,u=`.${n()}-col`;return{[c]:{},[u]:{}}})(ve.jsx(uM,{...t,children:e}))};function WM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=WM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zX(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=WM(e))&&(r&&(r+=" "),r+=t);return r}const wX=({title:e,description:t,actions:n,className:r})=>ve.jsxs(MM,{justify:"space-between",align:"flex-start",className:r,style:{borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ve.jsxs(Tl,{direction:"vertical",size:4,children:[ve.jsx(Lo.Title,{level:4,style:{margin:0},children:e}),t&&ve.jsx(Lo.Paragraph,{type:"secondary",style:{margin:0,fontSize:10},children:t})]}),n&&ve.jsx(Tl,{children:n})]}),ll=Object.assign(hX,{Header:yX,Footer:pX,Content:mX,Sider:CX}),EX=({children:e,...t})=>ve.jsx(M7,{...t,children:e});Object.assign(EX,{Item:M7.Item});const OX=3,IX=({defaultOpenKeys:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Menu,u=`.${`${n()}-menu`}`,h=Wl(r),v=br({token:a,path:["Menu"]},()=>({[`:where(.${i})${u}`]:{minWidth:s.minWidth,[`&${u}-inline-collapsed`]:{minWidth:h.others.valueUnset},[`&${u}-dark`]:{[`${u}-title, ${u}-submenu-title`]:{paddingInlineEnd:"1rem",color:s.mainMenuColor,fontWeight:h.typography.fontWeightBold},[`${u}-item`]:{color:s.mainMenuColor,fontWeight:h.typography.fontWeightBold},[`${u}-sub`]:{fontWeight:h.typography.fontWeightMedium,[`${u}-item`]:{color:s.subMenuTitleColor,fontWeight:h.typography.fontWeightMedium},[`${u}-submenu`]:{[`${u}-submenu-title`]:{color:s.subMenuTitleColor,svg:{position:h.layout.positionAbsolute,marginLeft:s.subMenuTitleIconMargin,insetInlineEnd:h.others.valueUnset}},[`${u}-sub`]:{[`${u}-item-selected`]:{[`&${u}-item-only-child`]:{"&::after":{background:s.subMenuItemSelectedChildColor}}},[`${u}-item-only-child`]:{"&::after":{width:s.childMenuItemSelectedChildWidth,height:s.childMenuItemSelectedChildHeight,borderRadius:s.childMenuItemSelectedChildRadius,marginLeft:s.childMenuItemSelectedChildMargin,opacity:h.others.opacityFull,insetBlock:h.others.valueUnset,insetInlineEnd:h.others.valueUnset,transform:h.layout.displayNone,background:s.childMenuItemSelectedChildBgColor}}}},[`${u}-item-only-child`]:{"&::after":{width:s.subMenuOnlyChildSize,height:s.subMenuOnlyChildSize,borderRadius:h.sizing.valueHalf,background:s.subMenuOnlyChildBgColor,marginLeft:s.subMenuOnlyChildMargin,opacity:h.others.opacityFull,insetBlock:h.others.valueUnset,insetInlineEnd:h.others.valueUnset,transform:h.layout.displayNone}}}},[`&${u}-light`]:{background:s.lightItemBg,[`${u}-submenu`]:{"svg:first-child":{color:s.lightItemMainIconColor,fill:s.lightItemMainIconColor},"&-title":{color:s.lightItemMainTitle},[`${u}-sub`]:{background:s.LightSubItemBg,[`${u}-submenu`]:{[`${u}-submenu-title`]:{color:s.lightSubTitleColor,i:{background:s.lightSubIconColor}},[`${u}-sub`]:{[`${u}-item-selected`]:{[`&${u}-item-only-child`]:{background:s.lightchildItemBg,color:s.lightChildItemColor,"&::after":{background:s.lightChildItemColor}}},[`${u}-item-only-child`]:{color:s.lightSubTitleColor,"&::after":{background:s.lightSubTitleColor}}}},[`${u}-item-only-child`]:{color:s.lightSubTitleColor,fontWeight:h.typography.fontWeightMedium,"&::after":{background:s.lightSubTitleColor}}}}}},[u]:{}})),g=(y,x=0)=>!y||x>=OX?y:y.map(S=>{const M={...S};return"icon"in M&&M.icon&&(M.icon=ve.jsx(ad,{icon:M.icon,size:x===0?18:10})),"children"in M&&Array.isArray(M.children)&&(M.children=g(M.children,x+1)),M}),p=g(t.items),b=y=>ve.jsx(ad,{icon:"chevron_down",size:14,style:{transform:y.isOpen?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out"}});return v(ve.jsx(Ul,{defaultOpenKeys:e,...t,items:p,expandIcon:b}))};h6.Group;Tl.Compact;const f8=({children:e,block:t,...n})=>ve.jsx(Tl,{...n,...t&&{style:{width:"100%"}},children:e}),tb=()=>{},RX=typeof window<"u",TX=(e,t,n)=>{if(!RX)return[t,tb,tb];const r=n?n.raw?(h=>h):n.deserializer:JSON.parse,a=f.useRef(h=>{try{const v=n?n.raw?String:n.serializer:JSON.stringify,g=localStorage.getItem(h);return g!==null?r(g):(t&&localStorage.setItem(h,v(t)),t)}catch{return t}}),[i,s]=f.useState(()=>a.current(e));f.useLayoutEffect(()=>s(a.current(e)),[e]);const c=f.useCallback(h=>{try{const v=typeof h=="function"?h(i):h;if(typeof v>"u")return;let g;n?n.raw?typeof v=="string"?g=v:g=JSON.stringify(v):n.serializer?g=n.serializer(v):g=JSON.stringify(v):g=JSON.stringify(v),localStorage.setItem(e,g),s(r(g))}catch{}},[e,s]),u=f.useCallback(()=>{try{localStorage.removeItem(e),s(void 0)}catch{}},[e,s]);return[i,c,u]},PX=e=>{f.useEffect(()=>{e()},[])},_X=({children:e,fontFamily:t,form:n})=>{PX(()=>{r(),En.config({prefixCls:"akinon"})});const r=()=>{if(document.querySelector("style[data-akinon-ui-variables]"))return;const i=document.createElement("style");i.setAttribute("data-akinon-ui-variables","true"),i.innerHTML=`:root {${Object.entries(aX()).map(([s,c])=>`${s}: ${c};`).join("")}}`,document.head.prepend(i)};return b2.token?.fontFamily&&t&&(b2.token.fontFamily=t),ve.jsx(En,{theme:b2,prefixCls:"akinon",form:n,children:e})};function NX(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jX(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var AX=(function(){function e(n){var r=this;this._insertTag=function(a){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,i),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jX(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=NX(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ar="-ms-",T0="-moz-",bn="-webkit-",qM="comm",R7="rule",T7="decl",DX="@import",GM="@keyframes",LX="@layer",BX=Math.abs,x6=String.fromCharCode,HX=Object.assign;function FX(e,t){return wr(e,0)^45?(((t<<2^wr(e,0))<<2^wr(e,1))<<2^wr(e,2))<<2^wr(e,3):0}function XM(e){return e.trim()}function kX(e,t){return(e=t.exec(e))?e[0]:e}function yn(e,t,n){return e.replace(t,n)}function h8(e,t){return e.indexOf(t)}function wr(e,t){return e.charCodeAt(t)|0}function L2(e,t,n){return e.slice(t,n)}function no(e){return e.length}function P7(e){return e.length}function w3(e,t){return t.push(e),e}function VX(e,t){return e.map(t).join("")}var M6=1,_l=1,KM=0,Jr=0,or=0,ql="";function $6(e,t,n,r,a,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:M6,column:_l,length:s,return:""}}function Ys(e,t){return HX($6("",null,null,"",null,null,0),e,{length:-e.length},t)}function UX(){return or}function WX(){return or=Jr>0?wr(ql,--Jr):0,_l--,or===10&&(_l=1,M6--),or}function va(){return or=Jr<KM?wr(ql,Jr++):0,_l++,or===10&&(_l=1,M6++),or}function lo(){return wr(ql,Jr)}function J3(){return Jr}function rc(e,t){return L2(ql,e,t)}function B2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YM(e){return M6=_l=1,KM=no(ql=e),Jr=0,[]}function QM(e){return ql="",e}function e0(e){return XM(rc(Jr-1,v8(e===91?e+2:e===40?e+1:e)))}function qX(e){for(;(or=lo())&&or<33;)va();return B2(e)>2||B2(or)>3?"":" "}function GX(e,t){for(;--t&&va()&&!(or<48||or>102||or>57&&or<65||or>70&&or<97););return rc(e,J3()+(t<6&&lo()==32&&va()==32))}function v8(e){for(;va();)switch(or){case e:return Jr;case 34:case 39:e!==34&&e!==39&&v8(or);break;case 40:e===41&&v8(e);break;case 92:va();break}return Jr}function XX(e,t){for(;va()&&e+or!==57;)if(e+or===84&&lo()===47)break;return"/*"+rc(t,Jr-1)+"*"+x6(e===47?e:va())}function KX(e){for(;!B2(lo());)va();return rc(e,Jr)}function YX(e){return QM(t0("",null,null,null,[""],e=YM(e),0,[0],e))}function t0(e,t,n,r,a,i,s,c,u){for(var h=0,v=0,g=s,p=0,b=0,y=0,x=1,S=1,M=1,$=0,E="",I=a,w=i,O=r,T=E;S;)switch(y=$,$=va()){case 40:if(y!=108&&wr(T,g-1)==58){h8(T+=yn(e0($),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:T+=e0($);break;case 9:case 10:case 13:case 32:T+=qX(y);break;case 92:T+=GX(J3()-1,7);continue;case 47:switch(lo()){case 42:case 47:w3(QX(XX(va(),J3()),t,n),u);break;default:T+="/"}break;case 123*x:c[h++]=no(T)*M;case 125*x:case 59:case 0:switch($){case 0:case 125:S=0;case 59+v:M==-1&&(T=yn(T,/\f/g,"")),b>0&&no(T)-g&&w3(b>32?rb(T+";",r,n,g-1):rb(yn(T," ","")+";",r,n,g-2),u);break;case 59:T+=";";default:if(w3(O=nb(T,t,n,h,v,a,c,E,I=[],w=[],g),i),$===123)if(v===0)t0(T,t,O,O,I,i,g,c,w);else switch(p===99&&wr(T,3)===110?100:p){case 100:case 108:case 109:case 115:t0(e,O,O,r&&w3(nb(e,O,O,0,0,a,c,E,a,I=[],g),w),a,w,g,c,r?I:w);break;default:t0(T,O,O,O,[""],w,0,c,w)}}h=v=b=0,x=M=1,E=T="",g=s;break;case 58:g=1+no(T),b=y;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&WX()==125)continue}switch(T+=x6($),$*x){case 38:M=v>0?1:(T+="\f",-1);break;case 44:c[h++]=(no(T)-1)*M,M=1;break;case 64:lo()===45&&(T+=e0(va())),p=lo(),v=g=no(E=T+=KX(J3())),$++;break;case 45:y===45&&no(T)==2&&(x=0)}}return i}function nb(e,t,n,r,a,i,s,c,u,h,v){for(var g=a-1,p=a===0?i:[""],b=P7(p),y=0,x=0,S=0;y<r;++y)for(var M=0,$=L2(e,g+1,g=BX(x=s[y])),E=e;M<b;++M)(E=XM(x>0?p[M]+" "+$:yn($,/&\f/g,p[M])))&&(u[S++]=E);return $6(e,t,n,a===0?R7:c,u,h,v)}function QX(e,t,n){return $6(e,t,n,qM,x6(UX()),L2(e,2,-2),0)}function rb(e,t,n,r){return $6(e,t,n,T7,L2(e,0,r),L2(e,r+1,-1),r)}function bl(e,t){for(var n="",r=P7(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function ZX(e,t,n,r){switch(e.type){case LX:if(e.children.length)break;case DX:case T7:return e.return=e.return||e.value;case qM:return"";case GM:return e.return=e.value+"{"+bl(e.children,r)+"}";case R7:e.value=e.props.join(",")}return no(n=bl(e.children,r))?e.return=e.value+"{"+n+"}":""}function JX(e){var t=P7(e);return function(n,r,a,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,a,i)||"";return s}}function eK(e){return function(t){t.root||(t=t.return)&&e(t)}}var ab=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var a=t(r);return n.set(r,a),a}};function tK(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nK=function(t,n,r){for(var a=0,i=0;a=i,i=lo(),a===38&&i===12&&(n[r]=1),!B2(i);)va();return rc(t,Jr)},rK=function(t,n){var r=-1,a=44;do switch(B2(a)){case 0:a===38&&lo()===12&&(n[r]=1),t[r]+=nK(Jr-1,n,r);break;case 2:t[r]+=e0(a);break;case 4:if(a===44){t[++r]=lo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=x6(a)}while(a=va());return t},aK=function(t,n){return QM(rK(YM(t),n))},ob=new WeakMap,oK=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ob.get(r))&&!a){ob.set(t,!0);for(var i=[],s=aK(n,i),c=r.props,u=0,h=0;u<s.length;u++)for(var v=0;v<c.length;v++,h++)t.props[h]=i[u]?s[u].replace(/&\f/g,c[v]):c[v]+" "+s[u]}}},iK=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ZM(e,t){switch(FX(e,t)){case 5103:return bn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bn+e+T0+e+Ar+e+e;case 6828:case 4268:return bn+e+Ar+e+e;case 6165:return bn+e+Ar+"flex-"+e+e;case 5187:return bn+e+yn(e,/(\w+).+(:[^]+)/,bn+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return bn+e+Ar+"flex-item-"+yn(e,/flex-|-self/,"")+e;case 4675:return bn+e+Ar+"flex-line-pack"+yn(e,/align-content|flex-|-self/,"")+e;case 5548:return bn+e+Ar+yn(e,"shrink","negative")+e;case 5292:return bn+e+Ar+yn(e,"basis","preferred-size")+e;case 6060:return bn+"box-"+yn(e,"-grow","")+bn+e+Ar+yn(e,"grow","positive")+e;case 4554:return bn+yn(e,/([^-])(transform)/g,"$1"+bn+"$2")+e;case 6187:return yn(yn(yn(e,/(zoom-|grab)/,bn+"$1"),/(image-set)/,bn+"$1"),e,"")+e;case 5495:case 3959:return yn(e,/(image-set\([^]*)/,bn+"$1$`$1");case 4968:return yn(yn(e,/(.+:)(flex-)?(.*)/,bn+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bn+e+e;case 4095:case 3583:case 4068:case 2532:return yn(e,/(.+)-inline(.+)/,bn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(no(e)-1-t>6)switch(wr(e,t+1)){case 109:if(wr(e,t+4)!==45)break;case 102:return yn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+T0+(wr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~h8(e,"stretch")?ZM(yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wr(e,t+1)!==115)break;case 6444:switch(wr(e,no(e)-3-(~h8(e,"!important")&&10))){case 107:return yn(e,":",":"+bn)+e;case 101:return yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(wr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+Ar+"$2box$3")+e}break;case 5936:switch(wr(e,t+11)){case 114:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+Ar+e+e}return e}var lK=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case T7:t.return=ZM(t.value,t.length);break;case GM:return bl([Ys(t,{value:yn(t.value,"@","@"+bn)})],a);case R7:if(t.length)return VX(t.props,function(i){switch(kX(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bl([Ys(t,{props:[yn(i,/:(read-\w+)/,":"+T0+"$1")]})],a);case"::placeholder":return bl([Ys(t,{props:[yn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Ys(t,{props:[yn(i,/:(plac\w+)/,":"+T0+"$1")]}),Ys(t,{props:[yn(i,/:(plac\w+)/,Ar+"input-$1")]})],a)}return""})}},sK=[lK],JM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var a=t.stylisPlugins||sK,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),M=1;M<S.length;M++)i[S[M]]=!0;c.push(x)});var u,h=[oK,iK];{var v,g=[ZX,eK(function(x){v.insert(x)})],p=JX(h.concat(a,g)),b=function(S){return bl(YX(S),p)};u=function(S,M,$,E){v=$,b(S?S+"{"+M.styles+"}":M.styles),E&&(y.inserted[M.name]=!0)}}var y={key:n,sheet:new AX({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(c),y};function cK(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},dK=/[A-Z]|^ms/g,fK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,e$=function(t){return t.charCodeAt(1)===45},ib=function(t){return t!=null&&typeof t!="boolean"},P5=tK(function(e){return e$(e)?e:e.replace(dK,"-$&").toLowerCase()}),lb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fK,function(r,a,i){return ro={name:a,styles:i,next:ro},a})}return uK[t]!==1&&!e$(t)&&typeof n=="number"&&n!==0?n+"px":n};function H2(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return ro={name:a.name,styles:a.styles,next:ro},a.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)ro={name:s.name,styles:s.styles,next:ro},s=s.next;var c=i.styles+";";return c}return hK(e,t,n)}case"function":{if(e!==void 0){var u=ro,h=n(e);return ro=u,H2(e,t,h)}break}}var v=n;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function hK(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=H2(e,t,n[a])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=i+"{"+t[c]+"}":ib(c)&&(r+=P5(i)+":"+lb(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)ib(s[u])&&(r+=P5(i)+":"+lb(i,s[u])+";");else{var h=H2(e,t,s);switch(i){case"animation":case"animationName":{r+=P5(i)+":"+h+";";break}default:r+=i+"{"+h+"}"}}}return r}var sb=/label:\s*([^\s;{]+)\s*(;|$)/g,ro;function xi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";ro=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=H2(n,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=H2(n,t,e[c]),r){var u=i;a+=u[c]}sb.lastIndex=0;for(var h="",v;(v=sb.exec(a))!==null;)h+="-"+v[1];var g=cK(a)+h;return{name:g,styles:a,next:ro}}var vK=!0;function z6(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var _7=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||vK===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},N7=function(t,n,r){_7(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function cb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ub(e,t,n){var r=[],a=z6(e,r,n);return r.length<2?n:a+t(r)}var j7=function(t){var n=JM(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var r=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered,void 0);return N7(n,g,!1),n.key+"-"+g.name},a=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered),p="animation-"+g.name;return cb(n,{name:g.name,styles:"@keyframes "+p+"{"+g.styles+"}"}),p},i=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered);cb(n,g)},s=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];return ub(n.registered,r,mK(h))};return{css:r,cx:s,injectGlobal:i,keyframes:a,hydrate:function(u){u.forEach(function(h){n.inserted[h]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:z6.bind(null,n.registered),merge:ub.bind(null,n.registered,r)}},mK=function e(t){for(var n="",r=0;r<t.length;r++){var a=t[r];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}}return n},mo=j7({key:"css"});mo.flush;mo.hydrate;mo.cx;mo.merge;mo.getRegisteredStyles;mo.injectGlobal;mo.keyframes;mo.css;mo.sheet;var gK=mo.cache,pK=(function(){function e(){Wn(this,e),J(this,"_cacheList",[gK])}return qn(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})(),db=typeof document<"u",t$=function(t,n){return"".concat(t,"-").concat(n)},bK=function(t,n,r,a){var i=a.hashPriority;_7(t,n,r);var s=".".concat(t$(t.key,n.name)),c=i==="low"?":where(".concat(s,")"):s;if(t.inserted[n.name]===void 0){var u="",h=n;do{var v=t.insert(n===h?c:"",h,t.sheet,!0);!db&&v!==void 0&&(u+=v),h=h.next}while(h!==void 0);if(!db&&u.length!==0)return u}},A7=function(t){return lt(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},yK=function e(t){for(var n="",r=0;r<t.length;r++){var a=t[r];if(a!==null){var i=void 0;switch(lt(a)){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}}return n},SK=function(t,n,r){var a=[],i=z6(t,a,r);return a.length<2?r:i+n(a)},CK=function(t,n){return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=xi(a,t.registered,void 0);return bK(t,s,!1,n),t$(t.key,s.name)}},xK=function(t,n){return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.map(function(c){return A7(c)?n(c):c});return SK(t.registered,n,yK(s))}},n$=function(t,n){var r=CK(t,{hashPriority:n.hashPriority||"high",label:n.label}),a=xK(t,r);return{css:r,cx:a}},ac=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xi(n)},MK="acss",$K=function(t){return f.createContext(t)},_5={exports:{}},Mn={};/** @license React v16.13.1
|
|
375
|
+
`]:{zIndex:10,width:r,margin:`0 ${ee(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ee(i(e.paddingXS).mul(2).equal())})`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ee(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},bG=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},yG=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},_n(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},SG=e=>({actionsColor:e.colorIcon}),CG=dn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:i}=e,s=Wt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(a).mul(2.55).equal()});return[yG(s),hG(s),gG(s),pG(s),vG(s),mG(s),bG(s),ZS(s)]},SG);var xG={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},MG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:xG}))},$G=f.forwardRef(MG),zG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},wG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:zG}))},EG=f.forwardRef(wG),OG={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},IG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:OG}))},RG=f.forwardRef(IG);function x3(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function M3(e,t){const n=De(t),r=n.findIndex(({uid:a})=>a===e.uid);return r===-1?n.push(e):n[r]=e,n}function I5(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function TG(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const PG=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},VM=e=>e.indexOf("image/")===0,_G=e=>{if(e.type&&!e.thumbUrl)return VM(e.type);const t=e.thumbUrl||e.url||"",n=PG(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},fi=200;function NG(e){return new Promise(t=>{if(!e.type||!VM(e.type)){t("");return}const n=document.createElement("canvas");n.width=fi,n.height=fi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${fi}px; height: ${fi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:s}=a;let c=fi,u=fi,h=0,v=0;i>s?(u=s*(fi/i),v=-(u-c)/2):(c=i*(fi/s),h=-(c-u)/2),r.drawImage(a,h,v,c,u);const g=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(g)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var jG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},AG=function(t,n){return f.createElement(On,Le({},t,{ref:n,icon:jG}))},DG=f.forwardRef(AG);const LG=f.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:a,file:i,items:s,progress:c,iconRender:u,actionIconRender:h,itemRender:v,isImgUrl:g,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:y,previewIcon:x,removeIcon:S,downloadIcon:M,extra:$,onPreview:E,onDownload:I,onClose:w},O)=>{var T,_;const{status:j}=i,[A,H]=f.useState(j);f.useEffect(()=>{j!=="removed"&&H(j)},[j]);const[q,V]=f.useState(!1);f.useEffect(()=>{const ie=setTimeout(()=>{V(!0)},300);return()=>{clearTimeout(ie)}},[]);const W=u(i);let G=f.createElement("div",{className:`${e}-icon`},W);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(A==="uploading"||!i.thumbUrl&&!i.url){const ie=te(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:A!=="uploading"});G=f.createElement("div",{className:ie},W)}else{const ie=g?.(i)?f.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):W,ce=te(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:g&&!g(i)});G=f.createElement("a",{className:ce,onClick:ge=>E(i,ge),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ie)}const N=te(`${e}-list-item`,`${e}-list-item-${A}`),k=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,U=(typeof b=="function"?b(i):b)?h((typeof S=="function"?S(i):S)||f.createElement(vq,null),()=>w(i),e,r.removeFile,!0):null,D=(typeof y=="function"?y(i):y)&&A==="done"?h((typeof M=="function"?M(i):M)||f.createElement(DG,null),()=>I(i),e,r.downloadFile):null,R=a!=="picture-card"&&a!=="picture-circle"&&f.createElement("span",{key:"download-delete",className:te(`${e}-list-item-actions`,{picture:a==="picture"})},D,U),B=typeof $=="function"?$(i):$,L=B&&f.createElement("span",{className:`${e}-list-item-extra`},B),P=te(`${e}-list-item-name`),X=i.url?f.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:P,title:i.name},k,{href:i.url,onClick:ie=>E(i,ie)}),i.name,L):f.createElement("span",{key:"view",className:P,onClick:ie=>E(i,ie),title:i.name},i.name,L),Y=(typeof p=="function"?p(i):p)&&(i.url||i.thumbUrl)?f.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ie=>E(i,ie),title:r.previewFile},typeof x=="function"?x(i):x||f.createElement($M,null)):null,Q=(a==="picture-card"||a==="picture-circle")&&A!=="uploading"&&f.createElement("span",{className:`${e}-list-item-actions`},Y,A==="done"&&D,U),{getPrefixCls:le}=f.useContext(ht),ne=le(),fe=f.createElement("div",{className:N},G,X,R,Q,q&&f.createElement(Ga,{motionName:`${ne}-fade`,visible:A==="uploading",motionDeadline:2e3},({className:ie})=>{const ce="percent"in i?f.createElement(KW,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},c)):null;return f.createElement("div",{className:te(`${e}-list-item-progress`,ie)},ce)})),ye=i.response&&typeof i.response=="string"?i.response:((T=i.error)===null||T===void 0?void 0:T.statusText)||((_=i.error)===null||_===void 0?void 0:_.message)||r.uploadError,se=A==="error"?f.createElement(Oi,{title:ye,getPopupContainer:ie=>ie.parentNode},fe):fe;return f.createElement("div",{className:te(`${e}-list-item-container`,t),style:n,ref:O},v?v(se,i,s,{download:I.bind(null,i),preview:E.bind(null,i),remove:w.bind(null,i)}):se)}),BG=(e,t)=>{const{listType:n="text",previewFile:r=NG,onPreview:a,onDownload:i,onRemove:s,locale:c,iconRender:u,isImageUrl:h=_G,prefixCls:v,items:g=[],showPreviewIcon:p=!0,showRemoveIcon:b=!0,showDownloadIcon:y=!1,removeIcon:x,previewIcon:S,downloadIcon:M,extra:$,progress:E={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:w=!0,itemRender:O,disabled:T}=e,_=fx(),[j,A]=f.useState(!1),H=["picture-card","picture-circle"].includes(n);f.useEffect(()=>{n.startsWith("picture")&&(g||[]).forEach(P=>{!(P.originFileObj instanceof File||P.originFileObj instanceof Blob)||P.thumbUrl!==void 0||(P.thumbUrl="",r?.(P.originFileObj).then(X=>{P.thumbUrl=X||"",_()}))})},[n,g,r]),f.useEffect(()=>{A(!0)},[]);const q=(P,X)=>{if(a)return X?.preventDefault(),a(P)},V=P=>{typeof i=="function"?i(P):P.url&&window.open(P.url)},W=P=>{s?.(P)},G=P=>{if(u)return u(P,n);const X=P.status==="uploading";if(n.startsWith("picture")){const Y=n==="picture"?f.createElement(Ol,null):c.uploading,Q=h?.(P)?f.createElement(RG,null):f.createElement($G,null);return X?Y:Q}return X?f.createElement(Ol,null):f.createElement(EG,null)},N=(P,X,Y,Q,le)=>{const ne={type:"text",size:"small",title:Q,onClick:fe=>{var ye,se;X(),f.isValidElement(P)&&((se=(ye=P.props).onClick)===null||se===void 0||se.call(ye,fe))},className:`${Y}-list-item-action`,disabled:le?T:!1};return f.isValidElement(P)?f.createElement(Va,Object.assign({},ne,{icon:Ur(P,Object.assign(Object.assign({},P.props),{onClick:()=>{}}))})):f.createElement(Va,Object.assign({},ne),f.createElement("span",null,P))};f.useImperativeHandle(t,()=>({handlePreview:q,handleDownload:V}));const{getPrefixCls:k}=f.useContext(ht),U=k("upload",v),D=k(),R=te(`${U}-list`,`${U}-list-${n}`),B=f.useMemo(()=>Hn(GS(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),L=Object.assign(Object.assign({},H?{}:B),{motionDeadline:2e3,motionName:`${U}-${H?"animate-inline":"animate"}`,keys:De(g.map(P=>({key:P.uid,file:P}))),motionAppear:j});return f.createElement("div",{className:R},f.createElement(OS,Object.assign({},L,{component:!1}),({key:P,file:X,className:Y,style:Q})=>f.createElement(LG,{key:P,locale:c,prefixCls:U,className:Y,style:Q,file:X,items:g,progress:E,listType:n,isImgUrl:h,showPreviewIcon:p,showRemoveIcon:b,showDownloadIcon:y,removeIcon:x,previewIcon:S,downloadIcon:M,extra:$,iconRender:G,actionIconRender:N,itemRender:O,onPreview:q,onDownload:V,onClose:W})),I&&f.createElement(Ga,Object.assign({},L,{visible:w,forceRender:!0}),({className:P,style:X})=>Ur(I,Y=>({className:te(Y.className,P),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:P?"none":void 0}),Y.style)}))))},HG=f.forwardRef(BG);var FG=function(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function c(v){try{h(r.next(v))}catch(g){s(g)}}function u(v){try{h(r.throw(v))}catch(g){s(g)}}function h(v){v.done?i(v.value):a(v.value).then(c,u)}h((r=r.apply(e,[])).next())})};const f2=`__LIST_IGNORE_${Date.now()}__`,kG=(e,t)=>{const n=qr("upload"),{fileList:r,defaultFileList:a,onRemove:i,showUploadList:s=!0,listType:c="text",onPreview:u,onDownload:h,onChange:v,onDrop:g,previewFile:p,disabled:b,locale:y,iconRender:x,isImageUrl:S,progress:M,prefixCls:$,className:E,type:I="select",children:w,style:O,itemRender:T,maxCount:_,data:j={},multiple:A=!1,hasControlInside:H=!0,action:q="",accept:V="",supportServerRender:W=!0,rootClassName:G}=e,N=f.useContext(Fa),k=b??N,U=e.customRequest||n.customRequest,[D,R]=Yn(a||[],{value:r,postState:we=>we??[]}),[B,L]=f.useState("drop"),P=f.useRef(null),X=f.useRef(null);f.useMemo(()=>{const we=Date.now();(r||[]).forEach((Ee,nt)=>{!Ee.uid&&!Object.isFrozen(Ee)&&(Ee.uid=`__AUTO__${we}_${nt}__`)})},[r]);const Y=(we,Ee,nt)=>{let Ke=De(Ee),Rt=!1;_===1?Ke=Ke.slice(-1):_&&(Rt=Ke.length>_,Ke=Ke.slice(0,_)),so.flushSync(()=>{R(Ke)});const Tt={file:we,fileList:Ke};nt&&(Tt.event=nt),(!Rt||we.status==="removed"||Ke.some(Gt=>Gt.uid===we.uid))&&so.flushSync(()=>{v?.(Tt)})},Q=(we,Ee)=>FG(void 0,void 0,void 0,function*(){const{beforeUpload:nt,transformFile:Ke}=e;let Rt=we;if(nt){const Tt=yield nt(we,Ee);if(Tt===!1)return!1;if(delete we[f2],Tt===f2)return Object.defineProperty(we,f2,{value:!0,configurable:!0}),!1;typeof Tt=="object"&&Tt&&(Rt=Tt)}return Ke&&(Rt=yield Ke(Rt)),Rt}),le=we=>{const Ee=we.filter(Rt=>!Rt.file[f2]);if(!Ee.length)return;const nt=Ee.map(Rt=>x3(Rt.file));let Ke=De(D);nt.forEach(Rt=>{Ke=M3(Rt,Ke)}),nt.forEach((Rt,Tt)=>{let Gt=Rt;if(Ee[Tt].parsedFile)Rt.status="uploading";else{const{originFileObj:nn}=Rt;let kt;try{kt=new File([nn],nn.name,{type:nn.type})}catch{kt=new Blob([nn],{type:nn.type}),kt.name=nn.name,kt.lastModifiedDate=new Date,kt.lastModified=new Date().getTime()}kt.uid=Rt.uid,Gt=kt}Y(Gt,Ke)})},ne=(we,Ee,nt)=>{try{typeof we=="string"&&(we=JSON.parse(we))}catch{}if(!I5(Ee,D))return;const Ke=x3(Ee);Ke.status="done",Ke.percent=100,Ke.response=we,Ke.xhr=nt;const Rt=M3(Ke,D);Y(Ke,Rt)},fe=(we,Ee)=>{if(!I5(Ee,D))return;const nt=x3(Ee);nt.status="uploading",nt.percent=we.percent;const Ke=M3(nt,D);Y(nt,Ke,we)},ye=(we,Ee,nt)=>{if(!I5(nt,D))return;const Ke=x3(nt);Ke.error=we,Ke.response=Ee,Ke.status="error";const Rt=M3(Ke,D);Y(Ke,Rt)},se=we=>{let Ee;Promise.resolve(typeof i=="function"?i(we):i).then(nt=>{var Ke;if(nt===!1)return;const Rt=TG(we,D);Rt&&(Ee=Object.assign(Object.assign({},we),{status:"removed"}),D?.forEach(Tt=>{const Gt=Ee.uid!==void 0?"uid":"name";Tt[Gt]===Ee[Gt]&&!Object.isFrozen(Tt)&&(Tt.status="removed")}),(Ke=P.current)===null||Ke===void 0||Ke.abort(Ee),Y(Ee,Rt))})},ie=we=>{L(we.type),we.type==="drop"&&g?.(we)};f.useImperativeHandle(t,()=>({onBatchStart:le,onSuccess:ne,onProgress:fe,onError:ye,fileList:D,upload:P.current,nativeElement:X.current}));const{getPrefixCls:ce,direction:ge,upload:ue}=f.useContext(ht),re=ce("upload",$),pe=Object.assign(Object.assign({onBatchStart:le,onError:ye,onProgress:fe,onSuccess:ne},e),{customRequest:U,data:j,multiple:A,action:q,accept:V,supportServerRender:W,prefixCls:re,disabled:k,beforeUpload:Q,onChange:void 0,hasControlInside:H});delete pe.className,delete pe.style,(!w||k)&&delete pe.id;const $e=`${re}-wrapper`,[Oe,_e,Ne]=CG(re,$e),[Te]=ho("Upload",jo.Upload),{showRemoveIcon:Ie,showPreviewIcon:ze,showDownloadIcon:qe,removeIcon:Ue,previewIcon:et,downloadIcon:tt,extra:Be}=typeof s=="boolean"?{}:s,bt=typeof Ie>"u"?!k:Ie,it=(we,Ee)=>s?f.createElement(HG,{prefixCls:re,listType:c,items:D,previewFile:p,onPreview:u,onDownload:h,onRemove:se,showRemoveIcon:bt,showPreviewIcon:ze,showDownloadIcon:qe,removeIcon:Ue,previewIcon:et,downloadIcon:tt,iconRender:x,extra:Be,locale:Object.assign(Object.assign({},Te),y),isImageUrl:S,progress:M,appendAction:we,appendActionVisible:Ee,itemRender:T,disabled:k}):we,ct=te($e,E,G,_e,Ne,ue?.className,{[`${re}-rtl`]:ge==="rtl",[`${re}-picture-card-wrapper`]:c==="picture-card",[`${re}-picture-circle-wrapper`]:c==="picture-circle"}),Xe=Object.assign(Object.assign({},ue?.style),O);if(I==="drag"){const we=te(_e,re,`${re}-drag`,{[`${re}-drag-uploading`]:D.some(Ee=>Ee.status==="uploading"),[`${re}-drag-hover`]:B==="dragover",[`${re}-disabled`]:k,[`${re}-rtl`]:ge==="rtl"});return Oe(f.createElement("span",{className:ct,ref:X},f.createElement("div",{className:we,style:Xe,onDrop:ie,onDragOver:ie,onDragLeave:ie},f.createElement(u8,Object.assign({},pe,{ref:P,className:`${re}-btn`}),f.createElement("div",{className:`${re}-drag-container`},w))),it()))}const Fe=te(re,`${re}-select`,{[`${re}-disabled`]:k,[`${re}-hidden`]:!w}),Qe=f.createElement("div",{className:Fe,style:Xe},f.createElement(u8,Object.assign({},pe,{ref:P})));return Oe(c==="picture-card"||c==="picture-circle"?f.createElement("span",{className:ct,ref:X},it(Qe,!!w)):f.createElement("span",{className:ct,ref:X},Qe,it()))},UM=f.forwardRef(kG);var VG=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};const UG=f.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:a=!1}=e,i=VG(e,["style","height","hasControlInside"]);return f.createElement(UM,Object.assign({ref:t,hasControlInside:a},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),I7=UM;I7.Dragger=UG;I7.LIST_IGNORE=f2;const WG={50:"#ffffff","50-05":"#ffffff05",60:"#fdfdfd","60-88":"#fdfdfde0",75:"#fbfcfd",80:"#fafafa",90:"#f6f7f9",100:"#f5f6f6",150:"#f1f3f9",200:"#e5e5e5",250:"#d6e1e3",300:"#d4d4d4",350:"#c8daec",380:"#b6c2cf",375:"#bfbfbf",400:"#a3a3a3",500:"#737373",550:"#626262",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a",1e3:"#000000"},qG={25:"#6c7ebe",50:"#677084",100:"#5c6880",125:"#5c5e81",150:"#58669a",175:"#495679",200:"#515c7c",300:"#465178",350:"#43464f",375:"#3f4b5c",400:"#3d4561",450:"#333b57",475:"#2b344c",500:"#293245",550:"#262e47",600:"#232b3b",625:"#252c40",700:"#1d2331",800:"#171d27",825:"#1d2843",850:"#131826",900:"#11171e",950:"#0c111a",951:"#000000bf",960:"#1e1e2d"},GG={100:"#f5f5f5","100-50":"#f5f5f580",125:"#eaeff0",150:"#e9f0f7",200:"#e5e5e5",250:"#d4d6f0",300:"#d4d4d4",325:"#d9d9d9",400:"#a3a3a3",500:"#788195",600:"#525252",700:"#404040",750:"#292b2c",800:"#262626",850:"#30363e",900:"#3b404c",925:"#36373b",950:"#171717"},XG={50:"#fffaf5",100:"#fcf3eb",200:"#fce0cf",300:"#fac7b1",400:"#f58d7a",410:"#e27575",425:"#ff5163","425-10":"#ff516310",450:"#f05050",500:"#ef4444",600:"#d93636",700:"#b32525",800:"#8f1818",815:"#a31515",825:"#800000",900:"#6b0e0e",950:"#450606",951:"#e33030",952:"#f6b5b5",999:"#ff0000"},KG={50:"#fafcf2",100:"#f5fae6",200:"#e5f5c1",300:"#d2ed9d",400:"#a9e05c",500:"#7ed321",600:"#6abf1b",700:"#529e13",800:"#3d800d",825:"#008000",900:"#275e07",950:"#163d03",951:"#67b50c",952:"#71d200","952-10":"#71d20010","952-15":"#71d20015",953:"#e3f6cc",954:"#7bd500"},YG={50:"#f5fcff",100:"#ebf8ff",200:"#cceafc",250:"#a6c5e2",251:"#9ca9c2","250-10":"#a6c5e228","250-20":"#a6c5e25c",300:"#afd9fa",400:"#74b4f7",500:"#3b82f6",600:"#306fdb",700:"#2153b8",800:"#153b94",900:"#0c286e",950:"#051647",951:"#126a6f",952:"#75e2e7",953:"#c6f0f2",954:"#363d51",955:"#062a4a",999:"#0000ff"},QG={50:"#fbf7fc",100:"#f5eff8",200:"#ebdef0",300:"#dbc4e3",400:"#c7a1d1",500:"#ad7abb",600:"#915c9d",700:"#72467b",800:"#633e6a",900:"#543659",950:"#341b37",951:"#7667b6",952:"#9387c7",953:"#eae7f4"},ZG={50:"#fff7fd",100:"#fcebf7",200:"#facfec",300:"#f7b2df",400:"#f27ec0",500:"#ec4899",600:"#d63c87",700:"#b32965",800:"#8f1b49",900:"#6b0f31",950:"#45061a"},JG={50:"#eef5ff",90:"#dae6ff",100:"#d9e8ff",200:"#bcd8ff",300:"#8ec0ff",400:"#599cff",450:"#e27575",500:"#4482ff","500-20":"#4482ff33",600:"#1b55f5",700:"#1440e1",800:"#1734b6",900:"#19318f",950:"#142057"},eX={50:"#fffcf2",100:"#fff8e6",200:"#ffebbf",300:"#fcd997",400:"#fcb44e",425:"#ffaa49",450:"#ce8d0b",475:"#ffa6a6",500:"#f98003",600:"#e06e02",700:"#ba5202",800:"#963d02",900:"#702900",950:"#471700",951:"#ff7041",952:"#ff7041",953:"#fce0ce",954:"#ffc76b"},tX={50:"#fcf2f7",100:"#fae6ef",200:"#f5c4d7",300:"#eda1b9",400:"#de5f77",500:"#d2282e",600:"#bd2025",700:"#9c161a",800:"#7d0e11",950:"#3d0405"},nX={50:"#e8e8fd","50-05":"#e8e8fd0d","50-08":"#e8e8fd14",100:"#eeeef6","100-11":"#eeeef61c","100-15":"#eeeef626",300:"#c8c8ff","300-40":"#c8c8ff66"},rr=16,de={akinon:tX,azure:JG,blue:YG,orange:eX,red:XG,green:KG,pink:ZG,purple:QG,gray:GG,ebonyClay:qG,neutral:WG,indigo:nX},b2={cssVar:!0,algorithm:Pl.darkAlgorithm,colors:de,token:{colorTextBase:de.neutral[100],colorText:de.neutral[100],colorTextSecondary:de.gray[500],colorTextPlaceholder:de.gray[500],colorPrimary:de.azure[500],colorError:de.red[500],colorBgLayout:de.ebonyClay[500],colorBgContainer:de.ebonyClay[600],colorBgElevated:de.ebonyClay[400],controlItemBgHover:de.ebonyClay[200],controlItemBgActive:de.ebonyClay[300],controlItemBgActiveHover:de.ebonyClay[300],colorBgSpotlight:de.ebonyClay[600],colorBorder:de.ebonyClay[700],fontFamily:"'Jost Variable',"+Pl.getDesignToken().fontFamily,fontSize:rr*.875},CustomTokens:{layout:{displayFlex:"flex",displayGrid:"grid",displayBlock:"block",displayInline:"inline",displayInlineBlock:"inline-block",displayNone:"none",displayContents:"contents",positionAbsolute:"absolute",positionRelative:"relative",positionFixed:"fixed",positionSticky:"sticky",positionStatic:"static",flexStart:"start",flexCenter:"center",flexDirectionRow:"row",flexDirectionRowReverse:"row-reverse",flexDirectionColumn:"column",flexDirectionColumnReverse:"column-reverse"},ai:{gradientStart:de.azure[450],gradientEnd:de.azure[500],textColor:de.orange[475]},typography:{textTransformUppercase:"uppercase",textTransformLowercase:"lowercase",textTransformCapitalize:"capitalize",textAlignLeft:"left",textAlignCenter:"center",textAlignRight:"right",textAlignJustify:"justify",whiteSpaceNormal:"normal",whiteSpaceNoWrap:"nowrap",whiteSpacePre:"pre",whiteSpacePreLine:"pre-line",whiteSpacePreWrap:"pre-wrap",whiteSpaceBreakSpaces:"break-spaces",wordBreak:"break-word",textDecorationUnderline:"underline",textDecorationOverline:"overline",textDecorationLineThrough:"line-through",fontWeightBold:"600",fontWeightMedium:"500"},sizing:{sizeMaxContent:"max-content",sizeMinContent:"min-content",sizeFitContent:"fit-content",valueFull:"100%",valueThreeQuarter:"75%",valueHalf:"50%",valueQuarter:"25%",valueZero:"0",valueAuto:"auto",valueInherit:"inherit"},others:{colorTransparent:"transparent",valueHidden:"hidden",valueUnset:"unset",emptyContent:'""',lineHeightShort:"1",lineHeightTall:"2",cursorNotAllowed:"not-allowed",cursorPointer:"pointer",verticalAlignMiddle:"middle",opacityFull:"1",opacityNone:"0"},border:{borderNone:"none",borderSolid:"solid",borderDashed:"dashed",borderDotted:"dotted",borderWidthThin:"1px",borderWidthThick:"2px",borderRadiusSm:"0.125rem"},overflow:{overflowVisible:"visible",overflowHidden:"hidden",overflowScroll:"scroll"}},NavCardTokens:{shadow:"2px 2px 4px 0 rgba(0, 0, 0, 0.2)"},components:{Button:{colorPrimary:de.azure[500],colorPrimaryHover:de.azure[600],colorPrimaryActive:de.azure[700],colorPrimaryText:de.neutral[50],defaultBg:de.neutral[50],defaultColor:de.azure[500],defaultHoverBg:de.neutral[100],defaultHoverColor:de.azure[500],defaultActiveBg:de.neutral[50],defaultActiveColor:de.azure[500],defaultBorderColor:de.azure[500],defaultBgSm:de.gray[750],defaultBgSmHover:de.gray[800],colorError:de.red[450],colorErrorHover:de.red[500],colorErrorActive:de.red[600],colorErrorBorder:de.red[500],colorErrorBgSM:de.red[425],colorErrorBgSMHover:de.red[450],colorErrorSMHover:de.neutral[50],colorSuccessBg:de.green[500],colorSuccessBorder:de.green[500],colorSuccessHover:de.green[600],colorSuccessActive:de.green[700],colorWarningBg:de.neutral[50],colorWarningBorder:de.neutral[50],colorWarningHover:de.neutral[100],colorWarningActive:de.neutral[50],colorWarningText:de.orange[450],colorBgContainerDisabled:de.neutral[100],colorTextDisabled:de.neutral[350],borderColorDisabled:de.neutral[350],defaultGhostColor:de.azure[500],contentFontSizeSM:rr*.75,borderRadiusSM:11,paddingBlockSM:1,paddingInlineSM:20,colorText:de.neutral[50],colorTextHover:de.neutral[50],controlHeight:40,borderRadius:5,paddingBlock:10,paddingInline:45,contentLineHeight:"normal",fontWeight:600,defaultShadow:"none",primaryShadow:"none",dangerShadow:"none"},Checkbox:{colorPrimary:de.ebonyClay[25],colorBgContainer:de.gray[150],colorText:de.neutral[350],colorChecked:de.neutral[50],controlInteractiveSize:20},Badge:{colorText:de.neutral[50]},Radio:{radioSize:14,dotSize:5,colorPrimary:de.azure[500],colorBgContainer:de.gray[150],colorText:de.neutral[350],colorChecked:de.neutral[50],colorBorder:de.neutral[550],buttonBg:de.ebonyClay[600],buttonColor:de.neutral[50],buttonSolidCheckedBg:de.ebonyClay[600],buttonSolidCheckedColor:de.neutral[50],buttonSolidCheckedBorder:de.azure[500],borderRadiusSM:100},Layout:{headerBg:de.ebonyClay[500],siderBg:de.ebonyClay[500],mainBorder:`1px solid ${de.gray[900]}`},Dropdown:{colorPrimary:de.neutral[100],controlPaddingHorizontal:rr},Menu:{minWidth:"249px",darkItemBg:de.ebonyClay[500],darkSubMenuItemBg:de.ebonyClay[600],darkItemSelectedBg:de.ebonyClay[700],darkItemColor:de.gray[500],lightItemBg:`${de.neutral[50]} !important`,lightItemMainIconColor:`${de.azure[500]} !important`,lightItemMainTitle:`${de.ebonyClay[500]} !important`,LightSubItemBg:`${de.neutral[90]} !important`,lightSubTitleColor:`${de.gray[500]} !important`,lightSubIconColor:`${de.ebonyClay[125]} !important`,lightchildItemBg:`${de.neutral[350]} !important`,lightChildItemColor:`${de.ebonyClay[500]} !important`,itemHeight:rr*3.25,mainBorder:`1px solid ${de.gray[900]}`,mainMenuIconSize:"12px !important",mainMenuExpandIconSize:"16px !important",mainMenuColor:`${de.neutral[50]} !important`,subMenuTitleColor:`${de.gray[500]} !important`,subMenuTitleIconMargin:"-25px !important",subMenuOnlyChildSize:"6px !important",subMenuItemSelectedChildColor:`${de.neutral[50]} !important`,subMenuOnlyChildBgColor:`${de.ebonyClay[125]} !important`,subMenuOnlyChildMargin:"-23px !important",subMenuIconSize:"10px !important",childMenuItemSelectedChildWidth:"10px !important",childMenuItemSelectedChildHeight:"2px !important",childMenuItemSelectedChildRadius:"1px !important",childMenuItemSelectedChildMargin:"-17px !important",childMenuItemSelectedChildBgColor:`${de.ebonyClay[125]} !important`},Breadcrumb:{fontSize:rr*.625,itemColor:de.azure[500],lastItemColor:de.gray[500],paddingBottom:rr*.5,borderBottom:"1px solid var(--color-gray-900)",paddingLeft:20,paddingRight:20,marginLeft:8,marginRight:8,fontWeight:600,lineHeight:1.5,separatorColor:de.azure[500],letterSpacing:rr*.03},Tag:{defaultColorSuccess:de.green[951],defaultBorderColorSuccess:de.green[952],defaultBgSuccess:de.green[953],defaultColorWaiting1:de.orange[951],defaultBorderColorWaiting1:de.orange[952],defaultBgWaiting1:de.orange[953],defaultColorWaiting2:de.blue[951],defaultBorderColorWaiting2:de.blue[952],defaultBgWaiting2:de.blue[953],defaultColorWaiting3:de.purple[951],defaultBorderColorWaiting3:de.purple[952],defaultBgWaiting3:de.purple[953],defaultColorFailed:de.red[951],defaultBorderColorFailed:de.red[450],defaultBgFailed:de.red[952],defaultColorEmpty:de.ebonyClay[400],defaultBorderColorEmpty:de.neutral[350],defaultBgEmpty:de.neutral[200],borderRadius:5,fontSize:rr*.8125,paddingLeft:15,paddingRight:15,fontSizeClose:rr*.6875},Tooltip:{bgColor:de.ebonyClay[951]},Flex:{},Spin:{},Alert:{defaultColorSuccess:de.green[951],defaultBorderColorSuccess:de.green[952],defaultBgSuccess:de.green[953],defaultColorWaiting1:de.orange[951],defaultBorderColorWaiting1:de.orange[952],defaultBgWaiting1:de.orange[953],defaultColorWaiting2:de.blue[951],defaultBorderColorWaiting2:de.blue[952],defaultBgWaiting2:de.blue[953],defaultColorWaiting3:de.purple[951],defaultBorderColorWaiting3:de.purple[952],defaultBgWaiting3:de.purple[953],defaultColorFailed:de.red[951],defaultBorderColorFailed:de.red[450],defaultBgFailed:de.red[952]},Grid:{rowMaxWidth:1368,gutter:24},Card:{colorBgContainer:de.ebonyClay[450],colorTextDescription:de.neutral[100],headerFontSize:rr*1.25,fontSize:rr*.875,borderRadiusLG:10,paddingLG:40,padding:24,headerHeight:rr*1.25,lineHeight:1,colorBorderSecondary:de.ebonyClay[550],lineWidth:2},Collapse:{headerPadding:"0 0 12px",contentPadding:"0 0 24px !important",fontSizeIcon:rr*1.65,fontSize:rr},Form:{itemMarginBottom:16,labelColor:de.neutral[100],verticalLabelPadding:"7px 0",lineHeight:"normal",fontWeight:600,colorError:de.red[425],verticalErrorPadding:"7px 0"},Pagination:{marginXS:0,marginSM:0,margin:0,colorText:de.gray[500],colorTextBase:de.ebonyClay[950],lineWidth:0,marginXXS:0,borderRadius:0,colorBorder:de.neutral[350],boxShadow:de.gray[150],itemInputBg:de.neutral[75],itemSizeSM:"auto",itemSize:42},Select:{colorTextDisabled:de.ebonyClay[350],colorBgContainerDisabled:de.gray[925],colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,fontWeight:600,paddingXXS:0,borderRadiusSM:0,colorBorder:de.ebonyClay[550],lineWidth:2,colorBgElevated:de.neutral[50],optionOddColor:de.gray["100-50"],optionSelectedBg:de.azure["500-20"],optionSelectedColor:de.azure[500],optionActiveColor:de.azure[500],optionActiveBg:de.azure["500-20"],colorText:de.neutral[50],selectItemColor:de.neutral[500],colorTextPlaceholder:de.gray[500],selectorBg:de.ebonyClay[475],colorFillTertiary:de.neutral[50],colorFillSecondary:de.neutral[100],multipleItemBg:de.neutral[50]},Table:{headerBorderRadius:0,headerBg:"transparent",headerColor:"#9b9b9b",headerSplitColor:"transparent",colorBgContainer:"transparent",rowHoverBg:"unset",borderColor:de.neutral[350],cellPaddingInline:0,fontSize:rr},Tabs:{textColor:de.neutral[50],menuGap:"170px",separatorColor:de?.gray["900"],separatorHeight:"1px",navWrapperPadding:"0px 0px 20px 50px",tabIconWrapperSize:"38px !important",tabIconSize:"18px !important",tabIconFill:`${de.neutral[1e3]} !important`,tabIconBg:de.neutral[50],tabIconActiveFill:`${de.neutral[50]} !important`,tabIconActiveBg:`${de.orange[425]} !important`,tabIconFillTransition:"fill 0.3s ease",tabIconBgTransition:"background 0.3s ease",tabLabelTransform:"translateY(calc(100% + 11px))"},Input:{colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,colorBorder:de.ebonyClay[550],lineWidth:2,activeShadow:"unset",errorActiveShadow:"unset",warningActiveShadow:"unset",fontWeight:600,colorBgContainerDisabled:de.gray[850],colorTextDisabled:de.ebonyClay[375]},InputNumber:{colorBgContainer:de.ebonyClay[475],fontSizeLG:rr*.875,colorBorder:de.ebonyClay[550],lineWidth:2,fontWeight:600},Modal:{titleFontSize:rr*1.25,padding:"20px 35px",borderBottom:`1px solid ${de.blue[954]}`,footerPadding:"0 35px 20px 35px",closeIconColor:de.neutral[100],closeTop:20,closeRight:27,badgeColorTop:27,badgeColorWidth:4,badgeColorHeight:16,badgeColorBackgroundColor:de.red[425]},Progress:{strokeColor:de.ebonyClay[625],trailColor:de.neutral[50],height:"18px !important",successBgColor:"repeating-linear-gradient(60deg, rgba(36, 180, 19, 1) 0, rgba(36, 180, 19, 1) 5px, rgba(72, 192, 62, 1) 5px, rgba(72, 192, 62, 1) 10px) !important"},Steps:{rowGap:"10px",iconWidthHeight:"38px !important",iconSize:"18px !important",paddingInlineEnd:"16px",tailTop:"16px",tailHeight:"3px",titleFontSize:"14px",iconColor:de.neutral[50],tailColor:"linear-gradient(to right, #343639 50%, transparent 50%)",tailLastChildColor:"linear-gradient(to right, #4482ff 50%, transparent 50%)",tailFirstChildColor:"linear-gradient(to right, transparent 50%, #4482ff 50%)",tailProcessFirstChildColor:"linear-gradient(to right, transparent 50%, #3b404c 50%)",tailProcessColor:"linear-gradient(to right, #4482ff 50%, #3b404c 50%)",tailWaitLastChildColor:"linear-gradient(to right, #3b404c 50%, transparent 50%)",tailWaitMiddleChildColor:"linear-gradient(to right, #4482ff 50%, #3b404c 50%)",tailErrorChildColor:`linear-gradient(to right, ${de.red[450]} 50%, #3b404c 50%) !important`,finishIconBgColor:`${de.green[952]}`,finishTailColor:`${de.azure[500]}`,processIconBgColor:`${de.orange[425]}`,waitIconBgColor:`${de.neutral[50]}`,waitIconColor:`${de.ebonyClay[951]}`,waitTitleColor:`${de.neutral[50]}`,waitTailColor:`${de.gray[900]}`,errorIconBgColor:`${de.red[450]}`,manyItemsTransform:"rotate(-40deg)",manyItemsWidth:"90px",manyItemsHeight:"80px",manyItemsMarginInlineStart:"40px",manyItemsIconWidthHeight:"22px",manyItemsTailHeight:"4px",manyItemsTailBottom:"10px"},Switch:{colorPrimary:de.green[952],colorPrimaryHover:de.green[951],colorPrimaryActive:de.green[954],trackHeight:26,trackMinWidth:57,handleSize:22,colorTextQuaternary:de.gray[250],colorTextTertiary:de.gray[300],handleBg:de.neutral[80],handleShadow:"1px 1px 2px 0 rgba(156, 169, 194, 0.5)",fontSizeSM:rr*.5625},Divider:{colorSplit:de.ebonyClay[175],colorText:de.gray[500],colorTextHeading:de.gray[500],fontWeight:500,textPaddingInline:8,margin:48},DatePicker:{general:{fontSize:"14px",fontColor:de.gray[500],bgDarkBlue:de.ebonyClay[475],wideBorder:`2px solid ${de.ebonyClay[550]}`,inputMarginBottom:"7px",inputPadding:"7px 16px !important",lightThemeBorder:`1px solid ${de.neutral[350]}`},title:{lightColor:`${de.ebonyClay[500]}`},pickerPanel:{shadow:"0 3px 6px 0 rgba(0, 0, 0, 0.2)",width:"292px",header:{marginY:"20px",padding:"0 22px",textSize:"16px",textColor:de.neutral[380],arrawWidth:"10.2px",arrowPaddingLeft:"12px",arrowPaddingRight:"20px",datePickerarrowPadding:"0.2px 0.2px 0.2px 0"},body:{padding:"0 20px"},content:{tableHeaderBorder:`1px solid ${de.blue["250-10"]}`,tableHeaderFontSize:"12px",tableHeaderFontColor:de.neutral[380],tableHeaderWidth:"36px",tableHeaderPaddingBottom:"6px"},row:{marginY:"5px",previousCellWidth:"36px",cellLineHeight:"1.43",cellFontWeight:"normal",cellTextColor:de.neutral[380],cellBg:de.ebonyClay[825],cellBorder:`2px solid ${de.blue["250-10"]}`,cellBorderRadius:"3px"},separator:{width:"6px",height:"2px",backgroundColor:de.ebonyClay[550]},range:{iconPosition:"10px",iconTransform:"translateY(-50%)",inputPadding:"10px 16px !important",inputRadius:"5px"},footer:{margin:"4px 20px 0",lineHeight:"normal",fontSize:"12px",padding:"0 27px",border:`1px solid ${de.azure[500]}`,borderRadius:"11px",datePickerBorderTop:`1px solid ${de.blue["250-10"]}`,datePickerPadding:"28px 0 23px",rangeColGap:"50px",rangeBorder:`1px solid ${de.blue["250-20"]}`,rangePadding:"13px 20px 16px",rangeCol:"12px",rangeInputPadding:"10px 12px 10px 16px",rangeInputRadius:"5px"}}},Upload:{borderRadiusLG:5,colorFillAlter:de.ebonyClay[475],colorError:de.red[450],lineWidth:0,controlHeightLG:30,paddingXS:0,svgColor:de.neutral[1e3]}}},hi={layout:{displayFlex:"flex",displayGrid:"grid",displayBlock:"block",displayInline:"inline",displayInlineBlock:"inline-block",displayNone:"none",displayContents:"contents",positionAbsolute:"absolute",positionRelative:"relative",positionFixed:"fixed",positionSticky:"sticky",positionStatic:"static",flexStart:"start",flexCenter:"center",flexDirectionRow:"row",flexDirectionRowReverse:"row-reverse",flexDirectionColumn:"column",flexDirectionColumnReverse:"column-reverse"},typography:{textTransformUppercase:"uppercase",textTransformLowercase:"lowercase",textTransformCapitalize:"capitalize",textAlignLeft:"left",textAlignCenter:"center",textAlignRight:"right",textAlignJustify:"justify",whiteSpaceNormal:"normal",whiteSpaceNoWrap:"nowrap",whiteSpacePre:"pre",whiteSpacePreLine:"pre-line",whiteSpacePreWrap:"pre-wrap",whiteSpaceBreakSpaces:"break-spaces",wordBreak:"break-word",textDecorationUnderline:"underline",textDecorationOverline:"overline",textDecorationLineThrough:"line-through",fontWeightBold:"600",fontWeightMedium:"500"},ai:{gradientStart:de.azure[450],gradientEnd:de.azure[500],textColor:de.orange[475]},sizing:{sizeMaxContent:"max-content",sizeMinContent:"min-content",sizeFitContent:"fit-content",valueFull:"100%",valueThreeQuarter:"75%",valueHalf:"50%",valueQuarter:"25%",valueZero:"0",valueAuto:"auto",valueInherit:"inherit"},others:{colorTransparent:"transparent",valueHidden:"hidden",valueUnset:"unset",emptyContent:'""',lineHeightShort:"1",lineHeightTall:"2",cursorNotAllowed:"not-allowed",cursorPointer:"pointer",verticalAlignMiddle:"middle",opacityFull:"1",opacityNone:"0"},border:{borderNone:"none",borderSolid:"solid",borderDashed:"dashed",borderDotted:"dotted",borderWidthThin:"1px",borderWidthThick:"2px",borderRadiusSm:"0.125rem"},overflow:{overflowVisible:"visible",overflowHidden:"hidden",overflowScroll:"scroll"}};function Wl(e){const t=e?.CustomTokens;return t?{layout:{...hi.layout,...t.layout},ai:{...hi.ai,...t.ai},typography:{...hi.typography,...t.typography},sizing:{...hi.sizing,...t.sizing},others:{...hi.others,...t.others},border:{...hi.border,...t.border},overflow:{...hi.overflow,...t.overflow}}:hi}const Gr=Pl.useToken,rX=()=>{const{colors:e,token:t}=b2;let n="--color";const r={};for(const[a,i]of Object.entries(e))for(const[s,c]of Object.entries(i)){const u=`${n}-${a}-${s}`;r[u]=c}if(n="--token",t)for(const[a,i]of Object.entries(t)){const s=`${n}-${a}`;(typeof i=="string"||typeof i=="number")&&(r[s]=i)}return r},aX=e=>ve.jsx(Lo.Paragraph,{...e}),$3=e=>ve.jsx(Lo.Text,{...e}),oX=e=>ve.jsx(Lo.Title,{...e}),iX=e=>{const{onAnyItemClick:t,items:n}=e,{getPrefixCls:r,theme:a}=f.useContext(En.ConfigContext),{token:i,hashId:s}=Gr(),c=i.Breadcrumb,u=br({token:i,path:["Breadcrumb"]},()=>{const h=`:where(.${s}).${r()}-breadcrumb`,v=`.${r()}-breadcrumb`,g=Wl(a);return{[h]:{paddingBottom:c.paddingBottom,color:c.itemColor,"li:last-child":{color:c.lastItemColor}},[v]:{borderBottom:c.borderBottom,fontWeight:c.fontWeight,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,paddingLeft:c.paddingLeft,paddingRight:c.paddingRight,[`li ${v}-link`]:{"&:hover":{cursor:g.others.cursorPointer}},[`li:last-child ${v}-link`]:{"&:hover":{cursor:g.others.valueUnset}},a:{color:c.itemColor,paddingLeft:g.sizing.valueZero,paddingRight:g.sizing.valueZero,marginInline:g.sizing.valueZero,height:g.sizing.valueAuto,"&:hover":{color:g.others.valueUnset,backgroundColor:g.others.valueUnset}},[`${v}-separator`]:{marginRight:c.marginRight,marginLeft:c.marginLeft,color:c.separatorColor,"&:nth-last-child(2)":{color:c.lastItemColor}}}}});if(t){const h=n?.map((g,p)=>p===n.length-1?{title:g.title}:{...g,href:null,onClick:()=>{g.href&&t({href:g.href})}}),v={...e,items:h};return u(ve.jsx(M0,{...v}))}return u(ve.jsx(M0,{...e}))},lX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Tooltip;return br({token:a,path:["Tooltip"]},()=>{const u=`:where(.${i}).${n()}-tooltip`,h=`.${n()}-tooltip`;return{[u]:{},[h]:{}}})(ve.jsx(Oi,{color:s.bgColor,...t,children:e}))},d8=({iconSize:e,...t})=>{const{getPrefixCls:n,theme:r}=ae.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Button,c=Wl(r),u=br({token:a,path:["Button"]},()=>{const v=`:where(.${i}).${n()}-btn`,g=`.${n()}-btn`,p=r,b=p.colors?.azure?.["500"],y=p.colors?.red?.["410"],x=`linear-gradient(to right, ${b},${y},${b})`,S="175%",M=p.colors?.gray?.["750"]??p.colors?.ebonyClay?.["600"]??"#292b2c",$=p.colors?.neutral?.["950"]??p.colors?.gray?.["900"],E={"&:disabled, &-disabled":{backgroundColor:s.colorBgContainerDisabled??a.colorBgContainerDisabled,color:s.colorTextDisabled??a.colorTextDisabled,borderColor:s.borderColorDisabled,cursor:c.others.cursorNotAllowed,boxShadow:c.layout.displayNone}};return{[`${v}`]:{"> *":{verticalAlign:c.others.verticalAlignMiddle},"> span":{alignSelf:`${c.layout.flexCenter} !important`}},[`${v}-default`]:{[`&:not(:disabled)${v}-sm`]:{backgroundColor:s.defaultBgSm,color:s.colorText,borderColor:c.others.colorTransparent,"&:hover":{backgroundColor:s.defaultBgSmHover,borderColor:c.others?.colorTransparent??"transparent",color:s.colorTextHover},[`&${v}-dangerous`]:{backgroundColor:s.colorErrorBgSM,"&:hover:not(:disabled)":{color:s.colorErrorSMHover,backgroundColor:s.colorErrorBgSMHover}},span:{lineHeight:"normal !important"}}},[`${v}-ai`]:{border:"none",backgroundImage:x,backgroundSize:S,backgroundPosition:"0",textShadow:"0 1px 0 rgba(0, 0, 0, 0.2)",fontWeight:c.typography.fontWeightBold??600,color:s.colorTextLightSolid??a.colorTextLightSolid,transition:"all 0.3s ease","&:hover:not(:disabled)":{backgroundImage:x,backgroundSize:S,backgroundPosition:"-125%",color:s.colorTextLightSolid??a.colorTextLightSolid},"&:active:not(:disabled), &:focus:not(:disabled)":{backgroundImage:x,backgroundSize:S,backgroundPosition:"0",color:s.colorTextLightSolid??a.colorTextLightSolid},"&:disabled":{backgroundImage:x,backgroundSize:S,backgroundPosition:"0",color:s.colorTextLightSolid??a.colorTextLightSolid,opacity:.6}},[`${v}-ai-black`]:{backgroundColor:M,color:s.colorTextLightSolid??a.colorTextLightSolid,border:"none",fontWeight:c.typography.fontWeightBold??600,"&:hover:not(:disabled), &:focus:not(:disabled)":{backgroundColor:$,color:s.colorTextLightSolid??a.colorTextLightSolid,opacity:.8},"&:disabled":{opacity:.6}},[`${v}-success`]:{backgroundColor:s.colorSuccessBg??a.colorSuccessBg,"&:hover:not(:disabled)":{backgroundColor:s.colorSuccessHover??a.colorSuccessHover},...E},[`${v}-warning`]:{backgroundColor:s.colorWarningBg??a.colorWarningBg,color:s.colorWarningText??a.colorWarningText,"&:hover:not(:disabled)":{backgroundColor:s.colorWarningHover??a.colorWarningHover,borderColor:s.colorWarningBorder??a.colorWarningBorder},...E},[`${v}-icon`]:{lineHeight:1,"> *":{backgroundColor:c.others.colorTransparent,color:"currentcolor",verticalAlign:c.others.verticalAlignMiddle,"&:hover:not(:disabled)":{color:"currentcolor"},"&:active":{boxShadow:c.layout.displayNone}},"&:disabled":{opacity:.4},[`&${g}-dangerous > *`]:{color:"red","&:hover:not(:disabled)":{color:s.colorErrorHover??a.colorErrorHover}}}}}),h=()=>ve.jsx(Va,{...t,icon:t.icon?ve.jsx(ad,{icon:t.icon,size:e??12,style:{lineHeight:0}}):void 0,children:t.children});if(t.tooltip){const v=typeof t.tooltip=="string"?{title:t.tooltip}:t.tooltip;return u(ve.jsx(lX,{...v,children:h()}))}return u(h())},Po=e=>`${e}px`,z3=({children:e,inner:t,width:n,padding:r,...a})=>{const{getPrefixCls:i,theme:s}=f.useContext(En.ConfigContext),c=f.useRef(null),{token:u,hashId:h}=Gr(),v=u.Card,g=Wl(s),p=`.${i()}-card`,b=`:where(.${h})${p}`,y=f.useCallback(br({token:u,path:["Card"]},()=>({[`${b}`]:{[`${p}-head`]:{borderBottom:g.border.borderNone,padding:`${v?.paddingLG}px 0 0`,marginBottom:-16,"&-wrapper":{paddingInline:v?.paddingLG,"--card-wrapper-transform-translate-x":`-${v?.paddingLG-2}px`,"&:before":{content:g.others.emptyContent,display:g.layout.displayBlock,height:"16px",width:"4px",marginInlineStart:"-4px",background:b2?.colors.red["425"],transform:"translateX(var(--card-wrapper-transform-translate-x))"}}},[`&>${p}-body`]:{padding:v?.paddingLG},"&-small":{[`${p}-head`]:{padding:`${v?.padding}px 0`,marginBottom:-24,"&-wrapper":{paddingInline:v?.padding,"--card-small-wrapper-transform-translate-x":`-${v?.padding-2}px`,"&:before":{transform:"translateX(var(--card-small-wrapper-transform-translate-x))"}}},[`&>${p}-body`]:{padding:v?.padding}}}})),[r,v?.padding,v?.paddingLG]),x=()=>{if(typeof r!="number")return;const S=c.current?.querySelector(`${p}-head`);S&&(S.style.paddingTop=Po(r));const M=S?.querySelector(`${p}-head-wrapper`);M&&(M.style.paddingInline=Po(r),M.style.setProperty("--card-wrapper-transform-translate-x",`-${Po(r-2)}`,"important"));const $=c.current?.querySelector(`& > ${p}-body`);$&&($.style.padding=Po(r));const E=c.current?.querySelector(`${p}-small`),I=E?.querySelector(`${p}-head`);I&&(I.style.paddingTop=Po(r));const w=I?.querySelector(`${p}-head-wrapper`);w&&(w.style.paddingInline=Po(r),w.style.setProperty("--card-small-wrapper-transform-translate-x",`-${Po(r-2)}`,"important"));const O=E?.querySelector(`${p}-body`);O&&(O.style.padding=Po(r))};return f.useEffect(()=>{c?.current&&x()},[c?.current,r]),y(ve.jsx(g6,{style:{width:typeof n=="number"?Po(n):n},...t?{type:"inner"}:null,...a,ref:c,children:e}))};g6.Meta;S7.Group;var R5={exports:{}},T5,Jp;function sX(){if(Jp)return T5;Jp=1;function e(D){return D&&typeof D=="object"&&"default"in D?D.default:D}var t=e(_0()),n=y8();function r(D,R){for(var B=Object.getOwnPropertyNames(R),L=0;L<B.length;L++){var P=B[L],X=Object.getOwnPropertyDescriptor(R,P);X&&X.configurable&&D[P]===void 0&&Object.defineProperty(D,P,X)}return D}function a(){return(a=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var B=arguments[R];for(var L in B)Object.prototype.hasOwnProperty.call(B,L)&&(D[L]=B[L])}return D}).apply(this,arguments)}function i(D,R){D.prototype=Object.create(R.prototype),r(D.prototype.constructor=D,R)}function s(D,R){if(D==null)return{};var B,L,P={},X=Object.keys(D);for(L=0;L<X.length;L++)B=X[L],0<=R.indexOf(B)||(P[B]=D[B]);return P}function c(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}var u=function(D,R,B,L,P,X,Y,Q){if(!D){var le;if(R===void 0)le=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ne=[B,L,P,X,Y,Q],fe=0;(le=new Error(R.replace(/%s/g,function(){return ne[fe++]}))).name="Invariant Violation"}throw le.framesToPop=1,le}},h=u;function v(D,R,B){if("selectionStart"in D&&"selectionEnd"in D)D.selectionStart=R,D.selectionEnd=B;else{var L=D.createTextRange();L.collapse(!0),L.moveStart("character",R),L.moveEnd("character",B-R),L.select()}}function g(D){var R=0,B=0;if("selectionStart"in D&&"selectionEnd"in D)R=D.selectionStart,B=D.selectionEnd;else{var L=document.selection.createRange();L.parentElement()===D&&(R=-L.moveStart("character",-D.value.length),B=-L.moveEnd("character",-D.value.length))}return{start:R,end:B,length:B-R}}var p={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},b="_";function y(D,R,B){var L="",P="",X=null,Y=[];if(R===void 0&&(R=b),B==null&&(B=p),!D||typeof D!="string")return{maskChar:R,formatChars:B,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var Q=!1;return D.split("").forEach(function(le){Q=!Q&&le==="\\"||(Q||!B[le]?(Y.push(L.length),L.length===Y.length-1&&(P+=le)):X=L.length+1,L+=le,!1)}),{maskChar:R,formatChars:B,prefix:P,mask:L,lastEditablePosition:X,permanents:Y}}function x(D,R){return D.permanents.indexOf(R)!==-1}function S(D,R,B){var L=D.mask,P=D.formatChars;if(!B)return!1;if(x(D,R))return L[R]===B;var X=P[L[R]];return new RegExp(X).test(B)}function M(D,R){return R.split("").every(function(B,L){return x(D,L)||!S(D,L,B)})}function $(D,R){var B=D.maskChar,L=D.prefix;if(!B){for(;R.length>L.length&&x(D,R.length-1);)R=R.slice(0,R.length-1);return R.length}for(var P=L.length,X=R.length;X>=L.length;X--){var Y=R[X];if(!x(D,X)&&S(D,X,Y)){P=X+1;break}}return P}function E(D,R){return $(D,R)===D.mask.length}function I(D,R){var B=D.maskChar,L=D.mask,P=D.prefix;if(!B){for((R=O(D,"",R,0)).length<P.length&&(R=P);R.length<L.length&&x(D,R.length);)R+=L[R.length];return R}if(R)return O(D,I(D,""),R,0);for(var X=0;X<L.length;X++)x(D,X)?R+=L[X]:R+=B;return R}function w(D,R,B,L){var P=B+L,X=D.maskChar,Y=D.mask,Q=D.prefix,le=R.split("");if(X)return le.map(function(fe,ye){return ye<B||P<=ye?fe:x(D,ye)?Y[ye]:X}).join("");for(var ne=P;ne<le.length;ne++)x(D,ne)&&(le[ne]="");return B=Math.max(Q.length,B),le.splice(B,P-B),R=le.join(""),I(D,R)}function O(D,R,B,L){var P=D.mask,X=D.maskChar,Y=D.prefix,Q=B.split(""),le=E(D,R);return!X&&L>R.length&&(R+=P.slice(R.length,L)),Q.every(function(ne){for(;ie=ne,x(D,se=L)&&ie!==P[se];){if(L>=R.length&&(R+=P[L]),fe=ne,ye=L,X&&x(D,ye)&&fe===X)return!0;if(++L>=P.length)return!1}var fe,ye,se,ie;return!S(D,L,ne)&&ne!==X||(L<R.length?R=X||le||L<Y.length?R.slice(0,L)+ne+R.slice(L+1):(R=R.slice(0,L)+ne+R.slice(L),I(D,R)):X||(R+=ne),++L<P.length)}),R}function T(D,R,B,L){var P=D.mask,X=D.maskChar,Y=B.split(""),Q=L;return Y.every(function(le){for(;fe=le,x(D,ne=L)&&fe!==P[ne];)if(++L>=P.length)return!1;var ne,fe;return(S(D,L,le)||le===X)&&L++,L<P.length}),L-Q}function _(D,R){for(var B=R;0<=B;--B)if(!x(D,B))return B;return null}function j(D,R){for(var B=D.mask,L=R;L<B.length;++L)if(!x(D,L))return L;return null}function A(D){return D||D===0?D+"":""}function H(D,R,B,L,P){var X=D.mask,Y=D.prefix,Q=D.lastEditablePosition,le=R,ne="",fe=0,ye=0,se=Math.min(P.start,B.start);return B.end>P.start?ye=(fe=T(D,L,ne=le.slice(P.start,B.end),se))?P.length:0:le.length<L.length&&(ye=L.length-le.length),le=L,ye&&(ye===1&&!P.length&&(se=P.start===B.start?j(D,B.start):_(D,B.start)),le=w(D,le,se,ye)),le=O(D,le,ne,se),(se+=fe)>=X.length?se=X.length:se<Y.length&&!fe?se=Y.length:se>=Y.length&&se<Q&&fe&&(se=j(D,se)),ne||(ne=null),{value:le=I(D,le),enteredString:ne,selection:{start:se,end:se}}}function q(){var D=new RegExp("windows","i"),R=new RegExp("phone","i"),B=navigator.userAgent;return D.test(B)&&R.test(B)}function V(D){return typeof D=="function"}function W(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function G(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function N(D){return(G()?W():function(){return setTimeout(D,1e3/60)})(D)}function k(D){(G()||clearTimeout)(D)}var U=(function(D){function R(L){var P=D.call(this,L)||this;P.focused=!1,P.mounted=!1,P.previousSelection=null,P.selectionDeferId=null,P.saveSelectionLoopDeferId=null,P.saveSelectionLoop=function(){P.previousSelection=P.getSelection(),P.saveSelectionLoopDeferId=N(P.saveSelectionLoop)},P.runSaveSelectionLoop=function(){P.saveSelectionLoopDeferId===null&&P.saveSelectionLoop()},P.stopSaveSelectionLoop=function(){P.saveSelectionLoopDeferId!==null&&(k(P.saveSelectionLoopDeferId),P.saveSelectionLoopDeferId=null,P.previousSelection=null)},P.getInputDOMNode=function(){if(!P.mounted)return null;var ce=n.findDOMNode(c(c(P))),ge=typeof window<"u"&&ce instanceof window.Element;if(ce&&!ge)return null;if(ce.nodeName!=="INPUT"&&(ce=ce.querySelector("input")),!ce)throw new Error("react-input-mask: inputComponent doesn't contain input node");return ce},P.getInputValue=function(){var ce=P.getInputDOMNode();return ce?ce.value:null},P.setInputValue=function(ce){var ge=P.getInputDOMNode();ge&&(P.value=ce,ge.value=ce)},P.setCursorToEnd=function(){var ce=$(P.maskOptions,P.value),ge=j(P.maskOptions,ce);ge!==null&&P.setCursorPosition(ge)},P.setSelection=function(ce,ge,ue){ue===void 0&&(ue={});var re=P.getInputDOMNode(),pe=P.isFocused();re&&pe&&(ue.deferred||v(re,ce,ge),P.selectionDeferId!==null&&k(P.selectionDeferId),P.selectionDeferId=N(function(){P.selectionDeferId=null,v(re,ce,ge)}),P.previousSelection={start:ce,end:ge,length:Math.abs(ge-ce)})},P.getSelection=function(){return g(P.getInputDOMNode())},P.getCursorPosition=function(){return P.getSelection().start},P.setCursorPosition=function(ce){P.setSelection(ce,ce)},P.isFocused=function(){return P.focused},P.getBeforeMaskedValueChangeConfig=function(){var ce=P.maskOptions,ge=ce.mask,ue=ce.maskChar,re=ce.permanents,pe=ce.formatChars;return{mask:ge,maskChar:ue,permanents:re,alwaysShowMask:!!P.props.alwaysShowMask,formatChars:pe}},P.isInputAutofilled=function(ce,ge,ue,re){var pe=P.getInputDOMNode();try{if(pe.matches(":-webkit-autofill"))return!0}catch{}return!P.focused||re.end<ue.length&&ge.end===ce.length},P.onChange=function(ce){var ge=c(c(P)).beforePasteState,ue=c(c(P)).previousSelection,re=P.props.beforeMaskedValueChange,pe=P.getInputValue(),$e=P.value,Oe=P.getSelection();P.isInputAutofilled(pe,Oe,$e,ue)&&($e=I(P.maskOptions,""),ue={start:0,end:0,length:0}),ge&&(ue=ge.selection,$e=ge.value,Oe={start:ue.start+pe.length,end:ue.start+pe.length,length:0},pe=$e.slice(0,ue.start)+pe+$e.slice(ue.end),P.beforePasteState=null);var _e=H(P.maskOptions,pe,Oe,$e,ue),Ne=_e.enteredString,Te=_e.selection,Ie=_e.value;if(V(re)){var ze=re({value:Ie,selection:Te},{value:$e,selection:ue},Ne,P.getBeforeMaskedValueChangeConfig());Ie=ze.value,Te=ze.selection}P.setInputValue(Ie),V(P.props.onChange)&&P.props.onChange(ce),P.isWindowsPhoneBrowser?P.setSelection(Te.start,Te.end,{deferred:!0}):P.setSelection(Te.start,Te.end)},P.onFocus=function(ce){var ge=P.props.beforeMaskedValueChange,ue=P.maskOptions,re=ue.mask,pe=ue.prefix;if(P.focused=!0,P.mounted=!0,re){if(P.value)$(P.maskOptions,P.value)<P.maskOptions.mask.length&&P.setCursorToEnd();else{var $e=I(P.maskOptions,pe),Oe=I(P.maskOptions,$e),_e=$(P.maskOptions,Oe),Ne=j(P.maskOptions,_e),Te={start:Ne,end:Ne};if(V(ge)){var Ie=ge({value:Oe,selection:Te},{value:P.value,selection:null},null,P.getBeforeMaskedValueChangeConfig());Oe=Ie.value,Te=Ie.selection}var ze=Oe!==P.getInputValue();ze&&P.setInputValue(Oe),ze&&V(P.props.onChange)&&P.props.onChange(ce),P.setSelection(Te.start,Te.end)}P.runSaveSelectionLoop()}V(P.props.onFocus)&&P.props.onFocus(ce)},P.onBlur=function(ce){var ge=P.props.beforeMaskedValueChange,ue=P.maskOptions.mask;if(P.stopSaveSelectionLoop(),P.focused=!1,ue&&!P.props.alwaysShowMask&&M(P.maskOptions,P.value)){var re="";V(ge)&&(re=ge({value:re,selection:null},{value:P.value,selection:P.previousSelection},null,P.getBeforeMaskedValueChangeConfig()).value);var pe=re!==P.getInputValue();pe&&P.setInputValue(re),pe&&V(P.props.onChange)&&P.props.onChange(ce)}V(P.props.onBlur)&&P.props.onBlur(ce)},P.onMouseDown=function(ce){if(!P.focused&&document.addEventListener){P.mouseDownX=ce.clientX,P.mouseDownY=ce.clientY,P.mouseDownTime=new Date().getTime();var ge=function ue(re){if(document.removeEventListener("mouseup",ue),P.focused){var pe=Math.abs(re.clientX-P.mouseDownX),$e=Math.abs(re.clientY-P.mouseDownY),Oe=Math.max(pe,$e),_e=new Date().getTime()-P.mouseDownTime;(Oe<=10&&_e<=200||Oe<=5&&_e<=300)&&P.setCursorToEnd()}};document.addEventListener("mouseup",ge)}V(P.props.onMouseDown)&&P.props.onMouseDown(ce)},P.onPaste=function(ce){V(P.props.onPaste)&&P.props.onPaste(ce),ce.defaultPrevented||(P.beforePasteState={value:P.getInputValue(),selection:P.getSelection()},P.setInputValue(""))},P.handleRef=function(ce){P.props.children==null&&V(P.props.inputRef)&&P.props.inputRef(ce)};var X=L.mask,Y=L.maskChar,Q=L.formatChars,le=L.alwaysShowMask,ne=L.beforeMaskedValueChange,fe=L.defaultValue,ye=L.value;P.maskOptions=y(X,Y,Q),fe==null&&(fe=""),ye==null&&(ye=fe);var se=A(ye);if(P.maskOptions.mask&&(le||se)&&(se=I(P.maskOptions,se),V(ne))){var ie=L.value;L.value==null&&(ie=fe),se=ne({value:se,selection:null},{value:ie=A(ie),selection:null},null,P.getBeforeMaskedValueChangeConfig()).value}return P.value=se,P}i(R,D);var B=R.prototype;return B.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=q(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},B.componentDidUpdate=function(){var L=this.previousSelection,P=this.props,X=P.beforeMaskedValueChange,Y=P.alwaysShowMask,Q=P.mask,le=P.maskChar,ne=P.formatChars,fe=this.maskOptions,ye=Y||this.isFocused(),se=this.props.value!=null,ie=se?A(this.props.value):this.value,ce=L?L.start:null;if(this.maskOptions=y(Q,le,ne),this.maskOptions.mask){!fe.mask&&this.isFocused()&&this.runSaveSelectionLoop();var ge=this.maskOptions.mask&&this.maskOptions.mask!==fe.mask;if(fe.mask||se||(ie=this.getInputValue()),(ge||this.maskOptions.mask&&(ie||ye))&&(ie=I(this.maskOptions,ie)),ge){var ue=$(this.maskOptions,ie);(ce===null||ue<ce)&&(ce=E(this.maskOptions,ie)?ue:j(this.maskOptions,ue))}!this.maskOptions.mask||!M(this.maskOptions,ie)||ye||se&&this.props.value||(ie="");var re={start:ce,end:ce};if(V(X)){var pe=X({value:ie,selection:re},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ie=pe.value,re=pe.selection}this.value=ie;var $e=this.getInputValue()!==this.value;$e?(this.setInputValue(this.value),this.forceUpdate()):ge&&this.forceUpdate();var Oe=!1;re.start!=null&&re.end!=null&&(Oe=!L||L.start!==re.start||L.end!==re.end),(Oe||$e)&&this.setSelection(re.start,re.end)}else fe.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},B.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&k(this.selectionDeferId),this.stopSaveSelectionLoop()},B.render=function(){var L,P=this.props,X=(P.mask,P.alwaysShowMask,P.maskChar,P.formatChars,P.inputRef,P.beforeMaskedValueChange,P.children),Y=s(P,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(X){V(X)||h(!1);var Q=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],le=a({},Y);Q.forEach(function(fe){return delete le[fe]}),L=X(le),Q.filter(function(fe){return L.props[fe]!=null&&L.props[fe]!==Y[fe]}).length&&h(!1)}else L=t.createElement("input",a({ref:this.handleRef},Y));var ne={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(Y.disabled||Y.readOnly||(ne.onChange=this.onChange,ne.onPaste=this.onPaste,ne.onMouseDown=this.onMouseDown),Y.value!=null&&(ne.value=this.value)),L=t.cloneElement(L,ne)},R})(t.Component);return T5=U,T5}var eb;function cX(){return eb||(eb=1,R5.exports=sX()),R5.exports}cX();const uX=({children:e,plainOffset:t,...n})=>{const{getPrefixCls:r,theme:a}=f.useContext(En.ConfigContext),{token:i,hashId:s}=Gr(),c=i.Divider;return br({token:i,path:["Divider"]},()=>{const h=`.${r()}-divider`,v=`:where(.${s})${h}`,g=Wl(a);return{[`${v}-plain`]:{[`&${v}-horizontal${h}-with-text-left`]:{"&:before":{width:t?`${t-c.textPaddingInline}px`:g.sizing.valueAuto,marginInlineStart:t?`-${t}px`:"-40px"},"&:after":{width:g.sizing.valueFull,marginInlineStart:g.sizing.valueZero,marginInlineEnd:t?`-${t}px`:"-40px"}},[`${h}-with-text`]:{fontWeight:c?.fontWeight}}}})(ve.jsx(cV,{...n,children:e}))},dX=({children:e,...t})=>ve.jsx(yM,{...t,children:e});Ho.OTP;Ho.Password;Ho.Search;Ho.TextArea;const fX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Layout"]},()=>{const c=`:where(.${i}).${n()}-layout`,u=`.${n()}-layout`;return{[c]:{},[u]:{}}})(ve.jsx(vo,{...t,children:e}))},{Content:hX}=vo,vX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Content"]},()=>{const c=`:where(.${i}).${n()}-content`,u=`.${n()}-content`;return{[c]:{},[u]:{}}})(ve.jsx(hX,{...t,children:e}))},{Footer:mX}=vo,gX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Footer"]},()=>{const c=`:where(.${i}).${n()}-footer`,u=`.${n()}-footer`;return{[c]:{},[u]:{}}})(ve.jsx(mX,{...t,children:e}))},{Header:pX}=vo,bX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Header"]},()=>{const c=`:where(.${i}).${n()}-header`,u=`.${n()}-header`;return{[c]:{},[u]:{}}})(ve.jsx(pX,{...t,children:e}))},{Sider:yX}=vo,SX=({children:e,collapsed:t,iconUrl:n,brandImageUrl:r,position:a="left",...i})=>{const{getPrefixCls:s,theme:c}=f.useContext(En.ConfigContext),{token:u,hashId:h}=Gr(),v=u.Layout,g=br({token:u,path:["Sider"]},()=>{const b=`:where(.${h}).${s()}-layout-sider`,y=`.${s()}-layout-sider`;return{[b]:{"&-left":{borderInlineEnd:v.mainBorder},"&-right":{borderInlineStart:v.mainBorder}},[y]:{}}});let p;return n&&r&&(p=ve.jsxs("div",{className:`logo-container ${t?"collapsed":""}`,children:[ve.jsx("img",{className:"logo",src:n,alt:"icon",width:20,height:20}),ve.jsx("img",{className:"brand-image",src:r,alt:"brand-image",height:20})]})),g(ve.jsxs(yX,{className:`${s()}-layout-sider-${a}`,collapsible:!0,collapsed:t,trigger:null,width:250,collapsedWidth:56,...i,children:[p,e]}))},CX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Flex"]},()=>{const c=`:where(.${i}).${n()}-flex`,u=`.${n()}-flex`;return{[c]:{},[u]:{}}})(ve.jsx(MM,{...t,children:e}))},xX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Grid;return br({token:a,path:["Row"]},()=>{const u=`:where(.${i}).${n()}-row`,h=`.${n()}-row`;return{[u]:{maxWidth:s?.rowMaxWidth},[h]:{}}})(ve.jsx(dM,{gutter:[s?.gutter,s?.gutter],...t,children:e}))},MX=({children:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr();return br({token:a,path:["Col"]},()=>{const c=`:where(.${i}).${n()}-col`,u=`.${n()}-col`;return{[c]:{},[u]:{}}})(ve.jsx(uM,{...t,children:e}))};function WM(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=WM(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function $X(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=WM(e))&&(r&&(r+=" "),r+=t);return r}const zX=({title:e,description:t,actions:n,className:r})=>ve.jsxs(MM,{justify:"space-between",align:"flex-start",className:r,style:{borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ve.jsxs(Tl,{direction:"vertical",size:4,children:[ve.jsx(Lo.Title,{level:4,style:{margin:0},children:e}),t&&ve.jsx(Lo.Paragraph,{type:"secondary",style:{margin:0,fontSize:10},children:t})]}),n&&ve.jsx(Tl,{children:n})]}),ll=Object.assign(fX,{Header:bX,Footer:gX,Content:vX,Sider:SX}),wX=({children:e,...t})=>ve.jsx(M7,{...t,children:e});Object.assign(wX,{Item:M7.Item});const EX=3,OX=({defaultOpenKeys:e,...t})=>{const{getPrefixCls:n,theme:r}=f.useContext(En.ConfigContext),{token:a,hashId:i}=Gr(),s=a.Menu,u=`.${`${n()}-menu`}`,h=Wl(r),v=br({token:a,path:["Menu"]},()=>({[`:where(.${i})${u}`]:{minWidth:s.minWidth,[`&${u}-inline-collapsed`]:{minWidth:h.others.valueUnset},[`&${u}-dark`]:{[`${u}-title, ${u}-submenu-title`]:{paddingInlineEnd:"1rem",color:s.mainMenuColor,fontWeight:h.typography.fontWeightBold},[`${u}-item`]:{color:s.mainMenuColor,fontWeight:h.typography.fontWeightBold},[`${u}-sub`]:{fontWeight:h.typography.fontWeightMedium,[`${u}-item`]:{color:s.subMenuTitleColor,fontWeight:h.typography.fontWeightMedium},[`${u}-submenu`]:{[`${u}-submenu-title`]:{color:s.subMenuTitleColor,svg:{position:h.layout.positionAbsolute,marginLeft:s.subMenuTitleIconMargin,insetInlineEnd:h.others.valueUnset}},[`${u}-sub`]:{[`${u}-item-selected`]:{[`&${u}-item-only-child`]:{"&::after":{background:s.subMenuItemSelectedChildColor}}},[`${u}-item-only-child`]:{"&::after":{width:s.childMenuItemSelectedChildWidth,height:s.childMenuItemSelectedChildHeight,borderRadius:s.childMenuItemSelectedChildRadius,marginLeft:s.childMenuItemSelectedChildMargin,opacity:h.others.opacityFull,insetBlock:h.others.valueUnset,insetInlineEnd:h.others.valueUnset,transform:h.layout.displayNone,background:s.childMenuItemSelectedChildBgColor}}}},[`${u}-item-only-child`]:{"&::after":{width:s.subMenuOnlyChildSize,height:s.subMenuOnlyChildSize,borderRadius:h.sizing.valueHalf,background:s.subMenuOnlyChildBgColor,marginLeft:s.subMenuOnlyChildMargin,opacity:h.others.opacityFull,insetBlock:h.others.valueUnset,insetInlineEnd:h.others.valueUnset,transform:h.layout.displayNone}}}},[`&${u}-light`]:{background:s.lightItemBg,[`${u}-submenu`]:{"svg:first-child":{color:s.lightItemMainIconColor,fill:s.lightItemMainIconColor},"&-title":{color:s.lightItemMainTitle},[`${u}-sub`]:{background:s.LightSubItemBg,[`${u}-submenu`]:{[`${u}-submenu-title`]:{color:s.lightSubTitleColor,i:{background:s.lightSubIconColor}},[`${u}-sub`]:{[`${u}-item-selected`]:{[`&${u}-item-only-child`]:{background:s.lightchildItemBg,color:s.lightChildItemColor,"&::after":{background:s.lightChildItemColor}}},[`${u}-item-only-child`]:{color:s.lightSubTitleColor,"&::after":{background:s.lightSubTitleColor}}}},[`${u}-item-only-child`]:{color:s.lightSubTitleColor,fontWeight:h.typography.fontWeightMedium,"&::after":{background:s.lightSubTitleColor}}}}}},[u]:{}})),g=(y,x=0)=>!y||x>=EX?y:y.map(S=>{const M={...S};return"icon"in M&&M.icon&&(M.icon=ve.jsx(ad,{icon:M.icon,size:x===0?18:10})),"children"in M&&Array.isArray(M.children)&&(M.children=g(M.children,x+1)),M}),p=g(t.items),b=y=>ve.jsx(ad,{icon:"chevron_down",size:14,style:{transform:y.isOpen?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s ease-in-out"}});return v(ve.jsx(Ul,{defaultOpenKeys:e,...t,items:p,expandIcon:b}))};h6.Group;Tl.Compact;const f8=({children:e,block:t,...n})=>ve.jsx(Tl,{...n,...t&&{style:{width:"100%"}},children:e}),tb=()=>{},IX=typeof window<"u",RX=(e,t,n)=>{if(!IX)return[t,tb,tb];const r=n?n.raw?(h=>h):n.deserializer:JSON.parse,a=f.useRef(h=>{try{const v=n?n.raw?String:n.serializer:JSON.stringify,g=localStorage.getItem(h);return g!==null?r(g):(t&&localStorage.setItem(h,v(t)),t)}catch{return t}}),[i,s]=f.useState(()=>a.current(e));f.useLayoutEffect(()=>s(a.current(e)),[e]);const c=f.useCallback(h=>{try{const v=typeof h=="function"?h(i):h;if(typeof v>"u")return;let g;n?n.raw?typeof v=="string"?g=v:g=JSON.stringify(v):n.serializer?g=n.serializer(v):g=JSON.stringify(v):g=JSON.stringify(v),localStorage.setItem(e,g),s(r(g))}catch{}},[e,s]),u=f.useCallback(()=>{try{localStorage.removeItem(e),s(void 0)}catch{}},[e,s]);return[i,c,u]},TX=e=>{f.useEffect(()=>{e()},[])},PX=({children:e,fontFamily:t,form:n})=>{TX(()=>{r(),En.config({prefixCls:"akinon"})});const r=()=>{if(document.querySelector("style[data-akinon-ui-variables]"))return;const i=document.createElement("style");i.setAttribute("data-akinon-ui-variables","true"),i.innerHTML=`:root {${Object.entries(rX()).map(([s,c])=>`${s}: ${c};`).join("")}}`,document.head.prepend(i)};return b2.token?.fontFamily&&t&&(b2.token.fontFamily=t),ve.jsx(En,{theme:b2,prefixCls:"akinon",form:n,children:e})};function _X(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function NX(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var jX=(function(){function e(n){var r=this;this._insertTag=function(a){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,i),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(NX(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_X(a);try{i.insertRule(r,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ar="-ms-",T0="-moz-",bn="-webkit-",qM="comm",R7="rule",T7="decl",AX="@import",GM="@keyframes",DX="@layer",LX=Math.abs,x6=String.fromCharCode,BX=Object.assign;function HX(e,t){return wr(e,0)^45?(((t<<2^wr(e,0))<<2^wr(e,1))<<2^wr(e,2))<<2^wr(e,3):0}function XM(e){return e.trim()}function FX(e,t){return(e=t.exec(e))?e[0]:e}function yn(e,t,n){return e.replace(t,n)}function h8(e,t){return e.indexOf(t)}function wr(e,t){return e.charCodeAt(t)|0}function L2(e,t,n){return e.slice(t,n)}function no(e){return e.length}function P7(e){return e.length}function w3(e,t){return t.push(e),e}function kX(e,t){return e.map(t).join("")}var M6=1,_l=1,KM=0,Jr=0,or=0,ql="";function $6(e,t,n,r,a,i,s){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:M6,column:_l,length:s,return:""}}function Ys(e,t){return BX($6("",null,null,"",null,null,0),e,{length:-e.length},t)}function VX(){return or}function UX(){return or=Jr>0?wr(ql,--Jr):0,_l--,or===10&&(_l=1,M6--),or}function va(){return or=Jr<KM?wr(ql,Jr++):0,_l++,or===10&&(_l=1,M6++),or}function lo(){return wr(ql,Jr)}function J3(){return Jr}function rc(e,t){return L2(ql,e,t)}function B2(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function YM(e){return M6=_l=1,KM=no(ql=e),Jr=0,[]}function QM(e){return ql="",e}function e0(e){return XM(rc(Jr-1,v8(e===91?e+2:e===40?e+1:e)))}function WX(e){for(;(or=lo())&&or<33;)va();return B2(e)>2||B2(or)>3?"":" "}function qX(e,t){for(;--t&&va()&&!(or<48||or>102||or>57&&or<65||or>70&&or<97););return rc(e,J3()+(t<6&&lo()==32&&va()==32))}function v8(e){for(;va();)switch(or){case e:return Jr;case 34:case 39:e!==34&&e!==39&&v8(or);break;case 40:e===41&&v8(e);break;case 92:va();break}return Jr}function GX(e,t){for(;va()&&e+or!==57;)if(e+or===84&&lo()===47)break;return"/*"+rc(t,Jr-1)+"*"+x6(e===47?e:va())}function XX(e){for(;!B2(lo());)va();return rc(e,Jr)}function KX(e){return QM(t0("",null,null,null,[""],e=YM(e),0,[0],e))}function t0(e,t,n,r,a,i,s,c,u){for(var h=0,v=0,g=s,p=0,b=0,y=0,x=1,S=1,M=1,$=0,E="",I=a,w=i,O=r,T=E;S;)switch(y=$,$=va()){case 40:if(y!=108&&wr(T,g-1)==58){h8(T+=yn(e0($),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:T+=e0($);break;case 9:case 10:case 13:case 32:T+=WX(y);break;case 92:T+=qX(J3()-1,7);continue;case 47:switch(lo()){case 42:case 47:w3(YX(GX(va(),J3()),t,n),u);break;default:T+="/"}break;case 123*x:c[h++]=no(T)*M;case 125*x:case 59:case 0:switch($){case 0:case 125:S=0;case 59+v:M==-1&&(T=yn(T,/\f/g,"")),b>0&&no(T)-g&&w3(b>32?rb(T+";",r,n,g-1):rb(yn(T," ","")+";",r,n,g-2),u);break;case 59:T+=";";default:if(w3(O=nb(T,t,n,h,v,a,c,E,I=[],w=[],g),i),$===123)if(v===0)t0(T,t,O,O,I,i,g,c,w);else switch(p===99&&wr(T,3)===110?100:p){case 100:case 108:case 109:case 115:t0(e,O,O,r&&w3(nb(e,O,O,0,0,a,c,E,a,I=[],g),w),a,w,g,c,r?I:w);break;default:t0(T,O,O,O,[""],w,0,c,w)}}h=v=b=0,x=M=1,E=T="",g=s;break;case 58:g=1+no(T),b=y;default:if(x<1){if($==123)--x;else if($==125&&x++==0&&UX()==125)continue}switch(T+=x6($),$*x){case 38:M=v>0?1:(T+="\f",-1);break;case 44:c[h++]=(no(T)-1)*M,M=1;break;case 64:lo()===45&&(T+=e0(va())),p=lo(),v=g=no(E=T+=XX(J3())),$++;break;case 45:y===45&&no(T)==2&&(x=0)}}return i}function nb(e,t,n,r,a,i,s,c,u,h,v){for(var g=a-1,p=a===0?i:[""],b=P7(p),y=0,x=0,S=0;y<r;++y)for(var M=0,$=L2(e,g+1,g=LX(x=s[y])),E=e;M<b;++M)(E=XM(x>0?p[M]+" "+$:yn($,/&\f/g,p[M])))&&(u[S++]=E);return $6(e,t,n,a===0?R7:c,u,h,v)}function YX(e,t,n){return $6(e,t,n,qM,x6(VX()),L2(e,2,-2),0)}function rb(e,t,n,r){return $6(e,t,n,T7,L2(e,0,r),L2(e,r+1,-1),r)}function bl(e,t){for(var n="",r=P7(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function QX(e,t,n,r){switch(e.type){case DX:if(e.children.length)break;case AX:case T7:return e.return=e.return||e.value;case qM:return"";case GM:return e.return=e.value+"{"+bl(e.children,r)+"}";case R7:e.value=e.props.join(",")}return no(n=bl(e.children,r))?e.return=e.value+"{"+n+"}":""}function ZX(e){var t=P7(e);return function(n,r,a,i){for(var s="",c=0;c<t;c++)s+=e[c](n,r,a,i)||"";return s}}function JX(e){return function(t){t.root||(t=t.return)&&e(t)}}var ab=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var a=t(r);return n.set(r,a),a}};function eK(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tK=function(t,n,r){for(var a=0,i=0;a=i,i=lo(),a===38&&i===12&&(n[r]=1),!B2(i);)va();return rc(t,Jr)},nK=function(t,n){var r=-1,a=44;do switch(B2(a)){case 0:a===38&&lo()===12&&(n[r]=1),t[r]+=tK(Jr-1,n,r);break;case 2:t[r]+=e0(a);break;case 4:if(a===44){t[++r]=lo()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=x6(a)}while(a=va());return t},rK=function(t,n){return QM(nK(YM(t),n))},ob=new WeakMap,aK=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ob.get(r))&&!a){ob.set(t,!0);for(var i=[],s=rK(n,i),c=r.props,u=0,h=0;u<s.length;u++)for(var v=0;v<c.length;v++,h++)t.props[h]=i[u]?s[u].replace(/&\f/g,c[v]):c[v]+" "+s[u]}}},oK=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ZM(e,t){switch(HX(e,t)){case 5103:return bn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return bn+e+T0+e+Ar+e+e;case 6828:case 4268:return bn+e+Ar+e+e;case 6165:return bn+e+Ar+"flex-"+e+e;case 5187:return bn+e+yn(e,/(\w+).+(:[^]+)/,bn+"box-$1$2"+Ar+"flex-$1$2")+e;case 5443:return bn+e+Ar+"flex-item-"+yn(e,/flex-|-self/,"")+e;case 4675:return bn+e+Ar+"flex-line-pack"+yn(e,/align-content|flex-|-self/,"")+e;case 5548:return bn+e+Ar+yn(e,"shrink","negative")+e;case 5292:return bn+e+Ar+yn(e,"basis","preferred-size")+e;case 6060:return bn+"box-"+yn(e,"-grow","")+bn+e+Ar+yn(e,"grow","positive")+e;case 4554:return bn+yn(e,/([^-])(transform)/g,"$1"+bn+"$2")+e;case 6187:return yn(yn(yn(e,/(zoom-|grab)/,bn+"$1"),/(image-set)/,bn+"$1"),e,"")+e;case 5495:case 3959:return yn(e,/(image-set\([^]*)/,bn+"$1$`$1");case 4968:return yn(yn(e,/(.+:)(flex-)?(.*)/,bn+"box-pack:$3"+Ar+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+bn+e+e;case 4095:case 3583:case 4068:case 2532:return yn(e,/(.+)-inline(.+)/,bn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(no(e)-1-t>6)switch(wr(e,t+1)){case 109:if(wr(e,t+4)!==45)break;case 102:return yn(e,/(.+:)(.+)-([^]+)/,"$1"+bn+"$2-$3$1"+T0+(wr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~h8(e,"stretch")?ZM(yn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(wr(e,t+1)!==115)break;case 6444:switch(wr(e,no(e)-3-(~h8(e,"!important")&&10))){case 107:return yn(e,":",":"+bn)+e;case 101:return yn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+bn+(wr(e,14)===45?"inline-":"")+"box$3$1"+bn+"$2$3$1"+Ar+"$2box$3")+e}break;case 5936:switch(wr(e,t+11)){case 114:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return bn+e+Ar+yn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return bn+e+Ar+e+e}return e}var iK=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case T7:t.return=ZM(t.value,t.length);break;case GM:return bl([Ys(t,{value:yn(t.value,"@","@"+bn)})],a);case R7:if(t.length)return kX(t.props,function(i){switch(FX(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bl([Ys(t,{props:[yn(i,/:(read-\w+)/,":"+T0+"$1")]})],a);case"::placeholder":return bl([Ys(t,{props:[yn(i,/:(plac\w+)/,":"+bn+"input-$1")]}),Ys(t,{props:[yn(i,/:(plac\w+)/,":"+T0+"$1")]}),Ys(t,{props:[yn(i,/:(plac\w+)/,Ar+"input-$1")]})],a)}return""})}},lK=[iK],JM=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(x){var S=x.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var a=t.stylisPlugins||lK,i={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var S=x.getAttribute("data-emotion").split(" "),M=1;M<S.length;M++)i[S[M]]=!0;c.push(x)});var u,h=[aK,oK];{var v,g=[QX,JX(function(x){v.insert(x)})],p=ZX(h.concat(a,g)),b=function(S){return bl(KX(S),p)};u=function(S,M,$,E){v=$,b(S?S+"{"+M.styles+"}":M.styles),E&&(y.inserted[M.name]=!0)}}var y={key:n,sheet:new jX({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return y.sheet.hydrate(c),y};function sK(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var cK={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uK=/[A-Z]|^ms/g,dK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,e$=function(t){return t.charCodeAt(1)===45},ib=function(t){return t!=null&&typeof t!="boolean"},P5=eK(function(e){return e$(e)?e:e.replace(uK,"-$&").toLowerCase()}),lb=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(dK,function(r,a,i){return ro={name:a,styles:i,next:ro},a})}return cK[t]!==1&&!e$(t)&&typeof n=="number"&&n!==0?n+"px":n};function H2(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return ro={name:a.name,styles:a.styles,next:ro},a.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)ro={name:s.name,styles:s.styles,next:ro},s=s.next;var c=i.styles+";";return c}return fK(e,t,n)}case"function":{if(e!==void 0){var u=ro,h=n(e);return ro=u,H2(e,t,h)}break}}var v=n;if(t==null)return v;var g=t[v];return g!==void 0?g:v}function fK(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=H2(e,t,n[a])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?r+=i+"{"+t[c]+"}":ib(c)&&(r+=P5(i)+":"+lb(i,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)ib(s[u])&&(r+=P5(i)+":"+lb(i,s[u])+";");else{var h=H2(e,t,s);switch(i){case"animation":case"animationName":{r+=P5(i)+":"+h+";";break}default:r+=i+"{"+h+"}"}}}return r}var sb=/label:\s*([^\s;{]+)\s*(;|$)/g,ro;function xi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";ro=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,a+=H2(n,t,i);else{var s=i;a+=s[0]}for(var c=1;c<e.length;c++)if(a+=H2(n,t,e[c]),r){var u=i;a+=u[c]}sb.lastIndex=0;for(var h="",v;(v=sb.exec(a))!==null;)h+="-"+v[1];var g=sK(a)+h;return{name:g,styles:a,next:ro}}var hK=!0;function z6(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var _7=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||hK===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},N7=function(t,n,r){_7(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function cb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ub(e,t,n){var r=[],a=z6(e,r,n);return r.length<2?n:a+t(r)}var j7=function(t){var n=JM(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var r=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered,void 0);return N7(n,g,!1),n.key+"-"+g.name},a=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered),p="animation-"+g.name;return cb(n,{name:g.name,styles:"@keyframes "+p+"{"+g.styles+"}"}),p},i=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];var g=xi(h,n.registered);cb(n,g)},s=function(){for(var u=arguments.length,h=new Array(u),v=0;v<u;v++)h[v]=arguments[v];return ub(n.registered,r,vK(h))};return{css:r,cx:s,injectGlobal:i,keyframes:a,hydrate:function(u){u.forEach(function(h){n.inserted[h]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:z6.bind(null,n.registered),merge:ub.bind(null,n.registered,r)}},vK=function e(t){for(var n="",r=0;r<t.length;r++){var a=t[r];if(a!=null){var i=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}}return n},mo=j7({key:"css"});mo.flush;mo.hydrate;mo.cx;mo.merge;mo.getRegisteredStyles;mo.injectGlobal;mo.keyframes;mo.css;mo.sheet;var mK=mo.cache,gK=(function(){function e(){Wn(this,e),J(this,"_cacheList",[mK])}return qn(e,[{key:"add",value:function(n){var r=this.getCache(n.key);return r||(this._cacheList.push(n),n)}},{key:"delete",value:function(n){this._cacheList=this._cacheList.filter(function(r){return r.key!==n.key})}},{key:"hasCache",value:function(n){return this._cacheList.some(function(r){return r.key===n.key})}},{key:"getCache",value:function(n){return this._cacheList.find(function(r){return r.key===n})}},{key:"getCacheList",value:function(){return this._cacheList}}]),e})(),db=typeof document<"u",t$=function(t,n){return"".concat(t,"-").concat(n)},pK=function(t,n,r,a){var i=a.hashPriority;_7(t,n,r);var s=".".concat(t$(t.key,n.name)),c=i==="low"?":where(".concat(s,")"):s;if(t.inserted[n.name]===void 0){var u="",h=n;do{var v=t.insert(n===h?c:"",h,t.sheet,!0);!db&&v!==void 0&&(u+=v),h=h.next}while(h!==void 0);if(!db&&u.length!==0)return u}},A7=function(t){return lt(t)==="object"&&"styles"in t&&"name"in t&&"toString"in t},bK=function e(t){for(var n="",r=0;r<t.length;r++){var a=t[r];if(a!==null){var i=void 0;switch(lt(a)){case"boolean":break;case"object":{if(Array.isArray(a))i=e(a);else{i="";for(var s in a)a[s]&&s&&(i&&(i+=" "),i+=s)}break}default:i=a}i&&(n&&(n+=" "),n+=i)}}return n},yK=function(t,n,r){var a=[],i=z6(t,a,r);return a.length<2?r:i+n(a)},SK=function(t,n){return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=xi(a,t.registered,void 0);return pK(t,s,!1,n),t$(t.key,s.name)}},CK=function(t,n){return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.map(function(c){return A7(c)?n(c):c});return yK(t.registered,n,bK(s))}},n$=function(t,n){var r=SK(t,{hashPriority:n.hashPriority||"high",label:n.label}),a=CK(t,r);return{css:r,cx:a}},ac=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return xi(n)},xK="acss",MK=function(t){return f.createContext(t)},_5={exports:{}},Mn={};/** @license React v16.13.1
|
|
376
376
|
* react-is.production.min.js
|
|
377
377
|
*
|
|
378
378
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
379
379
|
*
|
|
380
380
|
* This source code is licensed under the MIT license found in the
|
|
381
381
|
* LICENSE file in the root directory of this source tree.
|
|
382
|
-
*/var fb;function zK(){if(fb)return Mn;fb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case t:switch(w=w.type,w){case u:case h:case r:case i:case a:case g:return w;default:switch(w=w&&w.$$typeof,w){case c:case v:case y:case b:case s:return w;default:return O}}case n:return O}}}function I(w){return E(w)===h}return Mn.AsyncMode=u,Mn.ConcurrentMode=h,Mn.ContextConsumer=c,Mn.ContextProvider=s,Mn.Element=t,Mn.ForwardRef=v,Mn.Fragment=r,Mn.Lazy=y,Mn.Memo=b,Mn.Portal=n,Mn.Profiler=i,Mn.StrictMode=a,Mn.Suspense=g,Mn.isAsyncMode=function(w){return I(w)||E(w)===u},Mn.isConcurrentMode=I,Mn.isContextConsumer=function(w){return E(w)===c},Mn.isContextProvider=function(w){return E(w)===s},Mn.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Mn.isForwardRef=function(w){return E(w)===v},Mn.isFragment=function(w){return E(w)===r},Mn.isLazy=function(w){return E(w)===y},Mn.isMemo=function(w){return E(w)===b},Mn.isPortal=function(w){return E(w)===n},Mn.isProfiler=function(w){return E(w)===i},Mn.isStrictMode=function(w){return E(w)===a},Mn.isSuspense=function(w){return E(w)===g},Mn.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===h||w===i||w===a||w===g||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===b||w.$$typeof===s||w.$$typeof===c||w.$$typeof===v||w.$$typeof===S||w.$$typeof===M||w.$$typeof===$||w.$$typeof===x)},Mn.typeOf=E,Mn}var hb;function wK(){return hb||(hb=1,_5.exports=zK()),_5.exports}var N5,vb;function EK(){if(vb)return N5;vb=1;var e=wK(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(y){return e.isMemo(y)?a:i[y.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,p=Object.prototype;function b(y,x,S){if(typeof x!="string"){if(p){var M=g(x);M&&M!==p&&b(y,M,S)}var $=u(x);h&&($=$.concat(h(x)));for(var E=s(y),I=s(x),w=0;w<$.length;++w){var O=$[w];if(!n[O]&&!(S&&S[O])&&!(I&&I[O])&&!(E&&E[O])){var T=v(x,O);try{c(y,O,T)}catch{}}}}return y}return N5=b,N5}EK();var OK=function(t){return t()},r$=c1.useInsertionEffect?c1.useInsertionEffect:!1,IK=r$||OK,mb=r$||f.useLayoutEffect,a$=f.createContext(typeof HTMLElement<"u"?JM({key:"css"}):null);a$.Provider;var o$=function(t){return f.forwardRef(function(n,r){var a=f.useContext(a$);return t(n,a,r)})},F2=f.createContext({}),RK=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Le({},t,n)},TK=ab(function(e){return ab(function(t){return RK(e,t)})}),PK=function(t){var n=f.useContext(F2);return t.theme!==n&&(n=TK(n)(t.theme)),f.createElement(F2.Provider,{value:n},t.children)},D7={}.hasOwnProperty,m8="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_K=function(t,n){var r={};for(var a in n)D7.call(n,a)&&(r[a]=n[a]);return r[m8]=t,r},NK=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return _7(n,r,a),IK(function(){return N7(n,r,a)}),null},jK=o$(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[m8],i=[r],s="";typeof e.className=="string"?s=z6(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var c=xi(i,void 0,f.useContext(F2));s+=t.key+"-"+c.name;var u={};for(var h in e)D7.call(e,h)&&h!=="css"&&h!==m8&&(u[h]=e[h]);return u.className=s,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(NK,{cache:t,serialized:c,isStringTag:typeof a=="string"}),f.createElement(a,u))}),AK=jK,gb=function(t,n){var r=arguments;if(n==null||!D7.call(n,"css"))return f.createElement.apply(void 0,r);var a=r.length,i=new Array(a);i[0]=AK,i[1]=_K(t,n);for(var s=2;s<a;s++)i[s]=r[s];return f.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(gb||(gb={}));var DK=o$(function(e,t){var n=e.styles,r=xi([n],void 0,f.useContext(F2)),a=f.useRef();return mb(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),s.hydrate([u])),a.current=[s,c],function(){s.flush()}},[t]),mb(function(){var i=a.current,s=i[0],c=i[1];if(c){i[1]=!1;return}if(r.next!==void 0&&N7(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null}),LK=function(t){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return f.memo(function(i){var s=t();return ve.jsx(DK,{styles:xi(r,void 0,Z(Z({},i),{},{theme:s}))})})}},BK=function(t){return function(n){var r=t(n);return function(a){var i=r(a),s=i.styles;return s}}},HK=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],FK=function(t){return f.memo(function(n){var r=n.children,a=n.prefix,i=n.speedy,s=n.getStyleManager,c=n.container,u=n.nonce,h=n.insertionPoint,v=n.stylisPlugins,g=n.linters,p=Et(n,HK),b=f.useContext(t),y=a??b.sheet.key,x=c??b.sheet.container,S=i??b.sheet.isSpeedy,M=f.useMemo(function(){var E=!1,I=j7({speedy:S??E,key:y,container:x,nonce:u,insertionPoint:h,stylisPlugins:v});if(typeof global<"u"){var w=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;w&&(I.cache=w.add(I.cache))}return I},[y,S,x,u,h,v]);f.useEffect(function(){s?.(M)},[M]);var $=ve.jsx(t.Provider,{value:M,children:r});return Object.keys(p).length||x?ve.jsx(bI,Z(Z({linters:g,container:x},p),{},{children:$})):$})},kK=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},VK=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=me(n,2),a=r[0],i=r[1];return[a,i.styles]}))},L7=function(){var t=Pl.useToken(),n=t.token;return n},hl=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},j5,i$=f.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(j5=hl("dark"))!==null&&j5!==void 0&&j5.matches?"dark":"light"}),w6=function(){return f.useContext(i$)},UK=function(){var t=L7(),n=w6(),r=n.appearance,a=n.isDarkMode;return f.useMemo(function(){return VK(kK({token:t,css:ac}))},[t,r,a])},l$=function(){var t=L7(),n=UK();return f.useMemo(function(){return Z(Z({},t),{},{stylish:n})},[t,n])},WK=function(t){return Z(Z({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},qK=function(){var t=L7(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return f.useMemo(function(){return WK(n)},[t])},GK=function(t,n){return Object.entries(t).map(function(r){var a=me(r,2),i=a[0],s=a[1],c=s;return A7(s)||(c=ac(s)),n[i]?"".concat(n[i]," {").concat(c.styles,"}"):""}).join("")},XK=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],KK=["prefixCls","iconPrefixCls"],YK=function(t){var n=t.hashPriority,r=t.useTheme,a=t.EmotionContext;return function(i,s){var c=s?.__BABEL_FILE_NAME__,u=!!c;return function(h){var v=r(),g=f.useContext(a),p=g.cache,b=n$(p,{hashPriority:s?.hashPriority||n,label:s?.label}),y=b.cx,x=b.css,S=qK(),M=f.useMemo(function(){var $;if(i instanceof Function){var E=v.stylish,I=v.appearance,w=v.isDarkMode,O=v.prefixCls,T=v.iconPrefixCls,_=Et(v,XK),j=function(H){return GK(H,S)};Object.assign(j,S),$=i({token:_,stylish:E,appearance:I,isDarkMode:w,prefixCls:O,iconPrefixCls:T,cx:y,css:ac,responsive:j},h)}else $=i;return lt($)==="object"&&(A7($)?$=x($):$=Object.fromEntries(Object.entries($).map(function(A){var H=me(A,2),q=H[0],V=H[1],W=u?"".concat(c,"-").concat(q):void 0;return lt(V)==="object"?u?[q,x(V,"label:".concat(W))]:[q,x(V)]:[q,V]}))),$},[h,v]);return f.useMemo(function(){var $=v.prefixCls,E=v.iconPrefixCls,I=Et(v,KK);return{styles:M,cx:y,theme:I,prefixCls:$,iconPrefixCls:E}},[M,v])}}},pb=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return ve.jsx(n.Provider,{value:r.theme,children:r.children})}},QK=PK,s$=F2,c$=f.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,s=w6(),c=s.appearance,u=s.isDarkMode,h=jM.useMessage(i?.message),v=me(h,2),g=v[0],p=v[1],b=z7.useNotification(i?.notification),y=me(b,2),x=y[0],S=y[1],M=Xa.useModal(),$=me(M,2),E=$[0],I=$[1];f.useEffect(function(){a?.({message:g,modal:E,notification:x})},[]);var w=f.useMemo(function(){var O=u?Pl.darkAlgorithm:Pl.defaultAlgorithm,T=n;if(typeof n=="function"&&(T=n(c)),!T)return{algorithm:O};var _=T.algorithm?T.algorithm instanceof Array?T.algorithm:[T.algorithm]:[];return Z(Z({},T),{},{algorithm:T.algorithm?[O].concat(De(_)):O})},[n,u]);return ve.jsxs(En,{prefixCls:r,theme:w,children:[p,S,I,t]})});c$.displayName="AntdProvider";function ZK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,c=[],u=!0,h=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(v){h=!0,a=v}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw a}}return c}}function JK(e,t){return eY(e)||ZK(e,t)||tY(e,t)||nY()}function eY(e){if(Array.isArray(e))return e}function tY(e,t){if(e){if(typeof e=="string")return bb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bb(e,t)}}function bb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
383
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yb(e,t){var n=t||{},r=n.defaultValue,a=n.value,i=n.onChange,s=n.postState,c=ae.useState(function(){return a!==void 0?a:r!==void 0?typeof r=="function"?r():r:e}),u=JK(c,2),h=u[0],v=u[1],g=a!==void 0?a:h;s&&(g=s(g));function p(b){v(b),g!==b&&i&&i(b,g)}return[g,p]}var A5=function(t){typeof f.startTransition=="function"?f.startTransition(t):t()},vi,rY=function(t){var n=t.themeMode,r=t.setAppearance,a=t.setBrowserPrefers,i=function(){A5(function(){hl("dark").matches?r("dark"):r("light")})},s=function(){A5(function(){hl("dark").matches?a("dark"):a("light")})};return f.useLayoutEffect(function(){if(n!=="auto"){A5(function(){r(n)});return}return setTimeout(i,1),vi||(vi=hl("dark")),vi.addEventListener("change",i),function(){vi.removeEventListener("change",i)}},[n]),f.useLayoutEffect(function(){return vi||(vi=hl("dark")),vi.addEventListener("change",s),function(){vi.removeEventListener("change",s)}},[]),null},u$=f.memo(function(e){var t,n=e.children,r=e.appearance,a=e.defaultAppearance,i=e.onAppearanceChange,s=e.themeMode,c=e.defaultThemeMode,u=e.onThemeModeChange,h=e.useTheme,v=h(),g=v.appearance,p=v.themeMode,b=yb("light",{value:s,defaultValue:c??p,onChange:function(A){return u?.(A)}}),y=me(b,2),x=y[0],S=y[1],M=yb("light",{value:r,defaultValue:a??g,onChange:function(A){return i?.(A)}}),$=me(M,2),E=$[0],I=$[1],w=f.useState((t=hl("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),O=me(w,2),T=O[0],_=O[1];return ve.jsxs(i$.Provider,{value:{themeMode:x,setThemeMode:S,appearance:E,setAppearance:I,isDarkMode:E==="dark",browserPrefers:T},children:[typeof window<"u"&&ve.jsx(rY,{themeMode:x,setAppearance:I,setBrowserPrefers:_}),n]})});u$.displayName="ThemeSwitcher";var aY=["stylish"],oY=function(t){var n=t.children,r=t.customToken,a=t.defaultCustomToken,i=t.customStylish,s=t.prefixCls,c=t.StyledThemeProvider,u=w6(),h=u.appearance,v=u.isDarkMode,g=l$(),p=g.stylish,b=Et(g,aY),y=f.useMemo(function(){return a?a instanceof Function?a({token:b,appearance:h,isDarkMode:v}):a:{}},[a,b,h]),x=f.useMemo(function(){return r instanceof Function?Z(Z({},y),r({token:b,appearance:h,isDarkMode:v})):Z(Z({},y),r)},[y,r,b,h]),S=f.useMemo(function(){return i?i({token:Z(Z({},b),x),stylish:p,appearance:h,isDarkMode:v,css:ac}):{}},[i,b,x,p,h]),M=f.useMemo(function(){return Z(Z({},S),p)},[S,p]),$=Z(Z(Z(Z({},b),x),{},{stylish:M},u),{},{prefixCls:s});return ve.jsx(c,{theme:$,children:n})},iY=function(t){var n=t.styledConfig?pb(t.styledConfig):void 0,r=t.StyleEngineContext;return f.memo(function(a){var i=a.children,s=a.customToken,c=a.customStylish,u=a.theme,h=a.getStaticInstance,v=a.prefixCls,g=a.staticInstanceConfig,p=a.appearance,b=a.defaultAppearance,y=a.onAppearanceChange,x=a.themeMode,S=a.defaultThemeMode,M=a.onThemeModeChange,$=a.styled,E=f.useContext(r),I=E.prefixCls,w=E.StyledThemeContext,O=E.CustomThemeContext,T=f.useContext(O),_=$?pb($):n||QK,j=v||I;return ve.jsx(r.Provider,{value:{prefixCls:j,StyledThemeContext:$?.ThemeContext||w||s$,CustomThemeContext:O},children:ve.jsx(u$,{themeMode:x,defaultThemeMode:S,onThemeModeChange:M,defaultAppearance:b,appearance:p,onAppearanceChange:y,useTheme:t.useTheme,children:ve.jsx(c$,{prefixCls:j,staticInstanceConfig:g,theme:u,getStaticInstance:h,children:ve.jsx(oY,{prefixCls:j,customToken:s,defaultCustomToken:T,customStylish:c,StyledThemeProvider:_,children:i})})})})})},lY=function(t){return function(){var n=t.StyleEngineContext,r=f.useContext(n),a=r.StyledThemeContext,i=r.CustomThemeContext,s=r.prefixCls,c=l$(),u=w6(),h=f.useContext(i),v=f.useContext(a??s$)||{},g=f.useContext(En.ConfigContext),p=g.iconPrefixCls,b=g.getPrefixCls,y=b(),x=s&&s!=="ant"?s:y,S=f.useMemo(function(){return Z(Z(Z(Z({},c),u),h),{},{prefixCls:x,iconPrefixCls:p})},[c,u,h,x,p]);return!v||Object.keys(v).length===0?S:Z(Z({},v),{},{prefixCls:x,iconPrefixCls:p})}},d$=new pK;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=d$);var sY=function(t){var n,r,a,i=Z(Z({},t),{},{key:(n=t.key)!==null&&n!==void 0?n:"zcss",speedy:(r=t.speedy)!==null&&r!==void 0?r:!1}),s=j7({key:i.key,speedy:i.speedy,container:i.container}),c=$K(s),u=FK(c);s.cache=d$.add(s.cache);var h=f.createContext(i.customToken?i.customToken:{}),v=(a=i.styled)===null||a===void 0?void 0:a.ThemeContext,g=f.createContext({CustomThemeContext:h,StyledThemeContext:v,prefixCls:i?.prefixCls,iconPrefixCls:i?.iconPrefixCls}),p=lY({StyleEngineContext:g}),b=YK({hashPriority:i.hashPriority,useTheme:p,EmotionContext:c}),y=LK(p),x=BK(b),S=iY({styledConfig:i.styled,StyleEngineContext:g,useTheme:p});S.displayName="AntdStyleThemeProvider";var M=n$(s.cache,{hashPriority:i.hashPriority}),$=M.cx,E=s.injectGlobal,I=s.keyframes;return{createStyles:b,createGlobalStyle:y,createStylish:x,css:ac,cx:$,keyframes:I,injectGlobal:E,styleManager:s,useTheme:p,StyleProvider:u,ThemeProvider:S}},cY=sY({key:MK,speedy:!1}),uY=cY.createStyles,D5={exports:{}},L5,Sb;function f$(){return Sb||(Sb=1,L5={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),L5}var B5={exports:{}},H5,Cb;function dY(){return Cb||(Cb=1,H5=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),H5}var xb;function fY(){if(xb)return B5.exports;xb=1;var e=dY(),t=Array.prototype.concat,n=Array.prototype.slice,r=B5.exports=function(i){for(var s=[],c=0,u=i.length;c<u;c++){var h=i[c];e(h)?s=t.call(s,n.call(h)):s.push(h)}return s};return r.wrap=function(a){return function(){return a(r(arguments))}},B5.exports}var Mb;function hY(){if(Mb)return D5.exports;Mb=1;var e=f$(),t=fY(),n=Object.hasOwnProperty,r=Object.create(null);for(var a in e)n.call(e,a)&&(r[e[a]]=a);var i=D5.exports={to:{},get:{}};i.get=function(u){var h=u.substring(0,3).toLowerCase(),v,g;switch(h){case"hsl":v=i.get.hsl(u),g="hsl";break;case"hwb":v=i.get.hwb(u),g="hwb";break;default:v=i.get.rgb(u),g="rgb";break}return v?{model:g,value:v}:null},i.get.rgb=function(u){if(!u)return null;var h=/^#([a-f0-9]{3,4})$/i,v=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,g=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,y=[0,0,0,1],x,S,M;if(x=u.match(v)){for(M=x[2],x=x[1],S=0;S<3;S++){var $=S*2;y[S]=parseInt(x.slice($,$+2),16)}M&&(y[3]=parseInt(M,16)/255)}else if(x=u.match(h)){for(x=x[1],M=x[3],S=0;S<3;S++)y[S]=parseInt(x[S]+x[S],16);M&&(y[3]=parseInt(M+M,16)/255)}else if(x=u.match(g)){for(S=0;S<3;S++)y[S]=parseInt(x[S+1],0);x[4]&&(x[5]?y[3]=parseFloat(x[4])*.01:y[3]=parseFloat(x[4]))}else if(x=u.match(p)){for(S=0;S<3;S++)y[S]=Math.round(parseFloat(x[S+1])*2.55);x[4]&&(x[5]?y[3]=parseFloat(x[4])*.01:y[3]=parseFloat(x[4]))}else return(x=u.match(b))?x[1]==="transparent"?[0,0,0,0]:n.call(e,x[1])?(y=e[x[1]],y[3]=1,y):null:null;for(S=0;S<3;S++)y[S]=s(y[S],0,255);return y[3]=s(y[3],0,1),y},i.get.hsl=function(u){if(!u)return null;var h=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,v=u.match(h);if(v){var g=parseFloat(v[4]),p=(parseFloat(v[1])%360+360)%360,b=s(parseFloat(v[2]),0,100),y=s(parseFloat(v[3]),0,100),x=s(isNaN(g)?1:g,0,1);return[p,b,y,x]}return null},i.get.hwb=function(u){if(!u)return null;var h=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,v=u.match(h);if(v){var g=parseFloat(v[4]),p=(parseFloat(v[1])%360+360)%360,b=s(parseFloat(v[2]),0,100),y=s(parseFloat(v[3]),0,100),x=s(isNaN(g)?1:g,0,1);return[p,b,y,x]}return null},i.to.hex=function(){var u=t(arguments);return"#"+c(u[0])+c(u[1])+c(u[2])+(u[3]<1?c(Math.round(u[3]*255)):"")},i.to.rgb=function(){var u=t(arguments);return u.length<4||u[3]===1?"rgb("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+")":"rgba("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+", "+u[3]+")"},i.to.rgb.percent=function(){var u=t(arguments),h=Math.round(u[0]/255*100),v=Math.round(u[1]/255*100),g=Math.round(u[2]/255*100);return u.length<4||u[3]===1?"rgb("+h+"%, "+v+"%, "+g+"%)":"rgba("+h+"%, "+v+"%, "+g+"%, "+u[3]+")"},i.to.hsl=function(){var u=t(arguments);return u.length<4||u[3]===1?"hsl("+u[0]+", "+u[1]+"%, "+u[2]+"%)":"hsla("+u[0]+", "+u[1]+"%, "+u[2]+"%, "+u[3]+")"},i.to.hwb=function(){var u=t(arguments),h="";return u.length>=4&&u[3]!==1&&(h=", "+u[3]),"hwb("+u[0]+", "+u[1]+"%, "+u[2]+"%"+h+")"},i.to.keyword=function(u){return r[u.slice(0,3)]};function s(u,h,v){return Math.min(Math.max(h,u),v)}function c(u){var h=Math.round(u).toString(16).toUpperCase();return h.length<2?"0"+h:h}return D5.exports}var F5,$b;function h$(){if($b)return F5;$b=1;const e=f$(),t={};for(const a of Object.keys(e))t[e[a]]=a;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};F5=n;for(const a of Object.keys(n)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:i,labels:s}=n[a];delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:s})}n.rgb.hsl=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.min(i,s,c),h=Math.max(i,s,c),v=h-u;let g,p;h===u?g=0:i===h?g=(s-c)/v:s===h?g=2+(c-i)/v:c===h&&(g=4+(i-s)/v),g=Math.min(g*60,360),g<0&&(g+=360);const b=(u+h)/2;return h===u?p=0:b<=.5?p=v/(h+u):p=v/(2-h-u),[g,p*100,b*100]},n.rgb.hsv=function(a){let i,s,c,u,h;const v=a[0]/255,g=a[1]/255,p=a[2]/255,b=Math.max(v,g,p),y=b-Math.min(v,g,p),x=function(S){return(b-S)/6/y+1/2};return y===0?(u=0,h=0):(h=y/b,i=x(v),s=x(g),c=x(p),v===b?u=c-s:g===b?u=1/3+i-c:p===b&&(u=2/3+s-i),u<0?u+=1:u>1&&(u-=1)),[u*360,h*100,b*100]},n.rgb.hwb=function(a){const i=a[0],s=a[1];let c=a[2];const u=n.rgb.hsl(a)[0],h=1/255*Math.min(i,Math.min(s,c));return c=1-1/255*Math.max(i,Math.max(s,c)),[u,h*100,c*100]},n.rgb.cmyk=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.min(1-i,1-s,1-c),h=(1-i-u)/(1-u)||0,v=(1-s-u)/(1-u)||0,g=(1-c-u)/(1-u)||0;return[h*100,v*100,g*100,u*100]};function r(a,i){return(a[0]-i[0])**2+(a[1]-i[1])**2+(a[2]-i[2])**2}return n.rgb.keyword=function(a){const i=t[a];if(i)return i;let s=1/0,c;for(const u of Object.keys(e)){const h=e[u],v=r(a,h);v<s&&(s=v,c=u)}return c},n.keyword.rgb=function(a){return e[a]},n.rgb.xyz=function(a){let i=a[0]/255,s=a[1]/255,c=a[2]/255;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;const u=i*.4124+s*.3576+c*.1805,h=i*.2126+s*.7152+c*.0722,v=i*.0193+s*.1192+c*.9505;return[u*100,h*100,v*100]},n.rgb.lab=function(a){const i=n.rgb.xyz(a);let s=i[0],c=i[1],u=i[2];s/=95.047,c/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;const h=116*c-16,v=500*(s-c),g=200*(c-u);return[h,v,g]},n.hsl.rgb=function(a){const i=a[0]/360,s=a[1]/100,c=a[2]/100;let u,h,v;if(s===0)return v=c*255,[v,v,v];c<.5?u=c*(1+s):u=c+s-c*s;const g=2*c-u,p=[0,0,0];for(let b=0;b<3;b++)h=i+1/3*-(b-1),h<0&&h++,h>1&&h--,6*h<1?v=g+(u-g)*6*h:2*h<1?v=u:3*h<2?v=g+(u-g)*(2/3-h)*6:v=g,p[b]=v*255;return p},n.hsl.hsv=function(a){const i=a[0];let s=a[1]/100,c=a[2]/100,u=s;const h=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,u*=h<=1?h:2-h;const v=(c+s)/2,g=c===0?2*u/(h+u):2*s/(c+s);return[i,g*100,v*100]},n.hsv.rgb=function(a){const i=a[0]/60,s=a[1]/100;let c=a[2]/100;const u=Math.floor(i)%6,h=i-Math.floor(i),v=255*c*(1-s),g=255*c*(1-s*h),p=255*c*(1-s*(1-h));switch(c*=255,u){case 0:return[c,p,v];case 1:return[g,c,v];case 2:return[v,c,p];case 3:return[v,g,c];case 4:return[p,v,c];case 5:return[c,v,g]}},n.hsv.hsl=function(a){const i=a[0],s=a[1]/100,c=a[2]/100,u=Math.max(c,.01);let h,v;v=(2-s)*c;const g=(2-s)*u;return h=s*u,h/=g<=1?g:2-g,h=h||0,v/=2,[i,h*100,v*100]},n.hwb.rgb=function(a){const i=a[0]/360;let s=a[1]/100,c=a[2]/100;const u=s+c;let h;u>1&&(s/=u,c/=u);const v=Math.floor(6*i),g=1-c;h=6*i-v,(v&1)!==0&&(h=1-h);const p=s+h*(g-s);let b,y,x;switch(v){default:case 6:case 0:b=g,y=p,x=s;break;case 1:b=p,y=g,x=s;break;case 2:b=s,y=g,x=p;break;case 3:b=s,y=p,x=g;break;case 4:b=p,y=s,x=g;break;case 5:b=g,y=s,x=p;break}return[b*255,y*255,x*255]},n.cmyk.rgb=function(a){const i=a[0]/100,s=a[1]/100,c=a[2]/100,u=a[3]/100,h=1-Math.min(1,i*(1-u)+u),v=1-Math.min(1,s*(1-u)+u),g=1-Math.min(1,c*(1-u)+u);return[h*255,v*255,g*255]},n.xyz.rgb=function(a){const i=a[0]/100,s=a[1]/100,c=a[2]/100;let u,h,v;return u=i*3.2406+s*-1.5372+c*-.4986,h=i*-.9689+s*1.8758+c*.0415,v=i*.0557+s*-.204+c*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,v=v>.0031308?1.055*v**(1/2.4)-.055:v*12.92,u=Math.min(Math.max(0,u),1),h=Math.min(Math.max(0,h),1),v=Math.min(Math.max(0,v),1),[u*255,h*255,v*255]},n.xyz.lab=function(a){let i=a[0],s=a[1],c=a[2];i/=95.047,s/=100,c/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const u=116*s-16,h=500*(i-s),v=200*(s-c);return[u,h,v]},n.lab.xyz=function(a){const i=a[0],s=a[1],c=a[2];let u,h,v;h=(i+16)/116,u=s/500+h,v=h-c/200;const g=h**3,p=u**3,b=v**3;return h=g>.008856?g:(h-16/116)/7.787,u=p>.008856?p:(u-16/116)/7.787,v=b>.008856?b:(v-16/116)/7.787,u*=95.047,h*=100,v*=108.883,[u,h,v]},n.lab.lch=function(a){const i=a[0],s=a[1],c=a[2];let u;u=Math.atan2(c,s)*360/2/Math.PI,u<0&&(u+=360);const v=Math.sqrt(s*s+c*c);return[i,v,u]},n.lch.lab=function(a){const i=a[0],s=a[1],u=a[2]/360*2*Math.PI,h=s*Math.cos(u),v=s*Math.sin(u);return[i,h,v]},n.rgb.ansi16=function(a,i=null){const[s,c,u]=a;let h=i===null?n.rgb.hsv(a)[2]:i;if(h=Math.round(h/50),h===0)return 30;let v=30+(Math.round(u/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return h===2&&(v+=60),v},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){const i=a[0],s=a[1],c=a[2];return i===s&&s===c?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(a){let i=a%10;if(i===0||i===7)return a>50&&(i+=3.5),i=i/10.5*255,[i,i,i];const s=(~~(a>50)+1)*.5,c=(i&1)*s*255,u=(i>>1&1)*s*255,h=(i>>2&1)*s*255;return[c,u,h]},n.ansi256.rgb=function(a){if(a>=232){const h=(a-232)*10+8;return[h,h,h]}a-=16;let i;const s=Math.floor(a/36)/5*255,c=Math.floor((i=a%36)/6)/5*255,u=i%6/5*255;return[s,c,u]},n.rgb.hex=function(a){const s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(a){const i=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!i)return[0,0,0];let s=i[0];i[0].length===3&&(s=s.split("").map(g=>g+g).join(""));const c=parseInt(s,16),u=c>>16&255,h=c>>8&255,v=c&255;return[u,h,v]},n.rgb.hcg=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.max(Math.max(i,s),c),h=Math.min(Math.min(i,s),c),v=u-h;let g,p;return v<1?g=h/(1-v):g=0,v<=0?p=0:u===i?p=(s-c)/v%6:u===s?p=2+(c-i)/v:p=4+(i-s)/v,p/=6,p%=1,[p*360,v*100,g*100]},n.hsl.hcg=function(a){const i=a[1]/100,s=a[2]/100,c=s<.5?2*i*s:2*i*(1-s);let u=0;return c<1&&(u=(s-.5*c)/(1-c)),[a[0],c*100,u*100]},n.hsv.hcg=function(a){const i=a[1]/100,s=a[2]/100,c=i*s;let u=0;return c<1&&(u=(s-c)/(1-c)),[a[0],c*100,u*100]},n.hcg.rgb=function(a){const i=a[0]/360,s=a[1]/100,c=a[2]/100;if(s===0)return[c*255,c*255,c*255];const u=[0,0,0],h=i%1*6,v=h%1,g=1-v;let p=0;switch(Math.floor(h)){case 0:u[0]=1,u[1]=v,u[2]=0;break;case 1:u[0]=g,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=v;break;case 3:u[0]=0,u[1]=g,u[2]=1;break;case 4:u[0]=v,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=g}return p=(1-s)*c,[(s*u[0]+p)*255,(s*u[1]+p)*255,(s*u[2]+p)*255]},n.hcg.hsv=function(a){const i=a[1]/100,s=a[2]/100,c=i+s*(1-i);let u=0;return c>0&&(u=i/c),[a[0],u*100,c*100]},n.hcg.hsl=function(a){const i=a[1]/100,c=a[2]/100*(1-i)+.5*i;let u=0;return c>0&&c<.5?u=i/(2*c):c>=.5&&c<1&&(u=i/(2*(1-c))),[a[0],u*100,c*100]},n.hcg.hwb=function(a){const i=a[1]/100,s=a[2]/100,c=i+s*(1-i);return[a[0],(c-i)*100,(1-c)*100]},n.hwb.hcg=function(a){const i=a[1]/100,c=1-a[2]/100,u=c-i;let h=0;return u<1&&(h=(c-u)/(1-u)),[a[0],u*100,h*100]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=function(a){return[0,0,a[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){const i=Math.round(a[0]/100*255)&255,c=((i<<16)+(i<<8)+i).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]},F5}var k5,zb;function vY(){if(zb)return k5;zb=1;const e=h$();function t(){const i={},s=Object.keys(e);for(let c=s.length,u=0;u<c;u++)i[s[u]]={distance:-1,parent:null};return i}function n(i){const s=t(),c=[i];for(s[i].distance=0;c.length;){const u=c.pop(),h=Object.keys(e[u]);for(let v=h.length,g=0;g<v;g++){const p=h[g],b=s[p];b.distance===-1&&(b.distance=s[u].distance+1,b.parent=u,c.unshift(p))}}return s}function r(i,s){return function(c){return s(i(c))}}function a(i,s){const c=[s[i].parent,i];let u=e[s[i].parent][i],h=s[i].parent;for(;s[h].parent;)c.unshift(s[h].parent),u=r(e[s[h].parent][h],u),h=s[h].parent;return u.conversion=c,u}return k5=function(i){const s=n(i),c={},u=Object.keys(s);for(let h=u.length,v=0;v<h;v++){const g=u[v];s[g].parent!==null&&(c[g]=a(g,s))}return c},k5}var V5,wb;function mY(){if(wb)return V5;wb=1;const e=h$(),t=vY(),n={},r=Object.keys(e);function a(s){const c=function(...u){const h=u[0];return h==null?h:(h.length>1&&(u=h),s(u))};return"conversion"in s&&(c.conversion=s.conversion),c}function i(s){const c=function(...u){const h=u[0];if(h==null)return h;h.length>1&&(u=h);const v=s(u);if(typeof v=="object")for(let g=v.length,p=0;p<g;p++)v[p]=Math.round(v[p]);return v};return"conversion"in s&&(c.conversion=s.conversion),c}return r.forEach(s=>{n[s]={},Object.defineProperty(n[s],"channels",{value:e[s].channels}),Object.defineProperty(n[s],"labels",{value:e[s].labels});const c=t(s);Object.keys(c).forEach(h=>{const v=c[h];n[s][h]=i(v),n[s][h].raw=a(v)})}),V5=n,V5}var U5,Eb;function gY(){if(Eb)return U5;Eb=1;const e=hY(),t=mY(),n=["keyword","gray","hex"],r={};for(const p of Object.keys(t))r[[...t[p].labels].sort().join("")]=p;const a={};function i(p,b){if(!(this instanceof i))return new i(p,b);if(b&&b in n&&(b=null),b&&!(b in t))throw new Error("Unknown model: "+b);let y,x;if(p==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(p instanceof i)this.model=p.model,this.color=[...p.color],this.valpha=p.valpha;else if(typeof p=="string"){const S=e.get(p);if(S===null)throw new Error("Unable to parse color from string: "+p);this.model=S.model,x=t[this.model].channels,this.color=S.value.slice(0,x),this.valpha=typeof S.value[x]=="number"?S.value[x]:1}else if(p.length>0){this.model=b||"rgb",x=t[this.model].channels;const S=Array.prototype.slice.call(p,0,x);this.color=g(S,x),this.valpha=typeof p[x]=="number"?p[x]:1}else if(typeof p=="number")this.model="rgb",this.color=[p>>16&255,p>>8&255,p&255],this.valpha=1;else{this.valpha=1;const S=Object.keys(p);"alpha"in p&&(S.splice(S.indexOf("alpha"),1),this.valpha=typeof p.alpha=="number"?p.alpha:0);const M=S.sort().join("");if(!(M in r))throw new Error("Unable to parse color from object: "+JSON.stringify(p));this.model=r[M];const{labels:$}=t[this.model],E=[];for(y=0;y<$.length;y++)E.push(p[$[y]]);this.color=g(E)}if(a[this.model])for(x=t[this.model].channels,y=0;y<x;y++){const S=a[this.model][y];S&&(this.color[y]=S(this.color[y]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}i.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(p){let b=this.model in e.to?this:this.rgb();b=b.round(typeof p=="number"?p:1);const y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to[b.model](y)},percentString(p){const b=this.rgb().round(typeof p=="number"?p:1),y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to.rgb.percent(y)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const p={},{channels:b}=t[this.model],{labels:y}=t[this.model];for(let x=0;x<b;x++)p[y[x]]=this.color[x];return this.valpha!==1&&(p.alpha=this.valpha),p},unitArray(){const p=this.rgb().color;return p[0]/=255,p[1]/=255,p[2]/=255,this.valpha!==1&&p.push(this.valpha),p},unitObject(){const p=this.rgb().object();return p.r/=255,p.g/=255,p.b/=255,this.valpha!==1&&(p.alpha=this.valpha),p},round(p){return p=Math.max(p||0,0),new i([...this.color.map(c(p)),this.valpha],this.model)},alpha(p){return p!==void 0?new i([...this.color,Math.max(0,Math.min(1,p))],this.model):this.valpha},red:u("rgb",0,h(255)),green:u("rgb",1,h(255)),blue:u("rgb",2,h(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,p=>(p%360+360)%360),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(p){return p!==void 0?new i(p):t[this.model].keyword(this.color)},hex(p){return p!==void 0?new i(p):e.to.hex(this.rgb().round().color)},hexa(p){if(p!==void 0)return new i(p);const b=this.rgb().round().color;let y=Math.round(this.valpha*255).toString(16).toUpperCase();return y.length===1&&(y="0"+y),e.to.hex(b)+y},rgbNumber(){const p=this.rgb().color;return(p[0]&255)<<16|(p[1]&255)<<8|p[2]&255},luminosity(){const p=this.rgb().color,b=[];for(const[y,x]of p.entries()){const S=x/255;b[y]=S<=.04045?S/12.92:((S+.055)/1.055)**2.4}return .2126*b[0]+.7152*b[1]+.0722*b[2]},contrast(p){const b=this.luminosity(),y=p.luminosity();return b>y?(b+.05)/(y+.05):(y+.05)/(b+.05)},level(p){const b=this.contrast(p);return b>=7?"AAA":b>=4.5?"AA":""},isDark(){const p=this.rgb().color;return(p[0]*2126+p[1]*7152+p[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const p=this.rgb();for(let b=0;b<3;b++)p.color[b]=255-p.color[b];return p},lighten(p){const b=this.hsl();return b.color[2]+=b.color[2]*p,b},darken(p){const b=this.hsl();return b.color[2]-=b.color[2]*p,b},saturate(p){const b=this.hsl();return b.color[1]+=b.color[1]*p,b},desaturate(p){const b=this.hsl();return b.color[1]-=b.color[1]*p,b},whiten(p){const b=this.hwb();return b.color[1]+=b.color[1]*p,b},blacken(p){const b=this.hwb();return b.color[2]+=b.color[2]*p,b},grayscale(){const p=this.rgb().color,b=p[0]*.3+p[1]*.59+p[2]*.11;return i.rgb(b,b,b)},fade(p){return this.alpha(this.valpha-this.valpha*p)},opaquer(p){return this.alpha(this.valpha+this.valpha*p)},rotate(p){const b=this.hsl();let y=b.color[0];return y=(y+p)%360,y=y<0?360+y:y,b.color[0]=y,b},mix(p,b){if(!p||!p.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof p);const y=p.rgb(),x=this.rgb(),S=b===void 0?.5:b,M=2*S-1,$=y.alpha()-x.alpha(),E=((M*$===-1?M:(M+$)/(1+M*$))+1)/2,I=1-E;return i.rgb(E*y.red()+I*x.red(),E*y.green()+I*x.green(),E*y.blue()+I*x.blue(),y.alpha()*S+x.alpha()*(1-S))}};for(const p of Object.keys(t)){if(n.includes(p))continue;const{channels:b}=t[p];i.prototype[p]=function(...y){return this.model===p?new i(this):y.length>0?new i(y,p):new i([...v(t[this.model][p].raw(this.color)),this.valpha],p)},i[p]=function(...y){let x=y[0];return typeof x=="number"&&(x=g(y,b)),new i(x,p)}}function s(p,b){return Number(p.toFixed(b))}function c(p){return function(b){return s(b,p)}}function u(p,b,y){p=Array.isArray(p)?p:[p];for(const x of p)(a[x]||(a[x]=[]))[b]=y;return p=p[0],function(x){let S;return x!==void 0?(y&&(x=y(x)),S=this[p](),S.color[b]=x,S):(S=this[p]().color[b],y&&(S=y(S)),S)}}function h(p){return function(b){return Math.max(0,Math.min(p,b))}}function v(p){return Array.isArray(p)?p:[p]}function g(p,b){for(let y=0;y<b;y++)typeof p[y]!="number"&&(p[y]=0);return p}return U5=i,U5}var pY=gY();const Ob=fo(pY),sl={Success:"success",Info1:"info-1",Info2:"info-2",Info3:"info-3",Error:"error",Empty:"empty"},bY=uY(({css:e},{prefixClsWithoutHash:t,color:n,status:r})=>({dynamicStyles:e`
|
|
382
|
+
*/var fb;function $K(){if(fb)return Mn;fb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,h=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function E(w){if(typeof w=="object"&&w!==null){var O=w.$$typeof;switch(O){case t:switch(w=w.type,w){case u:case h:case r:case i:case a:case g:return w;default:switch(w=w&&w.$$typeof,w){case c:case v:case y:case b:case s:return w;default:return O}}case n:return O}}}function I(w){return E(w)===h}return Mn.AsyncMode=u,Mn.ConcurrentMode=h,Mn.ContextConsumer=c,Mn.ContextProvider=s,Mn.Element=t,Mn.ForwardRef=v,Mn.Fragment=r,Mn.Lazy=y,Mn.Memo=b,Mn.Portal=n,Mn.Profiler=i,Mn.StrictMode=a,Mn.Suspense=g,Mn.isAsyncMode=function(w){return I(w)||E(w)===u},Mn.isConcurrentMode=I,Mn.isContextConsumer=function(w){return E(w)===c},Mn.isContextProvider=function(w){return E(w)===s},Mn.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Mn.isForwardRef=function(w){return E(w)===v},Mn.isFragment=function(w){return E(w)===r},Mn.isLazy=function(w){return E(w)===y},Mn.isMemo=function(w){return E(w)===b},Mn.isPortal=function(w){return E(w)===n},Mn.isProfiler=function(w){return E(w)===i},Mn.isStrictMode=function(w){return E(w)===a},Mn.isSuspense=function(w){return E(w)===g},Mn.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===h||w===i||w===a||w===g||w===p||typeof w=="object"&&w!==null&&(w.$$typeof===y||w.$$typeof===b||w.$$typeof===s||w.$$typeof===c||w.$$typeof===v||w.$$typeof===S||w.$$typeof===M||w.$$typeof===$||w.$$typeof===x)},Mn.typeOf=E,Mn}var hb;function zK(){return hb||(hb=1,_5.exports=$K()),_5.exports}var N5,vb;function wK(){if(vb)return N5;vb=1;var e=zK(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function s(y){return e.isMemo(y)?a:i[y.$$typeof]||t}var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,p=Object.prototype;function b(y,x,S){if(typeof x!="string"){if(p){var M=g(x);M&&M!==p&&b(y,M,S)}var $=u(x);h&&($=$.concat(h(x)));for(var E=s(y),I=s(x),w=0;w<$.length;++w){var O=$[w];if(!n[O]&&!(S&&S[O])&&!(I&&I[O])&&!(E&&E[O])){var T=v(x,O);try{c(y,O,T)}catch{}}}}return y}return N5=b,N5}wK();var EK=function(t){return t()},r$=c1.useInsertionEffect?c1.useInsertionEffect:!1,OK=r$||EK,mb=r$||f.useLayoutEffect,a$=f.createContext(typeof HTMLElement<"u"?JM({key:"css"}):null);a$.Provider;var o$=function(t){return f.forwardRef(function(n,r){var a=f.useContext(a$);return t(n,a,r)})},F2=f.createContext({}),IK=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Le({},t,n)},RK=ab(function(e){return ab(function(t){return IK(e,t)})}),TK=function(t){var n=f.useContext(F2);return t.theme!==n&&(n=RK(n)(t.theme)),f.createElement(F2.Provider,{value:n},t.children)},D7={}.hasOwnProperty,m8="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",PK=function(t,n){var r={};for(var a in n)D7.call(n,a)&&(r[a]=n[a]);return r[m8]=t,r},_K=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return _7(n,r,a),OK(function(){return N7(n,r,a)}),null},NK=o$(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[m8],i=[r],s="";typeof e.className=="string"?s=z6(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var c=xi(i,void 0,f.useContext(F2));s+=t.key+"-"+c.name;var u={};for(var h in e)D7.call(e,h)&&h!=="css"&&h!==m8&&(u[h]=e[h]);return u.className=s,n&&(u.ref=n),f.createElement(f.Fragment,null,f.createElement(_K,{cache:t,serialized:c,isStringTag:typeof a=="string"}),f.createElement(a,u))}),jK=NK,gb=function(t,n){var r=arguments;if(n==null||!D7.call(n,"css"))return f.createElement.apply(void 0,r);var a=r.length,i=new Array(a);i[0]=jK,i[1]=PK(t,n);for(var s=2;s<a;s++)i[s]=r[s];return f.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(gb||(gb={}));var AK=o$(function(e,t){var n=e.styles,r=xi([n],void 0,f.useContext(F2)),a=f.useRef();return mb(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),u!==null&&(c=!0,u.setAttribute("data-emotion",i),s.hydrate([u])),a.current=[s,c],function(){s.flush()}},[t]),mb(function(){var i=a.current,s=i[0],c=i[1];if(c){i[1]=!1;return}if(r.next!==void 0&&N7(t,r.next,!0),s.tags.length){var u=s.tags[s.tags.length-1].nextElementSibling;s.before=u,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null}),DK=function(t){return function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return f.memo(function(i){var s=t();return ve.jsx(AK,{styles:xi(r,void 0,Z(Z({},i),{},{theme:s}))})})}},LK=function(t){return function(n){var r=t(n);return function(a){var i=r(a),s=i.styles;return s}}},BK=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins","linters"],HK=function(t){return f.memo(function(n){var r=n.children,a=n.prefix,i=n.speedy,s=n.getStyleManager,c=n.container,u=n.nonce,h=n.insertionPoint,v=n.stylisPlugins,g=n.linters,p=Et(n,BK),b=f.useContext(t),y=a??b.sheet.key,x=c??b.sheet.container,S=i??b.sheet.isSpeedy,M=f.useMemo(function(){var E=!1,I=j7({speedy:S??E,key:y,container:x,nonce:u,insertionPoint:h,stylisPlugins:v});if(typeof global<"u"){var w=global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__;w&&(I.cache=w.add(I.cache))}return I},[y,S,x,u,h,v]);f.useEffect(function(){s?.(M)},[M]);var $=ve.jsx(t.Provider,{value:M,children:r});return Object.keys(p).length||x?ve.jsx(bI,Z(Z({linters:g,container:x},p),{},{children:$})):$})},FK=function(t){var n=t.css,r=t.token;return{buttonDefaultHover:n({backgroundColor:r.colorBgContainer,border:"1px solid ".concat(r.colorBorder),cursor:"pointer",":hover":{color:r.colorPrimaryHover,borderColor:r.colorPrimaryHover},":active":{color:r.colorPrimaryActive,borderColor:r.colorPrimaryActive}})}},kK=function(t){return Object.fromEntries(Object.entries(t).map(function(n){var r=me(n,2),a=r[0],i=r[1];return[a,i.styles]}))},L7=function(){var t=Pl.useToken(),n=t.token;return n},hl=function(t){return typeof window<"u"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(t,")")):{matches:!1}},j5,i$=f.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:(j5=hl("dark"))!==null&&j5!==void 0&&j5.matches?"dark":"light"}),w6=function(){return f.useContext(i$)},VK=function(){var t=L7(),n=w6(),r=n.appearance,a=n.isDarkMode;return f.useMemo(function(){return kK(FK({token:t,css:ac}))},[t,r,a])},l$=function(){var t=L7(),n=VK();return f.useMemo(function(){return Z(Z({},t),{},{stylish:n})},[t,n])},UK=function(t){return Z(Z({},t),{},{mobile:t.xs,tablet:t.md,laptop:t.lg,desktop:t.xxl})},WK=function(){var t=L7(),n={xs:"@media (max-width: ".concat(t.screenXSMax,"px)"),sm:"@media (max-width: ".concat(t.screenSMMax,"px)"),md:"@media (max-width: ".concat(t.screenMDMax,"px)"),lg:"@media (max-width: ".concat(t.screenLGMax,"px)"),xl:"@media (max-width: ".concat(t.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(t.screenXXLMin,"px)")};return f.useMemo(function(){return UK(n)},[t])},qK=function(t,n){return Object.entries(t).map(function(r){var a=me(r,2),i=a[0],s=a[1],c=s;return A7(s)||(c=ac(s)),n[i]?"".concat(n[i]," {").concat(c.styles,"}"):""}).join("")},GK=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],XK=["prefixCls","iconPrefixCls"],KK=function(t){var n=t.hashPriority,r=t.useTheme,a=t.EmotionContext;return function(i,s){var c=s?.__BABEL_FILE_NAME__,u=!!c;return function(h){var v=r(),g=f.useContext(a),p=g.cache,b=n$(p,{hashPriority:s?.hashPriority||n,label:s?.label}),y=b.cx,x=b.css,S=WK(),M=f.useMemo(function(){var $;if(i instanceof Function){var E=v.stylish,I=v.appearance,w=v.isDarkMode,O=v.prefixCls,T=v.iconPrefixCls,_=Et(v,GK),j=function(H){return qK(H,S)};Object.assign(j,S),$=i({token:_,stylish:E,appearance:I,isDarkMode:w,prefixCls:O,iconPrefixCls:T,cx:y,css:ac,responsive:j},h)}else $=i;return lt($)==="object"&&(A7($)?$=x($):$=Object.fromEntries(Object.entries($).map(function(A){var H=me(A,2),q=H[0],V=H[1],W=u?"".concat(c,"-").concat(q):void 0;return lt(V)==="object"?u?[q,x(V,"label:".concat(W))]:[q,x(V)]:[q,V]}))),$},[h,v]);return f.useMemo(function(){var $=v.prefixCls,E=v.iconPrefixCls,I=Et(v,XK);return{styles:M,cx:y,theme:I,prefixCls:$,iconPrefixCls:E}},[M,v])}}},pb=function(t){if(t.ThemeProvider)return t.ThemeProvider;var n=t.ThemeContext;return function(r){return ve.jsx(n.Provider,{value:r.theme,children:r.children})}},YK=TK,s$=F2,c$=f.memo(function(e){var t=e.children,n=e.theme,r=e.prefixCls,a=e.getStaticInstance,i=e.staticInstanceConfig,s=w6(),c=s.appearance,u=s.isDarkMode,h=jM.useMessage(i?.message),v=me(h,2),g=v[0],p=v[1],b=z7.useNotification(i?.notification),y=me(b,2),x=y[0],S=y[1],M=Xa.useModal(),$=me(M,2),E=$[0],I=$[1];f.useEffect(function(){a?.({message:g,modal:E,notification:x})},[]);var w=f.useMemo(function(){var O=u?Pl.darkAlgorithm:Pl.defaultAlgorithm,T=n;if(typeof n=="function"&&(T=n(c)),!T)return{algorithm:O};var _=T.algorithm?T.algorithm instanceof Array?T.algorithm:[T.algorithm]:[];return Z(Z({},T),{},{algorithm:T.algorithm?[O].concat(De(_)):O})},[n,u]);return ve.jsxs(En,{prefixCls:r,theme:w,children:[p,S,I,t]})});c$.displayName="AntdProvider";function QK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,c=[],u=!0,h=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(v){h=!0,a=v}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(h)throw a}}return c}}function ZK(e,t){return JK(e)||QK(e,t)||eY(e,t)||tY()}function JK(e){if(Array.isArray(e))return e}function eY(e,t){if(e){if(typeof e=="string")return bb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bb(e,t)}}function bb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
383
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yb(e,t){var n=t||{},r=n.defaultValue,a=n.value,i=n.onChange,s=n.postState,c=ae.useState(function(){return a!==void 0?a:r!==void 0?typeof r=="function"?r():r:e}),u=ZK(c,2),h=u[0],v=u[1],g=a!==void 0?a:h;s&&(g=s(g));function p(b){v(b),g!==b&&i&&i(b,g)}return[g,p]}var A5=function(t){typeof f.startTransition=="function"?f.startTransition(t):t()},vi,nY=function(t){var n=t.themeMode,r=t.setAppearance,a=t.setBrowserPrefers,i=function(){A5(function(){hl("dark").matches?r("dark"):r("light")})},s=function(){A5(function(){hl("dark").matches?a("dark"):a("light")})};return f.useLayoutEffect(function(){if(n!=="auto"){A5(function(){r(n)});return}return setTimeout(i,1),vi||(vi=hl("dark")),vi.addEventListener("change",i),function(){vi.removeEventListener("change",i)}},[n]),f.useLayoutEffect(function(){return vi||(vi=hl("dark")),vi.addEventListener("change",s),function(){vi.removeEventListener("change",s)}},[]),null},u$=f.memo(function(e){var t,n=e.children,r=e.appearance,a=e.defaultAppearance,i=e.onAppearanceChange,s=e.themeMode,c=e.defaultThemeMode,u=e.onThemeModeChange,h=e.useTheme,v=h(),g=v.appearance,p=v.themeMode,b=yb("light",{value:s,defaultValue:c??p,onChange:function(A){return u?.(A)}}),y=me(b,2),x=y[0],S=y[1],M=yb("light",{value:r,defaultValue:a??g,onChange:function(A){return i?.(A)}}),$=me(M,2),E=$[0],I=$[1],w=f.useState((t=hl("dark"))!==null&&t!==void 0&&t.matches?"dark":"light"),O=me(w,2),T=O[0],_=O[1];return ve.jsxs(i$.Provider,{value:{themeMode:x,setThemeMode:S,appearance:E,setAppearance:I,isDarkMode:E==="dark",browserPrefers:T},children:[typeof window<"u"&&ve.jsx(nY,{themeMode:x,setAppearance:I,setBrowserPrefers:_}),n]})});u$.displayName="ThemeSwitcher";var rY=["stylish"],aY=function(t){var n=t.children,r=t.customToken,a=t.defaultCustomToken,i=t.customStylish,s=t.prefixCls,c=t.StyledThemeProvider,u=w6(),h=u.appearance,v=u.isDarkMode,g=l$(),p=g.stylish,b=Et(g,rY),y=f.useMemo(function(){return a?a instanceof Function?a({token:b,appearance:h,isDarkMode:v}):a:{}},[a,b,h]),x=f.useMemo(function(){return r instanceof Function?Z(Z({},y),r({token:b,appearance:h,isDarkMode:v})):Z(Z({},y),r)},[y,r,b,h]),S=f.useMemo(function(){return i?i({token:Z(Z({},b),x),stylish:p,appearance:h,isDarkMode:v,css:ac}):{}},[i,b,x,p,h]),M=f.useMemo(function(){return Z(Z({},S),p)},[S,p]),$=Z(Z(Z(Z({},b),x),{},{stylish:M},u),{},{prefixCls:s});return ve.jsx(c,{theme:$,children:n})},oY=function(t){var n=t.styledConfig?pb(t.styledConfig):void 0,r=t.StyleEngineContext;return f.memo(function(a){var i=a.children,s=a.customToken,c=a.customStylish,u=a.theme,h=a.getStaticInstance,v=a.prefixCls,g=a.staticInstanceConfig,p=a.appearance,b=a.defaultAppearance,y=a.onAppearanceChange,x=a.themeMode,S=a.defaultThemeMode,M=a.onThemeModeChange,$=a.styled,E=f.useContext(r),I=E.prefixCls,w=E.StyledThemeContext,O=E.CustomThemeContext,T=f.useContext(O),_=$?pb($):n||YK,j=v||I;return ve.jsx(r.Provider,{value:{prefixCls:j,StyledThemeContext:$?.ThemeContext||w||s$,CustomThemeContext:O},children:ve.jsx(u$,{themeMode:x,defaultThemeMode:S,onThemeModeChange:M,defaultAppearance:b,appearance:p,onAppearanceChange:y,useTheme:t.useTheme,children:ve.jsx(c$,{prefixCls:j,staticInstanceConfig:g,theme:u,getStaticInstance:h,children:ve.jsx(aY,{prefixCls:j,customToken:s,defaultCustomToken:T,customStylish:c,StyledThemeProvider:_,children:i})})})})})},iY=function(t){return function(){var n=t.StyleEngineContext,r=f.useContext(n),a=r.StyledThemeContext,i=r.CustomThemeContext,s=r.prefixCls,c=l$(),u=w6(),h=f.useContext(i),v=f.useContext(a??s$)||{},g=f.useContext(En.ConfigContext),p=g.iconPrefixCls,b=g.getPrefixCls,y=b(),x=s&&s!=="ant"?s:y,S=f.useMemo(function(){return Z(Z(Z(Z({},c),u),h),{},{prefixCls:x,iconPrefixCls:p})},[c,u,h,x,p]);return!v||Object.keys(v).length===0?S:Z(Z({},v),{},{prefixCls:x,iconPrefixCls:p})}},d$=new gK;typeof global<"u"&&(global.__ANTD_STYLE_CACHE_MANAGER_FOR_SSR__=d$);var lY=function(t){var n,r,a,i=Z(Z({},t),{},{key:(n=t.key)!==null&&n!==void 0?n:"zcss",speedy:(r=t.speedy)!==null&&r!==void 0?r:!1}),s=j7({key:i.key,speedy:i.speedy,container:i.container}),c=MK(s),u=HK(c);s.cache=d$.add(s.cache);var h=f.createContext(i.customToken?i.customToken:{}),v=(a=i.styled)===null||a===void 0?void 0:a.ThemeContext,g=f.createContext({CustomThemeContext:h,StyledThemeContext:v,prefixCls:i?.prefixCls,iconPrefixCls:i?.iconPrefixCls}),p=iY({StyleEngineContext:g}),b=KK({hashPriority:i.hashPriority,useTheme:p,EmotionContext:c}),y=DK(p),x=LK(b),S=oY({styledConfig:i.styled,StyleEngineContext:g,useTheme:p});S.displayName="AntdStyleThemeProvider";var M=n$(s.cache,{hashPriority:i.hashPriority}),$=M.cx,E=s.injectGlobal,I=s.keyframes;return{createStyles:b,createGlobalStyle:y,createStylish:x,css:ac,cx:$,keyframes:I,injectGlobal:E,styleManager:s,useTheme:p,StyleProvider:u,ThemeProvider:S}},sY=lY({key:xK,speedy:!1}),cY=sY.createStyles,D5={exports:{}},L5,Sb;function f$(){return Sb||(Sb=1,L5={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),L5}var B5={exports:{}},H5,Cb;function uY(){return Cb||(Cb=1,H5=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),H5}var xb;function dY(){if(xb)return B5.exports;xb=1;var e=uY(),t=Array.prototype.concat,n=Array.prototype.slice,r=B5.exports=function(i){for(var s=[],c=0,u=i.length;c<u;c++){var h=i[c];e(h)?s=t.call(s,n.call(h)):s.push(h)}return s};return r.wrap=function(a){return function(){return a(r(arguments))}},B5.exports}var Mb;function fY(){if(Mb)return D5.exports;Mb=1;var e=f$(),t=dY(),n=Object.hasOwnProperty,r=Object.create(null);for(var a in e)n.call(e,a)&&(r[e[a]]=a);var i=D5.exports={to:{},get:{}};i.get=function(u){var h=u.substring(0,3).toLowerCase(),v,g;switch(h){case"hsl":v=i.get.hsl(u),g="hsl";break;case"hwb":v=i.get.hwb(u),g="hwb";break;default:v=i.get.rgb(u),g="rgb";break}return v?{model:g,value:v}:null},i.get.rgb=function(u){if(!u)return null;var h=/^#([a-f0-9]{3,4})$/i,v=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,g=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,p=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,y=[0,0,0,1],x,S,M;if(x=u.match(v)){for(M=x[2],x=x[1],S=0;S<3;S++){var $=S*2;y[S]=parseInt(x.slice($,$+2),16)}M&&(y[3]=parseInt(M,16)/255)}else if(x=u.match(h)){for(x=x[1],M=x[3],S=0;S<3;S++)y[S]=parseInt(x[S]+x[S],16);M&&(y[3]=parseInt(M+M,16)/255)}else if(x=u.match(g)){for(S=0;S<3;S++)y[S]=parseInt(x[S+1],0);x[4]&&(x[5]?y[3]=parseFloat(x[4])*.01:y[3]=parseFloat(x[4]))}else if(x=u.match(p)){for(S=0;S<3;S++)y[S]=Math.round(parseFloat(x[S+1])*2.55);x[4]&&(x[5]?y[3]=parseFloat(x[4])*.01:y[3]=parseFloat(x[4]))}else return(x=u.match(b))?x[1]==="transparent"?[0,0,0,0]:n.call(e,x[1])?(y=e[x[1]],y[3]=1,y):null:null;for(S=0;S<3;S++)y[S]=s(y[S],0,255);return y[3]=s(y[3],0,1),y},i.get.hsl=function(u){if(!u)return null;var h=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,v=u.match(h);if(v){var g=parseFloat(v[4]),p=(parseFloat(v[1])%360+360)%360,b=s(parseFloat(v[2]),0,100),y=s(parseFloat(v[3]),0,100),x=s(isNaN(g)?1:g,0,1);return[p,b,y,x]}return null},i.get.hwb=function(u){if(!u)return null;var h=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,v=u.match(h);if(v){var g=parseFloat(v[4]),p=(parseFloat(v[1])%360+360)%360,b=s(parseFloat(v[2]),0,100),y=s(parseFloat(v[3]),0,100),x=s(isNaN(g)?1:g,0,1);return[p,b,y,x]}return null},i.to.hex=function(){var u=t(arguments);return"#"+c(u[0])+c(u[1])+c(u[2])+(u[3]<1?c(Math.round(u[3]*255)):"")},i.to.rgb=function(){var u=t(arguments);return u.length<4||u[3]===1?"rgb("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+")":"rgba("+Math.round(u[0])+", "+Math.round(u[1])+", "+Math.round(u[2])+", "+u[3]+")"},i.to.rgb.percent=function(){var u=t(arguments),h=Math.round(u[0]/255*100),v=Math.round(u[1]/255*100),g=Math.round(u[2]/255*100);return u.length<4||u[3]===1?"rgb("+h+"%, "+v+"%, "+g+"%)":"rgba("+h+"%, "+v+"%, "+g+"%, "+u[3]+")"},i.to.hsl=function(){var u=t(arguments);return u.length<4||u[3]===1?"hsl("+u[0]+", "+u[1]+"%, "+u[2]+"%)":"hsla("+u[0]+", "+u[1]+"%, "+u[2]+"%, "+u[3]+")"},i.to.hwb=function(){var u=t(arguments),h="";return u.length>=4&&u[3]!==1&&(h=", "+u[3]),"hwb("+u[0]+", "+u[1]+"%, "+u[2]+"%"+h+")"},i.to.keyword=function(u){return r[u.slice(0,3)]};function s(u,h,v){return Math.min(Math.max(h,u),v)}function c(u){var h=Math.round(u).toString(16).toUpperCase();return h.length<2?"0"+h:h}return D5.exports}var F5,$b;function h$(){if($b)return F5;$b=1;const e=f$(),t={};for(const a of Object.keys(e))t[e[a]]=a;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};F5=n;for(const a of Object.keys(n)){if(!("channels"in n[a]))throw new Error("missing channels property: "+a);if(!("labels"in n[a]))throw new Error("missing channel labels property: "+a);if(n[a].labels.length!==n[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:i,labels:s}=n[a];delete n[a].channels,delete n[a].labels,Object.defineProperty(n[a],"channels",{value:i}),Object.defineProperty(n[a],"labels",{value:s})}n.rgb.hsl=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.min(i,s,c),h=Math.max(i,s,c),v=h-u;let g,p;h===u?g=0:i===h?g=(s-c)/v:s===h?g=2+(c-i)/v:c===h&&(g=4+(i-s)/v),g=Math.min(g*60,360),g<0&&(g+=360);const b=(u+h)/2;return h===u?p=0:b<=.5?p=v/(h+u):p=v/(2-h-u),[g,p*100,b*100]},n.rgb.hsv=function(a){let i,s,c,u,h;const v=a[0]/255,g=a[1]/255,p=a[2]/255,b=Math.max(v,g,p),y=b-Math.min(v,g,p),x=function(S){return(b-S)/6/y+1/2};return y===0?(u=0,h=0):(h=y/b,i=x(v),s=x(g),c=x(p),v===b?u=c-s:g===b?u=1/3+i-c:p===b&&(u=2/3+s-i),u<0?u+=1:u>1&&(u-=1)),[u*360,h*100,b*100]},n.rgb.hwb=function(a){const i=a[0],s=a[1];let c=a[2];const u=n.rgb.hsl(a)[0],h=1/255*Math.min(i,Math.min(s,c));return c=1-1/255*Math.max(i,Math.max(s,c)),[u,h*100,c*100]},n.rgb.cmyk=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.min(1-i,1-s,1-c),h=(1-i-u)/(1-u)||0,v=(1-s-u)/(1-u)||0,g=(1-c-u)/(1-u)||0;return[h*100,v*100,g*100,u*100]};function r(a,i){return(a[0]-i[0])**2+(a[1]-i[1])**2+(a[2]-i[2])**2}return n.rgb.keyword=function(a){const i=t[a];if(i)return i;let s=1/0,c;for(const u of Object.keys(e)){const h=e[u],v=r(a,h);v<s&&(s=v,c=u)}return c},n.keyword.rgb=function(a){return e[a]},n.rgb.xyz=function(a){let i=a[0]/255,s=a[1]/255,c=a[2]/255;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92,s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;const u=i*.4124+s*.3576+c*.1805,h=i*.2126+s*.7152+c*.0722,v=i*.0193+s*.1192+c*.9505;return[u*100,h*100,v*100]},n.rgb.lab=function(a){const i=n.rgb.xyz(a);let s=i[0],c=i[1],u=i[2];s/=95.047,c/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;const h=116*c-16,v=500*(s-c),g=200*(c-u);return[h,v,g]},n.hsl.rgb=function(a){const i=a[0]/360,s=a[1]/100,c=a[2]/100;let u,h,v;if(s===0)return v=c*255,[v,v,v];c<.5?u=c*(1+s):u=c+s-c*s;const g=2*c-u,p=[0,0,0];for(let b=0;b<3;b++)h=i+1/3*-(b-1),h<0&&h++,h>1&&h--,6*h<1?v=g+(u-g)*6*h:2*h<1?v=u:3*h<2?v=g+(u-g)*(2/3-h)*6:v=g,p[b]=v*255;return p},n.hsl.hsv=function(a){const i=a[0];let s=a[1]/100,c=a[2]/100,u=s;const h=Math.max(c,.01);c*=2,s*=c<=1?c:2-c,u*=h<=1?h:2-h;const v=(c+s)/2,g=c===0?2*u/(h+u):2*s/(c+s);return[i,g*100,v*100]},n.hsv.rgb=function(a){const i=a[0]/60,s=a[1]/100;let c=a[2]/100;const u=Math.floor(i)%6,h=i-Math.floor(i),v=255*c*(1-s),g=255*c*(1-s*h),p=255*c*(1-s*(1-h));switch(c*=255,u){case 0:return[c,p,v];case 1:return[g,c,v];case 2:return[v,c,p];case 3:return[v,g,c];case 4:return[p,v,c];case 5:return[c,v,g]}},n.hsv.hsl=function(a){const i=a[0],s=a[1]/100,c=a[2]/100,u=Math.max(c,.01);let h,v;v=(2-s)*c;const g=(2-s)*u;return h=s*u,h/=g<=1?g:2-g,h=h||0,v/=2,[i,h*100,v*100]},n.hwb.rgb=function(a){const i=a[0]/360;let s=a[1]/100,c=a[2]/100;const u=s+c;let h;u>1&&(s/=u,c/=u);const v=Math.floor(6*i),g=1-c;h=6*i-v,(v&1)!==0&&(h=1-h);const p=s+h*(g-s);let b,y,x;switch(v){default:case 6:case 0:b=g,y=p,x=s;break;case 1:b=p,y=g,x=s;break;case 2:b=s,y=g,x=p;break;case 3:b=s,y=p,x=g;break;case 4:b=p,y=s,x=g;break;case 5:b=g,y=s,x=p;break}return[b*255,y*255,x*255]},n.cmyk.rgb=function(a){const i=a[0]/100,s=a[1]/100,c=a[2]/100,u=a[3]/100,h=1-Math.min(1,i*(1-u)+u),v=1-Math.min(1,s*(1-u)+u),g=1-Math.min(1,c*(1-u)+u);return[h*255,v*255,g*255]},n.xyz.rgb=function(a){const i=a[0]/100,s=a[1]/100,c=a[2]/100;let u,h,v;return u=i*3.2406+s*-1.5372+c*-.4986,h=i*-.9689+s*1.8758+c*.0415,v=i*.0557+s*-.204+c*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,v=v>.0031308?1.055*v**(1/2.4)-.055:v*12.92,u=Math.min(Math.max(0,u),1),h=Math.min(Math.max(0,h),1),v=Math.min(Math.max(0,v),1),[u*255,h*255,v*255]},n.xyz.lab=function(a){let i=a[0],s=a[1],c=a[2];i/=95.047,s/=100,c/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;const u=116*s-16,h=500*(i-s),v=200*(s-c);return[u,h,v]},n.lab.xyz=function(a){const i=a[0],s=a[1],c=a[2];let u,h,v;h=(i+16)/116,u=s/500+h,v=h-c/200;const g=h**3,p=u**3,b=v**3;return h=g>.008856?g:(h-16/116)/7.787,u=p>.008856?p:(u-16/116)/7.787,v=b>.008856?b:(v-16/116)/7.787,u*=95.047,h*=100,v*=108.883,[u,h,v]},n.lab.lch=function(a){const i=a[0],s=a[1],c=a[2];let u;u=Math.atan2(c,s)*360/2/Math.PI,u<0&&(u+=360);const v=Math.sqrt(s*s+c*c);return[i,v,u]},n.lch.lab=function(a){const i=a[0],s=a[1],u=a[2]/360*2*Math.PI,h=s*Math.cos(u),v=s*Math.sin(u);return[i,h,v]},n.rgb.ansi16=function(a,i=null){const[s,c,u]=a;let h=i===null?n.rgb.hsv(a)[2]:i;if(h=Math.round(h/50),h===0)return 30;let v=30+(Math.round(u/255)<<2|Math.round(c/255)<<1|Math.round(s/255));return h===2&&(v+=60),v},n.hsv.ansi16=function(a){return n.rgb.ansi16(n.hsv.rgb(a),a[2])},n.rgb.ansi256=function(a){const i=a[0],s=a[1],c=a[2];return i===s&&s===c?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(s/255*5)+Math.round(c/255*5)},n.ansi16.rgb=function(a){let i=a%10;if(i===0||i===7)return a>50&&(i+=3.5),i=i/10.5*255,[i,i,i];const s=(~~(a>50)+1)*.5,c=(i&1)*s*255,u=(i>>1&1)*s*255,h=(i>>2&1)*s*255;return[c,u,h]},n.ansi256.rgb=function(a){if(a>=232){const h=(a-232)*10+8;return[h,h,h]}a-=16;let i;const s=Math.floor(a/36)/5*255,c=Math.floor((i=a%36)/6)/5*255,u=i%6/5*255;return[s,c,u]},n.rgb.hex=function(a){const s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},n.hex.rgb=function(a){const i=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!i)return[0,0,0];let s=i[0];i[0].length===3&&(s=s.split("").map(g=>g+g).join(""));const c=parseInt(s,16),u=c>>16&255,h=c>>8&255,v=c&255;return[u,h,v]},n.rgb.hcg=function(a){const i=a[0]/255,s=a[1]/255,c=a[2]/255,u=Math.max(Math.max(i,s),c),h=Math.min(Math.min(i,s),c),v=u-h;let g,p;return v<1?g=h/(1-v):g=0,v<=0?p=0:u===i?p=(s-c)/v%6:u===s?p=2+(c-i)/v:p=4+(i-s)/v,p/=6,p%=1,[p*360,v*100,g*100]},n.hsl.hcg=function(a){const i=a[1]/100,s=a[2]/100,c=s<.5?2*i*s:2*i*(1-s);let u=0;return c<1&&(u=(s-.5*c)/(1-c)),[a[0],c*100,u*100]},n.hsv.hcg=function(a){const i=a[1]/100,s=a[2]/100,c=i*s;let u=0;return c<1&&(u=(s-c)/(1-c)),[a[0],c*100,u*100]},n.hcg.rgb=function(a){const i=a[0]/360,s=a[1]/100,c=a[2]/100;if(s===0)return[c*255,c*255,c*255];const u=[0,0,0],h=i%1*6,v=h%1,g=1-v;let p=0;switch(Math.floor(h)){case 0:u[0]=1,u[1]=v,u[2]=0;break;case 1:u[0]=g,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=v;break;case 3:u[0]=0,u[1]=g,u[2]=1;break;case 4:u[0]=v,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=g}return p=(1-s)*c,[(s*u[0]+p)*255,(s*u[1]+p)*255,(s*u[2]+p)*255]},n.hcg.hsv=function(a){const i=a[1]/100,s=a[2]/100,c=i+s*(1-i);let u=0;return c>0&&(u=i/c),[a[0],u*100,c*100]},n.hcg.hsl=function(a){const i=a[1]/100,c=a[2]/100*(1-i)+.5*i;let u=0;return c>0&&c<.5?u=i/(2*c):c>=.5&&c<1&&(u=i/(2*(1-c))),[a[0],u*100,c*100]},n.hcg.hwb=function(a){const i=a[1]/100,s=a[2]/100,c=i+s*(1-i);return[a[0],(c-i)*100,(1-c)*100]},n.hwb.hcg=function(a){const i=a[1]/100,c=1-a[2]/100,u=c-i;let h=0;return u<1&&(h=(c-u)/(1-u)),[a[0],u*100,h*100]},n.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},n.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},n.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},n.gray.hsl=function(a){return[0,0,a[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(a){return[0,100,a[0]]},n.gray.cmyk=function(a){return[0,0,0,a[0]]},n.gray.lab=function(a){return[a[0],0,0]},n.gray.hex=function(a){const i=Math.round(a[0]/100*255)&255,c=((i<<16)+(i<<8)+i).toString(16).toUpperCase();return"000000".substring(c.length)+c},n.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]},F5}var k5,zb;function hY(){if(zb)return k5;zb=1;const e=h$();function t(){const i={},s=Object.keys(e);for(let c=s.length,u=0;u<c;u++)i[s[u]]={distance:-1,parent:null};return i}function n(i){const s=t(),c=[i];for(s[i].distance=0;c.length;){const u=c.pop(),h=Object.keys(e[u]);for(let v=h.length,g=0;g<v;g++){const p=h[g],b=s[p];b.distance===-1&&(b.distance=s[u].distance+1,b.parent=u,c.unshift(p))}}return s}function r(i,s){return function(c){return s(i(c))}}function a(i,s){const c=[s[i].parent,i];let u=e[s[i].parent][i],h=s[i].parent;for(;s[h].parent;)c.unshift(s[h].parent),u=r(e[s[h].parent][h],u),h=s[h].parent;return u.conversion=c,u}return k5=function(i){const s=n(i),c={},u=Object.keys(s);for(let h=u.length,v=0;v<h;v++){const g=u[v];s[g].parent!==null&&(c[g]=a(g,s))}return c},k5}var V5,wb;function vY(){if(wb)return V5;wb=1;const e=h$(),t=hY(),n={},r=Object.keys(e);function a(s){const c=function(...u){const h=u[0];return h==null?h:(h.length>1&&(u=h),s(u))};return"conversion"in s&&(c.conversion=s.conversion),c}function i(s){const c=function(...u){const h=u[0];if(h==null)return h;h.length>1&&(u=h);const v=s(u);if(typeof v=="object")for(let g=v.length,p=0;p<g;p++)v[p]=Math.round(v[p]);return v};return"conversion"in s&&(c.conversion=s.conversion),c}return r.forEach(s=>{n[s]={},Object.defineProperty(n[s],"channels",{value:e[s].channels}),Object.defineProperty(n[s],"labels",{value:e[s].labels});const c=t(s);Object.keys(c).forEach(h=>{const v=c[h];n[s][h]=i(v),n[s][h].raw=a(v)})}),V5=n,V5}var U5,Eb;function mY(){if(Eb)return U5;Eb=1;const e=fY(),t=vY(),n=["keyword","gray","hex"],r={};for(const p of Object.keys(t))r[[...t[p].labels].sort().join("")]=p;const a={};function i(p,b){if(!(this instanceof i))return new i(p,b);if(b&&b in n&&(b=null),b&&!(b in t))throw new Error("Unknown model: "+b);let y,x;if(p==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(p instanceof i)this.model=p.model,this.color=[...p.color],this.valpha=p.valpha;else if(typeof p=="string"){const S=e.get(p);if(S===null)throw new Error("Unable to parse color from string: "+p);this.model=S.model,x=t[this.model].channels,this.color=S.value.slice(0,x),this.valpha=typeof S.value[x]=="number"?S.value[x]:1}else if(p.length>0){this.model=b||"rgb",x=t[this.model].channels;const S=Array.prototype.slice.call(p,0,x);this.color=g(S,x),this.valpha=typeof p[x]=="number"?p[x]:1}else if(typeof p=="number")this.model="rgb",this.color=[p>>16&255,p>>8&255,p&255],this.valpha=1;else{this.valpha=1;const S=Object.keys(p);"alpha"in p&&(S.splice(S.indexOf("alpha"),1),this.valpha=typeof p.alpha=="number"?p.alpha:0);const M=S.sort().join("");if(!(M in r))throw new Error("Unable to parse color from object: "+JSON.stringify(p));this.model=r[M];const{labels:$}=t[this.model],E=[];for(y=0;y<$.length;y++)E.push(p[$[y]]);this.color=g(E)}if(a[this.model])for(x=t[this.model].channels,y=0;y<x;y++){const S=a[this.model][y];S&&(this.color[y]=S(this.color[y]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}i.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(p){let b=this.model in e.to?this:this.rgb();b=b.round(typeof p=="number"?p:1);const y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to[b.model](y)},percentString(p){const b=this.rgb().round(typeof p=="number"?p:1),y=b.valpha===1?b.color:[...b.color,this.valpha];return e.to.rgb.percent(y)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const p={},{channels:b}=t[this.model],{labels:y}=t[this.model];for(let x=0;x<b;x++)p[y[x]]=this.color[x];return this.valpha!==1&&(p.alpha=this.valpha),p},unitArray(){const p=this.rgb().color;return p[0]/=255,p[1]/=255,p[2]/=255,this.valpha!==1&&p.push(this.valpha),p},unitObject(){const p=this.rgb().object();return p.r/=255,p.g/=255,p.b/=255,this.valpha!==1&&(p.alpha=this.valpha),p},round(p){return p=Math.max(p||0,0),new i([...this.color.map(c(p)),this.valpha],this.model)},alpha(p){return p!==void 0?new i([...this.color,Math.max(0,Math.min(1,p))],this.model):this.valpha},red:u("rgb",0,h(255)),green:u("rgb",1,h(255)),blue:u("rgb",2,h(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,p=>(p%360+360)%360),saturationl:u("hsl",1,h(100)),lightness:u("hsl",2,h(100)),saturationv:u("hsv",1,h(100)),value:u("hsv",2,h(100)),chroma:u("hcg",1,h(100)),gray:u("hcg",2,h(100)),white:u("hwb",1,h(100)),wblack:u("hwb",2,h(100)),cyan:u("cmyk",0,h(100)),magenta:u("cmyk",1,h(100)),yellow:u("cmyk",2,h(100)),black:u("cmyk",3,h(100)),x:u("xyz",0,h(95.047)),y:u("xyz",1,h(100)),z:u("xyz",2,h(108.833)),l:u("lab",0,h(100)),a:u("lab",1),b:u("lab",2),keyword(p){return p!==void 0?new i(p):t[this.model].keyword(this.color)},hex(p){return p!==void 0?new i(p):e.to.hex(this.rgb().round().color)},hexa(p){if(p!==void 0)return new i(p);const b=this.rgb().round().color;let y=Math.round(this.valpha*255).toString(16).toUpperCase();return y.length===1&&(y="0"+y),e.to.hex(b)+y},rgbNumber(){const p=this.rgb().color;return(p[0]&255)<<16|(p[1]&255)<<8|p[2]&255},luminosity(){const p=this.rgb().color,b=[];for(const[y,x]of p.entries()){const S=x/255;b[y]=S<=.04045?S/12.92:((S+.055)/1.055)**2.4}return .2126*b[0]+.7152*b[1]+.0722*b[2]},contrast(p){const b=this.luminosity(),y=p.luminosity();return b>y?(b+.05)/(y+.05):(y+.05)/(b+.05)},level(p){const b=this.contrast(p);return b>=7?"AAA":b>=4.5?"AA":""},isDark(){const p=this.rgb().color;return(p[0]*2126+p[1]*7152+p[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const p=this.rgb();for(let b=0;b<3;b++)p.color[b]=255-p.color[b];return p},lighten(p){const b=this.hsl();return b.color[2]+=b.color[2]*p,b},darken(p){const b=this.hsl();return b.color[2]-=b.color[2]*p,b},saturate(p){const b=this.hsl();return b.color[1]+=b.color[1]*p,b},desaturate(p){const b=this.hsl();return b.color[1]-=b.color[1]*p,b},whiten(p){const b=this.hwb();return b.color[1]+=b.color[1]*p,b},blacken(p){const b=this.hwb();return b.color[2]+=b.color[2]*p,b},grayscale(){const p=this.rgb().color,b=p[0]*.3+p[1]*.59+p[2]*.11;return i.rgb(b,b,b)},fade(p){return this.alpha(this.valpha-this.valpha*p)},opaquer(p){return this.alpha(this.valpha+this.valpha*p)},rotate(p){const b=this.hsl();let y=b.color[0];return y=(y+p)%360,y=y<0?360+y:y,b.color[0]=y,b},mix(p,b){if(!p||!p.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof p);const y=p.rgb(),x=this.rgb(),S=b===void 0?.5:b,M=2*S-1,$=y.alpha()-x.alpha(),E=((M*$===-1?M:(M+$)/(1+M*$))+1)/2,I=1-E;return i.rgb(E*y.red()+I*x.red(),E*y.green()+I*x.green(),E*y.blue()+I*x.blue(),y.alpha()*S+x.alpha()*(1-S))}};for(const p of Object.keys(t)){if(n.includes(p))continue;const{channels:b}=t[p];i.prototype[p]=function(...y){return this.model===p?new i(this):y.length>0?new i(y,p):new i([...v(t[this.model][p].raw(this.color)),this.valpha],p)},i[p]=function(...y){let x=y[0];return typeof x=="number"&&(x=g(y,b)),new i(x,p)}}function s(p,b){return Number(p.toFixed(b))}function c(p){return function(b){return s(b,p)}}function u(p,b,y){p=Array.isArray(p)?p:[p];for(const x of p)(a[x]||(a[x]=[]))[b]=y;return p=p[0],function(x){let S;return x!==void 0?(y&&(x=y(x)),S=this[p](),S.color[b]=x,S):(S=this[p]().color[b],y&&(S=y(S)),S)}}function h(p){return function(b){return Math.max(0,Math.min(p,b))}}function v(p){return Array.isArray(p)?p:[p]}function g(p,b){for(let y=0;y<b;y++)typeof p[y]!="number"&&(p[y]=0);return p}return U5=i,U5}var gY=mY();const Ob=fo(gY),sl={Success:"success",Info1:"info-1",Info2:"info-2",Info3:"info-3",Error:"error",Empty:"empty"},pY=cY(({css:e},{prefixClsWithoutHash:t,color:n,status:r})=>({dynamicStyles:e`
|
|
384
384
|
${n&&`&${t}-${r} {
|
|
385
385
|
color: ${n};
|
|
386
386
|
background-color: ${Ob(n).lighten(.4).whiten(.4).hsl().toString()};
|
|
387
387
|
border-color: ${Ob(n).lighten(.2).whiten(.2).hsl().toString()};
|
|
388
388
|
}`}
|
|
389
|
-
`})),
|
|
389
|
+
`})),bY=({children:e,status:t,className:n,color:r,...a})=>{const{getPrefixCls:i,theme:s}=f.useContext(En.ConfigContext),{token:c,hashId:u}=Gr(),h=c.Tag,v=Wl(s),g=`.${i()}-tag`,p=br({token:c,path:["Tag"]},()=>({[`:where(.${u})${g}`]:{borderRadius:h.borderRadius,fontSize:h.fontSize,fontWeight:v.typography.fontWeightMedium,paddingLeft:h.paddingLeft,paddingRight:h.paddingRight},[g]:{svg:{fontSize:h.fontSizeClose}},[`${g}-borderless`]:{border:v.border.borderNone},[`${g}-${sl.Success}`]:{color:h.defaultColorSuccess,borderColor:h.defaultBorderColorSuccess,backgroundColor:h.defaultBgSuccess,svg:{color:h.defaultColorSuccess}},[`${g}-${sl.Info1}`]:{color:h.defaultColorWaiting1,borderColor:h.defaultBorderColorWaiting1,backgroundColor:h.defaultBgWaiting1,svg:{color:h.defaultColorWaiting1}},[`${g}-${sl.Info2}`]:{color:h.defaultColorWaiting2,borderColor:h.defaultBorderColorWaiting2,backgroundColor:h.defaultBgWaiting2,svg:{color:h.defaultColorWaiting2}},[`${g}-${sl.Info3}`]:{color:h.defaultColorWaiting3,borderColor:h.defaultBorderColorWaiting3,backgroundColor:h.defaultBgWaiting3,svg:{color:h.defaultColorWaiting3}},[`${g}-${sl.Error}`]:{color:h.defaultColorFailed,borderColor:h.defaultBorderColorFailed,backgroundColor:h.defaultBgFailed,svg:{color:h.defaultColorFailed}},[`${g}-${sl.Empty}`]:{color:h.defaultColorEmpty,borderColor:h.defaultBorderColorEmpty,backgroundColor:h.defaultBgEmpty}})),{styles:b}=pY({prefixClsWithoutHash:g,status:t,color:r});return p(ve.jsx(HM,{className:$X(t&&`${i()}-tag-${t}`,b.dynamicStyles,n),...a,children:e}))};I7.Dragger;(async()=>{try{"createRoot"in await J5(()=>Promise.resolve().then(()=>Sy),void 0)&&await J5(()=>import("./index-C_pjNOx-.js"),[])}catch{}})();/**
|
|
390
390
|
* @remix-run/router v1.23.0
|
|
391
391
|
*
|
|
392
392
|
* Copyright (c) Remix Software Inc.
|
|
@@ -395,7 +395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
395
395
|
* LICENSE.md file in the root directory of this source tree.
|
|
396
396
|
*
|
|
397
397
|
* @license MIT
|
|
398
|
-
*/function k2(){return k2=Object.assign?Object.assign.bind():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},k2.apply(this,arguments)}var Si;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Si||(Si={}));const Ib="popstate";function
|
|
398
|
+
*/function k2(){return k2=Object.assign?Object.assign.bind():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},k2.apply(this,arguments)}var Si;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Si||(Si={}));const Ib="popstate";function yY(e){e===void 0&&(e={});function t(r,a){let{pathname:i,search:s,hash:c}=r.location;return g8("",{pathname:i,search:s,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:m$(a)}return CY(t,n,null,e)}function cr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function v$(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function SY(){return Math.random().toString(36).substr(2,8)}function Rb(e,t){return{usr:e.state,key:e.key,idx:t}}function g8(e,t,n,r){return n===void 0&&(n=null),k2({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Gl(t):t,{state:n,key:t&&t.key||r||SY()})}function m$(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Gl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function CY(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,c=Si.Pop,u=null,h=v();h==null&&(h=0,s.replaceState(k2({},s.state,{idx:h}),""));function v(){return(s.state||{idx:null}).idx}function g(){c=Si.Pop;let S=v(),M=S==null?null:S-h;h=S,u&&u({action:c,location:x.location,delta:M})}function p(S,M){c=Si.Push;let $=g8(x.location,S,M);h=v()+1;let E=Rb($,h),I=x.createHref($);try{s.pushState(E,"",I)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(I)}i&&u&&u({action:c,location:x.location,delta:1})}function b(S,M){c=Si.Replace;let $=g8(x.location,S,M);h=v();let E=Rb($,h),I=x.createHref($);s.replaceState(E,"",I),i&&u&&u({action:c,location:x.location,delta:0})}function y(S){let M=a.location.origin!=="null"?a.location.origin:a.location.href,$=typeof S=="string"?S:m$(S);return $=$.replace(/ $/,"%20"),cr(M,"No window.location.(origin|href) available to create URL for href: "+$),new URL($,M)}let x={get action(){return c},get location(){return e(a,s)},listen(S){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(Ib,g),u=S,()=>{a.removeEventListener(Ib,g),u=null}},createHref(S){return t(a,S)},createURL:y,encodeLocation(S){let M=y(S);return{pathname:M.pathname,search:M.search,hash:M.hash}},push:p,replace:b,go(S){return s.go(S)}};return x}var Tb;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tb||(Tb={}));function xY(e,t,n){return n===void 0&&(n="/"),MY(e,t,n)}function MY(e,t,n,r){let a=typeof t=="string"?Gl(t):t,i=b$(a.pathname||"/",n);if(i==null)return null;let s=g$(e);$Y(s);let c=null;for(let u=0;c==null&&u<s.length;++u){let h=AY(i);c=_Y(s[u],h)}return c}function g$(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(i,s,c)=>{let u={relativePath:c===void 0?i.path||"":c,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};u.relativePath.startsWith("/")&&(cr(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let h=l1([r,u.relativePath]),v=n.concat(u);i.children&&i.children.length>0&&(cr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),g$(i.children,t,v,h)),!(i.path==null&&!i.index)&&t.push({path:h,score:TY(h,i.index),routesMeta:v})};return e.forEach((i,s)=>{var c;if(i.path===""||!((c=i.path)!=null&&c.includes("?")))a(i,s);else for(let u of p$(i.path))a(i,s,u)}),t}function p$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=p$(r.join("/")),c=[];return c.push(...s.map(u=>u===""?i:[i,u].join("/"))),a&&c.push(...s),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function $Y(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:PY(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zY=/^:[\w-]+$/,wY=3,EY=2,OY=1,IY=10,RY=-2,Pb=e=>e==="*";function TY(e,t){let n=e.split("/"),r=n.length;return n.some(Pb)&&(r+=RY),t&&(r+=EY),n.filter(a=>!Pb(a)).reduce((a,i)=>a+(zY.test(i)?wY:i===""?OY:IY),r)}function PY(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function _Y(e,t,n){let{routesMeta:r}=e,a={},i="/",s=[];for(let c=0;c<r.length;++c){let u=r[c],h=c===r.length-1,v=i==="/"?t:t.slice(i.length)||"/",g=NY({path:u.relativePath,caseSensitive:u.caseSensitive,end:h},v),p=u.route;if(!g)return null;Object.assign(a,g.params),s.push({params:a,pathname:l1([i,g.pathname]),pathnameBase:kY(l1([i,g.pathnameBase])),route:p}),g.pathnameBase!=="/"&&(i=l1([i,g.pathnameBase]))}return s}function NY(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=jY(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((h,v,g)=>{let{paramName:p,isOptional:b}=v;if(p==="*"){let x=c[g]||"";s=i.slice(0,i.length-x.length).replace(/(.)\/+$/,"$1")}const y=c[g];return b&&!y?h[p]=void 0:h[p]=(y||"").replace(/%2F/g,"/"),h},{}),pathname:i,pathnameBase:s,pattern:e}}function jY(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),v$(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,u)=>(r.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function AY(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return v$(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function b$(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function DY(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Gl(e):e;return{pathname:n?n.startsWith("/")?n:LY(n,t):t,search:VY(r),hash:UY(a)}}function LY(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function W5(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function BY(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function HY(e,t){let n=BY(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function FY(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Gl(e):(a=k2({},e),cr(!a.pathname||!a.pathname.includes("?"),W5("?","pathname","search",a)),cr(!a.pathname||!a.pathname.includes("#"),W5("#","pathname","hash",a)),cr(!a.search||!a.search.includes("#"),W5("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,c;if(s==null)c=n;else{let g=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),g-=1;a.pathname=p.join("/")}c=g>=0?t[g]:"/"}let u=DY(a,c),h=s&&s!=="/"&&s.endsWith("/"),v=(i||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(h||v)&&(u.pathname+="/"),u}const l1=e=>e.join("/").replace(/\/\/+/g,"/"),kY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),VY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,UY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function WY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const y$=["post","put","patch","delete"];new Set(y$);const qY=["get",...y$];new Set(qY);/**
|
|
399
399
|
* React Router v6.30.1
|
|
400
400
|
*
|
|
401
401
|
* Copyright (c) Remix Software Inc.
|
|
@@ -404,7 +404,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
404
404
|
* LICENSE.md file in the root directory of this source tree.
|
|
405
405
|
*
|
|
406
406
|
* @license MIT
|
|
407
|
-
*/function V2(){return V2=Object.assign?Object.assign.bind():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},V2.apply(this,arguments)}const B7=f.createContext(null),
|
|
407
|
+
*/function V2(){return V2=Object.assign?Object.assign.bind():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},V2.apply(this,arguments)}const B7=f.createContext(null),GY=f.createContext(null),E6=f.createContext(null),O6=f.createContext(null),Xl=f.createContext({outlet:null,matches:[],isDataRoute:!1}),S$=f.createContext(null);function I6(){return f.useContext(O6)!=null}function oc(){return I6()||cr(!1),f.useContext(O6).location}function C$(e){f.useContext(E6).static||f.useLayoutEffect(e)}function R6(){let{isDataRoute:e}=f.useContext(Xl);return e?iQ():XY()}function XY(){I6()||cr(!1);let e=f.useContext(B7),{basename:t,future:n,navigator:r}=f.useContext(E6),{matches:a}=f.useContext(Xl),{pathname:i}=oc(),s=JSON.stringify(HY(a,n.v7_relativeSplatPath)),c=f.useRef(!1);return C$(()=>{c.current=!0}),f.useCallback(function(h,v){if(v===void 0&&(v={}),!c.current)return;if(typeof h=="number"){r.go(h);return}let g=FY(h,JSON.parse(s),i,v.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:l1([t,g.pathname])),(v.replace?r.replace:r.push)(g,v.state,v)},[t,r,s,i,e])}function KY(e,t){return YY(e,t)}function YY(e,t,n,r){I6()||cr(!1);let{navigator:a}=f.useContext(E6),{matches:i}=f.useContext(Xl),s=i[i.length-1],c=s?s.params:{};s&&s.pathname;let u=s?s.pathnameBase:"/";s&&s.route;let h=oc(),v;if(t){var g;let S=typeof t=="string"?Gl(t):t;u==="/"||(g=S.pathname)!=null&&g.startsWith(u)||cr(!1),v=S}else v=h;let p=v.pathname||"/",b=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");b="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=xY(e,{pathname:b}),x=tQ(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},c,S.params),pathname:l1([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:l1([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,n,r);return t&&x?f.createElement(O6.Provider,{value:{location:V2({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:Si.Pop}},x):x}function QY(){let e=oQ(),t=WY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:a},n):null,null)}const ZY=f.createElement(QY,null);class JY extends f.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?f.createElement(Xl.Provider,{value:this.props.routeContext},f.createElement(S$.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eQ(e){let{routeContext:t,match:n,children:r}=e,a=f.useContext(B7);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),f.createElement(Xl.Provider,{value:t},r)}function tQ(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let v=s.findIndex(g=>g.route.id&&c?.[g.route.id]!==void 0);v>=0||cr(!1),s=s.slice(0,Math.min(s.length,v+1))}let u=!1,h=-1;if(n&&r&&r.v7_partialHydration)for(let v=0;v<s.length;v++){let g=s[v];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=v),g.route.id){let{loaderData:p,errors:b}=n,y=g.route.loader&&p[g.route.id]===void 0&&(!b||b[g.route.id]===void 0);if(g.route.lazy||y){u=!0,h>=0?s=s.slice(0,h+1):s=[s[0]];break}}}return s.reduceRight((v,g,p)=>{let b,y=!1,x=null,S=null;n&&(b=c&&g.route.id?c[g.route.id]:void 0,x=g.route.errorElement||ZY,u&&(h<0&&p===0?(lQ("route-fallback"),y=!0,S=null):h===p&&(y=!0,S=g.route.hydrateFallbackElement||null)));let M=t.concat(s.slice(0,p+1)),$=()=>{let E;return b?E=x:y?E=S:g.route.Component?E=f.createElement(g.route.Component,null):g.route.element?E=g.route.element:E=v,f.createElement(eQ,{match:g,routeContext:{outlet:v,matches:M,isDataRoute:n!=null},children:E})};return n&&(g.route.ErrorBoundary||g.route.errorElement||p===0)?f.createElement(JY,{location:n.location,revalidation:n.revalidation,component:x,error:b,children:$(),routeContext:{outlet:null,matches:M,isDataRoute:!0}}):$()},null)}var x$=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(x$||{}),M$=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(M$||{});function nQ(e){let t=f.useContext(B7);return t||cr(!1),t}function rQ(e){let t=f.useContext(GY);return t||cr(!1),t}function aQ(e){let t=f.useContext(Xl);return t||cr(!1),t}function $$(e){let t=aQ(),n=t.matches[t.matches.length-1];return n.route.id||cr(!1),n.route.id}function oQ(){var e;let t=f.useContext(S$),n=rQ(),r=$$();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function iQ(){let{router:e}=nQ(x$.UseNavigateStable),t=$$(M$.UseNavigateStable),n=f.useRef(!1);return C$(()=>{n.current=!0}),f.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,V2({fromRouteId:t},i)))},[e,t])}const _b={};function lQ(e,t,n){_b[e]||(_b[e]=!0)}function sQ(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function cl(e){cr(!1)}function cQ(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Si.Pop,navigator:i,static:s=!1,future:c}=e;I6()&&cr(!1);let u=t.replace(/^\/*/,"/"),h=f.useMemo(()=>({basename:u,navigator:i,static:s,future:V2({v7_relativeSplatPath:!1},c)}),[u,c,i,s]);typeof r=="string"&&(r=Gl(r));let{pathname:v="/",search:g="",hash:p="",state:b=null,key:y="default"}=r,x=f.useMemo(()=>{let S=b$(v,u);return S==null?null:{location:{pathname:S,search:g,hash:p,state:b,key:y},navigationType:a}},[u,v,g,p,b,y,a]);return x==null?null:f.createElement(E6.Provider,{value:h},f.createElement(O6.Provider,{children:n,value:x}))}function uQ(e){let{children:t,location:n}=e;return KY(p8(t),n)}new Promise(()=>{});function p8(e,t){t===void 0&&(t=[]);let n=[];return f.Children.forEach(e,(r,a)=>{if(!f.isValidElement(r))return;let i=[...t,a];if(r.type===f.Fragment){n.push.apply(n,p8(r.props.children,i));return}r.type!==cl&&cr(!1),!r.props.index||!r.props.children||cr(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=p8(r.props.children,i)),n.push(s)}),n}/**
|
|
408
408
|
* React Router DOM v6.30.1
|
|
409
409
|
*
|
|
410
410
|
* Copyright (c) Remix Software Inc.
|
|
@@ -413,8 +413,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
413
413
|
* LICENSE.md file in the root directory of this source tree.
|
|
414
414
|
*
|
|
415
415
|
* @license MIT
|
|
416
|
-
*/function b8(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function fQ(e,t){let n=b8(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const hQ="6";try{window.__reactRouterVersion=hQ}catch{}const vQ="startTransition",Nb=c1[vQ];function mQ(e){let{basename:t,children:n,future:r,window:a}=e,i=f.useRef();i.current==null&&(i.current=SY({window:a,v5Compat:!0}));let s=i.current,[c,u]=f.useState({action:s.action,location:s.location}),{v7_startTransition:h}=r||{},v=f.useCallback(g=>{h&&Nb?Nb(()=>u(g)):u(g)},[u,h]);return f.useLayoutEffect(()=>s.listen(v),[s,v]),f.useEffect(()=>cQ(r),[r]),f.createElement(uQ,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:s,future:r})}var jb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jb||(jb={}));var Ab;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ab||(Ab={}));function gQ(e){let t=f.useRef(b8(e)),n=f.useRef(!1),r=oc(),a=f.useMemo(()=>fQ(r.search,n.current?null:t.current),[r.search]),i=R6(),s=f.useCallback((c,u)=>{const h=b8(typeof c=="function"?c(a):c);n.current=!0,i("?"+h,u)},[i,a]);return[a,s]}const pQ="c",$n={SET_APP_ID:"SET_APP_ID",SET_CONFIG:"SET_CONFIG",SET_DATA:"SET_DATA",SET_MODAL_CONTEXT:"SET_MODAL_CONTEXT",SET_HEIGHT:"SET_HEIGHT",SET_PARAMS:"SET_PARAMS",INVOKE_ACTION:"INVOKE_ACTION",INVOKE_DEFAULT_ACTION:"INVOKE_DEFAULT_ACTION",NAVIGATE:"NAVIGATE",NAVIGATE_CHILD:"NAVIGATE_CHILD",ACTION_CONFIRMED:"ACTION_CONFIRMED",ACTION_CANCELED:"ACTION_CANCELED",LOCALE_CHANGED:"LOCALE_CHANGED",CLOSE_RICH_MODAL_REQUEST:"CLOSE_RICH_MODAL_REQUEST"},Ea={showConfirmationDialog:"showConfirmationDialog",showModalDialog:"showModalDialog",showToast:"showToast",showErrorMessage:"showErrorMessage",showRichModal:"showRichModal",removeSearchParams:"removeSearchParams",setSearchParams:"setSearchParams"},bQ=async e=>{const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(e))),n=[],r=new DataView(t);for(let a=0;a<r.byteLength;a+=4)n.push(("00000000"+r.getUint32(a).toString(16)).slice(-8));return n.join("")},Db=async e=>(await bQ(e)).slice(0,7),yQ=({basePath:e,channel:t})=>`${e||"/"}${t?`-${t}`:""}`;var Qi={},Zi={},Lb;function SQ(){if(Lb)return Zi;Lb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.detach=Zi.attach=void 0;var e=go(),t=!1;function n(){t||typeof window>"u"||(t=!0,window.addEventListener("message",e.onMessage,!1))}Zi.attach=n;function r(){t=!1,window.removeEventListener("message",e.onMessage,!1)}return Zi.detach=r,Zi}var Qs={},Bb;function CQ(){if(Bb)return Qs;Bb=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.broadcastToChildWindows=void 0;var e=go();function t(n,r,a){for(var i=e.childWindows.length-1;i>=0;i--){var s=e.childWindows[i];s.closed?e.childWindows.splice(i,1):a!==s&&(0,e.broadcast)(n,{origin:r,frame:s.top})}}return Qs.broadcastToChildWindows=t,Qs}var Zs={},Hb;function xQ(){if(Hb)return Zs;Hb=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.broadcast=void 0;var e=go();function t(n,r){var a=0,i,s=r.origin,c=r.frame;try{for(c.postMessage(n,s),(0,e.hasOpener)(c)&&c.opener.top!==window.top&&t(n,{origin:s,frame:c.opener.top});i=c.frames[a];)t(n,{origin:s,frame:i}),a++}catch{}}return Zs.broadcast=t,Zs}var _o={},Fb;function MQ(){return Fb||(Fb=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.subscribers=_o.childWindows=_o.prefix=void 0,_o.prefix="/*framebus*/",_o.childWindows=[],_o.subscribers={}),_o}var Js={},kb;function $Q(){if(kb)return Js;kb=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.dispatch=void 0;var e=go();function t(n,r,a,i,s){if(e.subscribers[n]&&e.subscribers[n][r]){var c=[];a&&c.push(a),i&&c.push(i);for(var u=0;u<e.subscribers[n][r].length;u++)e.subscribers[n][r][u].apply(s,c)}}return Js.dispatch=t,Js}var e2={},Vb;function zQ(){if(Vb)return e2;Vb=1,Object.defineProperty(e2,"__esModule",{value:!0}),e2.hasOpener=void 0;function e(t){return!(t.top!==t||t.opener==null||t.opener===t||t.opener.closed===!0)}return e2.hasOpener=e,e2}var t2={},Ub;function wQ(){if(Ub)return t2;Ub=1,Object.defineProperty(t2,"__esModule",{value:!0}),t2.isntString=void 0;function e(t){return typeof t!="string"}return t2.isntString=e,t2}var n2={},Wb;function EQ(){if(Wb)return n2;Wb=1,Object.defineProperty(n2,"__esModule",{value:!0}),n2.onMessage=void 0;var e=go();function t(n){if(!(0,e.isntString)(n.data)){var r=(0,e.unpackPayload)(n);if(r){var a=r.eventData,i=r.reply;(0,e.dispatch)("*",r.event,a,i,n),(0,e.dispatch)(n.origin,r.event,a,i,n),(0,e.broadcastToChildWindows)(n.data,r.origin,n.source)}}}return n2.onMessage=t,n2}var r2={},qb;function OQ(){if(qb)return r2;qb=1,Object.defineProperty(r2,"__esModule",{value:!0}),r2.packagePayload=void 0;var e=go();function t(n,r,a,i){var s,c={event:n,origin:r};typeof i=="function"&&(c.reply=(0,e.subscribeReplier)(i,r)),c.eventData=a;try{s=e.prefix+JSON.stringify(c)}catch(u){throw new Error("Could not stringify event: ".concat(u.message))}return s}return r2.packagePayload=t,r2}var a2={},Gb;function IQ(){if(Gb)return a2;Gb=1,Object.defineProperty(a2,"__esModule",{value:!0}),a2.sendMessage=void 0;function e(t,n,r){try{t.postMessage(n,r)}catch{}}return a2.sendMessage=e,a2}var Ji={},o2={},Xb;function z$(){if(Xb)return o2;Xb=1,Object.defineProperty(o2,"__esModule",{value:!0}),o2.Framebus=void 0;var e=go(),t=typeof window<"u"&&window.Promise,n=(function(){function r(a){a===void 0&&(a={}),this.origin=a.origin||"*",this.channel=a.channel||"",this.verifyDomain=a.verifyDomain,this.targetFrames=a.targetFrames||[],this.limitBroadcastToFramesArray=!!a.targetFrames,this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=!!(this.verifyDomain||this.limitBroadcastToFramesArray)}return r.setPromise=function(a){r.Promise=a},r.target=function(a){return new r(a)},r.prototype.addTargetFrame=function(a){this.limitBroadcastToFramesArray&&this.targetFrames.push(a)},r.prototype.include=function(a){return a==null||a.Window==null||a.constructor!==a.Window?!1:(e.childWindows.push(a),!0)},r.prototype.target=function(a){return r.target(a)},r.prototype.emit=function(a,i,s){if(this.isDestroyed)return!1;var c=this.origin;if(a=this.namespaceEvent(a),(0,e.isntString)(a)||(0,e.isntString)(c))return!1;typeof i=="function"&&(s=i,i=void 0);var u=(0,e.packagePayload)(a,c,i,s);return u?(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(h){(0,e.sendMessage)(h,u,c)}):(0,e.broadcast)(u,{origin:c,frame:window.top||window.self}),!0):!1},r.prototype.emitAsPromise=function(a,i){var s=this;return new r.Promise(function(c,u){var h=s.emit(a,i,function(v){c(v)});h||u(new Error('Listener not added for "'.concat(a,'"')))})},r.prototype.on=function(a,i){if(this.isDestroyed)return!1;var s=this,c=this.origin,u=i;return a=this.namespaceEvent(a),(0,e.subscriptionArgsInvalid)(a,u,c)?!1:(this.hasAdditionalChecksForOnListeners&&(u=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];s.passesVerifyDomainCheck(this&&this.origin)&&s.hasMatchingTargetFrame(this&&this.source)&&i.apply(void 0,h)}),this.listeners.push({eventName:a,handler:u,originalHandler:i}),e.subscribers[c]=e.subscribers[c]||{},e.subscribers[c][a]=e.subscribers[c][a]||[],e.subscribers[c][a].push(u),!0)},r.prototype.off=function(a,i){var s=i;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var c=0;c<this.listeners.length;c++){var u=this.listeners[c];u.originalHandler===i&&(s=u.handler)}a=this.namespaceEvent(a);var h=this.origin;if((0,e.subscriptionArgsInvalid)(a,s,h))return!1;var v=e.subscribers[h]&&e.subscribers[h][a];if(!v)return!1;for(var c=0;c<v.length;c++)if(v[c]===s)return v.splice(c,1),!0;return!1},r.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var a=0;a<this.listeners.length;a++){var i=this.listeners[a];this.off(i.eventName,i.handler)}this.listeners.length=0}},r.prototype.passesVerifyDomainCheck=function(a){return this.verifyDomain?this.checkOrigin(a):!0},r.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(a){return a instanceof HTMLIFrameElement?a.contentWindow:a}).filter(function(a){return a}):[]},r.prototype.hasMatchingTargetFrame=function(a){if(!this.limitBroadcastToFramesArray)return!0;var i=this.targetFramesAsWindows().find(function(s){return s===a});return!!i},r.prototype.checkOrigin=function(a){var i,s=document.createElement("a");s.href=location.href,s.protocol==="https:"?i=s.host.replace(/:443$/,""):s.protocol==="http:"?i=s.host.replace(/:80$/,""):i=s.host;var c=s.protocol+"//"+i;return c===a?!0:this.verifyDomain?this.verifyDomain(a):!0},r.prototype.namespaceEvent=function(a){return this.channel?"".concat(this.channel,":").concat(a):a},r.Promise=t,r})();return o2.Framebus=n,o2}var q5,Kb;function RQ(){if(Kb)return q5;Kb=1;function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=Math.random()*16|0,r=t==="x"?n:n&3|8;return r.toString(16)})}return q5=e,q5}var Yb;function TQ(){if(Yb)return Ji;Yb=1;var e=Ji&&Ji.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.subscribeReplier=void 0;var t=z$(),n=e(RQ());function r(a,i){var s=(0,n.default)();function c(u,h){a(u,h),t.Framebus.target({origin:i}).off(s,c)}return t.Framebus.target({origin:i}).on(s,c),s}return Ji.subscribeReplier=r,Ji}var i2={},Qb;function PQ(){if(Qb)return i2;Qb=1,Object.defineProperty(i2,"__esModule",{value:!0}),i2.subscriptionArgsInvalid=void 0;var e=go();function t(n,r,a){return(0,e.isntString)(n)||typeof r!="function"?!0:(0,e.isntString)(a)}return i2.subscriptionArgsInvalid=t,i2}var G5={},Zb;function _Q(){return Zb||(Zb=1,Object.defineProperty(G5,"__esModule",{value:!0})),G5}var l2={},Jb;function NQ(){if(Jb)return l2;Jb=1,Object.defineProperty(l2,"__esModule",{value:!0}),l2.unpackPayload=void 0;var e=go();function t(n){var r;if(n.data.slice(0,e.prefix.length)!==e.prefix)return!1;try{r=JSON.parse(n.data.slice(e.prefix.length))}catch{return!1}if(r.reply){var a=n.origin,i=n.source,s=r.reply;r.reply=function(u){if(i){var h=(0,e.packagePayload)(s,a,u);h&&i.postMessage(h,a)}}}return r}return l2.unpackPayload=t,l2}var ey;function go(){return ey||(ey=1,(function(e){var t=Qi&&Qi.__createBinding||(Object.create?(function(r,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,c)}):(function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]})),n=Qi&&Qi.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(SQ(),e),n(CQ(),e),n(xQ(),e),n(MQ(),e),n($Q(),e),n(zQ(),e),n(wQ(),e),n(EQ(),e),n(OQ(),e),n(IQ(),e),n(TQ(),e),n(PQ(),e),n(_Q(),e),n(NQ(),e)})(Qi)),Qi}var X5,ty;function jQ(){if(ty)return X5;ty=1;var e=go(),t=z$();return(0,e.attach)(),X5=t.Framebus,X5}var AQ=jQ();const K5=fo(AQ),E3=(e,t,n)=>{const r=document.createElement("iframe");return r.id=e,r.src=`${t}${n??""}`,r.style.display="none",document.body.appendChild(r),r},w$={apps:[],configs:new Map,navigate:()=>{},updateLocale:()=>{},instances:new Map},E$=f.createContext(w$),b1=()=>f.useContext(E$),DQ=({children:e,apps:t,actions:n,data:r,navigation:a})=>{const[i,s]=f.useState({...w$}),c=new K5,u=f.useRef(new Map),h=f.useRef(new Map),v=(y,x,S,M,$,E)=>{const I=new URL(x).searchParams.get(pQ)??void 0,w=new K5({origin:x,targetFrames:[S],channel:yQ({basePath:E,channel:I})});w.on($n.SET_CONFIG,T=>{const{config:_}=T;s(j=>({...j,configs:new Map(j.configs.set(y,_)),instances:new Map(j.instances).set(y,{id:y,basePath:E||"",config:_,iframe:S,bus:w})})),w.emit($n.SET_DATA,r),w.emit($n.SET_APP_ID,{appId:y}),typeof $<"u"&&w.emit($n.SET_MODAL_CONTEXT,$)});const O=new K5({origin:x,targetFrames:[S]});O.on($n.SET_CONFIG,T=>{w.teardown(),h.current.set(y,O);const{config:_}=T;s(j=>({...j,configs:new Map(j.configs.set(y,_)),instances:new Map(j.instances).set(y,{id:y,basePath:E||"",config:_,iframe:S,bus:O})})),O.emit($n.SET_DATA,r),O.emit($n.SET_APP_ID,{appId:y}),typeof $<"u"&&O.emit($n.SET_MODAL_CONTEXT,$),O.on($n.INVOKE_ACTION,(j,A)=>{const{actionKey:H,args:q}=j;if(n&&n.actions[H])try{Promise.resolve(n.actions[H](...q)).then(V=>A({success:!0,result:V})).catch(V=>{const W=V instanceof Error?V.message:"An error occurred";A({success:!1,error:W})})}catch(V){const W=V instanceof Error?V.message:"An error occurred";A({success:!1,error:W})}else A({success:!1,error:"Action not found"})}),O.on($n.INVOKE_DEFAULT_ACTION,(j,A)=>{if(!n)return;const{actionKey:H,args:q}=j,{showConfirmationDialog:V,showErrorMessage:W,showModalDialog:G,showToast:N,showRichModal:k}=n;if(H===Ea.showConfirmationDialog){try{const[U,D]=[...q],R=V?.(U,D,B=>O.emit($n.ACTION_CONFIRMED,{data:B}),()=>O.emit($n.ACTION_CANCELED));A?.({success:!0,result:R})}catch(U){const D=U instanceof Error?U.message:"An error occurred";A?.({success:!1,error:D})}return}if(H===Ea.showErrorMessage){const[U,D]=[...q];try{const R=W?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showModalDialog){const[U,D]=[...q];try{const R=G?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showToast){const[U,D]=[...q];try{const R=N?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showRichModal){const[U,D,R,B]=[...q],L=window.crypto.randomUUID();try{const P=k?.(L,U,D,R,B);A?.({success:!0,result:P});const X=`app-shell-iframe-modal-${L}`,Y=E3(X,x);u.current.set(L,Y),v(L,x,Y,y,D),s(Q=>({...Q,frames:u,modals:Q.modals?Q.modals.set(L,y):new Map([[L,y]]),modalContext:Q.modalContext?Q.modalContext.set(L,D):new Map([[L,D]])}))}catch(P){const X=P instanceof Error?P.message:"An error occurred";A?.({success:!1,error:X})}return}}),O.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{M&&n?.closeRichModal?.(y)}),O.on($n.NAVIGATE,j=>{const{navigate:A}=a,{path:H,external:q}=j;A&&(M&&n?.closeRichModal?.(y),A({id:M||y,path:H,external:q}))}),console.group(`[AKINON - UI Protocol] Deprecated channel usage detected for extension id "${y}"`),console.warn("Please upgrade to the latest version of @akinon/app-client package."),console.error("This method of communication will be removed in future releases."),console.groupEnd()}),O.on($n.SET_HEIGHT,T=>{const{height:_,id:j}=T,A=document.getElementById(j);A&&(A.style.height=`${_}px`)}),w.on($n.SET_HEIGHT,T=>{const{height:_,id:j}=T,A=document.getElementById(j);A&&(A.style.height=`${_}px`)}),w.on($n.INVOKE_ACTION,(T,_)=>{const{actionKey:j,args:A}=T;if(n&&n.actions[j])try{Promise.resolve(n.actions[j](...A)).then(H=>_({success:!0,result:H})).catch(H=>{const q=H instanceof Error?H.message:"An error occurred";_({success:!1,error:q})})}catch(H){const q=H instanceof Error?H.message:"An error occurred";_({success:!1,error:q})}else _({success:!1,error:"Action not found"})}),w.on($n.INVOKE_DEFAULT_ACTION,(T,_)=>{if(!n)return;const{actionKey:j,args:A}=T,{showConfirmationDialog:H,showErrorMessage:q,showModalDialog:V,showToast:W,showRichModal:G,removeSearchParams:N,setSearchParams:k}=n;if(j===Ea.showConfirmationDialog){try{const[U,D]=[...A],R=H?.(U,D,B=>w.emit($n.ACTION_CONFIRMED,{data:B}),()=>w.emit($n.ACTION_CANCELED));_?.({success:!0,result:R})}catch(U){const D=U instanceof Error?U.message:"An error occurred";_?.({success:!1,error:D})}return}if(j===Ea.showErrorMessage){const[U,D]=[...A];try{const R=q?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showModalDialog){const[U,D]=[...A];try{const R=V?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showToast){const[U,D]=[...A];try{const R=W?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showRichModal){const[U,D,R,B]=[...A],L=window.crypto.randomUUID();try{const P=G?.(L,U,D,R,B);_?.({success:!0,result:P});const X=`app-shell-iframe-modal-${L}`,Y=E3(X,x);u.current.set(L,Y),v(L,x,Y,y,D,E),s(Q=>({...Q,frames:u,modals:Q.modals?Q.modals.set(L,y):new Map([[L,y]]),modalContext:Q.modalContext?Q.modalContext.set(L,D):new Map([[L,D]])}))}catch(P){const X=P instanceof Error?P.message:"An error occurred";_?.({success:!1,error:X})}return}if(j===Ea.removeSearchParams){const[U]=[...A];try{const D=N?.(U);_?.({success:!0,result:D})}catch(D){const R=D instanceof Error?D.message:"An error occurred";_?.({success:!1,error:R})}return}if(j===Ea.setSearchParams){const[U]=[...A];try{const D=k?.(U);_?.({success:!0,result:D})}catch(D){const R=D instanceof Error?D.message:"An error occurred";_?.({success:!1,error:R})}return}}),w.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{M&&n?.closeRichModal?.(y)}),w.on($n.NAVIGATE,T=>{const{navigate:_}=a,{path:j,external:A}=T;if(_){M&&n?.closeRichModal?.(y);const H=E&&!A&&!j.startsWith(E)?`${E}${j}`:j;_({id:M||y,path:H,external:A})}}),h.current.set(y,w),s(T=>({...T,buses:h,confirmAction:_=>{h.current.get(y)?.emit($n.ACTION_CONFIRMED,{data:_})},cancelAction:()=>{h.current.get(y)?.emit($n.ACTION_CANCELED)}}))};f.useEffect(()=>(t.filter(S=>S.type==="full_page").forEach(S=>{const M=`app-shell-iframe-fullpage-${S.id}`,$=E3(M,S.url),E=S.subSlug??new URL(S.url).pathname;u.current.set(S.id,$),s(I=>({...I,frames:u})),v(S.id,S.url,$,void 0,void 0,E)}),t.filter(S=>S.type==="plugin").forEach(S=>{const M=`app-shell-iframe-plugin-${S.id}`,$=E3(M,S.url,S.subSlug),E=S.subSlug??new URL(S.url).pathname;u.current.set(S.id,$),s(I=>({...I,frames:u})),v(S.id,S.url,$,void 0,void 0,E)}),()=>{h.current.forEach(S=>S.teardown()),u.current.forEach(S=>S.remove()),s(S=>({...S,instances:new Map}))}),[t?.length]),f.useEffect(()=>{s(y=>({...y,data:r})),r&&h.current&&h.current.forEach(y=>{y.emit($n.SET_DATA,r)})},[r]);const g=f.useCallback(({path:y,id:x})=>{x?h.current.get(x)?.emit($n.NAVIGATE_CHILD,{path:y}):c.emit($n.NAVIGATE_CHILD,{path:y})},[]),p=f.useCallback(y=>{h.current.forEach(x=>{x.emit($n.LOCALE_CHANGED,{locale:y})})},[]),b=f.useMemo(()=>({...i,apps:t,navigate:g,updateLocale:p}),[i,t]);return ve.jsx(E$.Provider,{value:b,children:e})},LQ=({id:e,path:t})=>{const n=`app-shell-fullpage-container-${e}`,{frames:r,navigate:a}=b1();return f.useEffect(()=>{if(r?.current.has(e)){const i=r.current.get(e),s=document.getElementById(n),c=new URL(i.src).origin;t?i.src=`${c}${t}`:i.src=c;const u={display:"block",width:"100%",height:"100%",border:"none"};Object.assign(i.style,u),s&&(s.innerHTML="",s.appendChild(i))}},[e,r?.current.has(e)]),f.useEffect(()=>{t&&a({path:t,id:e})},[t]),ve.jsx("div",{id:n,className:"app-shell-fullpage-container"})},BQ=({placeholderId:e,params:t})=>{const{apps:n,configs:r,frames:a,buses:i}=b1(),s=Math.random().toString(16).slice(2),c=Array.from(r.keys()).filter(b=>{const y=r.get(b);return typeof y.placeholderId=="string"?y?.placeholderId===e:y?.placeholderId?.includes(e)}),u=n.filter(b=>c.includes(b.id)),h=u[0];if(!h)return null;u.length>1&&console.warn(`PluginRenderer: Found multiple plugins with placeholderId: ${e}`);const v=`app-shell-plugin-container-${s}`,g=`app-shell-plugin-iframe-${s}`,p=i?.current.get(h.id);return f.useEffect(()=>{(async()=>{const y=a?.current.get(h.id);if(y){const x=document.getElementById(v),S=document.createElement("iframe");if(S.id=g,S.name=g,t){const $=await Db(t);S.src=`${y.src}?c=${$}`}else S.src=y.src;const M={background:"transparent",display:"block",width:"100%",border:"none"};Object.assign(S.style,M),x&&x.appendChild(S),S.onload=async()=>{if(p?.addTargetFrame(S),t){const $=await Db(t);p?.target({channel:$}).emit($n.SET_PARAMS,t)}}}})()},[e,a]),f.useEffect(()=>{(async()=>{if(t){const x=document.querySelector(`#${v} iframe`)?.src.split("?")[1]?.split("=")[1];p?.target({channel:x}).emit($n.SET_PARAMS,t)}})()},[t]),ve.jsx("div",{id:v,className:"app-shell-plugin-container"})},HQ={en:{locale:"en",isoLocale:"en-us",name:"English"},tr:{locale:"tr",isoLocale:"tr-tr",name:"Türkçe"}},FQ=({currentLocale:e,locales:t,onLocaleChange:n})=>{const r=i=>()=>{n(i)},a=f.useMemo(()=>Object.keys(t).map(i=>({key:`locale-${i}`,label:t[i].name,onClick:r(i)})),[t]);return ve.jsx("div",{className:"header-locale",children:ve.jsx(fX,{menu:{items:a},trigger:["click"],placement:"bottomRight",arrow:!0,children:ve.jsx(d8,{type:"text",className:"flex items-center",children:t[e]?.name??e})})})},kQ=()=>"1.6.6",VQ=({onToggleLeftSider:e,onToggleRightSider:t})=>{const{i18n:n}=N0(),{updateLocale:r}=b1(),[,a]=TX(cy,null,{raw:!0}),i=s=>{n.changeLanguage(s),oy.setLocale(s),a(s),r(s)};return f.useEffect(()=>{r(n.language)},[r,n.language]),ve.jsxs(ve.Fragment,{children:[ve.jsx("div",{className:"flex items-center",children:ve.jsx(d8,{type:"text",icon:"outdent",iconSize:16,onClick:e,className:"mr-2"})}),ve.jsx("div",{children:ve.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ve.jsx("span",{style:{width:"10px",height:"10px",backgroundColor:"green",borderRadius:"50%"}}),ve.jsxs("span",{style:{fontSize:"14px",color:"#999"},children:["Akinon UI Shell (v",kQ(),")"]})]})}),ve.jsxs("div",{className:"flex items-center",children:[ve.jsx(FQ,{currentLocale:n.language,locales:HQ,onLocaleChange:i}),ve.jsx(d8,{type:"text",icon:"siralama",iconSize:16,onClick:t,className:"mr-2"})]})]})};function ny(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e[t]=="string")return e[t];const n=e;if(n){if(typeof n.en=="string")return n.en;if(typeof n.tr=="string")return n.tr}return""}function UQ(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const WQ=e=>[{key:"/",label:e("navbar.dashboard"),icon:"dashboard"},{key:"/products-and-catalogs",label:e("navbar.products_and_catalogs"),icon:"fiyatlistesi",disabled:!0},{key:"/orders",label:e("navbar.orders"),icon:"siparis",disabled:!0}],qQ=e=>[{key:"/placeholder-2",label:e("navbar.help_and_support"),icon:"bilgilendirme_servis",disabled:!0},{key:"/placeholder-1",label:e("navbar.settings"),icon:"ayarlar",disabled:!0}],GQ=(e,t)=>e.filter(n=>n.type==="full_page").map(n=>{const a=t.get(n.id)?.menu?.map(i=>{const{child:s,path:c,label:u}=i||{};if(s||!c)return!1;const h=UQ(c);return{key:`/external/${n.slug}${h}`,label:ny(u,"en")||void 0,icon:"eksi"}}).filter(Boolean);return{key:`/external/${n.slug}`,label:ny(n.name,"en")||n.name,icon:"stoklistesi",children:a}}),XQ=(e,t)=>e.some(r=>r.type==="plugin")?[{key:"/plugin-test",label:t("navbar.plugin_test"),icon:"box"}]:[],KQ=()=>{const{apps:e,configs:t}=b1(),{t:n}=N0(),r=oc(),a=R6(),[i,s]=f.useState("/"),[c,u]=f.useState([]),h=WQ(n),v=qQ(n),g=GQ(e,t),p=XQ(e,n),b=f.useMemo(()=>[...h,...g,...p,...v],[h,g,p,v]),{allItemKeys:y,childToParentKey:x}=f.useMemo(()=>{function E(O){if(!O)return[];const T=[];return O.forEach(_=>{"key"in _&&_.key&&T.push(_.key),"children"in _&&_.children&&_.children.forEach(j=>{"key"in j&&j.key&&T.push(j.key)})}),T}const I=E(b),w=new Map;return g.forEach(O=>{"children"in O&&O.children&&O.children.forEach(T=>{"key"in T&&T.key&&"key"in O&&O.key&&w.set(T.key,O.key)})}),{allItemKeys:I,childToParentKey:w}},[b,g]),S=f.useMemo(()=>{const E=new Set;return g.forEach(I=>{"key"in I&&I.key&&"children"in I&&Array.isArray(I.children)&&I.children.length>0&&E.add(I.key)}),E},[g]);f.useEffect(()=>{const E=r.pathname,I=y.filter(O=>typeof O=="string"&&E.startsWith(O)).sort((O,T)=>T.length-O.length)[0];I&&s(I);const w=I?x.get(I):void 0;w?u([w]):g.some(O=>{const T="key"in O&&O.key===I,_="children"in O&&Array.isArray(O.children)&&O.children.length>0;return T&&_})&&u([I])},[r,y,x,g]);const M=E=>{const I=E.key;if(S.has(I)){u(O=>O.includes(I)?[]:[I]),s(I);return}const w=x.get(I);w&&u([w]),I.includes("external")||u([]),a(I)},$=E=>{if(E.length===0){u([]);return}u([E[E.length-1]])};return ve.jsx("div",{children:ve.jsx(IX,{mode:"inline",selectedKeys:[i],items:b,onClick:M,triggerSubMenuAction:"click",theme:"dark",openKeys:c,onOpenChange:$})})},YQ=({children:e})=>{const[t,n]=f.useState(!1),[r,a]=f.useState(!0),i=()=>n(!t),s=()=>a(!r);return ve.jsxs(ll,{children:[ve.jsx(ll.Sider,{collapsed:t,brandImageUrl:"/logo.png",iconUrl:"/symbol.png",children:ve.jsx(KQ,{})}),ve.jsxs(ll,{children:[ve.jsx(ll.Header,{children:ve.jsx(VQ,{onToggleLeftSider:i,onToggleRightSider:s})}),ve.jsx(ll.Content,{children:e})]}),ve.jsx(ll.Sider,{collapsed:r,collapsedWidth:0,position:"right",children:ve.jsxs(f8,{className:"log-messages",children:[ve.jsxs("div",{className:"log-messages-item",children:[ve.jsx($3,{type:"success",children:"Development server running"}),ve.jsx($3,{children:new Date().toLocaleTimeString()})]}),ve.jsxs("div",{className:"log-messages-item",children:[ve.jsx($3,{children:"Shell environment active"}),ve.jsx($3,{children:"Ready for testing"})]})]})})]})},QQ=({config:e,children:t})=>{const[n,r]=z7.useNotification(),[a]=gQ(),i=R6(),{i18n:s}=N0(),c=e.apps.map((b,y)=>({id:y+1,url:b.url,slug:b.name.toLowerCase().replace(/\s+/g,"-"),path:"",type:b.type,name:b.navTitle||b.name})),u={navigate:({id:b,path:y,external:x})=>{const S=c.find($=>$.id===b);if(!S)return;const M=x?y:`/external/${S.slug}${y||""}`;i(M)}},h={lng:s.language,username:"Developer",searchParams:Object.fromEntries([...a]),...e.data||{}},p={...{showModalDialog:()=>{},showToast:(b,y)=>{y==="loading"||y==="destroy"||n[y]({message:b,placement:"top"})},showErrorMessage:(b,y)=>{n.error({message:b,description:y,placement:"top"})},showRichModal:()=>{}},actions:{...{reloadPage:()=>window.location.reload(),logMessage:b=>{try{const y=JSON.parse(localStorage.getItem("logMessages")||"[]");localStorage.setItem("logMessages",JSON.stringify([...y,b]))}catch{console.error("Failed to log message")}}}}};return ve.jsxs(DQ,{apps:c,navigation:u,data:h,actions:p,children:[t,r]})},O$=({children:e})=>ve.jsx("div",{className:"px-8 py-8",children:e}),ZQ=({title:e,description:t,actions:n,className:r})=>ve.jsxs(xX,{justify:"space-between",align:"flex-start",className:r,style:{padding:"18px 30px",borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ve.jsxs(f8,{direction:"vertical",size:4,children:[ve.jsx(iX,{level:4,style:{margin:0},children:e}),t&&ve.jsx(oX,{type:"secondary",children:t})]}),n&&ve.jsx(f8,{children:n})]}),JQ=({data:e})=>{const t={...e};return delete t.lng,delete t.username,delete t.searchParams,ve.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Object.keys(t).length>0?JSON.stringify(t,null,2):`// No custom data configured in shell.config.js
|
|
417
|
-
// Add data to the "data" field to share it with your application`})},
|
|
416
|
+
*/function b8(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function dQ(e,t){let n=b8(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}const fQ="6";try{window.__reactRouterVersion=fQ}catch{}const hQ="startTransition",Nb=c1[hQ];function vQ(e){let{basename:t,children:n,future:r,window:a}=e,i=f.useRef();i.current==null&&(i.current=yY({window:a,v5Compat:!0}));let s=i.current,[c,u]=f.useState({action:s.action,location:s.location}),{v7_startTransition:h}=r||{},v=f.useCallback(g=>{h&&Nb?Nb(()=>u(g)):u(g)},[u,h]);return f.useLayoutEffect(()=>s.listen(v),[s,v]),f.useEffect(()=>sQ(r),[r]),f.createElement(cQ,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:s,future:r})}var jb;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jb||(jb={}));var Ab;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ab||(Ab={}));function mQ(e){let t=f.useRef(b8(e)),n=f.useRef(!1),r=oc(),a=f.useMemo(()=>dQ(r.search,n.current?null:t.current),[r.search]),i=R6(),s=f.useCallback((c,u)=>{const h=b8(typeof c=="function"?c(a):c);n.current=!0,i("?"+h,u)},[i,a]);return[a,s]}const gQ="c",$n={SET_APP_ID:"SET_APP_ID",SET_CONFIG:"SET_CONFIG",SET_DATA:"SET_DATA",SET_MODAL_CONTEXT:"SET_MODAL_CONTEXT",SET_HEIGHT:"SET_HEIGHT",SET_PARAMS:"SET_PARAMS",INVOKE_ACTION:"INVOKE_ACTION",INVOKE_DEFAULT_ACTION:"INVOKE_DEFAULT_ACTION",NAVIGATE:"NAVIGATE",NAVIGATE_CHILD:"NAVIGATE_CHILD",ACTION_CONFIRMED:"ACTION_CONFIRMED",ACTION_CANCELED:"ACTION_CANCELED",LOCALE_CHANGED:"LOCALE_CHANGED",CLOSE_RICH_MODAL_REQUEST:"CLOSE_RICH_MODAL_REQUEST"},Ea={showConfirmationDialog:"showConfirmationDialog",showModalDialog:"showModalDialog",showToast:"showToast",showErrorMessage:"showErrorMessage",showRichModal:"showRichModal",removeSearchParams:"removeSearchParams",setSearchParams:"setSearchParams"},pQ=async e=>{const t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(JSON.stringify(e))),n=[],r=new DataView(t);for(let a=0;a<r.byteLength;a+=4)n.push(("00000000"+r.getUint32(a).toString(16)).slice(-8));return n.join("")},Db=async e=>(await pQ(e)).slice(0,7),bQ=({basePath:e,channel:t})=>`${e||"/"}${t?`-${t}`:""}`;var Qi={},Zi={},Lb;function yQ(){if(Lb)return Zi;Lb=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.detach=Zi.attach=void 0;var e=go(),t=!1;function n(){t||typeof window>"u"||(t=!0,window.addEventListener("message",e.onMessage,!1))}Zi.attach=n;function r(){t=!1,window.removeEventListener("message",e.onMessage,!1)}return Zi.detach=r,Zi}var Qs={},Bb;function SQ(){if(Bb)return Qs;Bb=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.broadcastToChildWindows=void 0;var e=go();function t(n,r,a){for(var i=e.childWindows.length-1;i>=0;i--){var s=e.childWindows[i];s.closed?e.childWindows.splice(i,1):a!==s&&(0,e.broadcast)(n,{origin:r,frame:s.top})}}return Qs.broadcastToChildWindows=t,Qs}var Zs={},Hb;function CQ(){if(Hb)return Zs;Hb=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.broadcast=void 0;var e=go();function t(n,r){var a=0,i,s=r.origin,c=r.frame;try{for(c.postMessage(n,s),(0,e.hasOpener)(c)&&c.opener.top!==window.top&&t(n,{origin:s,frame:c.opener.top});i=c.frames[a];)t(n,{origin:s,frame:i}),a++}catch{}}return Zs.broadcast=t,Zs}var _o={},Fb;function xQ(){return Fb||(Fb=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.subscribers=_o.childWindows=_o.prefix=void 0,_o.prefix="/*framebus*/",_o.childWindows=[],_o.subscribers={}),_o}var Js={},kb;function MQ(){if(kb)return Js;kb=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.dispatch=void 0;var e=go();function t(n,r,a,i,s){if(e.subscribers[n]&&e.subscribers[n][r]){var c=[];a&&c.push(a),i&&c.push(i);for(var u=0;u<e.subscribers[n][r].length;u++)e.subscribers[n][r][u].apply(s,c)}}return Js.dispatch=t,Js}var e2={},Vb;function $Q(){if(Vb)return e2;Vb=1,Object.defineProperty(e2,"__esModule",{value:!0}),e2.hasOpener=void 0;function e(t){return!(t.top!==t||t.opener==null||t.opener===t||t.opener.closed===!0)}return e2.hasOpener=e,e2}var t2={},Ub;function zQ(){if(Ub)return t2;Ub=1,Object.defineProperty(t2,"__esModule",{value:!0}),t2.isntString=void 0;function e(t){return typeof t!="string"}return t2.isntString=e,t2}var n2={},Wb;function wQ(){if(Wb)return n2;Wb=1,Object.defineProperty(n2,"__esModule",{value:!0}),n2.onMessage=void 0;var e=go();function t(n){if(!(0,e.isntString)(n.data)){var r=(0,e.unpackPayload)(n);if(r){var a=r.eventData,i=r.reply;(0,e.dispatch)("*",r.event,a,i,n),(0,e.dispatch)(n.origin,r.event,a,i,n),(0,e.broadcastToChildWindows)(n.data,r.origin,n.source)}}}return n2.onMessage=t,n2}var r2={},qb;function EQ(){if(qb)return r2;qb=1,Object.defineProperty(r2,"__esModule",{value:!0}),r2.packagePayload=void 0;var e=go();function t(n,r,a,i){var s,c={event:n,origin:r};typeof i=="function"&&(c.reply=(0,e.subscribeReplier)(i,r)),c.eventData=a;try{s=e.prefix+JSON.stringify(c)}catch(u){throw new Error("Could not stringify event: ".concat(u.message))}return s}return r2.packagePayload=t,r2}var a2={},Gb;function OQ(){if(Gb)return a2;Gb=1,Object.defineProperty(a2,"__esModule",{value:!0}),a2.sendMessage=void 0;function e(t,n,r){try{t.postMessage(n,r)}catch{}}return a2.sendMessage=e,a2}var Ji={},o2={},Xb;function z$(){if(Xb)return o2;Xb=1,Object.defineProperty(o2,"__esModule",{value:!0}),o2.Framebus=void 0;var e=go(),t=typeof window<"u"&&window.Promise,n=(function(){function r(a){a===void 0&&(a={}),this.origin=a.origin||"*",this.channel=a.channel||"",this.verifyDomain=a.verifyDomain,this.targetFrames=a.targetFrames||[],this.limitBroadcastToFramesArray=!!a.targetFrames,this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=!!(this.verifyDomain||this.limitBroadcastToFramesArray)}return r.setPromise=function(a){r.Promise=a},r.target=function(a){return new r(a)},r.prototype.addTargetFrame=function(a){this.limitBroadcastToFramesArray&&this.targetFrames.push(a)},r.prototype.include=function(a){return a==null||a.Window==null||a.constructor!==a.Window?!1:(e.childWindows.push(a),!0)},r.prototype.target=function(a){return r.target(a)},r.prototype.emit=function(a,i,s){if(this.isDestroyed)return!1;var c=this.origin;if(a=this.namespaceEvent(a),(0,e.isntString)(a)||(0,e.isntString)(c))return!1;typeof i=="function"&&(s=i,i=void 0);var u=(0,e.packagePayload)(a,c,i,s);return u?(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(h){(0,e.sendMessage)(h,u,c)}):(0,e.broadcast)(u,{origin:c,frame:window.top||window.self}),!0):!1},r.prototype.emitAsPromise=function(a,i){var s=this;return new r.Promise(function(c,u){var h=s.emit(a,i,function(v){c(v)});h||u(new Error('Listener not added for "'.concat(a,'"')))})},r.prototype.on=function(a,i){if(this.isDestroyed)return!1;var s=this,c=this.origin,u=i;return a=this.namespaceEvent(a),(0,e.subscriptionArgsInvalid)(a,u,c)?!1:(this.hasAdditionalChecksForOnListeners&&(u=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];s.passesVerifyDomainCheck(this&&this.origin)&&s.hasMatchingTargetFrame(this&&this.source)&&i.apply(void 0,h)}),this.listeners.push({eventName:a,handler:u,originalHandler:i}),e.subscribers[c]=e.subscribers[c]||{},e.subscribers[c][a]=e.subscribers[c][a]||[],e.subscribers[c][a].push(u),!0)},r.prototype.off=function(a,i){var s=i;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var c=0;c<this.listeners.length;c++){var u=this.listeners[c];u.originalHandler===i&&(s=u.handler)}a=this.namespaceEvent(a);var h=this.origin;if((0,e.subscriptionArgsInvalid)(a,s,h))return!1;var v=e.subscribers[h]&&e.subscribers[h][a];if(!v)return!1;for(var c=0;c<v.length;c++)if(v[c]===s)return v.splice(c,1),!0;return!1},r.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var a=0;a<this.listeners.length;a++){var i=this.listeners[a];this.off(i.eventName,i.handler)}this.listeners.length=0}},r.prototype.passesVerifyDomainCheck=function(a){return this.verifyDomain?this.checkOrigin(a):!0},r.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(a){return a instanceof HTMLIFrameElement?a.contentWindow:a}).filter(function(a){return a}):[]},r.prototype.hasMatchingTargetFrame=function(a){if(!this.limitBroadcastToFramesArray)return!0;var i=this.targetFramesAsWindows().find(function(s){return s===a});return!!i},r.prototype.checkOrigin=function(a){var i,s=document.createElement("a");s.href=location.href,s.protocol==="https:"?i=s.host.replace(/:443$/,""):s.protocol==="http:"?i=s.host.replace(/:80$/,""):i=s.host;var c=s.protocol+"//"+i;return c===a?!0:this.verifyDomain?this.verifyDomain(a):!0},r.prototype.namespaceEvent=function(a){return this.channel?"".concat(this.channel,":").concat(a):a},r.Promise=t,r})();return o2.Framebus=n,o2}var q5,Kb;function IQ(){if(Kb)return q5;Kb=1;function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=Math.random()*16|0,r=t==="x"?n:n&3|8;return r.toString(16)})}return q5=e,q5}var Yb;function RQ(){if(Yb)return Ji;Yb=1;var e=Ji&&Ji.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.subscribeReplier=void 0;var t=z$(),n=e(IQ());function r(a,i){var s=(0,n.default)();function c(u,h){a(u,h),t.Framebus.target({origin:i}).off(s,c)}return t.Framebus.target({origin:i}).on(s,c),s}return Ji.subscribeReplier=r,Ji}var i2={},Qb;function TQ(){if(Qb)return i2;Qb=1,Object.defineProperty(i2,"__esModule",{value:!0}),i2.subscriptionArgsInvalid=void 0;var e=go();function t(n,r,a){return(0,e.isntString)(n)||typeof r!="function"?!0:(0,e.isntString)(a)}return i2.subscriptionArgsInvalid=t,i2}var G5={},Zb;function PQ(){return Zb||(Zb=1,Object.defineProperty(G5,"__esModule",{value:!0})),G5}var l2={},Jb;function _Q(){if(Jb)return l2;Jb=1,Object.defineProperty(l2,"__esModule",{value:!0}),l2.unpackPayload=void 0;var e=go();function t(n){var r;if(n.data.slice(0,e.prefix.length)!==e.prefix)return!1;try{r=JSON.parse(n.data.slice(e.prefix.length))}catch{return!1}if(r.reply){var a=n.origin,i=n.source,s=r.reply;r.reply=function(u){if(i){var h=(0,e.packagePayload)(s,a,u);h&&i.postMessage(h,a)}}}return r}return l2.unpackPayload=t,l2}var ey;function go(){return ey||(ey=1,(function(e){var t=Qi&&Qi.__createBinding||(Object.create?(function(r,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,c)}):(function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]})),n=Qi&&Qi.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(yQ(),e),n(SQ(),e),n(CQ(),e),n(xQ(),e),n(MQ(),e),n($Q(),e),n(zQ(),e),n(wQ(),e),n(EQ(),e),n(OQ(),e),n(RQ(),e),n(TQ(),e),n(PQ(),e),n(_Q(),e)})(Qi)),Qi}var X5,ty;function NQ(){if(ty)return X5;ty=1;var e=go(),t=z$();return(0,e.attach)(),X5=t.Framebus,X5}var jQ=NQ();const K5=fo(jQ),E3=(e,t,n)=>{const r=document.createElement("iframe");return r.id=e,r.src=`${t}${n??""}`,r.style.display="none",document.body.appendChild(r),r},w$={apps:[],configs:new Map,navigate:()=>{},updateLocale:()=>{},instances:new Map},E$=f.createContext(w$),b1=()=>f.useContext(E$),AQ=({children:e,apps:t,actions:n,data:r,navigation:a})=>{const[i,s]=f.useState({...w$}),c=new K5,u=f.useRef(new Map),h=f.useRef(new Map),v=(y,x,S,M,$,E)=>{const I=new URL(x).searchParams.get(gQ)??void 0,w=new K5({origin:x,targetFrames:[S],channel:bQ({basePath:E,channel:I})});w.on($n.SET_CONFIG,T=>{const{config:_}=T;s(j=>({...j,configs:new Map(j.configs.set(y,_)),instances:new Map(j.instances).set(y,{id:y,basePath:E||"",config:_,iframe:S,bus:w})})),w.emit($n.SET_DATA,r),w.emit($n.SET_APP_ID,{appId:y}),typeof $<"u"&&w.emit($n.SET_MODAL_CONTEXT,$)});const O=new K5({origin:x,targetFrames:[S]});O.on($n.SET_CONFIG,T=>{w.teardown(),h.current.set(y,O);const{config:_}=T;s(j=>({...j,configs:new Map(j.configs.set(y,_)),instances:new Map(j.instances).set(y,{id:y,basePath:E||"",config:_,iframe:S,bus:O})})),O.emit($n.SET_DATA,r),O.emit($n.SET_APP_ID,{appId:y}),typeof $<"u"&&O.emit($n.SET_MODAL_CONTEXT,$),O.on($n.INVOKE_ACTION,(j,A)=>{const{actionKey:H,args:q}=j;if(n&&n.actions[H])try{Promise.resolve(n.actions[H](...q)).then(V=>A({success:!0,result:V})).catch(V=>{const W=V instanceof Error?V.message:"An error occurred";A({success:!1,error:W})})}catch(V){const W=V instanceof Error?V.message:"An error occurred";A({success:!1,error:W})}else A({success:!1,error:"Action not found"})}),O.on($n.INVOKE_DEFAULT_ACTION,(j,A)=>{if(!n)return;const{actionKey:H,args:q}=j,{showConfirmationDialog:V,showErrorMessage:W,showModalDialog:G,showToast:N,showRichModal:k}=n;if(H===Ea.showConfirmationDialog){try{const[U,D]=[...q],R=V?.(U,D,B=>O.emit($n.ACTION_CONFIRMED,{data:B}),()=>O.emit($n.ACTION_CANCELED));A?.({success:!0,result:R})}catch(U){const D=U instanceof Error?U.message:"An error occurred";A?.({success:!1,error:D})}return}if(H===Ea.showErrorMessage){const[U,D]=[...q];try{const R=W?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showModalDialog){const[U,D]=[...q];try{const R=G?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showToast){const[U,D]=[...q];try{const R=N?.(U,D);A?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";A?.({success:!1,error:B})}return}if(H===Ea.showRichModal){const[U,D,R,B]=[...q],L=window.crypto.randomUUID();try{const P=k?.(L,U,D,R,B);A?.({success:!0,result:P});const X=`app-shell-iframe-modal-${L}`,Y=E3(X,x);u.current.set(L,Y),v(L,x,Y,y,D),s(Q=>({...Q,frames:u,modals:Q.modals?Q.modals.set(L,y):new Map([[L,y]]),modalContext:Q.modalContext?Q.modalContext.set(L,D):new Map([[L,D]])}))}catch(P){const X=P instanceof Error?P.message:"An error occurred";A?.({success:!1,error:X})}return}}),O.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{M&&n?.closeRichModal?.(y)}),O.on($n.NAVIGATE,j=>{const{navigate:A}=a,{path:H,external:q}=j;A&&(M&&n?.closeRichModal?.(y),A({id:M||y,path:H,external:q}))}),console.group(`[AKINON - UI Protocol] Deprecated channel usage detected for extension id "${y}"`),console.warn("Please upgrade to the latest version of @akinon/app-client package."),console.error("This method of communication will be removed in future releases."),console.groupEnd()}),O.on($n.SET_HEIGHT,T=>{const{height:_,id:j}=T,A=document.getElementById(j);A&&(A.style.height=`${_}px`)}),w.on($n.SET_HEIGHT,T=>{const{height:_,id:j}=T,A=document.getElementById(j);A&&(A.style.height=`${_}px`)}),w.on($n.INVOKE_ACTION,(T,_)=>{const{actionKey:j,args:A}=T;if(n&&n.actions[j])try{Promise.resolve(n.actions[j](...A)).then(H=>_({success:!0,result:H})).catch(H=>{const q=H instanceof Error?H.message:"An error occurred";_({success:!1,error:q})})}catch(H){const q=H instanceof Error?H.message:"An error occurred";_({success:!1,error:q})}else _({success:!1,error:"Action not found"})}),w.on($n.INVOKE_DEFAULT_ACTION,(T,_)=>{if(!n)return;const{actionKey:j,args:A}=T,{showConfirmationDialog:H,showErrorMessage:q,showModalDialog:V,showToast:W,showRichModal:G,removeSearchParams:N,setSearchParams:k}=n;if(j===Ea.showConfirmationDialog){try{const[U,D]=[...A],R=H?.(U,D,B=>w.emit($n.ACTION_CONFIRMED,{data:B}),()=>w.emit($n.ACTION_CANCELED));_?.({success:!0,result:R})}catch(U){const D=U instanceof Error?U.message:"An error occurred";_?.({success:!1,error:D})}return}if(j===Ea.showErrorMessage){const[U,D]=[...A];try{const R=q?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showModalDialog){const[U,D]=[...A];try{const R=V?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showToast){const[U,D]=[...A];try{const R=W?.(U,D);_?.({success:!0,result:R})}catch(R){const B=R instanceof Error?R.message:"An error occurred";_?.({success:!1,error:B})}return}if(j===Ea.showRichModal){const[U,D,R,B]=[...A],L=window.crypto.randomUUID();try{const P=G?.(L,U,D,R,B);_?.({success:!0,result:P});const X=`app-shell-iframe-modal-${L}`,Y=E3(X,x);u.current.set(L,Y),v(L,x,Y,y,D,E),s(Q=>({...Q,frames:u,modals:Q.modals?Q.modals.set(L,y):new Map([[L,y]]),modalContext:Q.modalContext?Q.modalContext.set(L,D):new Map([[L,D]])}))}catch(P){const X=P instanceof Error?P.message:"An error occurred";_?.({success:!1,error:X})}return}if(j===Ea.removeSearchParams){const[U]=[...A];try{const D=N?.(U);_?.({success:!0,result:D})}catch(D){const R=D instanceof Error?D.message:"An error occurred";_?.({success:!1,error:R})}return}if(j===Ea.setSearchParams){const[U]=[...A];try{const D=k?.(U);_?.({success:!0,result:D})}catch(D){const R=D instanceof Error?D.message:"An error occurred";_?.({success:!1,error:R})}return}}),w.on($n.CLOSE_RICH_MODAL_REQUEST,()=>{M&&n?.closeRichModal?.(y)}),w.on($n.NAVIGATE,T=>{const{navigate:_}=a,{path:j,external:A}=T;if(_){M&&n?.closeRichModal?.(y);const H=E&&!A&&!j.startsWith(E)?`${E}${j}`:j;_({id:M||y,path:H,external:A})}}),h.current.set(y,w),s(T=>({...T,buses:h,confirmAction:_=>{h.current.get(y)?.emit($n.ACTION_CONFIRMED,{data:_})},cancelAction:()=>{h.current.get(y)?.emit($n.ACTION_CANCELED)}}))};f.useEffect(()=>(t.filter(S=>S.type==="full_page").forEach(S=>{const M=`app-shell-iframe-fullpage-${S.id}`,$=E3(M,S.url),E=S.subSlug??new URL(S.url).pathname;u.current.set(S.id,$),s(I=>({...I,frames:u})),v(S.id,S.url,$,void 0,void 0,E)}),t.filter(S=>S.type==="plugin").forEach(S=>{const M=`app-shell-iframe-plugin-${S.id}`,$=E3(M,S.url,S.subSlug),E=S.subSlug??new URL(S.url).pathname;u.current.set(S.id,$),s(I=>({...I,frames:u})),v(S.id,S.url,$,void 0,void 0,E)}),()=>{h.current.forEach(S=>S.teardown()),u.current.forEach(S=>S.remove()),s(S=>({...S,instances:new Map}))}),[t?.length]),f.useEffect(()=>{s(y=>({...y,data:r})),r&&h.current&&h.current.forEach(y=>{y.emit($n.SET_DATA,r)})},[r]);const g=f.useCallback(({path:y,id:x})=>{x?h.current.get(x)?.emit($n.NAVIGATE_CHILD,{path:y}):c.emit($n.NAVIGATE_CHILD,{path:y})},[]),p=f.useCallback(y=>{h.current.forEach(x=>{x.emit($n.LOCALE_CHANGED,{locale:y})})},[]),b=f.useMemo(()=>({...i,apps:t,navigate:g,updateLocale:p}),[i,t]);return ve.jsx(E$.Provider,{value:b,children:e})},DQ=({id:e,path:t})=>{const n=`app-shell-fullpage-container-${e}`,{frames:r,navigate:a}=b1();return f.useEffect(()=>{if(r?.current.has(e)){const i=r.current.get(e),s=document.getElementById(n),c=new URL(i.src).origin;t?i.src=`${c}${t}`:i.src=c;const u={display:"block",width:"100%",height:"100%",border:"none"};Object.assign(i.style,u),s&&(s.innerHTML="",s.appendChild(i))}},[e,r?.current.has(e)]),f.useEffect(()=>{t&&a({path:t,id:e})},[t]),ve.jsx("div",{id:n,className:"app-shell-fullpage-container"})},LQ=({placeholderId:e,params:t})=>{const{apps:n,configs:r,frames:a,buses:i}=b1(),s=Math.random().toString(16).slice(2),c=Array.from(r.keys()).filter(b=>{const y=r.get(b);return typeof y.placeholderId=="string"?y?.placeholderId===e:y?.placeholderId?.includes(e)}),u=n.filter(b=>c.includes(b.id)),h=u[0];if(!h)return null;u.length>1&&console.warn(`PluginRenderer: Found multiple plugins with placeholderId: ${e}`);const v=`app-shell-plugin-container-${s}`,g=`app-shell-plugin-iframe-${s}`,p=i?.current.get(h.id);return f.useEffect(()=>{(async()=>{const y=a?.current.get(h.id);if(y){const x=document.getElementById(v),S=document.createElement("iframe");if(S.id=g,S.name=g,t){const $=await Db(t);S.src=`${y.src}?c=${$}`}else S.src=y.src;const M={background:"transparent",display:"block",width:"100%",border:"none"};Object.assign(S.style,M),x&&x.appendChild(S),S.onload=async()=>{if(p?.addTargetFrame(S),t){const $=await Db(t);p?.target({channel:$}).emit($n.SET_PARAMS,t)}}}})()},[e,a]),f.useEffect(()=>{(async()=>{if(t){const x=document.querySelector(`#${v} iframe`)?.src.split("?")[1]?.split("=")[1];p?.target({channel:x}).emit($n.SET_PARAMS,t)}})()},[t]),ve.jsx("div",{id:v,className:"app-shell-plugin-container"})},BQ={en:{locale:"en",isoLocale:"en-us",name:"English"},tr:{locale:"tr",isoLocale:"tr-tr",name:"Türkçe"}},HQ=({currentLocale:e,locales:t,onLocaleChange:n})=>{const r=i=>()=>{n(i)},a=f.useMemo(()=>Object.keys(t).map(i=>({key:`locale-${i}`,label:t[i].name,onClick:r(i)})),[t]);return ve.jsx("div",{className:"header-locale",children:ve.jsx(dX,{menu:{items:a},trigger:["click"],placement:"bottomRight",arrow:!0,children:ve.jsx(d8,{type:"text",className:"flex items-center",children:t[e]?.name??e})})})},FQ=()=>"1.6.8",kQ=({onToggleLeftSider:e,onToggleRightSider:t})=>{const{i18n:n}=N0(),{updateLocale:r}=b1(),[,a]=RX(cy,null,{raw:!0}),i=s=>{n.changeLanguage(s),oy.setLocale(s),a(s),r(s)};return f.useEffect(()=>{r(n.language)},[r,n.language]),ve.jsxs(ve.Fragment,{children:[ve.jsx("div",{className:"flex items-center",children:ve.jsx(d8,{type:"text",icon:"outdent",iconSize:16,onClick:e,className:"mr-2"})}),ve.jsx("div",{children:ve.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[ve.jsx("span",{style:{width:"10px",height:"10px",backgroundColor:"green",borderRadius:"50%"}}),ve.jsxs("span",{style:{fontSize:"14px",color:"#999"},children:["Akinon UI Shell (v",FQ(),")"]})]})}),ve.jsxs("div",{className:"flex items-center",children:[ve.jsx(HQ,{currentLocale:n.language,locales:BQ,onLocaleChange:i}),ve.jsx(d8,{type:"text",icon:"siralama",iconSize:16,onClick:t,className:"mr-2"})]})]})};function ny(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!Array.isArray(e)&&typeof e[t]=="string")return e[t];const n=e;if(n){if(typeof n.en=="string")return n.en;if(typeof n.tr=="string")return n.tr}return""}function VQ(e){return e?e.startsWith("/")?e:`/${e}`:"/"}const UQ=e=>[{key:"/",label:e("navbar.dashboard"),icon:"dashboard"},{key:"/products-and-catalogs",label:e("navbar.products_and_catalogs"),icon:"fiyatlistesi",disabled:!0},{key:"/orders",label:e("navbar.orders"),icon:"siparis",disabled:!0}],WQ=e=>[{key:"/placeholder-2",label:e("navbar.help_and_support"),icon:"bilgilendirme_servis",disabled:!0},{key:"/placeholder-1",label:e("navbar.settings"),icon:"ayarlar",disabled:!0}],qQ=(e,t)=>e.filter(n=>n.type==="full_page").map(n=>{const a=t.get(n.id)?.menu?.map(i=>{const{child:s,path:c,label:u}=i||{};if(s||!c)return!1;const h=VQ(c);return{key:`/external/${n.slug}${h}`,label:ny(u,"en")||void 0,icon:"eksi"}}).filter(Boolean);return{key:`/external/${n.slug}`,label:ny(n.name,"en")||n.name,icon:"stoklistesi",children:a}}),GQ=(e,t)=>e.some(r=>r.type==="plugin")?[{key:"/plugin-test",label:t("navbar.plugin_test"),icon:"box"}]:[],XQ=()=>{const{apps:e,configs:t}=b1(),{t:n}=N0(),r=oc(),a=R6(),[i,s]=f.useState("/"),[c,u]=f.useState([]),h=UQ(n),v=WQ(n),g=qQ(e,t),p=GQ(e,n),b=f.useMemo(()=>[...h,...g,...p,...v],[h,g,p,v]),{allItemKeys:y,childToParentKey:x}=f.useMemo(()=>{function E(O){if(!O)return[];const T=[];return O.forEach(_=>{"key"in _&&_.key&&T.push(_.key),"children"in _&&_.children&&_.children.forEach(j=>{"key"in j&&j.key&&T.push(j.key)})}),T}const I=E(b),w=new Map;return g.forEach(O=>{"children"in O&&O.children&&O.children.forEach(T=>{"key"in T&&T.key&&"key"in O&&O.key&&w.set(T.key,O.key)})}),{allItemKeys:I,childToParentKey:w}},[b,g]),S=f.useMemo(()=>{const E=new Set;return g.forEach(I=>{"key"in I&&I.key&&"children"in I&&Array.isArray(I.children)&&I.children.length>0&&E.add(I.key)}),E},[g]);f.useEffect(()=>{const E=r.pathname,I=y.filter(O=>typeof O=="string"&&E.startsWith(O)).sort((O,T)=>T.length-O.length)[0];I&&s(I);const w=I?x.get(I):void 0;w?u([w]):g.some(O=>{const T="key"in O&&O.key===I,_="children"in O&&Array.isArray(O.children)&&O.children.length>0;return T&&_})&&u([I])},[r,y,x,g]);const M=E=>{const I=E.key;if(S.has(I)){u(O=>O.includes(I)?[]:[I]),s(I);return}const w=x.get(I);w&&u([w]),I.includes("external")||u([]),a(I)},$=E=>{if(E.length===0){u([]);return}u([E[E.length-1]])};return ve.jsx("div",{children:ve.jsx(OX,{mode:"inline",selectedKeys:[i],items:b,onClick:M,triggerSubMenuAction:"click",theme:"dark",openKeys:c,onOpenChange:$})})},KQ=({children:e})=>{const[t,n]=f.useState(!1),[r,a]=f.useState(!0),i=()=>n(!t),s=()=>a(!r);return ve.jsxs(ll,{children:[ve.jsx(ll.Sider,{collapsed:t,brandImageUrl:"/logo.png",iconUrl:"/symbol.png",children:ve.jsx(XQ,{})}),ve.jsxs(ll,{children:[ve.jsx(ll.Header,{children:ve.jsx(kQ,{onToggleLeftSider:i,onToggleRightSider:s})}),ve.jsx(ll.Content,{children:e})]}),ve.jsx(ll.Sider,{collapsed:r,collapsedWidth:0,position:"right",children:ve.jsxs(f8,{className:"log-messages",children:[ve.jsxs("div",{className:"log-messages-item",children:[ve.jsx($3,{type:"success",children:"Development server running"}),ve.jsx($3,{children:new Date().toLocaleTimeString()})]}),ve.jsxs("div",{className:"log-messages-item",children:[ve.jsx($3,{children:"Shell environment active"}),ve.jsx($3,{children:"Ready for testing"})]})]})})]})},YQ=({config:e,children:t})=>{const[n,r]=z7.useNotification(),[a]=mQ(),i=R6(),{i18n:s}=N0(),c=e.apps.map((b,y)=>({id:y+1,url:b.url,slug:b.name.toLowerCase().replace(/\s+/g,"-"),path:"",type:b.type,name:b.navTitle||b.name})),u={navigate:({id:b,path:y,external:x})=>{const S=c.find($=>$.id===b);if(!S)return;const M=x?y:`/external/${S.slug}${y||""}`;i(M)}},h={lng:s.language,username:"Developer",searchParams:Object.fromEntries([...a]),...e.data||{}},p={...{showModalDialog:()=>{},showToast:(b,y)=>{y==="loading"||y==="destroy"||n[y]({message:b,placement:"top"})},showErrorMessage:(b,y)=>{n.error({message:b,description:y,placement:"top"})},showRichModal:()=>{}},actions:{...{reloadPage:()=>window.location.reload(),logMessage:b=>{try{const y=JSON.parse(localStorage.getItem("logMessages")||"[]");localStorage.setItem("logMessages",JSON.stringify([...y,b]))}catch{console.error("Failed to log message")}}}}};return ve.jsxs(AQ,{apps:c,navigation:u,data:h,actions:p,children:[t,r]})},O$=({children:e})=>ve.jsx("div",{className:"px-8 py-8",children:e}),QQ=({title:e,description:t,actions:n,className:r})=>ve.jsxs(CX,{justify:"space-between",align:"flex-start",className:r,style:{padding:"18px 30px",borderBlockEnd:"solid 1px var(--color-gray-900)"},children:[ve.jsxs(f8,{direction:"vertical",size:4,children:[ve.jsx(oX,{level:4,style:{margin:0},children:e}),t&&ve.jsx(aX,{type:"secondary",children:t})]}),n&&ve.jsx(f8,{children:n})]}),ZQ=({data:e})=>{const t={...e};return delete t.lng,delete t.username,delete t.searchParams,ve.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:Object.keys(t).length>0?JSON.stringify(t,null,2):`// No custom data configured in shell.config.js
|
|
417
|
+
// Add data to the "data" field to share it with your application`})},JQ=()=>{const{apps:e}=b1(),t=window.__SHELL_CONFIG__||{},n=t.data;return ve.jsxs("div",{children:[ve.jsx(z3,{title:"Applications Configuration",className:"mb-8",children:e.length===0?ve.jsx("p",{style:{color:"#999"},children:"No applications configured"}):ve.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[e.map((r,a)=>ve.jsxs("div",{style:{borderBottom:a<e.length-1?"1px solid #e0e0e0":"none",paddingBottom:a<e.length-1?"20px":"0"},children:[ve.jsxs("h4",{style:{margin:"0 0 16px 0"},children:[r.name," ",e.length>1&&`(App ${a+1})`]}),ve.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"16px"},children:[ve.jsxs("div",{children:[ve.jsx("strong",{children:"Application Type:"}),ve.jsx("p",{style:{margin:"12px 0 4px 0"},children:ve.jsx(bY,{color:r.type==="full_page"?"blue":"green",children:r.type==="full_page"?"Full Page":"Plugin"})})]}),ve.jsxs("div",{children:[ve.jsx("strong",{children:"Development URL:"}),ve.jsx("p",{style:{margin:"12px 0 4px 0",color:"#999",fontFamily:"monospace",fontSize:"13px"},children:r.url})]})]})]},r.id)),ve.jsxs("div",{style:{marginTop:"10px"},children:[ve.jsx("strong",{children:"Shell Theme:"}),ve.jsx("p",{style:{margin:"12px 0 4px 0",color:"#999"},children:t?.shell?.theme})]})]})}),ve.jsx(z3,{title:"Shared Data",className:"mb-8",children:n&&ve.jsx(ZQ,{data:n})}),ve.jsx(z3,{title:"Development Instructions",className:"mb-8",children:ve.jsxs("div",{style:{lineHeight:"1.6"},children:[ve.jsx("h4",{style:{margin:"0 0 8px 0"},children:"Getting Started:"}),ve.jsxs("ol",{style:{paddingLeft:"20px"},children:[ve.jsxs("li",{children:["Make sure your application",e.length>1?"s are":" is"," ","running at"," ",ve.jsx("code",{children:e.length>0?e[0].url:"http://localhost:4001"}),e.length>1&&ve.jsxs(ve.Fragment,{children:[" and ",e.slice(1).map((r,a)=>ve.jsxs("span",{children:[a>0&&", ",ve.jsx("code",{children:r.url})]},r.id))]})]}),ve.jsx("li",{children:'Click "Launch Application" to load your app in the shell environment'}),e.some(r=>r.type==="plugin")&&ve.jsx("li",{children:'Use "Test Plugin Integration" to test your plugin in different placeholder configurations'}),ve.jsx("li",{children:"The shell provides a realistic integration environment for testing"})]}),ve.jsx(uX,{}),ve.jsxs("h4",{style:{margin:"16px 0 8px 0"},children:["Application Types:"," ",e.map((r,a)=>ve.jsxs("span",{children:[a>0&&", ",r.type==="full_page"?"Full Page":"Plugin"]},r.id))]}),e.some(r=>r.type==="full_page")&&ve.jsx("p",{style:{margin:0,color:"#666"},children:"Full page applications render as complete pages within the shell environment, providing full control over the content area and routing."}),e.some(r=>r.type==="plugin")&&ve.jsx("p",{style:{margin:"8px 0 0 0",color:"#666"},children:"Plugin applications render within designated placeholders in the host application, providing component-level integration capabilities."})]})}),ve.jsx(z3,{title:"Component Usage",children:ve.jsxs("div",{style:{lineHeight:"1.6"},children:[ve.jsx("h4",{style:{margin:"0 0 8px 0"},children:"@akinon/ui-* Components:"}),ve.jsx("p",{style:{margin:"0 0 16px 0",color:"#999"},children:"This shell environment includes all Akinon UI components. You can use them in your application by importing from the respective packages."}),ve.jsx("pre",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"16px",borderRadius:"6px",border:"1px solid #424b6b",fontSize:"13px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace',lineHeight:"1.5",overflow:"auto",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:`// Import components from @akinon/ui-react (main package)
|
|
418
418
|
import { Button, Card, Input, Modal } from '@akinon/ui-react';
|
|
419
419
|
|
|
420
420
|
// Or import from specific packages
|
|
@@ -431,4 +431,4 @@ function MyComponent() {
|
|
|
431
431
|
<Button type="primary">Submit</Button>
|
|
432
432
|
</Card>
|
|
433
433
|
);
|
|
434
|
-
}`}),ve.jsx("h3",{style:{margin:"16px 0 8px 0"},children:"Available Components:"}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Data Display"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Avatar",pkg:"@akinon/ui-avatar"},{name:"Badge",pkg:"@akinon/ui-badge"},{name:"Carousel",pkg:"@akinon/ui-carousel"},{name:"Image",pkg:"@akinon/ui-image"},{name:"List",pkg:"@akinon/ui-list"},{name:"Popover",pkg:"@akinon/ui-popover"},{name:"Table",pkg:"@akinon/ui-table"},{name:"Tag",pkg:"@akinon/ui-tag"},{name:"Tooltip",pkg:"@akinon/ui-tooltip"},{name:"Tree",pkg:"@akinon/ui-tree"},{name:"Typography",pkg:"@akinon/ui-typography"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Feedback"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Alert",pkg:"@akinon/ui-alert"},{name:"Drawer",pkg:"@akinon/ui-drawer"},{name:"Message",pkg:"@akinon/ui-message"},{name:"Modal",pkg:"@akinon/ui-modal"},{name:"Notification",pkg:"@akinon/ui-notification"},{name:"Progress",pkg:"@akinon/ui-progress"},{name:"Result",pkg:"@akinon/ui-result"},{name:"Skeleton",pkg:"@akinon/ui-skeleton"},{name:"Spin",pkg:"@akinon/ui-spin"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Form"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"AutoComplete",pkg:"@akinon/ui-auto-complete"},{name:"Button",pkg:"@akinon/ui-button"},{name:"Checkbox",pkg:"@akinon/ui-checkbox"},{name:"ColorPicker",pkg:"@akinon/ui-color-picker"},{name:"DatePicker",pkg:"@akinon/ui-date-picker"},{name:"Input",pkg:"@akinon/ui-input"},{name:"InputNumber",pkg:"@akinon/ui-input-number"},{name:"Radio",pkg:"@akinon/ui-radio"},{name:"Select",pkg:"@akinon/ui-select"},{name:"Slider",pkg:"@akinon/ui-slider"},{name:"Switch",pkg:"@akinon/ui-switch"},{name:"TimePicker",pkg:"@akinon/ui-time-picker"},{name:"Transfer",pkg:"@akinon/ui-transfer"},{name:"TreeSelect",pkg:"@akinon/ui-tree-select"},{name:"Upload",pkg:"@akinon/ui-upload"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Layout"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Card",pkg:"@akinon/ui-card"},{name:"Collapse",pkg:"@akinon/ui-collapse"},{name:"Divider",pkg:"@akinon/ui-divider"},{name:"Layout",pkg:"@akinon/ui-layout"},{name:"Space",pkg:"@akinon/ui-space"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Navigation"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Breadcrumb",pkg:"@akinon/ui-breadcrumb"},{name:"Dropdown",pkg:"@akinon/ui-dropdown"},{name:"Menu",pkg:"@akinon/ui-menu"},{name:"Pagination",pkg:"@akinon/ui-pagination"},{name:"Segmented",pkg:"@akinon/ui-segmented"},{name:"Steps",pkg:"@akinon/ui-steps"},{name:"Tour",pkg:"@akinon/ui-tour"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsxs("p",{style:{margin:"0",color:"#999",fontSize:"14px"},children:[ve.jsx("strong",{children:"Note:"})," All components follow Ant Design API conventions with Akinon-specific styling and theming. Check the Storybook documentation for detailed usage examples and props."]})]})})]})},
|
|
434
|
+
}`}),ve.jsx("h3",{style:{margin:"16px 0 8px 0"},children:"Available Components:"}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Data Display"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Avatar",pkg:"@akinon/ui-avatar"},{name:"Badge",pkg:"@akinon/ui-badge"},{name:"Carousel",pkg:"@akinon/ui-carousel"},{name:"Image",pkg:"@akinon/ui-image"},{name:"List",pkg:"@akinon/ui-list"},{name:"Popover",pkg:"@akinon/ui-popover"},{name:"Table",pkg:"@akinon/ui-table"},{name:"Tag",pkg:"@akinon/ui-tag"},{name:"Tooltip",pkg:"@akinon/ui-tooltip"},{name:"Tree",pkg:"@akinon/ui-tree"},{name:"Typography",pkg:"@akinon/ui-typography"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Feedback"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Alert",pkg:"@akinon/ui-alert"},{name:"Drawer",pkg:"@akinon/ui-drawer"},{name:"Message",pkg:"@akinon/ui-message"},{name:"Modal",pkg:"@akinon/ui-modal"},{name:"Notification",pkg:"@akinon/ui-notification"},{name:"Progress",pkg:"@akinon/ui-progress"},{name:"Result",pkg:"@akinon/ui-result"},{name:"Skeleton",pkg:"@akinon/ui-skeleton"},{name:"Spin",pkg:"@akinon/ui-spin"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Form"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"AutoComplete",pkg:"@akinon/ui-auto-complete"},{name:"Button",pkg:"@akinon/ui-button"},{name:"Checkbox",pkg:"@akinon/ui-checkbox"},{name:"ColorPicker",pkg:"@akinon/ui-color-picker"},{name:"DatePicker",pkg:"@akinon/ui-date-picker"},{name:"Input",pkg:"@akinon/ui-input"},{name:"InputNumber",pkg:"@akinon/ui-input-number"},{name:"Radio",pkg:"@akinon/ui-radio"},{name:"Select",pkg:"@akinon/ui-select"},{name:"Slider",pkg:"@akinon/ui-slider"},{name:"Switch",pkg:"@akinon/ui-switch"},{name:"TimePicker",pkg:"@akinon/ui-time-picker"},{name:"Transfer",pkg:"@akinon/ui-transfer"},{name:"TreeSelect",pkg:"@akinon/ui-tree-select"},{name:"Upload",pkg:"@akinon/ui-upload"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Layout"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Card",pkg:"@akinon/ui-card"},{name:"Collapse",pkg:"@akinon/ui-collapse"},{name:"Divider",pkg:"@akinon/ui-divider"},{name:"Layout",pkg:"@akinon/ui-layout"},{name:"Space",pkg:"@akinon/ui-space"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsx("h4",{style:{margin:"24px 0 12px 0",fontSize:"16px"},children:"Navigation"}),ve.jsx("div",{style:{marginBottom:"20px"},children:[{name:"Breadcrumb",pkg:"@akinon/ui-breadcrumb"},{name:"Dropdown",pkg:"@akinon/ui-dropdown"},{name:"Menu",pkg:"@akinon/ui-menu"},{name:"Pagination",pkg:"@akinon/ui-pagination"},{name:"Segmented",pkg:"@akinon/ui-segmented"},{name:"Steps",pkg:"@akinon/ui-steps"},{name:"Tour",pkg:"@akinon/ui-tour"}].map((r,a,i)=>ve.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"8px 0",borderBottom:a<i.length-1?"1px solid #4c5679":"none"},children:[ve.jsx("span",{children:r.name}),ve.jsx("code",{style:{backgroundColor:"#1e1e1e",color:"#d4d4d4",padding:"4px 8px",borderRadius:"4px",border:"1px solid #424b6b",fontSize:"12px",fontFamily:'"SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Source Code Pro", monospace'},children:r.pkg})]},r.name))}),ve.jsxs("p",{style:{margin:"0",color:"#999",fontSize:"14px"},children:[ve.jsx("strong",{children:"Note:"})," All components follow Ant Design API conventions with Akinon-specific styling and theming. Check the Storybook documentation for detailed usage examples and props."]})]})})]})},eZ=()=>{const{t:e}=N0();return ve.jsxs("div",{className:"page-dashboard",children:[ve.jsx("div",{className:"page-heading-container",children:ve.jsx(QQ,{title:e("dashboard.title"),description:e("dashboard.description")})}),ve.jsx("div",{className:"page-content-container",children:ve.jsx(O$,{children:ve.jsx(JQ,{})})})]})},ry=({id:e,path:t})=>{const n=oc(),r=t??"",a=r&&!r.startsWith("/")?`/${r}`:r,i=n.pathname,s=i.indexOf(a),c=s>=0?i.slice(s+a.length):"",u=`${a}${c}`||void 0,h=u?`${u}${n.search??""}${n.hash??""}`:void 0;return ve.jsx("div",{className:"page-plugin-external",children:ve.jsx(DQ,{id:e,path:h})})},tZ=()=>{const e=R6(),{apps:t,configs:n}=b1(),r=i=>{let s=null;if(Array.from(n.entries()).forEach(([h,v])=>{if("placeholderId"in v&&v.placeholderId===i){s=h;return}}),s===null)return"";const{url:c,subSlug:u}=t.find(({id:h})=>h===s)||{};return c?`[ ${c}${u??""} ]`:""},a=[];return Array.from(n.entries()).forEach(([,i])=>{"placeholderId"in i&&a.push(i.placeholderId)}),ve.jsxs("div",{className:"page-plugin-basic",children:[ve.jsx(iX,{items:[{onClick:()=>e("/"),title:"Dashboard"},{title:"Plugin Test"}]}),ve.jsx("div",{className:"page-heading-container",children:ve.jsx(zX,{title:"Plugin Test"})}),ve.jsx("div",{className:"page-content-container",children:ve.jsx(O$,{children:a.length>0?ve.jsx(xX,{gutter:[20,20],children:a.map(i=>ve.jsx(MX,{span:12,children:ve.jsx("div",{className:"plugin-placeholder","data-title":`${i} ${r(i)}`,children:ve.jsx(LQ,{placeholderId:i})})},i))}):ve.jsxs("div",{style:{textAlign:"center",padding:"48px",border:"1px dashed #d9d9d9",borderRadius:"8px"},children:[ve.jsx("h2",{children:"No Plugin Configurations Found"}),ve.jsxs("p",{children:["No plugin applications with placeholder configurations were found. ",ve.jsx("br",{})," Make sure your shell configuration includes plugin apps with placeholder IDs."]})]})})})]})},nZ=()=>ve.jsx(tZ,{}),rZ=()=>{const{apps:e,configs:t}=b1(),n=e.filter(r=>r.type==="full_page");return ve.jsxs(uQ,{children:[n.map(r=>ve.jsxs(cl,{path:`/external/${r.slug}`,children:[ve.jsx(cl,{index:!0,element:ve.jsx(ry,{id:r.id,path:r.path})}),t.get(r.id)?.menu?.map(a=>a.path!=="/"&&ve.jsx(cl,{path:`/external/${r.slug}${a.path}/*`,element:ve.jsx(ry,{id:r.id,path:r.subSlug?`${r.subSlug}${a.path}`:a.path})},a.path))]},r.id)),ve.jsx(cl,{path:"/plugin-test",element:ve.jsx(nZ,{})}),ve.jsx(cl,{path:"/",element:ve.jsx(eZ,{})})]})},aZ=({config:e})=>ve.jsx(vQ,{children:ve.jsx(PX,{children:ve.jsx(YQ,{config:e,children:ve.jsx(KQ,{children:ve.jsx(rZ,{})})})})}),I$=localStorage.getItem(cy)||"en";Ir.changeLanguage(I$);oy.setLocale(I$);const oZ=window.__SHELL_CONFIG__||{apps:[{url:"http://localhost:4001",path:"./src",name:"Development App",type:"full_page"}],shell:{port:4e3,theme:"omnitron",title:"Development Shell"},sidebar:{items:[]}};sO.createRoot(document.getElementById("root")).render(ve.jsx(ae.StrictMode,{children:ve.jsx(aZ,{config:oZ})}));export{iZ as a,lO as c,fo as g,U0 as u};
|